@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.
@@ -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';
@@ -16,6 +16,7 @@ export interface TypesGetProbeResponse {
16
16
  infrastructureType?: TypesInfrastructureType;
17
17
  isEnabled?: boolean;
18
18
  isImported?: boolean;
19
+ isVerified?: boolean;
19
20
  name?: string;
20
21
  probeId?: string;
21
22
  probeProperties?: ProbeProbeTemplateProperties;
@@ -13,6 +13,7 @@ export interface TypesProbeRequest {
13
13
  infrastructureType?: TypesInfrastructureType;
14
14
  isEnabled?: boolean;
15
15
  isImported?: boolean;
16
+ isVerified?: boolean;
16
17
  name?: string;
17
18
  probeId?: string;
18
19
  probeProperties?: ProbeProbeTemplateProperties;
@@ -0,0 +1,3 @@
1
+ export interface TypesProbeVerifyRequest {
2
+ certify?: boolean;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.15.1-beta.1",
3
+ "version": "1.15.1-beta.2",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",