@harnessio/react-chaos-manager-client 1.56.2 → 1.57.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/useAbortChaosComponentMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useAbortChaosComponentMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCanRetryExperimentCreationQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCanRetryExperimentCreationQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateChaosComponentMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateChaosComponentMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateConditionMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateConditionMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateDrTestMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateDrTestMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateRiskMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateRiskMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteConditionMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteConditionMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useEnableRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useEnableRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosComponentVariableQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosComponentVariableQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetConditionQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetConditionQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentOrTemplateVariableQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentOrTemplateVariableQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsCsvMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsCsvMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraManifestQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesHelmInfraCommandQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetProbeManifestQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRiskQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRiskQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRuleQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRuleQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListActionMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListActionMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListChaosComponentQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListChaosComponentQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListConditionQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListConditionQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListDrTestsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListDrTestsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentOrTemplateQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentOrTemplateQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListGamedayMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListGamedayMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListHubMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListHubMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeExecutionsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeExecutionsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRisksQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRisksQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRuleQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRuleQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useRecommendationEventMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useRecommendationEventMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useRetryExperimentCreationMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useRetryExperimentCreationMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useRunChaosComponentMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useRunChaosComponentMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosComponentMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosComponentMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateConditionMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateConditionMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.js +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,6 @@ export interface AbortChaosComponentResponseContainer {
|
|
|
26
26
|
export declare function abortChaosComponent(props: AbortChaosComponentProps): Promise<AbortChaosComponentResponseContainer>;
|
|
27
27
|
export type AbortChaosComponentMutationProps<T extends keyof AbortChaosComponentProps> = Omit<AbortChaosComponentProps, T> & Partial<Pick<AbortChaosComponentProps, T>>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Aborts a running chaos component execution
|
|
30
30
|
*/
|
|
31
31
|
export declare function useAbortChaosComponentMutation<T extends keyof AbortChaosComponentProps>(props: Pick<Partial<AbortChaosComponentProps>, T>, options?: Omit<UseMutationOptions<AbortChaosComponentResponseContainer, AbortChaosComponentErrorResponse, AbortChaosComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AbortChaosComponentResponseContainer, ApiRestError, AbortChaosComponentMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function abortChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internalv3/integrations/abort-chaos-component`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Aborts a running chaos component execution
|
|
11
11
|
*/
|
|
12
12
|
export function useAbortChaosComponentMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => abortChaosComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -23,6 +23,6 @@ export interface CanRetryExperimentCreationResponseContainer {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function canRetryExperimentCreation(props: CanRetryExperimentCreationProps): Promise<CanRetryExperimentCreationResponseContainer>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Can retry or not chaos experiment creation for the given target network map
|
|
27
27
|
*/
|
|
28
28
|
export declare function useCanRetryExperimentCreationQuery(props: CanRetryExperimentCreationProps, options?: Omit<UseQueryOptions<CanRetryExperimentCreationResponseContainer, CanRetryExperimentCreationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CanRetryExperimentCreationResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function canRetryExperimentCreation(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/applicationmaps/${props.applicationmapid}/canretry`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Can retry or not chaos experiment creation for the given target network map
|
|
11
11
|
*/
|
|
12
12
|
export function useCanRetryExperimentCreationQuery(props, options) {
|
|
13
13
|
return useQuery(['canRetryExperimentCreation', props.applicationmapid, props.queryParams], ({ signal }) => canRetryExperimentCreation(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -28,6 +28,6 @@ export interface CreateChaosComponentResponseContainer {
|
|
|
28
28
|
export declare function createChaosComponent(props: CreateChaosComponentProps): Promise<CreateChaosComponentResponseContainer>;
|
|
29
29
|
export type CreateChaosComponentMutationProps<T extends keyof CreateChaosComponentProps> = Omit<CreateChaosComponentProps, T> & Partial<Pick<CreateChaosComponentProps, T>>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Creates the chaos component nodes
|
|
32
32
|
*/
|
|
33
33
|
export declare function useCreateChaosComponentMutation<T extends keyof CreateChaosComponentProps>(props: Pick<Partial<CreateChaosComponentProps>, T>, options?: Omit<UseMutationOptions<CreateChaosComponentResponseContainer, CreateChaosComponentErrorResponse, CreateChaosComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChaosComponentResponseContainer, ApiRestError, CreateChaosComponentMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internalv3/chaos-components/nodes/${props.identity}/${props.runID}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates the chaos component nodes
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateChaosComponentMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createChaosComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface CreateConditionResponseContainer {
|
|
|
24
24
|
export declare function createCondition(props: CreateConditionProps): Promise<CreateConditionResponseContainer>;
|
|
25
25
|
export type CreateConditionMutationProps<T extends keyof CreateConditionProps> = Omit<CreateConditionProps, T> & Partial<Pick<CreateConditionProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Creates a chaos guard condition
|
|
28
28
|
*/
|
|
29
29
|
export declare function useCreateConditionMutation<T extends keyof CreateConditionProps>(props: Pick<Partial<CreateConditionProps>, T>, options?: Omit<UseMutationOptions<CreateConditionResponseContainer, CreateConditionErrorResponse, CreateConditionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateConditionResponseContainer, ApiRestError, CreateConditionMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a chaos guard condition
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateConditionMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createCondition(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface CreateDrTestResponseContainer {
|
|
|
24
24
|
export declare function createDrTest(props: CreateDrTestProps): Promise<CreateDrTestResponseContainer>;
|
|
25
25
|
export type CreateDrTestMutationProps<T extends keyof CreateDrTestProps> = Omit<CreateDrTestProps, T> & Partial<Pick<CreateDrTestProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Creates a DR Test pipeline for disaster recovery testing
|
|
28
28
|
*/
|
|
29
29
|
export declare function useCreateDrTestMutation<T extends keyof CreateDrTestProps>(props: Pick<Partial<CreateDrTestProps>, T>, options?: Omit<UseMutationOptions<CreateDrTestResponseContainer, CreateDrTestErrorResponse, CreateDrTestMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateDrTestResponseContainer, ApiRestError, CreateDrTestMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createDrTest(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/dr-tests`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a DR Test pipeline for disaster recovery testing
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateDrTestMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createDrTest(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -25,6 +25,6 @@ export interface CreateRiskResponseContainer {
|
|
|
25
25
|
export declare function createRisk(props: CreateRiskProps): Promise<CreateRiskResponseContainer>;
|
|
26
26
|
export type CreateRiskMutationProps<T extends keyof CreateRiskProps> = Omit<CreateRiskProps, T> & Partial<Pick<CreateRiskProps, T>>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Creates a risk
|
|
29
29
|
*/
|
|
30
30
|
export declare function useCreateRiskMutation<T extends keyof CreateRiskProps>(props: Pick<Partial<CreateRiskProps>, T>, options?: Omit<UseMutationOptions<CreateRiskResponseContainer, CreateRiskErrorResponse, CreateRiskMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRiskResponseContainer, ApiRestError, CreateRiskMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createRisk(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a risk
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateRiskMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createRisk(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface CreateRuleResponseContainer {
|
|
|
24
24
|
export declare function createRule(props: CreateRuleProps): Promise<CreateRuleResponseContainer>;
|
|
25
25
|
export type CreateRuleMutationProps<T extends keyof CreateRuleProps> = Omit<CreateRuleProps, T> & Partial<Pick<CreateRuleProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Creates a chaos guard rule
|
|
28
28
|
*/
|
|
29
29
|
export declare function useCreateRuleMutation<T extends keyof CreateRuleProps>(props: Pick<Partial<CreateRuleProps>, T>, options?: Omit<UseMutationOptions<CreateRuleResponseContainer, CreateRuleErrorResponse, CreateRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRuleResponseContainer, ApiRestError, CreateRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a chaos guard rule
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface DeleteConditionResponseContainer {
|
|
|
24
24
|
export declare function deleteCondition(props: DeleteConditionProps): Promise<DeleteConditionResponseContainer>;
|
|
25
25
|
export type DeleteConditionMutationProps<T extends keyof DeleteConditionProps> = Omit<DeleteConditionProps, T> & Partial<Pick<DeleteConditionProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Deletes a chaos guard condition
|
|
28
28
|
*/
|
|
29
29
|
export declare function useDeleteConditionMutation<T extends keyof DeleteConditionProps>(props: Pick<Partial<DeleteConditionProps>, T>, options?: Omit<UseMutationOptions<DeleteConditionResponseContainer, DeleteConditionErrorResponse, DeleteConditionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteConditionResponseContainer, ApiRestError, DeleteConditionMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deleteCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions/${props.identity}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Deletes a chaos guard condition
|
|
11
11
|
*/
|
|
12
12
|
export function useDeleteConditionMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => deleteCondition(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -25,6 +25,6 @@ export interface DeleteRiskResponseContainer {
|
|
|
25
25
|
export declare function deleteRisk(props: DeleteRiskProps): Promise<DeleteRiskResponseContainer>;
|
|
26
26
|
export type DeleteRiskMutationProps<T extends keyof DeleteRiskProps> = Omit<DeleteRiskProps, T> & Partial<Pick<DeleteRiskProps, T>>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Deletes a risk
|
|
29
29
|
*/
|
|
30
30
|
export declare function useDeleteRiskMutation<T extends keyof DeleteRiskProps>(props: Pick<Partial<DeleteRiskProps>, T>, options?: Omit<UseMutationOptions<DeleteRiskResponseContainer, DeleteRiskErrorResponse, DeleteRiskMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRiskResponseContainer, ApiRestError, DeleteRiskMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deleteRisk(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Deletes a risk
|
|
11
11
|
*/
|
|
12
12
|
export function useDeleteRiskMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => deleteRisk(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface DeleteRuleResponseContainer {
|
|
|
24
24
|
export declare function deleteRule(props: DeleteRuleProps): Promise<DeleteRuleResponseContainer>;
|
|
25
25
|
export type DeleteRuleMutationProps<T extends keyof DeleteRuleProps> = Omit<DeleteRuleProps, T> & Partial<Pick<DeleteRuleProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Deletes a chaos guard rule
|
|
28
28
|
*/
|
|
29
29
|
export declare function useDeleteRuleMutation<T extends keyof DeleteRuleProps>(props: Pick<Partial<DeleteRuleProps>, T>, options?: Omit<UseMutationOptions<DeleteRuleResponseContainer, DeleteRuleErrorResponse, DeleteRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRuleResponseContainer, ApiRestError, DeleteRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deleteRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Deletes a chaos guard rule
|
|
11
11
|
*/
|
|
12
12
|
export function useDeleteRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => deleteRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -25,6 +25,6 @@ export interface EnableRuleResponseContainer {
|
|
|
25
25
|
export declare function enableRule(props: EnableRuleProps): Promise<EnableRuleResponseContainer>;
|
|
26
26
|
export type EnableRuleMutationProps<T extends keyof EnableRuleProps> = Omit<EnableRuleProps, T> & Partial<Pick<EnableRuleProps, T>>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Enables or disables a chaos guard rule
|
|
29
29
|
*/
|
|
30
30
|
export declare function useEnableRuleMutation<T extends keyof EnableRuleProps>(props: Pick<Partial<EnableRuleProps>, T>, options?: Omit<UseMutationOptions<EnableRuleResponseContainer, EnableRuleErrorResponse, EnableRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EnableRuleResponseContainer, EnableRuleErrorResponse, EnableRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function enableRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}/enable`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Enables or disables a chaos guard rule
|
|
11
11
|
*/
|
|
12
12
|
export function useEnableRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => enableRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -23,6 +23,6 @@ export interface GetChaosComponentVariableResponseContainer {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function getChaosComponentVariable(props: GetChaosComponentVariableProps): Promise<GetChaosComponentVariableResponseContainer>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Gets chaos component variables (faults, probes, actions)
|
|
27
27
|
*/
|
|
28
28
|
export declare function useGetChaosComponentVariableQuery(props: GetChaosComponentVariableProps, options?: Omit<UseQueryOptions<GetChaosComponentVariableResponseContainer, GetChaosComponentVariableErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosComponentVariableResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getChaosComponentVariable(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/integrations/get-chaos-component-variable`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets chaos component variables (faults, probes, actions)
|
|
11
11
|
*/
|
|
12
12
|
export function useGetChaosComponentVariableQuery(props, options) {
|
|
13
13
|
return useQuery(['getChaosComponentVariable', props.queryParams], ({ signal }) => getChaosComponentVariable(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -23,6 +23,6 @@ export interface GetConditionResponseContainer {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function getCondition(props: GetConditionProps): Promise<GetConditionResponseContainer>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Gets a chaos guard condition by id
|
|
27
27
|
*/
|
|
28
28
|
export declare function useGetConditionQuery(props: GetConditionProps, options?: Omit<UseQueryOptions<GetConditionResponseContainer, GetConditionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetConditionResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions/${props.identity}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets a chaos guard condition by id
|
|
11
11
|
*/
|
|
12
12
|
export function useGetConditionQuery(props, options) {
|
|
13
13
|
return useQuery(['getCondition', props.identity, props.queryParams], ({ signal }) => getCondition(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -24,6 +24,6 @@ export interface GetExperimentOrTemplateVariableResponseContainer {
|
|
|
24
24
|
}
|
|
25
25
|
export declare function getExperimentOrTemplateVariable(props: GetExperimentOrTemplateVariableProps): Promise<GetExperimentOrTemplateVariableResponseContainer>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Gets experiment or template inputs
|
|
28
28
|
*/
|
|
29
29
|
export declare function useGetExperimentOrTemplateVariableQuery(props: GetExperimentOrTemplateVariableProps, options?: Omit<UseQueryOptions<GetExperimentOrTemplateVariableResponseContainer, GetExperimentOrTemplateVariableErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentOrTemplateVariableResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getExperimentOrTemplateVariable(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/integrations/get-experiment-or-template-variable`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets experiment or template inputs
|
|
11
11
|
*/
|
|
12
12
|
export function useGetExperimentOrTemplateVariableQuery(props, options) {
|
|
13
13
|
return useQuery(['getExperimentOrTemplateVariable', props.queryParams], ({ signal }) => getExperimentOrTemplateVariable(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -24,6 +24,6 @@ export interface GetExperimentRunsCsvResponseContainer {
|
|
|
24
24
|
export declare function getExperimentRunsCsv(props: GetExperimentRunsCsvProps): Promise<GetExperimentRunsCsvResponseContainer>;
|
|
25
25
|
export type GetExperimentRunsCsvMutationProps<T extends keyof GetExperimentRunsCsvProps> = Omit<GetExperimentRunsCsvProps, T> & Partial<Pick<GetExperimentRunsCsvProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Download experiment runs as CSV (no request body; only path + query params)
|
|
28
28
|
*/
|
|
29
29
|
export declare function useGetExperimentRunsCsvMutation<T extends keyof GetExperimentRunsCsvProps>(props: Pick<Partial<GetExperimentRunsCsvProps>, T>, options?: Omit<UseMutationOptions<GetExperimentRunsCsvResponseContainer, GetExperimentRunsCsvErrorResponse, GetExperimentRunsCsvMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetExperimentRunsCsvResponseContainer, unknown, GetExperimentRunsCsvMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function getExperimentRunsCsv(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/experiment-runs/csv`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Download experiment runs as CSV (no request body; only path + query params)
|
|
11
11
|
*/
|
|
12
12
|
export function useGetExperimentRunsCsvMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => getExperimentRunsCsv(Object.assign(Object.assign({}, props), mutateProps)), options);
|
package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraManifestQuery.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function getLegacyKubernetesChaosInfraManifest(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/kubernetes/infra
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/manifest`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get legacy kubernetes chaos infrastructure manifest
|
package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesHelmInfraCommandQuery.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function getLegacyKubernetesHelmInfraCommand(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/kubernetes/infra
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/helm-command`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Test legacy kubernetes helm infra command
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function getProbeManifest(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/probes
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/probes/${props.probeId}/manifest`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Retrieve probe manifest of a specific probe by its ID
|
|
@@ -24,6 +24,6 @@ export interface GetRiskResponseContainer {
|
|
|
24
24
|
}
|
|
25
25
|
export declare function getRisk(props: GetRiskProps): Promise<GetRiskResponseContainer>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Gets a risk by identity
|
|
28
28
|
*/
|
|
29
29
|
export declare function useGetRiskQuery(props: GetRiskProps, options?: Omit<UseQueryOptions<GetRiskResponseContainer, GetRiskErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRiskResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getRisk(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets a risk by identity
|
|
11
11
|
*/
|
|
12
12
|
export function useGetRiskQuery(props, options) {
|
|
13
13
|
return useQuery(['getRisk', props.identity, props.queryParams], ({ signal }) => getRisk(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -23,6 +23,6 @@ export interface GetRuleResponseContainer {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function getRule(props: GetRuleProps): Promise<GetRuleResponseContainer>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Gets a chaos guard rule by id
|
|
27
27
|
*/
|
|
28
28
|
export declare function useGetRuleQuery(props: GetRuleProps, options?: Omit<UseQueryOptions<GetRuleResponseContainer, GetRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRuleResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets a chaos guard rule by id
|
|
11
11
|
*/
|
|
12
12
|
export function useGetRuleQuery(props, options) {
|
|
13
13
|
return useQuery(['getRule', props.identity, props.queryParams], ({ signal }) => getRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListActionMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listActionMetadata(props: ListActionMetadataProps): Promise<ListActionMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists action metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListActionMetadataQuery(props: ListActionMetadataProps, options?: Omit<UseQueryOptions<ListActionMetadataResponseContainer, ListActionMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listActionMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/actions/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists action metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListActionMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listActionMetadata', props.queryParams, props.body], ({ signal }) => listActionMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -25,6 +25,6 @@ export interface ListChaosComponentResponseContainer {
|
|
|
25
25
|
}
|
|
26
26
|
export declare function listChaosComponent(props: ListChaosComponentProps): Promise<ListChaosComponentResponseContainer>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* List the chaos component nodes
|
|
29
29
|
*/
|
|
30
30
|
export declare function useListChaosComponentQuery(props: ListChaosComponentProps, options?: Omit<UseQueryOptions<ListChaosComponentResponseContainer, ListChaosComponentErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosComponentResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internalv3/chaos-components/nodes/${props.identity}/${props.runID}/${props.notifyId}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* List the chaos component nodes
|
|
11
11
|
*/
|
|
12
12
|
export function useListChaosComponentQuery(props, options) {
|
|
13
13
|
return useQuery(['listChaosComponent', props.identity, props.runID, props.notifyId, props.queryParams], ({ signal }) => listChaosComponent(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -33,6 +33,6 @@ export interface ListConditionResponseContainer {
|
|
|
33
33
|
}
|
|
34
34
|
export declare function listCondition(props: ListConditionProps): Promise<ListConditionResponseContainer>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Lists chaos guard conditions
|
|
37
37
|
*/
|
|
38
38
|
export declare function useListConditionQuery(props: ListConditionProps, options?: Omit<UseQueryOptions<ListConditionResponseContainer, ListConditionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListConditionResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists chaos guard conditions
|
|
11
11
|
*/
|
|
12
12
|
export function useListConditionQuery(props, options) {
|
|
13
13
|
return useQuery(['listCondition', props.queryParams], ({ signal }) => listCondition(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -30,6 +30,6 @@ export interface ListDrTestsResponseContainer {
|
|
|
30
30
|
}
|
|
31
31
|
export declare function listDrTests(props: ListDrTestsProps): Promise<ListDrTestsResponseContainer>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Lists all DR tests (DRTest stages) from pipelines
|
|
34
34
|
*/
|
|
35
35
|
export declare function useListDrTestsQuery(props: ListDrTestsProps, options?: Omit<UseQueryOptions<ListDrTestsResponseContainer, ListDrTestsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDrTestsResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listDrTests(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/dr-tests`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists all DR tests (DRTest stages) from pipelines
|
|
11
11
|
*/
|
|
12
12
|
export function useListDrTestsQuery(props, options) {
|
|
13
13
|
return useQuery(['listDRTests', props.queryParams], ({ signal }) => listDrTests(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListExperimentMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listExperimentMetadata(props: ListExperimentMetadataProps): Promise<ListExperimentMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists experiment metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListExperimentMetadataQuery(props: ListExperimentMetadataProps, options?: Omit<UseQueryOptions<ListExperimentMetadataResponseContainer, ListExperimentMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListExperimentMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listExperimentMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/experiments/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists experiment metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListExperimentMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listExperimentMetadata', props.queryParams, props.body], ({ signal }) => listExperimentMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -38,6 +38,6 @@ export interface ListExperimentOrTemplateResponseContainer {
|
|
|
38
38
|
}
|
|
39
39
|
export declare function listExperimentOrTemplate(props: ListExperimentOrTemplateProps): Promise<ListExperimentOrTemplateResponseContainer>;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Lists experiment or template metadata
|
|
42
42
|
*/
|
|
43
43
|
export declare function useListExperimentOrTemplateQuery(props: ListExperimentOrTemplateProps, options?: Omit<UseQueryOptions<ListExperimentOrTemplateResponseContainer, ListExperimentOrTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListExperimentOrTemplateResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listExperimentOrTemplate(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/integrations/list-experiment-or-template`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists experiment or template metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListExperimentOrTemplateQuery(props, options) {
|
|
13
13
|
return useQuery(['listExperimentOrTemplate', props.queryParams], ({ signal }) => listExperimentOrTemplate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListFaultMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listFaultMetadata(props: ListFaultMetadataProps): Promise<ListFaultMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists fault metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListFaultMetadataQuery(props: ListFaultMetadataProps, options?: Omit<UseQueryOptions<ListFaultMetadataResponseContainer, ListFaultMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listFaultMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/faults/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists fault metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListFaultMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listFaultMetadata', props.queryParams, props.body], ({ signal }) => listFaultMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListGamedayMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listGamedayMetadata(props: ListGamedayMetadataProps): Promise<ListGamedayMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists gameday metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListGamedayMetadataQuery(props: ListGamedayMetadataProps, options?: Omit<UseQueryOptions<ListGamedayMetadataResponseContainer, ListGamedayMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListGamedayMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listGamedayMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/gamedays/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists gameday metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListGamedayMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listGamedayMetadata', props.queryParams, props.body], ({ signal }) => listGamedayMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListHubMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listHubMetadata(props: ListHubMetadataProps): Promise<ListHubMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists hub metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListHubMetadataQuery(props: ListHubMetadataProps, options?: Omit<UseQueryOptions<ListHubMetadataResponseContainer, ListHubMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListHubMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listHubMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/hubs/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists hub metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListHubMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listHubMetadata', props.queryParams, props.body], ({ signal }) => listHubMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -40,6 +40,6 @@ export interface ListProbeExecutionsResponseContainer {
|
|
|
40
40
|
}
|
|
41
41
|
export declare function listProbeExecutions(props: ListProbeExecutionsProps): Promise<ListProbeExecutionsResponseContainer>;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Lists probe executions for a given risk identity
|
|
44
44
|
*/
|
|
45
45
|
export declare function useListProbeExecutionsQuery(props: ListProbeExecutionsProps, options?: Omit<UseQueryOptions<ListProbeExecutionsResponseContainer, ListProbeExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeExecutionsResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listProbeExecutions(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}/active-risks`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists probe executions for a given risk identity
|
|
11
11
|
*/
|
|
12
12
|
export function useListProbeExecutionsQuery(props, options) {
|
|
13
13
|
return useQuery(['listProbeExecutions', props.identity, props.queryParams], ({ signal }) => listProbeExecutions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListProbeMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listProbeMetadata(props: ListProbeMetadataProps): Promise<ListProbeMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists probe metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListProbeMetadataQuery(props: ListProbeMetadataProps, options?: Omit<UseQueryOptions<ListProbeMetadataResponseContainer, ListProbeMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listProbeMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/probes/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists probe metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListProbeMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listProbeMetadata', props.queryParams, props.body], ({ signal }) => listProbeMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -37,6 +37,6 @@ export interface ListRisksResponseContainer {
|
|
|
37
37
|
}
|
|
38
38
|
export declare function listRisks(props: ListRisksProps): Promise<ListRisksResponseContainer>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Lists risks
|
|
41
41
|
*/
|
|
42
42
|
export declare function useListRisksQuery(props: ListRisksProps, options?: Omit<UseQueryOptions<ListRisksResponseContainer, ListRisksErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRisksResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listRisks(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists risks
|
|
11
11
|
*/
|
|
12
12
|
export function useListRisksQuery(props, options) {
|
|
13
13
|
return useQuery(['listRisks', props.queryParams], ({ signal }) => listRisks(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -33,6 +33,6 @@ export interface ListRuleResponseContainer {
|
|
|
33
33
|
}
|
|
34
34
|
export declare function listRule(props: ListRuleProps): Promise<ListRuleResponseContainer>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Lists chaos guard rules
|
|
37
37
|
*/
|
|
38
38
|
export declare function useListRuleQuery(props: ListRuleProps, options?: Omit<UseQueryOptions<ListRuleResponseContainer, ListRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRuleResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists chaos guard rules
|
|
11
11
|
*/
|
|
12
12
|
export function useListRuleQuery(props, options) {
|
|
13
13
|
return useQuery(['listRule', props.queryParams], ({ signal }) => listRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -23,6 +23,6 @@ export interface OnboardingConfirmDiscoveryResponseContainer {
|
|
|
23
23
|
export declare function onboardingConfirmDiscovery(props: OnboardingConfirmDiscoveryProps): Promise<OnboardingConfirmDiscoveryResponseContainer>;
|
|
24
24
|
export type OnboardingConfirmDiscoveryMutationProps<T extends keyof OnboardingConfirmDiscoveryProps> = Omit<OnboardingConfirmDiscoveryProps, T> & Partial<Pick<OnboardingConfirmDiscoveryProps, T>>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Confirm discovery step in manual onboarding
|
|
27
27
|
*/
|
|
28
28
|
export declare function useOnboardingConfirmDiscoveryMutation<T extends keyof OnboardingConfirmDiscoveryProps>(props: Pick<Partial<OnboardingConfirmDiscoveryProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmDiscoveryResponseContainer, OnboardingConfirmDiscoveryErrorResponse, OnboardingConfirmDiscoveryMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmDiscoveryResponseContainer, ApiRestError, OnboardingConfirmDiscoveryMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function onboardingConfirmDiscovery(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-discovery/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Confirm discovery step in manual onboarding
|
|
11
11
|
*/
|
|
12
12
|
export function useOnboardingConfirmDiscoveryMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => onboardingConfirmDiscovery(Object.assign(Object.assign({}, props), mutateProps)), options);
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.d.ts
CHANGED
|
@@ -26,6 +26,6 @@ export interface OnboardingConfirmExperimentCreationResponseContainer {
|
|
|
26
26
|
export declare function onboardingConfirmExperimentCreation(props: OnboardingConfirmExperimentCreationProps): Promise<OnboardingConfirmExperimentCreationResponseContainer>;
|
|
27
27
|
export type OnboardingConfirmExperimentCreationMutationProps<T extends keyof OnboardingConfirmExperimentCreationProps> = Omit<OnboardingConfirmExperimentCreationProps, T> & Partial<Pick<OnboardingConfirmExperimentCreationProps, T>>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Confirm experiment creation step in manual onboarding
|
|
30
30
|
*/
|
|
31
31
|
export declare function useOnboardingConfirmExperimentCreationMutation<T extends keyof OnboardingConfirmExperimentCreationProps>(props: Pick<Partial<OnboardingConfirmExperimentCreationProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmExperimentCreationResponseContainer, OnboardingConfirmExperimentCreationErrorResponse, OnboardingConfirmExperimentCreationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmExperimentCreationResponseContainer, ApiRestError, OnboardingConfirmExperimentCreationMutationProps<T>, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.js
CHANGED
|
@@ -7,7 +7,7 @@ export function onboardingConfirmExperimentCreation(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-experiment-creation/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Confirm experiment creation step in manual onboarding
|
|
11
11
|
*/
|
|
12
12
|
export function useOnboardingConfirmExperimentCreationMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => onboardingConfirmExperimentCreation(Object.assign(Object.assign({}, props), mutateProps)), options);
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ export interface OnboardingConfirmExperimentRunResponseContainer {
|
|
|
23
23
|
export declare function onboardingConfirmExperimentRun(props: OnboardingConfirmExperimentRunProps): Promise<OnboardingConfirmExperimentRunResponseContainer>;
|
|
24
24
|
export type OnboardingConfirmExperimentRunMutationProps<T extends keyof OnboardingConfirmExperimentRunProps> = Omit<OnboardingConfirmExperimentRunProps, T> & Partial<Pick<OnboardingConfirmExperimentRunProps, T>>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Confirm experiment run step in manual onboarding
|
|
27
27
|
*/
|
|
28
28
|
export declare function useOnboardingConfirmExperimentRunMutation<T extends keyof OnboardingConfirmExperimentRunProps>(props: Pick<Partial<OnboardingConfirmExperimentRunProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmExperimentRunResponseContainer, OnboardingConfirmExperimentRunErrorResponse, OnboardingConfirmExperimentRunMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmExperimentRunResponseContainer, ApiRestError, OnboardingConfirmExperimentRunMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function onboardingConfirmExperimentRun(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-experiment-run/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Confirm experiment run step in manual onboarding
|
|
11
11
|
*/
|
|
12
12
|
export function useOnboardingConfirmExperimentRunMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => onboardingConfirmExperimentRun(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -26,6 +26,6 @@ export interface OnboardingConfirmNetworkMapResponseContainer {
|
|
|
26
26
|
export declare function onboardingConfirmNetworkMap(props: OnboardingConfirmNetworkMapProps): Promise<OnboardingConfirmNetworkMapResponseContainer>;
|
|
27
27
|
export type OnboardingConfirmNetworkMapMutationProps<T extends keyof OnboardingConfirmNetworkMapProps> = Omit<OnboardingConfirmNetworkMapProps, T> & Partial<Pick<OnboardingConfirmNetworkMapProps, T>>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Confirm network map creation step in manual onboarding
|
|
30
30
|
*/
|
|
31
31
|
export declare function useOnboardingConfirmNetworkMapMutation<T extends keyof OnboardingConfirmNetworkMapProps>(props: Pick<Partial<OnboardingConfirmNetworkMapProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmNetworkMapResponseContainer, OnboardingConfirmNetworkMapErrorResponse, OnboardingConfirmNetworkMapMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmNetworkMapResponseContainer, ApiRestError, OnboardingConfirmNetworkMapMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function onboardingConfirmNetworkMap(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-networkmap/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Confirm network map creation step in manual onboarding
|
|
11
11
|
*/
|
|
12
12
|
export function useOnboardingConfirmNetworkMapMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => onboardingConfirmNetworkMap(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -14,6 +14,6 @@ export interface RecommendationEventResponseContainer {
|
|
|
14
14
|
export declare function recommendationEvent(props: RecommendationEventProps): Promise<RecommendationEventResponseContainer>;
|
|
15
15
|
export type RecommendationEventMutationProps<T extends keyof RecommendationEventProps> = Omit<RecommendationEventProps, T> & Partial<Pick<RecommendationEventProps, T>>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Process the recommendation event
|
|
18
18
|
*/
|
|
19
19
|
export declare function useRecommendationEventMutation<T extends keyof RecommendationEventProps>(props: Pick<Partial<RecommendationEventProps>, T>, options?: Omit<UseMutationOptions<RecommendationEventResponseContainer, RecommendationEventErrorResponse, RecommendationEventMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RecommendationEventResponseContainer, unknown, RecommendationEventMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function recommendationEvent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internal/recommendations/event`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Process the recommendation event
|
|
11
11
|
*/
|
|
12
12
|
export function useRecommendationEventMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => recommendationEvent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -27,6 +27,6 @@ export interface RetryExperimentCreationResponseContainer {
|
|
|
27
27
|
export declare function retryExperimentCreation(props: RetryExperimentCreationProps): Promise<RetryExperimentCreationResponseContainer>;
|
|
28
28
|
export type RetryExperimentCreationMutationProps<T extends keyof RetryExperimentCreationProps> = Omit<RetryExperimentCreationProps, T> & Partial<Pick<RetryExperimentCreationProps, T>>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Retry chaos experiment creation for the given target network map
|
|
31
31
|
*/
|
|
32
32
|
export declare function useRetryExperimentCreationMutation<T extends keyof RetryExperimentCreationProps>(props: Pick<Partial<RetryExperimentCreationProps>, T>, options?: Omit<UseMutationOptions<RetryExperimentCreationResponseContainer, RetryExperimentCreationErrorResponse, RetryExperimentCreationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RetryExperimentCreationResponseContainer, ApiRestError, RetryExperimentCreationMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function retryExperimentCreation(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/applicationmaps/${props.applicationmapid}/retry`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Retry chaos experiment creation for the given target network map
|
|
11
11
|
*/
|
|
12
12
|
export function useRetryExperimentCreationMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => retryExperimentCreation(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -27,6 +27,6 @@ export interface RunChaosComponentResponseContainer {
|
|
|
27
27
|
export declare function runChaosComponent(props: RunChaosComponentProps): Promise<RunChaosComponentResponseContainer>;
|
|
28
28
|
export type RunChaosComponentMutationProps<T extends keyof RunChaosComponentProps> = Omit<RunChaosComponentProps, T> & Partial<Pick<RunChaosComponentProps, T>>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Runs chaos component (faults, probes, actions)
|
|
31
31
|
*/
|
|
32
32
|
export declare function useRunChaosComponentMutation<T extends keyof RunChaosComponentProps>(props: Pick<Partial<RunChaosComponentProps>, T>, options?: Omit<UseMutationOptions<RunChaosComponentResponseContainer, RunChaosComponentErrorResponse, RunChaosComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RunChaosComponentResponseContainer, ApiRestError, RunChaosComponentMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function runChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/integrations/run-chaos-component`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Runs chaos component (faults, probes, actions)
|
|
11
11
|
*/
|
|
12
12
|
export function useRunChaosComponentMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => runChaosComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -30,6 +30,6 @@ export interface UpdateChaosComponentResponseContainer {
|
|
|
30
30
|
export declare function updateChaosComponent(props: UpdateChaosComponentProps): Promise<UpdateChaosComponentResponseContainer>;
|
|
31
31
|
export type UpdateChaosComponentMutationProps<T extends keyof UpdateChaosComponentProps> = Omit<UpdateChaosComponentProps, T> & Partial<Pick<UpdateChaosComponentProps, T>>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Updates the chaos component node
|
|
34
34
|
*/
|
|
35
35
|
export declare function useUpdateChaosComponentMutation<T extends keyof UpdateChaosComponentProps>(props: Pick<Partial<UpdateChaosComponentProps>, T>, options?: Omit<UseMutationOptions<UpdateChaosComponentResponseContainer, UpdateChaosComponentErrorResponse, UpdateChaosComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateChaosComponentResponseContainer, ApiRestError, UpdateChaosComponentMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function updateChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internalv3/chaos-components/nodes/${props.identity}/${props.runID}/${props.notifyId}/${props.name}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Updates the chaos component node
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateChaosComponentMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => updateChaosComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -27,6 +27,6 @@ export interface UpdateConditionResponseContainer {
|
|
|
27
27
|
export declare function updateCondition(props: UpdateConditionProps): Promise<UpdateConditionResponseContainer>;
|
|
28
28
|
export type UpdateConditionMutationProps<T extends keyof UpdateConditionProps> = Omit<UpdateConditionProps, T> & Partial<Pick<UpdateConditionProps, T>>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Updates a chaos guard condition
|
|
31
31
|
*/
|
|
32
32
|
export declare function useUpdateConditionMutation<T extends keyof UpdateConditionProps>(props: Pick<Partial<UpdateConditionProps>, T>, options?: Omit<UseMutationOptions<UpdateConditionResponseContainer, UpdateConditionErrorResponse, UpdateConditionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateConditionResponseContainer, ApiRestError, UpdateConditionMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function updateCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions/${props.identity}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Updates a chaos guard condition
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateConditionMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => updateCondition(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -28,6 +28,6 @@ export interface UpdateRiskResponseContainer {
|
|
|
28
28
|
export declare function updateRisk(props: UpdateRiskProps): Promise<UpdateRiskResponseContainer>;
|
|
29
29
|
export type UpdateRiskMutationProps<T extends keyof UpdateRiskProps> = Omit<UpdateRiskProps, T> & Partial<Pick<UpdateRiskProps, T>>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Updates a risk
|
|
32
32
|
*/
|
|
33
33
|
export declare function useUpdateRiskMutation<T extends keyof UpdateRiskProps>(props: Pick<Partial<UpdateRiskProps>, T>, options?: Omit<UseMutationOptions<UpdateRiskResponseContainer, UpdateRiskErrorResponse, UpdateRiskMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRiskResponseContainer, ApiRestError, UpdateRiskMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function updateRisk(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Updates a risk
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateRiskMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => updateRisk(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -27,6 +27,6 @@ export interface UpdateRuleResponseContainer {
|
|
|
27
27
|
export declare function updateRule(props: UpdateRuleProps): Promise<UpdateRuleResponseContainer>;
|
|
28
28
|
export type UpdateRuleMutationProps<T extends keyof UpdateRuleProps> = Omit<UpdateRuleProps, T> & Partial<Pick<UpdateRuleProps, T>>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Updates a chaos guard rule
|
|
31
31
|
*/
|
|
32
32
|
export declare function useUpdateRuleMutation<T extends keyof UpdateRuleProps>(props: Pick<Partial<UpdateRuleProps>, T>, options?: Omit<UseMutationOptions<UpdateRuleResponseContainer, UpdateRuleErrorResponse, UpdateRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRuleResponseContainer, ApiRestError, UpdateRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function updateRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Updates a chaos guard rule
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => updateRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function upgradeLegacyKubernetesChaosInfra(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/kubernetes/infra
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/upgrade`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Upgrade legacy kubernetes chaos infrastructure
|
package/package.json
CHANGED