@harnessio/react-chaos-manager-client 1.19.0 → 1.20.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.
- package/dist/chaos-manager/src/services/hooks/useDeleteHubMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteHubMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/usePipelineAddExperimentRecommendationMutation.d.ts +2 -2
- package/dist/chaos-manager/src/services/index.d.ts +2 -0
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface DeleteHubMutationPathParams {
|
|
6
|
+
hubIdentity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteHubMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export type DeleteHubOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
|
|
15
|
+
export type DeleteHubErrorResponse = ApiRestError;
|
|
16
|
+
export interface DeleteHubProps extends DeleteHubMutationPathParams, Omit<FetcherOptions<DeleteHubMutationQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: DeleteHubMutationQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface DeleteHubResponseContainer {
|
|
20
|
+
body: DeleteHubOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function deleteHub(props: DeleteHubProps): Promise<DeleteHubResponseContainer>;
|
|
24
|
+
export type DeleteHubMutationProps<T extends keyof DeleteHubProps> = Omit<DeleteHubProps, T> & Partial<Pick<DeleteHubProps, T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Delete a chaos hub in a scope
|
|
27
|
+
*/
|
|
28
|
+
export declare function useDeleteHubMutation<T extends keyof DeleteHubProps>(props: Pick<Partial<DeleteHubProps>, T>, options?: Omit<UseMutationOptions<DeleteHubResponseContainer, DeleteHubErrorResponse, DeleteHubMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteHubResponseContainer, ApiRestError, DeleteHubMutationProps<T>, 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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function deleteHub(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hubs/${props.hubIdentity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete a chaos hub in a scope
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteHubMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteHub(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/usePipelineAddExperimentRecommendationMutation.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface PipelineAddExperimentRecommendationMutationQueryParams {
|
|
|
9
9
|
recommendationID: string;
|
|
10
10
|
}
|
|
11
11
|
export type PipelineAddExperimentRecommendationOkResponse = RecommendationsPipelineAddExperimentResponse;
|
|
12
|
-
export type PipelineAddExperimentRecommendationErrorResponse =
|
|
12
|
+
export type PipelineAddExperimentRecommendationErrorResponse = ApiRestError;
|
|
13
13
|
export interface PipelineAddExperimentRecommendationProps extends Omit<FetcherOptions<PipelineAddExperimentRecommendationMutationQueryParams, unknown>, 'url'> {
|
|
14
14
|
queryParams: PipelineAddExperimentRecommendationMutationQueryParams;
|
|
15
15
|
}
|
|
@@ -22,4 +22,4 @@ export type PipelineAddExperimentRecommendationMutationProps<T extends keyof Pip
|
|
|
22
22
|
/**
|
|
23
23
|
* Add recommended experiment to pipeline
|
|
24
24
|
*/
|
|
25
|
-
export declare function usePipelineAddExperimentRecommendationMutation<T extends keyof PipelineAddExperimentRecommendationProps>(props: Pick<Partial<PipelineAddExperimentRecommendationProps>, T>, options?: Omit<UseMutationOptions<PipelineAddExperimentRecommendationResponseContainer, PipelineAddExperimentRecommendationErrorResponse, PipelineAddExperimentRecommendationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PipelineAddExperimentRecommendationResponseContainer,
|
|
25
|
+
export declare function usePipelineAddExperimentRecommendationMutation<T extends keyof PipelineAddExperimentRecommendationProps>(props: Pick<Partial<PipelineAddExperimentRecommendationProps>, T>, options?: Omit<UseMutationOptions<PipelineAddExperimentRecommendationResponseContainer, PipelineAddExperimentRecommendationErrorResponse, PipelineAddExperimentRecommendationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PipelineAddExperimentRecommendationResponseContainer, ApiRestError, PipelineAddExperimentRecommendationMutationProps<T>, unknown>;
|
|
@@ -48,6 +48,8 @@ export type { DeleteFaultTemplateErrorResponse, DeleteFaultTemplateMutationPathP
|
|
|
48
48
|
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
49
49
|
export type { DeleteGamedayV2ErrorResponse, DeleteGamedayV2MutationPathParams, DeleteGamedayV2MutationProps, DeleteGamedayV2MutationQueryParams, DeleteGamedayV2OkResponse, DeleteGamedayV2Props, } from './hooks/useDeleteGamedayV2Mutation';
|
|
50
50
|
export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGamedayV2Mutation';
|
|
51
|
+
export type { DeleteHubErrorResponse, DeleteHubMutationPathParams, DeleteHubMutationProps, DeleteHubMutationQueryParams, DeleteHubOkResponse, DeleteHubProps, } from './hooks/useDeleteHubMutation';
|
|
52
|
+
export { deleteHub, useDeleteHubMutation } from './hooks/useDeleteHubMutation';
|
|
51
53
|
export type { DeleteInfraV2ErrorResponse, DeleteInfraV2MutationPathParams, DeleteInfraV2MutationProps, DeleteInfraV2MutationQueryParams, DeleteInfraV2OkResponse, DeleteInfraV2Props, } from './hooks/useDeleteInfraV2Mutation';
|
|
52
54
|
export { deleteInfraV2, useDeleteInfraV2Mutation } from './hooks/useDeleteInfraV2Mutation';
|
|
53
55
|
export type { DeleteInputSetErrorResponse, DeleteInputSetMutationPathParams, DeleteInputSetMutationProps, DeleteInputSetMutationQueryParams, DeleteInputSetOkResponse, DeleteInputSetProps, } from './hooks/useDeleteInputSetMutation';
|
|
@@ -23,6 +23,7 @@ export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './
|
|
|
23
23
|
export { deleteFault, useDeleteFaultMutation } from './hooks/useDeleteFaultMutation';
|
|
24
24
|
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
25
25
|
export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGamedayV2Mutation';
|
|
26
|
+
export { deleteHub, useDeleteHubMutation } from './hooks/useDeleteHubMutation';
|
|
26
27
|
export { deleteInfraV2, useDeleteInfraV2Mutation } from './hooks/useDeleteInfraV2Mutation';
|
|
27
28
|
export { deleteInputSet, useDeleteInputSetMutation } from './hooks/useDeleteInputSetMutation';
|
|
28
29
|
export { deleteMachineChaosInfra, useDeleteMachineChaosInfraMutation, } from './hooks/useDeleteMachineChaosInfraMutation';
|
package/package.json
CHANGED