@harnessio/react-idp-service-client 0.49.6 → 0.49.7

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.
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { LayoutResponseResponse } from '../responses/LayoutResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAllLayoutsV2QueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetAllLayoutsV2OkResponse = ResponseWithPagination<LayoutResponseResponse>;
9
+ export type GetAllLayoutsV2ErrorResponse = unknown;
10
+ export interface GetAllLayoutsV2Props extends Omit<FetcherOptions<unknown, unknown, GetAllLayoutsV2QueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getAllLayoutsV2(props: GetAllLayoutsV2Props): Promise<GetAllLayoutsV2OkResponse>;
13
+ /**
14
+ * List Layouts v2
15
+ */
16
+ export declare function useGetAllLayoutsV2Query(props: GetAllLayoutsV2Props, options?: Omit<UseQueryOptions<GetAllLayoutsV2OkResponse, GetAllLayoutsV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllLayoutsV2OkResponse, 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 getAllLayoutsV2(props) {
7
+ return fetcher(Object.assign({ url: `/v2/layout`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List Layouts v2
11
+ */
12
+ export function useGetAllLayoutsV2Query(props, options) {
13
+ return useQuery(['get-all-layouts-v2'], ({ signal }) => getAllLayoutsV2(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -27,6 +27,8 @@ export type { GetAllDatasourcesForAccountErrorResponse, GetAllDatasourcesForAcco
27
27
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
28
28
  export type { GetAllLayoutsErrorResponse, GetAllLayoutsOkResponse, GetAllLayoutsProps, } from './hooks/useGetAllLayoutsQuery';
29
29
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
30
+ export type { GetAllLayoutsV2ErrorResponse, GetAllLayoutsV2OkResponse, GetAllLayoutsV2Props, } from './hooks/useGetAllLayoutsV2Query';
31
+ export { getAllLayoutsV2, useGetAllLayoutsV2Query } from './hooks/useGetAllLayoutsV2Query';
30
32
  export type { GetAllowListErrorResponse, GetAllowListOkResponse, GetAllowListProps, } from './hooks/useGetAllowListQuery';
31
33
  export { getAllowList, useGetAllowListQuery } from './hooks/useGetAllowListQuery';
32
34
  export type { GetAuthInfoAuthIdErrorResponse, GetAuthInfoAuthIdOkResponse, GetAuthInfoAuthIdProps, GetAuthInfoAuthIdQueryPathParams, } from './hooks/useGetAuthInfoAuthIdQuery';
@@ -12,6 +12,7 @@ export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteSc
12
12
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
13
13
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
14
14
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
15
+ export { getAllLayoutsV2, useGetAllLayoutsV2Query } from './hooks/useGetAllLayoutsV2Query';
15
16
  export { getAllowList, useGetAllowListQuery } from './hooks/useGetAllowListQuery';
16
17
  export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
17
18
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.49.6",
3
+ "version": "0.49.7",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",