@harnessio/react-idp-service-client 0.48.0 → 0.48.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.
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteCustomPluginInfoMutationPathParams {
5
+ 'plugin-id': string;
6
+ }
7
+ export interface DeleteCustomPluginInfoMutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteCustomPluginInfoOkResponse = ResponseWithPagination<unknown>;
11
+ export type DeleteCustomPluginInfoErrorResponse = unknown;
12
+ export interface DeleteCustomPluginInfoProps extends DeleteCustomPluginInfoMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteCustomPluginInfoMutationHeaderParams>, 'url'> {
13
+ }
14
+ export declare function deleteCustomPluginInfo(props: DeleteCustomPluginInfoProps): Promise<DeleteCustomPluginInfoOkResponse>;
15
+ /**
16
+ * Delete custom plugin info
17
+ */
18
+ export declare function useDeleteCustomPluginInfoMutation(options?: Omit<UseMutationOptions<DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteCustomPluginInfoOkResponse, unknown, DeleteCustomPluginInfoProps, 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 deleteCustomPluginInfo(props) {
7
+ return fetcher(Object.assign({ url: `/v1/plugins-info/${props['plugin-id']}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete custom plugin info
11
+ */
12
+ export function useDeleteCustomPluginInfoMutation(options) {
13
+ return useMutation((mutateProps) => deleteCustomPluginInfo(mutateProps), options);
14
+ }
@@ -11,6 +11,8 @@ export type { CreateScorecardErrorResponse, CreateScorecardOkResponse, CreateSco
11
11
  export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
12
12
  export type { DeleteCheckErrorResponse, DeleteCheckMutationPathParams, DeleteCheckMutationQueryParams, DeleteCheckOkResponse, DeleteCheckProps, } from './hooks/useDeleteCheckMutation';
13
13
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
14
+ export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
15
+ export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
14
16
  export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
15
17
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
16
18
  export type { GetAllDatasourcesForAccountErrorResponse, GetAllDatasourcesForAccountOkResponse, GetAllDatasourcesForAccountProps, } from './hooks/useGetAllDatasourcesForAccountQuery';
@@ -4,6 +4,7 @@ export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutat
4
4
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
5
5
  export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
6
6
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
7
+ export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
7
8
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
8
9
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
9
10
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
@@ -2,4 +2,5 @@ import type { Artifact } from '../schemas/Artifact';
2
2
  import type { PluginDetailedInfo } from '../schemas/PluginDetailedInfo';
3
3
  export interface CustomPluginDetailedInfo extends PluginDetailedInfo {
4
4
  artifact?: Artifact;
5
+ package_name?: string;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.48.0",
3
+ "version": "0.48.2",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",