@harnessio/react-chaos-manager-client 1.58.0 → 1.59.1-beta.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/useDelegateCallbackUpdateMutation.d.ts +20 -0
- package/dist/chaos-manager/src/services/hooks/useDelegateCallbackUpdateMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteDrTestMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteDrTestMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useExperimentExecutionOutputQuery.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useExperimentExecutionOutputQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosV2ExperimentQuery.d.ts +2 -0
- package/dist/chaos-manager/src/services/hooks/useListInputSetQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useStopDrTestMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useStopDrTestMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +16 -1
- package/dist/chaos-manager/src/services/index.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsDeleteDrTestResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsDeleteDrTestResponseData.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsDeleteDrTestResponseData.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsStopDrTestResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsStopDrTestResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsStopDrTestResponseData.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsStopDrTestResponseData.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExecutionChaosExecutionNode.d.ts +0 -2
- package/dist/chaos-manager/src/services/schemas/ExecutionExecutionOutputResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExecutionExecutionOutputResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentRunUpdateExperimentRunWithErrorRequest.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentRunUpdateExperimentRunWithErrorRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2GetKubernetesInfrastructureV2YamlRequest.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2RegisterInfrastructureV2Request.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2ResourceList.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2ResourceList.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2ResourceRequirements.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2ResourceRequirements.js +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ModelWorkflowFilterInput.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/PipelinesBulkExperimentRunResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/schemas/ExecutionExecutionOutput.d.ts +0 -8
- /package/dist/chaos-manager/src/services/schemas/{ExecutionExecutionOutput.js → ChaoscomponentsDeleteDrTestResponse.js} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import type { ExperimentRunUpdateExperimentRunWithErrorRequest } from '../schemas/ExperimentRunUpdateExperimentRunWithErrorRequest';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export type DelegateCallbackUpdateRequestBody = ExperimentRunUpdateExperimentRunWithErrorRequest;
|
|
6
|
+
export type DelegateCallbackUpdateOkResponse = string;
|
|
7
|
+
export type DelegateCallbackUpdateErrorResponse = ApiRestError;
|
|
8
|
+
export interface DelegateCallbackUpdateProps extends Omit<FetcherOptions<unknown, DelegateCallbackUpdateRequestBody>, 'url'> {
|
|
9
|
+
body: DelegateCallbackUpdateRequestBody;
|
|
10
|
+
}
|
|
11
|
+
export interface DelegateCallbackUpdateResponseContainer {
|
|
12
|
+
body: DelegateCallbackUpdateOkResponse;
|
|
13
|
+
headers: Headers;
|
|
14
|
+
}
|
|
15
|
+
export declare function delegateCallbackUpdate(props: DelegateCallbackUpdateProps): Promise<DelegateCallbackUpdateResponseContainer>;
|
|
16
|
+
export type DelegateCallbackUpdateMutationProps<T extends keyof DelegateCallbackUpdateProps> = Omit<DelegateCallbackUpdateProps, T> & Partial<Pick<DelegateCallbackUpdateProps, T>>;
|
|
17
|
+
/**
|
|
18
|
+
* Internal endpoint for k8s-ifs to update experiment run status when delegate tasks complete
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDelegateCallbackUpdateMutation<T extends keyof DelegateCallbackUpdateProps>(props: Pick<Partial<DelegateCallbackUpdateProps>, T>, options?: Omit<UseMutationOptions<DelegateCallbackUpdateResponseContainer, DelegateCallbackUpdateErrorResponse, DelegateCallbackUpdateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DelegateCallbackUpdateResponseContainer, ApiRestError, DelegateCallbackUpdateMutationProps<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 delegateCallbackUpdate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internalv3/integrations/delegate-callback-update`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Internal endpoint for k8s-ifs to update experiment run status when delegate tasks complete
|
|
11
|
+
*/
|
|
12
|
+
export function useDelegateCallbackUpdateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => delegateCallbackUpdate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaoscomponentsDeleteDrTestResponse } from '../schemas/ChaoscomponentsDeleteDrTestResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface DeleteDrTestMutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteDrTestMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
parentUniqueId?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export type DeleteDrTestOkResponse = ChaoscomponentsDeleteDrTestResponse;
|
|
17
|
+
export type DeleteDrTestErrorResponse = ApiRestError;
|
|
18
|
+
export interface DeleteDrTestProps extends DeleteDrTestMutationPathParams, Omit<FetcherOptions<DeleteDrTestMutationQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: DeleteDrTestMutationQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface DeleteDrTestResponseContainer {
|
|
22
|
+
body: DeleteDrTestOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function deleteDrTest(props: DeleteDrTestProps): Promise<DeleteDrTestResponseContainer>;
|
|
26
|
+
export type DeleteDrTestMutationProps<T extends keyof DeleteDrTestProps> = Omit<DeleteDrTestProps, T> & Partial<Pick<DeleteDrTestProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Deletes a DR Test pipeline by its identifier
|
|
29
|
+
*/
|
|
30
|
+
export declare function useDeleteDrTestMutation<T extends keyof DeleteDrTestProps>(props: Pick<Partial<DeleteDrTestProps>, T>, options?: Omit<UseMutationOptions<DeleteDrTestResponseContainer, DeleteDrTestErrorResponse, DeleteDrTestMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteDrTestResponseContainer, ApiRestError, DeleteDrTestMutationProps<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 deleteDrTest(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/dr-tests/${props.identity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes a DR Test pipeline by its identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteDrTestMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteDrTest(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExecutionExecutionOutputResponse } from '../schemas/ExecutionExecutionOutputResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ExperimentExecutionOutputQueryPathParams {
|
|
6
|
+
experimentId: string;
|
|
7
|
+
experimentRunId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ExperimentExecutionOutputQueryQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type ExperimentExecutionOutputOkResponse = ExecutionExecutionOutputResponse;
|
|
15
|
+
export type ExperimentExecutionOutputErrorResponse = ApiRestError;
|
|
16
|
+
export interface ExperimentExecutionOutputProps extends ExperimentExecutionOutputQueryPathParams, Omit<FetcherOptions<ExperimentExecutionOutputQueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: ExperimentExecutionOutputQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface ExperimentExecutionOutputResponseContainer {
|
|
20
|
+
body: ExperimentExecutionOutputOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function experimentExecutionOutput(props: ExperimentExecutionOutputProps): Promise<ExperimentExecutionOutputResponseContainer>;
|
|
24
|
+
/**
|
|
25
|
+
* Get chaos execution output
|
|
26
|
+
*/
|
|
27
|
+
export declare function useExperimentExecutionOutputQuery(props: ExperimentExecutionOutputProps, options?: Omit<UseQueryOptions<ExperimentExecutionOutputResponseContainer, ExperimentExecutionOutputErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ExperimentExecutionOutputResponseContainer, ApiRestError>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function experimentExecutionOutput(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internal/execution-node/${props.experimentId}/${props.experimentRunId}/output`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get chaos execution output
|
|
11
|
+
*/
|
|
12
|
+
export function useExperimentExecutionOutputQuery(props, options) {
|
|
13
|
+
return useQuery(['experimentExecutionOutput', props.experimentId, props.experimentRunId, props.queryParams], ({ signal }) => experimentExecutionOutput(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -25,6 +25,8 @@ export interface ListChaosV2ExperimentQueryQueryParams {
|
|
|
25
25
|
environmentIdentifier?: string;
|
|
26
26
|
targetNetworkMapIds?: string;
|
|
27
27
|
status?: string;
|
|
28
|
+
myExperiments?: boolean;
|
|
29
|
+
excludeAutomation?: boolean;
|
|
28
30
|
}
|
|
29
31
|
export type ListChaosV2ExperimentOkResponse = TypesListExperimentV2Response;
|
|
30
32
|
export type ListChaosV2ExperimentErrorResponse = ApiRestError;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaoscomponentsStopDrTestResponse } from '../schemas/ChaoscomponentsStopDrTestResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface StopDrTestMutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
executionId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface StopDrTestMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
parentUniqueId?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export type StopDrTestOkResponse = ChaoscomponentsStopDrTestResponse;
|
|
17
|
+
export type StopDrTestErrorResponse = ApiRestError;
|
|
18
|
+
export interface StopDrTestProps extends StopDrTestMutationPathParams, Omit<FetcherOptions<StopDrTestMutationQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: StopDrTestMutationQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface StopDrTestResponseContainer {
|
|
22
|
+
body: StopDrTestOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function stopDrTest(props: StopDrTestProps): Promise<StopDrTestResponseContainer>;
|
|
26
|
+
export type StopDrTestMutationProps<T extends keyof StopDrTestProps> = Omit<StopDrTestProps, T> & Partial<Pick<StopDrTestProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Stops a running DR test pipeline execution by aborting the pipeline
|
|
29
|
+
*/
|
|
30
|
+
export declare function useStopDrTestMutation<T extends keyof StopDrTestProps>(props: Pick<Partial<StopDrTestProps>, T>, options?: Omit<UseMutationOptions<StopDrTestResponseContainer, StopDrTestErrorResponse, StopDrTestMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<StopDrTestResponseContainer, ApiRestError, StopDrTestMutationProps<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 stopDrTest(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/dr-tests/${props.identity}/executions/${props.executionId}/stop`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Stops a running DR test pipeline execution by aborting the pipeline
|
|
11
|
+
*/
|
|
12
|
+
export function useStopDrTestMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => stopDrTest(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -56,6 +56,8 @@ export type { CreateRuleErrorResponse, CreateRuleMutationProps, CreateRuleMutati
|
|
|
56
56
|
export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
|
|
57
57
|
export type { CreateV2OnboardingErrorResponse, CreateV2OnboardingMutationProps, CreateV2OnboardingMutationQueryParams, CreateV2OnboardingOkResponse, CreateV2OnboardingProps, CreateV2OnboardingRequestBody, } from './hooks/useCreateV2OnboardingMutation';
|
|
58
58
|
export { createV2Onboarding, useCreateV2OnboardingMutation, } from './hooks/useCreateV2OnboardingMutation';
|
|
59
|
+
export type { DelegateCallbackUpdateErrorResponse, DelegateCallbackUpdateMutationProps, DelegateCallbackUpdateOkResponse, DelegateCallbackUpdateProps, DelegateCallbackUpdateRequestBody, } from './hooks/useDelegateCallbackUpdateMutation';
|
|
60
|
+
export { delegateCallbackUpdate, useDelegateCallbackUpdateMutation, } from './hooks/useDelegateCallbackUpdateMutation';
|
|
59
61
|
export type { DeleteActionErrorResponse, DeleteActionMutationPathParams, DeleteActionMutationProps, DeleteActionMutationQueryParams, DeleteActionOkResponse, DeleteActionProps, } from './hooks/useDeleteActionMutation';
|
|
60
62
|
export { deleteAction, useDeleteActionMutation } from './hooks/useDeleteActionMutation';
|
|
61
63
|
export type { DeleteActionTemplateErrorResponse, DeleteActionTemplateMutationPathParams, DeleteActionTemplateMutationProps, DeleteActionTemplateMutationQueryParams, DeleteActionTemplateOkResponse, DeleteActionTemplateProps, } from './hooks/useDeleteActionTemplateMutation';
|
|
@@ -64,6 +66,8 @@ export type { DeleteChaosV2ExperimentErrorResponse, DeleteChaosV2ExperimentMutat
|
|
|
64
66
|
export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './hooks/useDeleteChaosV2ExperimentMutation';
|
|
65
67
|
export type { DeleteConditionErrorResponse, DeleteConditionMutationPathParams, DeleteConditionMutationProps, DeleteConditionMutationQueryParams, DeleteConditionOkResponse, DeleteConditionProps, } from './hooks/useDeleteConditionMutation';
|
|
66
68
|
export { deleteCondition, useDeleteConditionMutation } from './hooks/useDeleteConditionMutation';
|
|
69
|
+
export type { DeleteDrTestErrorResponse, DeleteDrTestMutationPathParams, DeleteDrTestMutationProps, DeleteDrTestMutationQueryParams, DeleteDrTestOkResponse, DeleteDrTestProps, } from './hooks/useDeleteDrTestMutation';
|
|
70
|
+
export { deleteDrTest, useDeleteDrTestMutation } from './hooks/useDeleteDrTestMutation';
|
|
67
71
|
export type { DeleteExperimentTemplateErrorResponse, DeleteExperimentTemplateMutationPathParams, DeleteExperimentTemplateMutationProps, DeleteExperimentTemplateMutationQueryParams, DeleteExperimentTemplateOkResponse, DeleteExperimentTemplateProps, } from './hooks/useDeleteExperimentTemplateMutation';
|
|
68
72
|
export { deleteExperimentTemplate, useDeleteExperimentTemplateMutation, } from './hooks/useDeleteExperimentTemplateMutation';
|
|
69
73
|
export type { DeleteFaultErrorResponse, DeleteFaultMutationPathParams, DeleteFaultMutationProps, DeleteFaultMutationQueryParams, DeleteFaultOkResponse, DeleteFaultProps, } from './hooks/useDeleteFaultMutation';
|
|
@@ -102,6 +106,8 @@ export type { EnableRuleErrorResponse, EnableRuleMutationPathParams, EnableRuleM
|
|
|
102
106
|
export { enableRule, useEnableRuleMutation } from './hooks/useEnableRuleMutation';
|
|
103
107
|
export type { ExperimentExecutionNodeDetailsErrorResponse, ExperimentExecutionNodeDetailsOkResponse, ExperimentExecutionNodeDetailsProps, ExperimentExecutionNodeDetailsQueryPathParams, ExperimentExecutionNodeDetailsQueryQueryParams, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
104
108
|
export { experimentExecutionNodeDetails, useExperimentExecutionNodeDetailsQuery, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
109
|
+
export type { ExperimentExecutionOutputErrorResponse, ExperimentExecutionOutputOkResponse, ExperimentExecutionOutputProps, ExperimentExecutionOutputQueryPathParams, ExperimentExecutionOutputQueryQueryParams, } from './hooks/useExperimentExecutionOutputQuery';
|
|
110
|
+
export { experimentExecutionOutput, useExperimentExecutionOutputQuery, } from './hooks/useExperimentExecutionOutputQuery';
|
|
105
111
|
export type { GetAccountServiceDetailsErrorResponse, GetAccountServiceDetailsOkResponse, GetAccountServiceDetailsProps, GetAccountServiceDetailsQueryPathParams, GetAccountServiceDetailsQueryQueryParams, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
106
112
|
export { getAccountServiceDetails, useGetAccountServiceDetailsQuery, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
107
113
|
export type { GetAccountServiceUsageStatsErrorResponse, GetAccountServiceUsageStatsOkResponse, GetAccountServiceUsageStatsProps, GetAccountServiceUsageStatsQueryPathParams, GetAccountServiceUsageStatsQueryQueryParams, } from './hooks/useGetAccountServiceUsageStatsQuery';
|
|
@@ -380,6 +386,8 @@ export type { SaveChaosV2ExperimentErrorResponse, SaveChaosV2ExperimentMutationP
|
|
|
380
386
|
export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
|
|
381
387
|
export type { StopChaosV2ExperimentErrorResponse, StopChaosV2ExperimentMutationPathParams, StopChaosV2ExperimentMutationProps, StopChaosV2ExperimentMutationQueryParams, StopChaosV2ExperimentOkResponse, StopChaosV2ExperimentProps, } from './hooks/useStopChaosV2ExperimentMutation';
|
|
382
388
|
export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
|
|
389
|
+
export type { StopDrTestErrorResponse, StopDrTestMutationPathParams, StopDrTestMutationProps, StopDrTestMutationQueryParams, StopDrTestOkResponse, StopDrTestProps, } from './hooks/useStopDrTestMutation';
|
|
390
|
+
export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
|
|
383
391
|
export type { StopOnboardingExperimentsErrorResponse, StopOnboardingExperimentsMutationPathParams, StopOnboardingExperimentsMutationProps, StopOnboardingExperimentsMutationQueryParams, StopOnboardingExperimentsOkResponse, StopOnboardingExperimentsProps, } from './hooks/useStopOnboardingExperimentsMutation';
|
|
384
392
|
export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
|
|
385
393
|
export type { TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionOkResponse, TestLegacyKubernetesChaosInfraConnectionProps, TestLegacyKubernetesChaosInfraConnectionQueryPathParams, TestLegacyKubernetesChaosInfraConnectionQueryQueryParams, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
|
|
@@ -531,6 +539,8 @@ export type { ChaoscomponentsAbortChaosComponentResponseData } from './schemas/C
|
|
|
531
539
|
export type { ChaoscomponentsCreateDrTestPipelineRequest } from './schemas/ChaoscomponentsCreateDrTestPipelineRequest';
|
|
532
540
|
export type { ChaoscomponentsCreateDrTestPipelineResponse } from './schemas/ChaoscomponentsCreateDrTestPipelineResponse';
|
|
533
541
|
export type { ChaoscomponentsCreateDrTestPipelineResponseData } from './schemas/ChaoscomponentsCreateDrTestPipelineResponseData';
|
|
542
|
+
export type { ChaoscomponentsDeleteDrTestResponse } from './schemas/ChaoscomponentsDeleteDrTestResponse';
|
|
543
|
+
export type { ChaoscomponentsDeleteDrTestResponseData } from './schemas/ChaoscomponentsDeleteDrTestResponseData';
|
|
534
544
|
export type { ChaoscomponentsDrTest } from './schemas/ChaoscomponentsDrTest';
|
|
535
545
|
export type { ChaoscomponentsDrTestRunInfo } from './schemas/ChaoscomponentsDrTestRunInfo';
|
|
536
546
|
export type { ChaoscomponentsGetChaosComponentVariableData } from './schemas/ChaoscomponentsGetChaosComponentVariableData';
|
|
@@ -540,6 +550,8 @@ export type { ChaoscomponentsRunChaosComponentRequest } from './schemas/Chaoscom
|
|
|
540
550
|
export type { ChaoscomponentsRunChaosComponentResponse } from './schemas/ChaoscomponentsRunChaosComponentResponse';
|
|
541
551
|
export type { ChaoscomponentsRunChaosComponentResponseData } from './schemas/ChaoscomponentsRunChaosComponentResponseData';
|
|
542
552
|
export type { ChaoscomponentsStage } from './schemas/ChaoscomponentsStage';
|
|
553
|
+
export type { ChaoscomponentsStopDrTestResponse } from './schemas/ChaoscomponentsStopDrTestResponse';
|
|
554
|
+
export type { ChaoscomponentsStopDrTestResponseData } from './schemas/ChaoscomponentsStopDrTestResponseData';
|
|
543
555
|
export type { ChaoscomponentsUserMetaData } from './schemas/ChaoscomponentsUserMetaData';
|
|
544
556
|
export type { ChaosexperimentListExperimentData } from './schemas/ChaosexperimentListExperimentData';
|
|
545
557
|
export type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from './schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
|
|
@@ -677,7 +689,7 @@ export type { ExecutionChaosStepStatus } from './schemas/ExecutionChaosStepStatu
|
|
|
677
689
|
export type { ExecutionChaosStepType } from './schemas/ExecutionChaosStepType';
|
|
678
690
|
export type { ExecutionCommandProbe } from './schemas/ExecutionCommandProbe';
|
|
679
691
|
export type { ExecutionErrorData } from './schemas/ExecutionErrorData';
|
|
680
|
-
export type {
|
|
692
|
+
export type { ExecutionExecutionOutputResponse } from './schemas/ExecutionExecutionOutputResponse';
|
|
681
693
|
export type { ExecutionFaultData } from './schemas/ExecutionFaultData';
|
|
682
694
|
export type { ExecutionHelperPodDetails } from './schemas/ExecutionHelperPodDetails';
|
|
683
695
|
export type { ExecutionHttpProbe } from './schemas/ExecutionHttpProbe';
|
|
@@ -704,6 +716,7 @@ export type { ExperimentProbeConditions } from './schemas/ExperimentProbeConditi
|
|
|
704
716
|
export type { ExperimentProbeRef } from './schemas/ExperimentProbeRef';
|
|
705
717
|
export type { ExperimentProjectedVolumes } from './schemas/ExperimentProjectedVolumes';
|
|
706
718
|
export type { ExperimentRedisAuth } from './schemas/ExperimentRedisAuth';
|
|
719
|
+
export type { ExperimentRunUpdateExperimentRunWithErrorRequest } from './schemas/ExperimentRunUpdateExperimentRunWithErrorRequest';
|
|
707
720
|
export type { ExperimentSaveChaosExperimentResponse } from './schemas/ExperimentSaveChaosExperimentResponse';
|
|
708
721
|
export type { ExperimentSecret } from './schemas/ExperimentSecret';
|
|
709
722
|
export type { ExperimentSecurityContext } from './schemas/ExperimentSecurityContext';
|
|
@@ -881,6 +894,8 @@ export type { InfraV2Pagination } from './schemas/InfraV2Pagination';
|
|
|
881
894
|
export type { InfraV2ProxyConfiguration } from './schemas/InfraV2ProxyConfiguration';
|
|
882
895
|
export type { InfraV2RegisterInfrastructureV2Request } from './schemas/InfraV2RegisterInfrastructureV2Request';
|
|
883
896
|
export type { InfraV2RegisterInfrastructureV2Response } from './schemas/InfraV2RegisterInfrastructureV2Response';
|
|
897
|
+
export type { InfraV2ResourceList } from './schemas/InfraV2ResourceList';
|
|
898
|
+
export type { InfraV2ResourceRequirements } from './schemas/InfraV2ResourceRequirements';
|
|
884
899
|
export type { InfraV2SortInput } from './schemas/InfraV2SortInput';
|
|
885
900
|
export type { InfraV2SortingField } from './schemas/InfraV2SortingField';
|
|
886
901
|
export type { InfraV2UpdateKubernetesInfrastructureV2Request } from './schemas/InfraV2UpdateKubernetesInfrastructureV2Request';
|
|
@@ -27,10 +27,12 @@ export { createRecommendation, useCreateRecommendationMutation, } from './hooks/
|
|
|
27
27
|
export { createRisk, useCreateRiskMutation } from './hooks/useCreateRiskMutation';
|
|
28
28
|
export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
|
|
29
29
|
export { createV2Onboarding, useCreateV2OnboardingMutation, } from './hooks/useCreateV2OnboardingMutation';
|
|
30
|
+
export { delegateCallbackUpdate, useDelegateCallbackUpdateMutation, } from './hooks/useDelegateCallbackUpdateMutation';
|
|
30
31
|
export { deleteAction, useDeleteActionMutation } from './hooks/useDeleteActionMutation';
|
|
31
32
|
export { deleteActionTemplate, useDeleteActionTemplateMutation, } from './hooks/useDeleteActionTemplateMutation';
|
|
32
33
|
export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './hooks/useDeleteChaosV2ExperimentMutation';
|
|
33
34
|
export { deleteCondition, useDeleteConditionMutation } from './hooks/useDeleteConditionMutation';
|
|
35
|
+
export { deleteDrTest, useDeleteDrTestMutation } from './hooks/useDeleteDrTestMutation';
|
|
34
36
|
export { deleteExperimentTemplate, useDeleteExperimentTemplateMutation, } from './hooks/useDeleteExperimentTemplateMutation';
|
|
35
37
|
export { deleteFault, useDeleteFaultMutation } from './hooks/useDeleteFaultMutation';
|
|
36
38
|
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
@@ -50,6 +52,7 @@ export { deleteTargetNetworkMap, useDeleteTargetNetworkMapMutation, } from './ho
|
|
|
50
52
|
export { enableProbe, useEnableProbeMutation } from './hooks/useEnableProbeMutation';
|
|
51
53
|
export { enableRule, useEnableRuleMutation } from './hooks/useEnableRuleMutation';
|
|
52
54
|
export { experimentExecutionNodeDetails, useExperimentExecutionNodeDetailsQuery, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
55
|
+
export { experimentExecutionOutput, useExperimentExecutionOutputQuery, } from './hooks/useExperimentExecutionOutputQuery';
|
|
53
56
|
export { getAccountServiceDetails, useGetAccountServiceDetailsQuery, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
54
57
|
export { getAccountServiceUsageStats, useGetAccountServiceUsageStatsQuery, } from './hooks/useGetAccountServiceUsageStatsQuery';
|
|
55
58
|
export { getActionManifest, useGetActionManifestQuery } from './hooks/useGetActionManifestQuery';
|
|
@@ -189,6 +192,7 @@ export { runChaosV2InternalApi, useRunChaosV2InternalApiMutation, } from './hook
|
|
|
189
192
|
export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRunRecommendationMutation';
|
|
190
193
|
export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
|
|
191
194
|
export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
|
|
195
|
+
export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
|
|
192
196
|
export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
|
|
193
197
|
export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
|
|
194
198
|
export { updateAction, useUpdateActionMutation } from './hooks/useUpdateActionMutation';
|
package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperime
|
|
|
5
5
|
export interface ChaosExecutionNodesChaosExecutionResponse {
|
|
6
6
|
accountID: string;
|
|
7
7
|
duration?: number;
|
|
8
|
+
errorResponse?: string;
|
|
8
9
|
estimatedTime?: number;
|
|
9
10
|
experimentID?: string;
|
|
10
11
|
experimentIdentity?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ExecutionChaosData } from '../schemas/ExecutionChaosData';
|
|
2
2
|
import type { ExecutionErrorData } from '../schemas/ExecutionErrorData';
|
|
3
3
|
import type { ExecutionInfraType } from '../schemas/ExecutionInfraType';
|
|
4
|
-
import type { ExecutionExecutionOutput } from '../schemas/ExecutionExecutionOutput';
|
|
5
4
|
import type { ExecutionChaosStepStatus } from '../schemas/ExecutionChaosStepStatus';
|
|
6
5
|
import type { ExecutionChaosStepType } from '../schemas/ExecutionChaosStepType';
|
|
7
6
|
export interface ExecutionChaosExecutionNode {
|
|
@@ -15,7 +14,6 @@ export interface ExecutionChaosExecutionNode {
|
|
|
15
14
|
infraType?: ExecutionInfraType;
|
|
16
15
|
isRemoved?: boolean;
|
|
17
16
|
lastUpdatedAt?: number;
|
|
18
|
-
output?: ExecutionExecutionOutput;
|
|
19
17
|
spec?: string;
|
|
20
18
|
startedAt?: number;
|
|
21
19
|
status?: ExecutionChaosStepStatus;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ExperimentRunUpdateExperimentRunWithErrorRequest {
|
|
2
|
+
accountIdentifier: string;
|
|
3
|
+
errorResponse?: string;
|
|
4
|
+
experimentID: string;
|
|
5
|
+
experimentRunID: string;
|
|
6
|
+
notifyID: string;
|
|
7
|
+
organizationIdentifier?: string;
|
|
8
|
+
parentUniqueId?: string;
|
|
9
|
+
phase: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
updatedBy?: string;
|
|
12
|
+
}
|
package/dist/chaos-manager/src/services/schemas/InfraV2GetKubernetesInfrastructureV2YamlRequest.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { InfraV2Env } from '../schemas/InfraV2Env';
|
|
|
2
2
|
import type { InfraV2Identifiers } from '../schemas/InfraV2Identifiers';
|
|
3
3
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
4
4
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
5
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
5
6
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
6
7
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
7
8
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
@@ -25,6 +26,7 @@ export interface InfraV2GetKubernetesInfrastructureV2YamlRequest {
|
|
|
25
26
|
[key: string]: string;
|
|
26
27
|
};
|
|
27
28
|
proxy?: InfraV2ProxyConfiguration;
|
|
29
|
+
resources?: InfraV2ResourceRequirements;
|
|
28
30
|
runAsGroup?: number;
|
|
29
31
|
runAsUser?: number;
|
|
30
32
|
serviceAccount?: string;
|
package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type { InfraV2InfraType } from '../schemas/InfraV2InfraType';
|
|
|
7
7
|
import type { InfraV2InstallationType } from '../schemas/InfraV2InstallationType';
|
|
8
8
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
9
9
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
10
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
10
11
|
import type { InfraV2InfraStatus } from '../schemas/InfraV2InfraStatus';
|
|
11
12
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
12
13
|
import type { InfraV2UpdateStatus } from '../schemas/InfraV2UpdateStatus';
|
|
@@ -53,6 +54,7 @@ export interface InfraV2KubernetesInfrastructureV2Details {
|
|
|
53
54
|
};
|
|
54
55
|
platformName?: string;
|
|
55
56
|
proxy?: InfraV2ProxyConfiguration;
|
|
57
|
+
resources?: InfraV2ResourceRequirements;
|
|
56
58
|
runAsGroup?: number;
|
|
57
59
|
runAsUser?: number;
|
|
58
60
|
serviceAccount?: string;
|
|
@@ -5,6 +5,7 @@ import type { InfraV2InfraScope } from '../schemas/InfraV2InfraScope';
|
|
|
5
5
|
import type { InfraV2InfraType } from '../schemas/InfraV2InfraType';
|
|
6
6
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
7
7
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
8
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
8
9
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
9
10
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
10
11
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
@@ -38,6 +39,7 @@ export interface InfraV2RegisterInfrastructureV2Request {
|
|
|
38
39
|
[key: string]: string;
|
|
39
40
|
};
|
|
40
41
|
proxy?: InfraV2ProxyConfiguration;
|
|
42
|
+
resources?: InfraV2ResourceRequirements;
|
|
41
43
|
runAsGroup?: number;
|
|
42
44
|
runAsUser?: number;
|
|
43
45
|
serviceAccount?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { InfraV2Env } from '../schemas/InfraV2Env';
|
|
|
2
2
|
import type { ImageRegistryImageRegistryV2 } from '../schemas/ImageRegistryImageRegistryV2';
|
|
3
3
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
4
4
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
5
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
5
6
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
6
7
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
7
8
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
@@ -29,6 +30,7 @@ export interface InfraV2UpdateKubernetesInfrastructureV2Request {
|
|
|
29
30
|
[key: string]: string;
|
|
30
31
|
};
|
|
31
32
|
proxy?: InfraV2ProxyConfiguration;
|
|
33
|
+
resources?: InfraV2ResourceRequirements;
|
|
32
34
|
runAsGroup?: number;
|
|
33
35
|
runAsUser?: number;
|
|
34
36
|
serviceAccount?: string;
|
|
@@ -7,6 +7,10 @@ export interface ModelWorkflowFilterInput {
|
|
|
7
7
|
* Date range for filtering purpose
|
|
8
8
|
*/
|
|
9
9
|
dateRange?: ModelDateRange;
|
|
10
|
+
/**
|
|
11
|
+
* When true, excludes experiments created by automated sources (e.g. pipelines, system)
|
|
12
|
+
*/
|
|
13
|
+
excludeAutomation?: boolean;
|
|
10
14
|
/**
|
|
11
15
|
* Bool value indicating if Chaos Infrastructure is active
|
|
12
16
|
*/
|
|
@@ -27,6 +31,10 @@ export interface ModelWorkflowFilterInput {
|
|
|
27
31
|
* Bool value to filter data based on cron enabled state
|
|
28
32
|
*/
|
|
29
33
|
isCronEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* When true, filters to only show experiments created or updated by the current user
|
|
36
|
+
*/
|
|
37
|
+
myExperiments?: boolean;
|
|
30
38
|
/**
|
|
31
39
|
* Scenario type of the workflow i.e. CRON or NON_CRON
|
|
32
40
|
*/
|
package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { InfraV2Env } from '../schemas/InfraV2Env';
|
|
|
2
2
|
import type { V1PullPolicy } from '../schemas/V1PullPolicy';
|
|
3
3
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
4
4
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
5
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
5
6
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
6
7
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
7
8
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
@@ -22,6 +23,7 @@ export interface V2OnboardingChaosInfraAdvanceConfiguration {
|
|
|
22
23
|
[key: string]: string;
|
|
23
24
|
};
|
|
24
25
|
proxy?: InfraV2ProxyConfiguration;
|
|
26
|
+
resources?: InfraV2ResourceRequirements;
|
|
25
27
|
runAsGroup?: number;
|
|
26
28
|
runAsUser?: number;
|
|
27
29
|
tolerations?: V1Toleration[];
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ExecutionChaosStepStatus } from '../schemas/ExecutionChaosStepStatus';
|
|
2
|
-
export interface ExecutionExecutionOutput {
|
|
3
|
-
orgIdentifier?: string;
|
|
4
|
-
projectIdentifier?: string;
|
|
5
|
-
resourceIdentifier?: string;
|
|
6
|
-
resourceType?: string;
|
|
7
|
-
status?: ExecutionChaosStepStatus;
|
|
8
|
-
}
|