@harnessio/react-chaos-manager-client 1.15.1-beta.2 → 1.16.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/useListTargetNetworkMapsQuery.d.ts +0 -4
- package/dist/chaos-manager/src/services/index.d.ts +0 -3
- package/dist/chaos-manager/src/services/index.js +0 -1
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesActionData.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultChaosFault.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultRequest.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultResponse.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaultGetFaultResponse.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultRequest.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultResponse.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseKubernetesAgentConfiguration.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +4 -4
- package/dist/chaos-manager/src/services/schemas/FaulttemplateFaultTemplate.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2RegisterInfrastructureV2Request.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ProbeEvaluationWindow.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.d.ts +0 -29
- package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.js +0 -14
- package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.d.ts +0 -3
- package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.js +0 -4
|
@@ -15,10 +15,6 @@ export interface ListTargetNetworkMapsQueryQueryParams {
|
|
|
15
15
|
* @default 10
|
|
16
16
|
*/
|
|
17
17
|
limit: number;
|
|
18
|
-
environmentIdentifier?: string;
|
|
19
|
-
infraId?: string;
|
|
20
|
-
all?: boolean;
|
|
21
|
-
minimal?: boolean;
|
|
22
18
|
search?: string;
|
|
23
19
|
}
|
|
24
20
|
export type ListTargetNetworkMapsRequestBody = NetworkmapListTargetNetworkMapRequest;
|
|
@@ -284,8 +284,6 @@ 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';
|
|
289
287
|
export type { ChaosfaulttemplateActionTemplateRequestBody } from './requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
|
|
290
288
|
export type { InfraV2ListKubernetesInfraV2RequestRequestBody } from './requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
|
|
291
289
|
export type { TypesProbeRequestRequestBody } from './requestBodies/TypesProbeRequestRequestBody';
|
|
@@ -770,7 +768,6 @@ export type { TypesProbeBulkEnableRequest } from './schemas/TypesProbeBulkEnable
|
|
|
770
768
|
export type { TypesProbeRecentExecutions } from './schemas/TypesProbeRecentExecutions';
|
|
771
769
|
export type { TypesProbeRequest } from './schemas/TypesProbeRequest';
|
|
772
770
|
export type { TypesProbeType } from './schemas/TypesProbeType';
|
|
773
|
-
export type { TypesProbeVerifyRequest } from './schemas/TypesProbeVerifyRequest';
|
|
774
771
|
export type { TypesRecentGamedayRun } from './schemas/TypesRecentGamedayRun';
|
|
775
772
|
export type { TypesRun } from './schemas/TypesRun';
|
|
776
773
|
export type { TypesScenarioType } from './schemas/TypesScenarioType';
|
|
@@ -141,4 +141,3 @@ 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';
|
|
@@ -13,7 +13,8 @@ export interface ChaosfaultChaosFault {
|
|
|
13
13
|
* Unique identifier (human-readable) immutable
|
|
14
14
|
*/
|
|
15
15
|
identity?: string;
|
|
16
|
-
|
|
16
|
+
infraType?: string;
|
|
17
|
+
infras?: string[];
|
|
17
18
|
isEnterprise?: boolean;
|
|
18
19
|
isRemoved: boolean;
|
|
19
20
|
name: string;
|
|
@@ -6,7 +6,8 @@ export interface ChaosfaultGetFaultResponse {
|
|
|
6
6
|
correlationID?: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
identity?: string;
|
|
9
|
-
|
|
9
|
+
infraType?: string;
|
|
10
|
+
infras?: string[];
|
|
10
11
|
isEnterprise?: boolean;
|
|
11
12
|
name?: string;
|
|
12
13
|
spec?: FaulttemplateSpec;
|
|
@@ -2,7 +2,14 @@ import type { V1PullPolicy } from '../schemas/V1PullPolicy';
|
|
|
2
2
|
import type { DatabaseResourceRequirements } from '../schemas/DatabaseResourceRequirements';
|
|
3
3
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
4
4
|
export interface DatabaseKubernetesAgentConfiguration {
|
|
5
|
+
annotations?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
disableNamespaceCreation?: boolean;
|
|
5
9
|
imagePullPolicy?: V1PullPolicy;
|
|
10
|
+
labels?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
6
13
|
namespace?: string;
|
|
7
14
|
namespaced?: boolean;
|
|
8
15
|
nodeSelector?: {
|
|
@@ -13,4 +20,5 @@ export interface DatabaseKubernetesAgentConfiguration {
|
|
|
13
20
|
runAsUser?: number;
|
|
14
21
|
serviceAccount?: string;
|
|
15
22
|
tolerations?: V1Toleration[];
|
|
23
|
+
useStaticNameForConfigmapAndSecret?: boolean;
|
|
16
24
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
2
2
|
export interface ExperimentFaultRef {
|
|
3
|
-
/**
|
|
4
|
-
* HubRef of the fault reference
|
|
5
|
-
*/
|
|
6
|
-
hubRef?: string;
|
|
7
3
|
/**
|
|
8
4
|
* Identity of the fault reference
|
|
9
5
|
*/
|
|
@@ -12,6 +8,10 @@ export interface ExperimentFaultRef {
|
|
|
12
8
|
* InfraID contains the infrastructure id
|
|
13
9
|
*/
|
|
14
10
|
infraId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* HubRef of the fault reference
|
|
13
|
+
*/
|
|
14
|
+
isEnterprise?: boolean;
|
|
15
15
|
/**
|
|
16
16
|
* Name of the fault reference
|
|
17
17
|
*/
|
package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfigurati
|
|
|
3
3
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
4
4
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
5
5
|
export interface V2OnboardingChaosInfraAdvanceConfiguration {
|
|
6
|
+
autopilotEnabled?: boolean;
|
|
6
7
|
imagePullPolicy?: V1PullPolicy;
|
|
7
8
|
insecureSkipVerify?: boolean;
|
|
8
9
|
mtls?: InfraV2MtlsConfiguration;
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
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>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|