@harnessio/react-chaos-manager-client 1.15.1-beta.1 → 1.15.1-beta.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/chaos-manager/src/services/hooks/useVerifyProbeMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +3 -0
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import type { TypesProbeVerifyRequest } from '../schemas/TypesProbeVerifyRequest';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface VerifyProbeMutationPathParams {
|
|
6
|
+
probeId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface VerifyProbeMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type VerifyProbeRequestBody = TypesProbeVerifyRequest;
|
|
14
|
+
export type VerifyProbeOkResponse = string;
|
|
15
|
+
export type VerifyProbeErrorResponse = ApiRestError;
|
|
16
|
+
export interface VerifyProbeProps extends VerifyProbeMutationPathParams, Omit<FetcherOptions<VerifyProbeMutationQueryParams, VerifyProbeRequestBody>, 'url'> {
|
|
17
|
+
queryParams: VerifyProbeMutationQueryParams;
|
|
18
|
+
body: VerifyProbeRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export interface VerifyProbeResponseContainer {
|
|
21
|
+
body: VerifyProbeOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function verifyProbe(props: VerifyProbeProps): Promise<VerifyProbeResponseContainer>;
|
|
25
|
+
export type VerifyProbeMutationProps<T extends keyof VerifyProbeProps> = Omit<VerifyProbeProps, T> & Partial<Pick<VerifyProbeProps, T>>;
|
|
26
|
+
/**
|
|
27
|
+
* Verify a probe
|
|
28
|
+
*/
|
|
29
|
+
export declare function useVerifyProbeMutation<T extends keyof VerifyProbeProps>(props: Pick<Partial<VerifyProbeProps>, T>, options?: Omit<UseMutationOptions<VerifyProbeResponseContainer, VerifyProbeErrorResponse, VerifyProbeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<VerifyProbeResponseContainer, ApiRestError, VerifyProbeMutationProps<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 verifyProbe(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/probes/${props.probeId}/verify`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Verify a probe
|
|
11
|
+
*/
|
|
12
|
+
export function useVerifyProbeMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => verifyProbe(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -284,6 +284,8 @@ export type { UpdateProbeTemplateErrorResponse, UpdateProbeTemplateMutationPathP
|
|
|
284
284
|
export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
|
|
285
285
|
export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatusMutationProps, UpdateRecommendationStatusMutationQueryParams, UpdateRecommendationStatusOkResponse, UpdateRecommendationStatusProps, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
286
286
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
287
|
+
export type { VerifyProbeErrorResponse, VerifyProbeMutationPathParams, VerifyProbeMutationProps, VerifyProbeMutationQueryParams, VerifyProbeOkResponse, VerifyProbeProps, VerifyProbeRequestBody, } from './hooks/useVerifyProbeMutation';
|
|
288
|
+
export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
|
|
287
289
|
export type { ChaosfaulttemplateActionTemplateRequestBody } from './requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
|
|
288
290
|
export type { InfraV2ListKubernetesInfraV2RequestRequestBody } from './requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
|
|
289
291
|
export type { TypesProbeRequestRequestBody } from './requestBodies/TypesProbeRequestRequestBody';
|
|
@@ -768,6 +770,7 @@ export type { TypesProbeBulkEnableRequest } from './schemas/TypesProbeBulkEnable
|
|
|
768
770
|
export type { TypesProbeRecentExecutions } from './schemas/TypesProbeRecentExecutions';
|
|
769
771
|
export type { TypesProbeRequest } from './schemas/TypesProbeRequest';
|
|
770
772
|
export type { TypesProbeType } from './schemas/TypesProbeType';
|
|
773
|
+
export type { TypesProbeVerifyRequest } from './schemas/TypesProbeVerifyRequest';
|
|
771
774
|
export type { TypesRecentGamedayRun } from './schemas/TypesRecentGamedayRun';
|
|
772
775
|
export type { TypesRun } from './schemas/TypesRun';
|
|
773
776
|
export type { TypesScenarioType } from './schemas/TypesScenarioType';
|
|
@@ -141,3 +141,4 @@ export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation
|
|
|
141
141
|
export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
|
|
142
142
|
export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
|
|
143
143
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
144
|
+
export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
|
package/package.json
CHANGED