@harnessio/react-idp-service-client 0.96.1 → 0.96.2

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.
@@ -5,12 +5,16 @@ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
5
  export interface GetKindQueryPathParams {
6
6
  identifier: string;
7
7
  }
8
+ export interface GetKindQueryQueryParams {
9
+ custom?: boolean;
10
+ }
8
11
  export interface GetKindQueryHeaderParams {
9
12
  'Harness-Account'?: string;
10
13
  }
11
14
  export type GetKindOkResponse = ResponseWithPagination<KindResponseBodyResponse>;
12
15
  export type GetKindErrorResponse = unknown;
13
- export interface GetKindProps extends GetKindQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetKindQueryHeaderParams>, 'url'> {
16
+ export interface GetKindProps extends GetKindQueryPathParams, Omit<FetcherOptions<GetKindQueryQueryParams, unknown, GetKindQueryHeaderParams>, 'url'> {
17
+ queryParams: GetKindQueryQueryParams;
14
18
  }
15
19
  export declare function getKind(props: GetKindProps): Promise<GetKindOkResponse>;
16
20
  /**
@@ -10,5 +10,5 @@ export function getKind(props) {
10
10
  * Get Kind.
11
11
  */
12
12
  export function useGetKindQuery(props, options) {
13
- return useQuery(['get-kind', props.identifier], ({ signal }) => getKind(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['get-kind', props.identifier, props.queryParams], ({ signal }) => getKind(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -10,6 +10,7 @@ export interface GetKindsQueryQueryParams {
10
10
  limit?: number;
11
11
  sort?: string;
12
12
  search_term?: string;
13
+ custom?: boolean;
13
14
  }
14
15
  export interface GetKindsQueryHeaderParams {
15
16
  'Harness-Account'?: string;
@@ -153,7 +153,7 @@ export type { GetIntegrationsErrorResponse, GetIntegrationsOkResponse, GetIntegr
153
153
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
154
154
  export type { GetJsonSchemaErrorResponse, GetJsonSchemaOkResponse, GetJsonSchemaProps, GetJsonSchemaQueryQueryParams, } from './hooks/useGetJsonSchemaQuery';
155
155
  export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
156
- export type { GetKindErrorResponse, GetKindOkResponse, GetKindProps, GetKindQueryPathParams, } from './hooks/useGetKindQuery';
156
+ export type { GetKindErrorResponse, GetKindOkResponse, GetKindProps, GetKindQueryPathParams, GetKindQueryQueryParams, } from './hooks/useGetKindQuery';
157
157
  export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
158
158
  export type { GetKindSchemaErrorResponse, GetKindSchemaOkResponse, GetKindSchemaProps, } from './hooks/useGetKindSchemaQuery';
159
159
  export { getKindSchema, useGetKindSchemaQuery } from './hooks/useGetKindSchemaQuery';
@@ -2,6 +2,7 @@
2
2
  * Kind Response Body
3
3
  */
4
4
  export interface KindResponseBody {
5
+ custom?: boolean;
5
6
  description?: string;
6
7
  icon?: string;
7
8
  identifier: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.96.1",
3
+ "version": "0.96.2",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",