@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.
- package/dist/idp-service/src/services/hooks/useGetKindQuery.d.ts +5 -1
- package/dist/idp-service/src/services/hooks/useGetKindQuery.js +1 -1
- package/dist/idp-service/src/services/hooks/useGetKindsQuery.d.ts +1 -0
- package/dist/idp-service/src/services/index.d.ts +1 -1
- package/dist/idp-service/src/services/schemas/KindResponseBody.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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<
|
|
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
|
}
|
|
@@ -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';
|