@harnessio/react-idp-service-client 0.49.10 → 0.50.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.
@@ -0,0 +1,15 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteLayoutMutationHeaderParams {
5
+ 'Harness-Account'?: string;
6
+ }
7
+ export type DeleteLayoutOkResponse = ResponseWithPagination<unknown>;
8
+ export type DeleteLayoutErrorResponse = unknown;
9
+ export interface DeleteLayoutProps extends Omit<FetcherOptions<unknown, unknown, DeleteLayoutMutationHeaderParams>, 'url'> {
10
+ }
11
+ export declare function deleteLayout(props: DeleteLayoutProps): Promise<DeleteLayoutOkResponse>;
12
+ /**
13
+ * Delete layout
14
+ */
15
+ export declare function useDeleteLayoutMutation(options?: Omit<UseMutationOptions<DeleteLayoutOkResponse, DeleteLayoutErrorResponse, DeleteLayoutProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteLayoutOkResponse, unknown, DeleteLayoutProps, 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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function deleteLayout(props) {
7
+ return fetcher(Object.assign({ url: `/v1/layout`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete layout
11
+ */
12
+ export function useDeleteLayoutMutation(options) {
13
+ return useMutation((mutateProps) => deleteLayout(mutateProps), options);
14
+ }
@@ -19,6 +19,8 @@ export type { DeleteCheckErrorResponse, DeleteCheckMutationPathParams, DeleteChe
19
19
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
20
20
  export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoMutationQueryParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
21
21
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
22
+ export type { DeleteLayoutErrorResponse, DeleteLayoutOkResponse, DeleteLayoutProps, } from './hooks/useDeleteLayoutMutation';
23
+ export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
22
24
  export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
23
25
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
24
26
  export type { GenerateYamlDefErrorResponse, GenerateYamlDefOkResponse, GenerateYamlDefProps, GenerateYamlDefRequestBody, } from './hooks/useGenerateYamlDefMutation';
@@ -8,6 +8,7 @@ export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMu
8
8
  export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
9
9
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
10
10
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
11
+ export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
11
12
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
12
13
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
13
14
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.49.10",
3
+ "version": "0.50.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",