@harnessio/react-chaos-manager-client 1.61.0 → 1.62.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/useCreateExperimentV3Mutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useCreateExperimentV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteExperimentV3Mutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteExperimentV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetCommandUnitStatusesQuery.d.ts +2 -0
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsCsvMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentTemplateRevisionsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentV3Query.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useGetExperimentV3Query.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListActionMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListConditionQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentOrTemplateQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentRunsOfFaultQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentTemplateQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentsV3Query.d.ts +50 -0
- package/dist/chaos-manager/src/services/hooks/useListExperimentsV3Query.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListFaultMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultv2Query.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListGamedayMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListHubMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeExecutionsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRisksQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRuleQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateCronStateV3Mutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateCronStateV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateExperimentV3Mutation.d.ts +33 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateExperimentV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +33 -1
- package/dist/chaos-manager/src/services/index.js +6 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsAuditInfo.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsAuditInfo.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsCreateRequest.d.ts +26 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsCreateResponse.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsCreateResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsDeleteResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsDeleteResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsEventMetadata.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsEventMetadata.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsExperimentListItem.d.ts +28 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsExperimentListItem.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsGetResponse.d.ts +31 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsGetResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsInfraDetails.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsInfraDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsListExperimentsResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsListExperimentsResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsRecentRunDetails.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsRecentRunDetails.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsTemplateResourceDetails.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsTemplateResourceDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsTemplateResources.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsTemplateResources.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateCronStateAction.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateCronStateAction.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateCronStateRequest.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateCronStateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateCronStateResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateCronStateResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateRequest.d.ts +21 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsUpdateResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesArtifactType.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/TemplateInput.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/TemplateInputMinimum.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/TemplateInputMinimum.js +0 -3
- package/dist/chaos-manager/src/services/schemas/TemplateInputReference.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/TemplateInputReference.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TemplateInputReferenceKind.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/TemplateInputReferenceKind.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TemplateInputReferenceType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/TemplateInputReferenceType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TemplateVariable.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/{ChaosexperimentListExperimentData.d.ts → V3ListExperimentData.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/V3ListExperimentData.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V3ListExperimentOrTemplateResponse.d.ts +2 -2
- package/package.json +1 -1
- /package/dist/chaos-manager/src/services/schemas/{ChaosexperimentListExperimentData.js → ExperimentsCreateRequest.js} +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentsCreateResponse } from '../schemas/ExperimentsCreateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ExperimentsCreateRequest } from '../schemas/ExperimentsCreateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateExperimentV3MutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
organizationIdentifier?: string;
|
|
10
|
+
parentUniqueId?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
useParentUniqueID?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type CreateExperimentV3RequestBody = ExperimentsCreateRequest;
|
|
15
|
+
export type CreateExperimentV3OkResponse = ExperimentsCreateResponse;
|
|
16
|
+
export type CreateExperimentV3ErrorResponse = ApiRestError;
|
|
17
|
+
export interface CreateExperimentV3Props extends Omit<FetcherOptions<CreateExperimentV3MutationQueryParams, CreateExperimentV3RequestBody>, 'url'> {
|
|
18
|
+
queryParams: CreateExperimentV3MutationQueryParams;
|
|
19
|
+
body: CreateExperimentV3RequestBody;
|
|
20
|
+
}
|
|
21
|
+
export interface CreateExperimentV3ResponseContainer {
|
|
22
|
+
body: CreateExperimentV3OkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function createExperimentV3(props: CreateExperimentV3Props): Promise<CreateExperimentV3ResponseContainer>;
|
|
26
|
+
export type CreateExperimentV3MutationProps<T extends keyof CreateExperimentV3Props> = Omit<CreateExperimentV3Props, T> & Partial<Pick<CreateExperimentV3Props, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a chaos experiment.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useCreateExperimentV3Mutation<T extends keyof CreateExperimentV3Props>(props: Pick<Partial<CreateExperimentV3Props>, T>, options?: Omit<UseMutationOptions<CreateExperimentV3ResponseContainer, CreateExperimentV3ErrorResponse, CreateExperimentV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateExperimentV3ResponseContainer, ApiRestError, CreateExperimentV3MutationProps<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 createExperimentV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiments`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a chaos experiment.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateExperimentV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createExperimentV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentsDeleteResponse } from '../schemas/ExperimentsDeleteResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface DeleteExperimentV3MutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteExperimentV3MutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
useParentUniqueID?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type DeleteExperimentV3OkResponse = ExperimentsDeleteResponse;
|
|
17
|
+
export type DeleteExperimentV3ErrorResponse = ApiRestError;
|
|
18
|
+
export interface DeleteExperimentV3Props extends DeleteExperimentV3MutationPathParams, Omit<FetcherOptions<DeleteExperimentV3MutationQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: DeleteExperimentV3MutationQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface DeleteExperimentV3ResponseContainer {
|
|
22
|
+
body: DeleteExperimentV3OkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function deleteExperimentV3(props: DeleteExperimentV3Props): Promise<DeleteExperimentV3ResponseContainer>;
|
|
26
|
+
export type DeleteExperimentV3MutationProps<T extends keyof DeleteExperimentV3Props> = Omit<DeleteExperimentV3Props, T> & Partial<Pick<DeleteExperimentV3Props, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Delete a chaos experiment by identity
|
|
29
|
+
*/
|
|
30
|
+
export declare function useDeleteExperimentV3Mutation<T extends keyof DeleteExperimentV3Props>(props: Pick<Partial<DeleteExperimentV3Props>, T>, options?: Omit<UseMutationOptions<DeleteExperimentV3ResponseContainer, DeleteExperimentV3ErrorResponse, DeleteExperimentV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteExperimentV3ResponseContainer, ApiRestError, DeleteExperimentV3MutationProps<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 deleteExperimentV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiments/${props.identity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete a chaos experiment by identity
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteExperimentV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteExperimentV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -4,6 +4,8 @@ import type { ApiRestError } from '../schemas/ApiRestError';
|
|
|
4
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
5
|
export interface GetCommandUnitStatusesQueryQueryParams {
|
|
6
6
|
accountIdentifier: string;
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
7
9
|
uid: string;
|
|
8
10
|
}
|
|
9
11
|
export type GetCommandUnitStatusesOkResponse = LogserviceCommandUnitStatusResponse;
|
|
@@ -9,7 +9,7 @@ export interface GetExperimentRunsCsvMutationQueryParams {
|
|
|
9
9
|
projectIdentifier?: string;
|
|
10
10
|
search?: string;
|
|
11
11
|
sortAscending?: boolean;
|
|
12
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
12
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
13
13
|
startTime?: number;
|
|
14
14
|
}
|
|
15
15
|
export type GetExperimentRunsCsvOkResponse = unknown;
|
|
@@ -25,7 +25,7 @@ export interface GetExperimentTemplateRevisionsQueryQueryParams {
|
|
|
25
25
|
projectIdentifier?: string;
|
|
26
26
|
search?: string;
|
|
27
27
|
sortAscending?: boolean;
|
|
28
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
28
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
29
29
|
tags?: string;
|
|
30
30
|
verbose?: boolean;
|
|
31
31
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentsGetResponse } from '../schemas/ExperimentsGetResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetExperimentV3QueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetExperimentV3QueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
useParentUniqueID?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type GetExperimentV3OkResponse = ExperimentsGetResponse;
|
|
17
|
+
export type GetExperimentV3ErrorResponse = ApiRestError;
|
|
18
|
+
export interface GetExperimentV3Props extends GetExperimentV3QueryPathParams, Omit<FetcherOptions<GetExperimentV3QueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetExperimentV3QueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface GetExperimentV3ResponseContainer {
|
|
22
|
+
body: GetExperimentV3OkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function getExperimentV3(props: GetExperimentV3Props): Promise<GetExperimentV3ResponseContainer>;
|
|
26
|
+
/**
|
|
27
|
+
* Get a chaos experiment by identity
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetExperimentV3Query(props: GetExperimentV3Props, options?: Omit<UseQueryOptions<GetExperimentV3ResponseContainer, GetExperimentV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentV3ResponseContainer, 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 getExperimentV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiments/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get a chaos experiment by identity
|
|
11
|
+
*/
|
|
12
|
+
export function useGetExperimentV3Query(props, options) {
|
|
13
|
+
return useQuery(['getExperimentV3', props.identity, props.queryParams], ({ signal }) => getExperimentV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -20,7 +20,7 @@ export interface ListActionMetadataQueryQueryParams {
|
|
|
20
20
|
projectIdentifier?: string;
|
|
21
21
|
search?: string;
|
|
22
22
|
sortAscending?: boolean;
|
|
23
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
23
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
24
24
|
tags?: string;
|
|
25
25
|
}
|
|
26
26
|
export type ListActionMetadataRequestBody = TypesListMetadataRequest;
|
|
@@ -19,7 +19,7 @@ export interface ListConditionQueryQueryParams {
|
|
|
19
19
|
projectIdentifier?: string;
|
|
20
20
|
search?: string;
|
|
21
21
|
sortAscending?: boolean;
|
|
22
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
22
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
23
23
|
tags?: string;
|
|
24
24
|
}
|
|
25
25
|
export type ListConditionOkResponse = ChaosguardconditionsListConditionResponse;
|
|
@@ -20,7 +20,7 @@ export interface ListExperimentMetadataQueryQueryParams {
|
|
|
20
20
|
projectIdentifier?: string;
|
|
21
21
|
search?: string;
|
|
22
22
|
sortAscending?: boolean;
|
|
23
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
23
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
24
24
|
tags?: string;
|
|
25
25
|
}
|
|
26
26
|
export type ListExperimentMetadataRequestBody = TypesListMetadataRequest;
|
|
@@ -22,7 +22,7 @@ export interface ListExperimentOrTemplateQueryQueryParams {
|
|
|
22
22
|
projectIdentifier?: string;
|
|
23
23
|
search?: string;
|
|
24
24
|
sortAscending?: boolean;
|
|
25
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
25
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
26
26
|
startTime?: number;
|
|
27
27
|
tags?: string;
|
|
28
28
|
useParentUniqueID?: boolean;
|
|
@@ -23,7 +23,7 @@ export interface ListExperimentRunsOfFaultQueryQueryParams {
|
|
|
23
23
|
projectIdentifier?: string;
|
|
24
24
|
search?: string;
|
|
25
25
|
sortAscending?: boolean;
|
|
26
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
26
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
27
27
|
}
|
|
28
28
|
export type ListExperimentRunsOfFaultOkResponse = ChaosfaultListExperimentRunsInFaultResponse;
|
|
29
29
|
export type ListExperimentRunsOfFaultErrorResponse = ApiRestError;
|
|
@@ -22,7 +22,7 @@ export interface ListExperimentTemplateQueryQueryParams {
|
|
|
22
22
|
projectIdentifier?: string;
|
|
23
23
|
search?: string;
|
|
24
24
|
sortAscending?: boolean;
|
|
25
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
25
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
26
26
|
tags?: string;
|
|
27
27
|
verbose?: boolean;
|
|
28
28
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentsListExperimentsResponse } from '../schemas/ExperimentsListExperimentsResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListExperimentsV3QueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
endTime?: number;
|
|
9
|
+
environmentID?: string;
|
|
10
|
+
excludeAutomation?: boolean;
|
|
11
|
+
experimentIDs?: string;
|
|
12
|
+
experimentType?: 'cronexperiment' | 'experiment' | 'gameday';
|
|
13
|
+
identities?: string;
|
|
14
|
+
infraIDs?: string;
|
|
15
|
+
infraTypes?: string;
|
|
16
|
+
isCronEnabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @default 15
|
|
19
|
+
*/
|
|
20
|
+
limit?: number;
|
|
21
|
+
myExperiments?: boolean;
|
|
22
|
+
organizationIdentifier?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @default 0
|
|
25
|
+
*/
|
|
26
|
+
page?: number;
|
|
27
|
+
parentUniqueId?: string;
|
|
28
|
+
projectIdentifier?: string;
|
|
29
|
+
search?: string;
|
|
30
|
+
sortAscending?: boolean;
|
|
31
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
32
|
+
startTime?: number;
|
|
33
|
+
status?: string;
|
|
34
|
+
tags?: string;
|
|
35
|
+
useParentUniqueID?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type ListExperimentsV3OkResponse = ExperimentsListExperimentsResponse;
|
|
38
|
+
export type ListExperimentsV3ErrorResponse = ApiRestError;
|
|
39
|
+
export interface ListExperimentsV3Props extends Omit<FetcherOptions<ListExperimentsV3QueryQueryParams, unknown>, 'url'> {
|
|
40
|
+
queryParams: ListExperimentsV3QueryQueryParams;
|
|
41
|
+
}
|
|
42
|
+
export interface ListExperimentsV3ResponseContainer {
|
|
43
|
+
body: ListExperimentsV3OkResponse;
|
|
44
|
+
headers: Headers;
|
|
45
|
+
}
|
|
46
|
+
export declare function listExperimentsV3(props: ListExperimentsV3Props): Promise<ListExperimentsV3ResponseContainer>;
|
|
47
|
+
/**
|
|
48
|
+
* List chaos experiments with filters and pagination
|
|
49
|
+
*/
|
|
50
|
+
export declare function useListExperimentsV3Query(props: ListExperimentsV3Props, options?: Omit<UseQueryOptions<ListExperimentsV3ResponseContainer, ListExperimentsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListExperimentsV3ResponseContainer, 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 listExperimentsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiments`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List chaos experiments with filters and pagination
|
|
11
|
+
*/
|
|
12
|
+
export function useListExperimentsV3Query(props, options) {
|
|
13
|
+
return useQuery(['listExperimentsV3', props.queryParams], ({ signal }) => listExperimentsV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -20,7 +20,7 @@ export interface ListFaultMetadataQueryQueryParams {
|
|
|
20
20
|
projectIdentifier?: string;
|
|
21
21
|
search?: string;
|
|
22
22
|
sortAscending?: boolean;
|
|
23
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
23
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
24
24
|
tags?: string;
|
|
25
25
|
}
|
|
26
26
|
export type ListFaultMetadataRequestBody = TypesListMetadataRequest;
|
|
@@ -24,7 +24,7 @@ export interface ListFaultTemplateQueryQueryParams {
|
|
|
24
24
|
projectIdentifier?: string;
|
|
25
25
|
search?: string;
|
|
26
26
|
sortAscending?: boolean;
|
|
27
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
27
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
28
28
|
tags?: string;
|
|
29
29
|
type?: string;
|
|
30
30
|
}
|
|
@@ -22,7 +22,7 @@ export interface ListFaultv2QueryQueryParams {
|
|
|
22
22
|
projectIdentifier?: string;
|
|
23
23
|
search?: string;
|
|
24
24
|
sortAscending?: boolean;
|
|
25
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
25
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
26
26
|
tags?: string;
|
|
27
27
|
type?: string;
|
|
28
28
|
}
|
|
@@ -20,7 +20,7 @@ export interface ListGamedayMetadataQueryQueryParams {
|
|
|
20
20
|
projectIdentifier?: string;
|
|
21
21
|
search?: string;
|
|
22
22
|
sortAscending?: boolean;
|
|
23
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
23
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
24
24
|
tags?: string;
|
|
25
25
|
}
|
|
26
26
|
export type ListGamedayMetadataRequestBody = TypesListMetadataRequest;
|
|
@@ -20,7 +20,7 @@ export interface ListHubMetadataQueryQueryParams {
|
|
|
20
20
|
projectIdentifier?: string;
|
|
21
21
|
search?: string;
|
|
22
22
|
sortAscending?: boolean;
|
|
23
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
23
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
24
24
|
tags?: string;
|
|
25
25
|
}
|
|
26
26
|
export type ListHubMetadataRequestBody = TypesListMetadataRequest;
|
|
@@ -23,7 +23,7 @@ export interface ListProbeExecutionsQueryQueryParams {
|
|
|
23
23
|
projectIdentifier?: string;
|
|
24
24
|
search?: string;
|
|
25
25
|
sortAscending?: boolean;
|
|
26
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
26
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
27
27
|
startTime?: number;
|
|
28
28
|
status?: 'Failed' | 'Passed';
|
|
29
29
|
tags?: string;
|
|
@@ -20,7 +20,7 @@ export interface ListProbeMetadataQueryQueryParams {
|
|
|
20
20
|
projectIdentifier?: string;
|
|
21
21
|
search?: string;
|
|
22
22
|
sortAscending?: boolean;
|
|
23
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
23
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
24
24
|
tags?: string;
|
|
25
25
|
}
|
|
26
26
|
export type ListProbeMetadataRequestBody = TypesListMetadataRequest;
|
|
@@ -22,7 +22,7 @@ export interface ListRisksQueryQueryParams {
|
|
|
22
22
|
resourceIdentifiers?: string[];
|
|
23
23
|
search?: string;
|
|
24
24
|
sortAscending?: boolean;
|
|
25
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
25
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
26
26
|
tags?: string;
|
|
27
27
|
useParentUniqueID?: boolean;
|
|
28
28
|
}
|
|
@@ -19,7 +19,7 @@ export interface ListRuleQueryQueryParams {
|
|
|
19
19
|
projectIdentifier?: string;
|
|
20
20
|
search?: string;
|
|
21
21
|
sortAscending?: boolean;
|
|
22
|
-
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
22
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
23
23
|
tags?: string;
|
|
24
24
|
}
|
|
25
25
|
export type ListRuleOkResponse = ChaosguardrulesListRuleResponse;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentsUpdateCronStateResponse } from '../schemas/ExperimentsUpdateCronStateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ExperimentsUpdateCronStateRequest } from '../schemas/ExperimentsUpdateCronStateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateCronStateV3MutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
organizationIdentifier?: string;
|
|
10
|
+
parentUniqueId?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
useParentUniqueID?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateCronStateV3RequestBody = ExperimentsUpdateCronStateRequest;
|
|
15
|
+
export type UpdateCronStateV3OkResponse = ExperimentsUpdateCronStateResponse;
|
|
16
|
+
export type UpdateCronStateV3ErrorResponse = ApiRestError;
|
|
17
|
+
export interface UpdateCronStateV3Props extends Omit<FetcherOptions<UpdateCronStateV3MutationQueryParams, UpdateCronStateV3RequestBody>, 'url'> {
|
|
18
|
+
queryParams: UpdateCronStateV3MutationQueryParams;
|
|
19
|
+
body: UpdateCronStateV3RequestBody;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateCronStateV3ResponseContainer {
|
|
22
|
+
body: UpdateCronStateV3OkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function updateCronStateV3(props: UpdateCronStateV3Props): Promise<UpdateCronStateV3ResponseContainer>;
|
|
26
|
+
export type UpdateCronStateV3MutationProps<T extends keyof UpdateCronStateV3Props> = Omit<UpdateCronStateV3Props, T> & Partial<Pick<UpdateCronStateV3Props, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Bulk enable, disable, or update cron schedules for up to 20 experiments
|
|
29
|
+
*/
|
|
30
|
+
export declare function useUpdateCronStateV3Mutation<T extends keyof UpdateCronStateV3Props>(props: Pick<Partial<UpdateCronStateV3Props>, T>, options?: Omit<UseMutationOptions<UpdateCronStateV3ResponseContainer, UpdateCronStateV3ErrorResponse, UpdateCronStateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateCronStateV3ResponseContainer, ApiRestError, UpdateCronStateV3MutationProps<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 updateCronStateV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiments/update-cron`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Bulk enable, disable, or update cron schedules for up to 20 experiments
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateCronStateV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateCronStateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentsUpdateResponse } from '../schemas/ExperimentsUpdateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ExperimentsUpdateRequest } from '../schemas/ExperimentsUpdateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateExperimentV3MutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateExperimentV3MutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
parentUniqueId?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
useParentUniqueID?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type UpdateExperimentV3RequestBody = ExperimentsUpdateRequest;
|
|
18
|
+
export type UpdateExperimentV3OkResponse = ExperimentsUpdateResponse;
|
|
19
|
+
export type UpdateExperimentV3ErrorResponse = ApiRestError;
|
|
20
|
+
export interface UpdateExperimentV3Props extends UpdateExperimentV3MutationPathParams, Omit<FetcherOptions<UpdateExperimentV3MutationQueryParams, UpdateExperimentV3RequestBody>, 'url'> {
|
|
21
|
+
queryParams: UpdateExperimentV3MutationQueryParams;
|
|
22
|
+
body: UpdateExperimentV3RequestBody;
|
|
23
|
+
}
|
|
24
|
+
export interface UpdateExperimentV3ResponseContainer {
|
|
25
|
+
body: UpdateExperimentV3OkResponse;
|
|
26
|
+
headers: Headers;
|
|
27
|
+
}
|
|
28
|
+
export declare function updateExperimentV3(props: UpdateExperimentV3Props): Promise<UpdateExperimentV3ResponseContainer>;
|
|
29
|
+
export type UpdateExperimentV3MutationProps<T extends keyof UpdateExperimentV3Props> = Omit<UpdateExperimentV3Props, T> & Partial<Pick<UpdateExperimentV3Props, T>>;
|
|
30
|
+
/**
|
|
31
|
+
* Update a chaos experiment by identity
|
|
32
|
+
*/
|
|
33
|
+
export declare function useUpdateExperimentV3Mutation<T extends keyof UpdateExperimentV3Props>(props: Pick<Partial<UpdateExperimentV3Props>, T>, options?: Omit<UseMutationOptions<UpdateExperimentV3ResponseContainer, UpdateExperimentV3ErrorResponse, UpdateExperimentV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateExperimentV3ResponseContainer, ApiRestError, UpdateExperimentV3MutationProps<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 updateExperimentV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiments/${props.identity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update a chaos experiment by identity
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateExperimentV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateExperimentV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -34,6 +34,8 @@ export type { CreateExperimentFromTemplateErrorResponse, CreateExperimentFromTem
|
|
|
34
34
|
export { createExperimentFromTemplate, useCreateExperimentFromTemplateMutation, } from './hooks/useCreateExperimentFromTemplateMutation';
|
|
35
35
|
export type { CreateExperimentTemplateErrorResponse, CreateExperimentTemplateMutationProps, CreateExperimentTemplateMutationQueryParams, CreateExperimentTemplateOkResponse, CreateExperimentTemplateProps, CreateExperimentTemplateRequestBody, } from './hooks/useCreateExperimentTemplateMutation';
|
|
36
36
|
export { createExperimentTemplate, useCreateExperimentTemplateMutation, } from './hooks/useCreateExperimentTemplateMutation';
|
|
37
|
+
export type { CreateExperimentV3ErrorResponse, CreateExperimentV3MutationProps, CreateExperimentV3MutationQueryParams, CreateExperimentV3OkResponse, CreateExperimentV3Props, CreateExperimentV3RequestBody, } from './hooks/useCreateExperimentV3Mutation';
|
|
38
|
+
export { createExperimentV3, useCreateExperimentV3Mutation, } from './hooks/useCreateExperimentV3Mutation';
|
|
37
39
|
export type { CreateFaultErrorResponse, CreateFaultMutationProps, CreateFaultMutationQueryParams, CreateFaultOkResponse, CreateFaultProps, CreateFaultRequestBody, } from './hooks/useCreateFaultMutation';
|
|
38
40
|
export { createFault, useCreateFaultMutation } from './hooks/useCreateFaultMutation';
|
|
39
41
|
export type { CreateFaultTemplateErrorResponse, CreateFaultTemplateMutationProps, CreateFaultTemplateMutationQueryParams, CreateFaultTemplateOkResponse, CreateFaultTemplateProps, CreateFaultTemplateRequestBody, } from './hooks/useCreateFaultTemplateMutation';
|
|
@@ -72,6 +74,8 @@ export type { DeleteDrTestErrorResponse, DeleteDrTestMutationPathParams, DeleteD
|
|
|
72
74
|
export { deleteDrTest, useDeleteDrTestMutation } from './hooks/useDeleteDrTestMutation';
|
|
73
75
|
export type { DeleteExperimentTemplateErrorResponse, DeleteExperimentTemplateMutationPathParams, DeleteExperimentTemplateMutationProps, DeleteExperimentTemplateMutationQueryParams, DeleteExperimentTemplateOkResponse, DeleteExperimentTemplateProps, } from './hooks/useDeleteExperimentTemplateMutation';
|
|
74
76
|
export { deleteExperimentTemplate, useDeleteExperimentTemplateMutation, } from './hooks/useDeleteExperimentTemplateMutation';
|
|
77
|
+
export type { DeleteExperimentV3ErrorResponse, DeleteExperimentV3MutationPathParams, DeleteExperimentV3MutationProps, DeleteExperimentV3MutationQueryParams, DeleteExperimentV3OkResponse, DeleteExperimentV3Props, } from './hooks/useDeleteExperimentV3Mutation';
|
|
78
|
+
export { deleteExperimentV3, useDeleteExperimentV3Mutation, } from './hooks/useDeleteExperimentV3Mutation';
|
|
75
79
|
export type { DeleteFaultErrorResponse, DeleteFaultMutationPathParams, DeleteFaultMutationProps, DeleteFaultMutationQueryParams, DeleteFaultOkResponse, DeleteFaultProps, } from './hooks/useDeleteFaultMutation';
|
|
76
80
|
export { deleteFault, useDeleteFaultMutation } from './hooks/useDeleteFaultMutation';
|
|
77
81
|
export type { DeleteFaultTemplateErrorResponse, DeleteFaultTemplateMutationPathParams, DeleteFaultTemplateMutationProps, DeleteFaultTemplateMutationQueryParams, DeleteFaultTemplateOkResponse, DeleteFaultTemplateProps, } from './hooks/useDeleteFaultTemplateMutation';
|
|
@@ -174,6 +178,8 @@ export type { GetExperimentTemplateVariablesErrorResponse, GetExperimentTemplate
|
|
|
174
178
|
export { getExperimentTemplateVariables, useGetExperimentTemplateVariablesQuery, } from './hooks/useGetExperimentTemplateVariablesQuery';
|
|
175
179
|
export type { GetExperimentTemplateYamlErrorResponse, GetExperimentTemplateYamlOkResponse, GetExperimentTemplateYamlProps, GetExperimentTemplateYamlQueryPathParams, GetExperimentTemplateYamlQueryQueryParams, } from './hooks/useGetExperimentTemplateYamlQuery';
|
|
176
180
|
export { getExperimentTemplateYaml, useGetExperimentTemplateYamlQuery, } from './hooks/useGetExperimentTemplateYamlQuery';
|
|
181
|
+
export type { GetExperimentV3ErrorResponse, GetExperimentV3OkResponse, GetExperimentV3Props, GetExperimentV3QueryPathParams, GetExperimentV3QueryQueryParams, } from './hooks/useGetExperimentV3Query';
|
|
182
|
+
export { getExperimentV3, useGetExperimentV3Query } from './hooks/useGetExperimentV3Query';
|
|
177
183
|
export type { GetExperimentationActivityReportErrorResponse, GetExperimentationActivityReportOkResponse, GetExperimentationActivityReportProps, GetExperimentationActivityReportQueryPathParams, GetExperimentationActivityReportQueryQueryParams, } from './hooks/useGetExperimentationActivityReportQuery';
|
|
178
184
|
export { getExperimentationActivityReport, useGetExperimentationActivityReportQuery, } from './hooks/useGetExperimentationActivityReportQuery';
|
|
179
185
|
export type { GetFaultErrorResponse, GetFaultOkResponse, GetFaultProps, GetFaultQueryPathParams, GetFaultQueryQueryParams, } from './hooks/useGetFaultQuery';
|
|
@@ -290,6 +296,8 @@ export type { ListExperimentTemplateErrorResponse, ListExperimentTemplateOkRespo
|
|
|
290
296
|
export { listExperimentTemplate, useListExperimentTemplateQuery, } from './hooks/useListExperimentTemplateQuery';
|
|
291
297
|
export type { ListExperimentsErrorResponse, ListExperimentsOkResponse, ListExperimentsProps, ListExperimentsQueryQueryParams, ListExperimentsRequestBody, } from './hooks/useListExperimentsQuery';
|
|
292
298
|
export { listExperiments, useListExperimentsQuery } from './hooks/useListExperimentsQuery';
|
|
299
|
+
export type { ListExperimentsV3ErrorResponse, ListExperimentsV3OkResponse, ListExperimentsV3Props, ListExperimentsV3QueryQueryParams, } from './hooks/useListExperimentsV3Query';
|
|
300
|
+
export { listExperimentsV3, useListExperimentsV3Query } from './hooks/useListExperimentsV3Query';
|
|
293
301
|
export type { ListExperimentsWithActiveInfrasMinimalNotificationErrorResponse, ListExperimentsWithActiveInfrasMinimalNotificationOkResponse, ListExperimentsWithActiveInfrasMinimalNotificationProps, ListExperimentsWithActiveInfrasMinimalNotificationQueryQueryParams, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
|
|
294
302
|
export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
|
|
295
303
|
export type { ListFaultMetadataErrorResponse, ListFaultMetadataOkResponse, ListFaultMetadataProps, ListFaultMetadataQueryQueryParams, ListFaultMetadataRequestBody, } from './hooks/useListFaultMetadataQuery';
|
|
@@ -412,10 +420,14 @@ export type { UpdateChaosV2CronExperimentErrorResponse, UpdateChaosV2CronExperim
|
|
|
412
420
|
export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
|
|
413
421
|
export type { UpdateConditionErrorResponse, UpdateConditionMutationPathParams, UpdateConditionMutationProps, UpdateConditionMutationQueryParams, UpdateConditionOkResponse, UpdateConditionProps, UpdateConditionRequestBody, } from './hooks/useUpdateConditionMutation';
|
|
414
422
|
export { updateCondition, useUpdateConditionMutation } from './hooks/useUpdateConditionMutation';
|
|
423
|
+
export type { UpdateCronStateV3ErrorResponse, UpdateCronStateV3MutationProps, UpdateCronStateV3MutationQueryParams, UpdateCronStateV3OkResponse, UpdateCronStateV3Props, UpdateCronStateV3RequestBody, } from './hooks/useUpdateCronStateV3Mutation';
|
|
424
|
+
export { updateCronStateV3, useUpdateCronStateV3Mutation, } from './hooks/useUpdateCronStateV3Mutation';
|
|
415
425
|
export type { UpdateEmissaryErrorResponse, UpdateEmissaryMutationPathParams, UpdateEmissaryMutationProps, UpdateEmissaryMutationQueryParams, UpdateEmissaryOkResponse, UpdateEmissaryProps, UpdateEmissaryRequestBody, } from './hooks/useUpdateEmissaryMutation';
|
|
416
426
|
export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
|
|
417
427
|
export type { UpdateExperimentTemplateErrorResponse, UpdateExperimentTemplateMutationPathParams, UpdateExperimentTemplateMutationProps, UpdateExperimentTemplateMutationQueryParams, UpdateExperimentTemplateOkResponse, UpdateExperimentTemplateProps, UpdateExperimentTemplateRequestBody, } from './hooks/useUpdateExperimentTemplateMutation';
|
|
418
428
|
export { updateExperimentTemplate, useUpdateExperimentTemplateMutation, } from './hooks/useUpdateExperimentTemplateMutation';
|
|
429
|
+
export type { UpdateExperimentV3ErrorResponse, UpdateExperimentV3MutationPathParams, UpdateExperimentV3MutationProps, UpdateExperimentV3MutationQueryParams, UpdateExperimentV3OkResponse, UpdateExperimentV3Props, UpdateExperimentV3RequestBody, } from './hooks/useUpdateExperimentV3Mutation';
|
|
430
|
+
export { updateExperimentV3, useUpdateExperimentV3Mutation, } from './hooks/useUpdateExperimentV3Mutation';
|
|
419
431
|
export type { UpdateFaultErrorResponse, UpdateFaultMutationPathParams, UpdateFaultMutationProps, UpdateFaultMutationQueryParams, UpdateFaultOkResponse, UpdateFaultProps, UpdateFaultRequestBody, } from './hooks/useUpdateFaultMutation';
|
|
420
432
|
export { updateFault, useUpdateFaultMutation } from './hooks/useUpdateFaultMutation';
|
|
421
433
|
export type { UpdateFaultTemplateErrorResponse, UpdateFaultTemplateMutationPathParams, UpdateFaultTemplateMutationProps, UpdateFaultTemplateMutationQueryParams, UpdateFaultTemplateOkResponse, UpdateFaultTemplateProps, } from './hooks/useUpdateFaultTemplateMutation';
|
|
@@ -561,7 +573,6 @@ export type { ChaoscomponentsStage } from './schemas/ChaoscomponentsStage';
|
|
|
561
573
|
export type { ChaoscomponentsStopDrTestResponse } from './schemas/ChaoscomponentsStopDrTestResponse';
|
|
562
574
|
export type { ChaoscomponentsStopDrTestResponseData } from './schemas/ChaoscomponentsStopDrTestResponseData';
|
|
563
575
|
export type { ChaoscomponentsUserMetaData } from './schemas/ChaoscomponentsUserMetaData';
|
|
564
|
-
export type { ChaosexperimentListExperimentData } from './schemas/ChaosexperimentListExperimentData';
|
|
565
576
|
export type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from './schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
|
|
566
577
|
export type { ChaosexperimentpipelineReferenceEntities } from './schemas/ChaosexperimentpipelineReferenceEntities';
|
|
567
578
|
export type { ChaosexperimenttemplateChaosExperimentTemplate } from './schemas/ChaosexperimenttemplateChaosExperimentTemplate';
|
|
@@ -737,6 +748,23 @@ export type { ExperimentTargets } from './schemas/ExperimentTargets';
|
|
|
737
748
|
export type { ExperimentVmWareAuth } from './schemas/ExperimentVmWareAuth';
|
|
738
749
|
export type { ExperimentWorkload } from './schemas/ExperimentWorkload';
|
|
739
750
|
export type { ExperimentWorkloadKind } from './schemas/ExperimentWorkloadKind';
|
|
751
|
+
export type { ExperimentsAuditInfo } from './schemas/ExperimentsAuditInfo';
|
|
752
|
+
export type { ExperimentsCreateRequest } from './schemas/ExperimentsCreateRequest';
|
|
753
|
+
export type { ExperimentsCreateResponse } from './schemas/ExperimentsCreateResponse';
|
|
754
|
+
export type { ExperimentsDeleteResponse } from './schemas/ExperimentsDeleteResponse';
|
|
755
|
+
export type { ExperimentsEventMetadata } from './schemas/ExperimentsEventMetadata';
|
|
756
|
+
export type { ExperimentsExperimentListItem } from './schemas/ExperimentsExperimentListItem';
|
|
757
|
+
export type { ExperimentsGetResponse } from './schemas/ExperimentsGetResponse';
|
|
758
|
+
export type { ExperimentsInfraDetails } from './schemas/ExperimentsInfraDetails';
|
|
759
|
+
export type { ExperimentsListExperimentsResponse } from './schemas/ExperimentsListExperimentsResponse';
|
|
760
|
+
export type { ExperimentsRecentRunDetails } from './schemas/ExperimentsRecentRunDetails';
|
|
761
|
+
export type { ExperimentsTemplateResourceDetails } from './schemas/ExperimentsTemplateResourceDetails';
|
|
762
|
+
export type { ExperimentsTemplateResources } from './schemas/ExperimentsTemplateResources';
|
|
763
|
+
export type { ExperimentsUpdateCronStateAction } from './schemas/ExperimentsUpdateCronStateAction';
|
|
764
|
+
export type { ExperimentsUpdateCronStateRequest } from './schemas/ExperimentsUpdateCronStateRequest';
|
|
765
|
+
export type { ExperimentsUpdateCronStateResponse } from './schemas/ExperimentsUpdateCronStateResponse';
|
|
766
|
+
export type { ExperimentsUpdateRequest } from './schemas/ExperimentsUpdateRequest';
|
|
767
|
+
export type { ExperimentsUpdateResponse } from './schemas/ExperimentsUpdateResponse';
|
|
740
768
|
export type { ExperimenttemplateAction } from './schemas/ExperimenttemplateAction';
|
|
741
769
|
export type { ExperimenttemplateFault } from './schemas/ExperimenttemplateFault';
|
|
742
770
|
export type { ExperimenttemplateListExperimentTemplateData } from './schemas/ExperimenttemplateListExperimentTemplateData';
|
|
@@ -1122,6 +1150,9 @@ export type { TemplateChaosExperimentInputsetSpec } from './schemas/TemplateChao
|
|
|
1122
1150
|
export type { TemplateInput } from './schemas/TemplateInput';
|
|
1123
1151
|
export type { TemplateInputCategory } from './schemas/TemplateInputCategory';
|
|
1124
1152
|
export type { TemplateInputMinimum } from './schemas/TemplateInputMinimum';
|
|
1153
|
+
export type { TemplateInputReference } from './schemas/TemplateInputReference';
|
|
1154
|
+
export type { TemplateInputReferenceKind } from './schemas/TemplateInputReferenceKind';
|
|
1155
|
+
export type { TemplateInputReferenceType } from './schemas/TemplateInputReferenceType';
|
|
1125
1156
|
export type { TemplateInputType } from './schemas/TemplateInputType';
|
|
1126
1157
|
export type { TemplateRunTimeInputs } from './schemas/TemplateRunTimeInputs';
|
|
1127
1158
|
export type { TemplateVariable } from './schemas/TemplateVariable';
|
|
@@ -1399,6 +1430,7 @@ export type { V2OnboardingV2OnboardingRequest } from './schemas/V2OnboardingV2On
|
|
|
1399
1430
|
export type { V2OnboardingV2OnboardingStatus } from './schemas/V2OnboardingV2OnboardingStatus';
|
|
1400
1431
|
export type { V3GetExperimentOrTemplateVariableData } from './schemas/V3GetExperimentOrTemplateVariableData';
|
|
1401
1432
|
export type { V3GetExperimentOrTemplateVariableResponse } from './schemas/V3GetExperimentOrTemplateVariableResponse';
|
|
1433
|
+
export type { V3ListExperimentData } from './schemas/V3ListExperimentData';
|
|
1402
1434
|
export type { V3ListExperimentOrTemplateResponse } from './schemas/V3ListExperimentOrTemplateResponse';
|
|
1403
1435
|
export type { V3ProcessTemplateRequest } from './schemas/V3ProcessTemplateRequest';
|
|
1404
1436
|
export type { V3ProcessTemplateResponse } from './schemas/V3ProcessTemplateResponse';
|
|
@@ -16,6 +16,7 @@ export { createCondition, useCreateConditionMutation } from './hooks/useCreateCo
|
|
|
16
16
|
export { createDrTest, useCreateDrTestMutation } from './hooks/useCreateDrTestMutation';
|
|
17
17
|
export { createExperimentFromTemplate, useCreateExperimentFromTemplateMutation, } from './hooks/useCreateExperimentFromTemplateMutation';
|
|
18
18
|
export { createExperimentTemplate, useCreateExperimentTemplateMutation, } from './hooks/useCreateExperimentTemplateMutation';
|
|
19
|
+
export { createExperimentV3, useCreateExperimentV3Mutation, } from './hooks/useCreateExperimentV3Mutation';
|
|
19
20
|
export { createFault, useCreateFaultMutation } from './hooks/useCreateFaultMutation';
|
|
20
21
|
export { createFaultTemplate, useCreateFaultTemplateMutation, } from './hooks/useCreateFaultTemplateMutation';
|
|
21
22
|
export { createGamedayRunV2, useCreateGamedayRunV2Mutation, } from './hooks/useCreateGamedayRunV2Mutation';
|
|
@@ -35,6 +36,7 @@ export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './
|
|
|
35
36
|
export { deleteCondition, useDeleteConditionMutation } from './hooks/useDeleteConditionMutation';
|
|
36
37
|
export { deleteDrTest, useDeleteDrTestMutation } from './hooks/useDeleteDrTestMutation';
|
|
37
38
|
export { deleteExperimentTemplate, useDeleteExperimentTemplateMutation, } from './hooks/useDeleteExperimentTemplateMutation';
|
|
39
|
+
export { deleteExperimentV3, useDeleteExperimentV3Mutation, } from './hooks/useDeleteExperimentV3Mutation';
|
|
38
40
|
export { deleteFault, useDeleteFaultMutation } from './hooks/useDeleteFaultMutation';
|
|
39
41
|
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
40
42
|
export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGamedayV2Mutation';
|
|
@@ -86,6 +88,7 @@ export { getExperimentTemplate, useGetExperimentTemplateQuery, } from './hooks/u
|
|
|
86
88
|
export { getExperimentTemplateRevisions, useGetExperimentTemplateRevisionsQuery, } from './hooks/useGetExperimentTemplateRevisionsQuery';
|
|
87
89
|
export { getExperimentTemplateVariables, useGetExperimentTemplateVariablesQuery, } from './hooks/useGetExperimentTemplateVariablesQuery';
|
|
88
90
|
export { getExperimentTemplateYaml, useGetExperimentTemplateYamlQuery, } from './hooks/useGetExperimentTemplateYamlQuery';
|
|
91
|
+
export { getExperimentV3, useGetExperimentV3Query } from './hooks/useGetExperimentV3Query';
|
|
89
92
|
export { getExperimentationActivityReport, useGetExperimentationActivityReportQuery, } from './hooks/useGetExperimentationActivityReportQuery';
|
|
90
93
|
export { getFault, useGetFaultQuery } from './hooks/useGetFaultQuery';
|
|
91
94
|
export { getFaultTemplate, useGetFaultTemplateQuery } from './hooks/useGetFaultTemplateQuery';
|
|
@@ -144,6 +147,7 @@ export { listExperimentOrTemplate, useListExperimentOrTemplateQuery, } from './h
|
|
|
144
147
|
export { listExperimentRunsOfFault, useListExperimentRunsOfFaultQuery, } from './hooks/useListExperimentRunsOfFaultQuery';
|
|
145
148
|
export { listExperimentTemplate, useListExperimentTemplateQuery, } from './hooks/useListExperimentTemplateQuery';
|
|
146
149
|
export { listExperiments, useListExperimentsQuery } from './hooks/useListExperimentsQuery';
|
|
150
|
+
export { listExperimentsV3, useListExperimentsV3Query } from './hooks/useListExperimentsV3Query';
|
|
147
151
|
export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
|
|
148
152
|
export { listFaultMetadata, useListFaultMetadataQuery } from './hooks/useListFaultMetadataQuery';
|
|
149
153
|
export { listFault, useListFaultQuery } from './hooks/useListFaultQuery';
|
|
@@ -205,8 +209,10 @@ export { updateChaosExperimentExecutionNode, useUpdateChaosExperimentExecutionNo
|
|
|
205
209
|
export { updateChaosHub, useUpdateChaosHubMutation } from './hooks/useUpdateChaosHubMutation';
|
|
206
210
|
export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
|
|
207
211
|
export { updateCondition, useUpdateConditionMutation } from './hooks/useUpdateConditionMutation';
|
|
212
|
+
export { updateCronStateV3, useUpdateCronStateV3Mutation, } from './hooks/useUpdateCronStateV3Mutation';
|
|
208
213
|
export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
|
|
209
214
|
export { updateExperimentTemplate, useUpdateExperimentTemplateMutation, } from './hooks/useUpdateExperimentTemplateMutation';
|
|
215
|
+
export { updateExperimentV3, useUpdateExperimentV3Mutation, } from './hooks/useUpdateExperimentV3Mutation';
|
|
210
216
|
export { updateFault, useUpdateFaultMutation } from './hooks/useUpdateFaultMutation';
|
|
211
217
|
export { updateFaultTemplate, useUpdateFaultTemplateMutation, } from './hooks/useUpdateFaultTemplateMutation';
|
|
212
218
|
export { updateGamedayRunPrerequisitesV2, useUpdateGamedayRunPrerequisitesV2Mutation, } from './hooks/useUpdateGamedayRunPrerequisitesV2Mutation';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ExperimentsEventMetadata } from '../schemas/ExperimentsEventMetadata';
|
|
2
|
+
import type { ChaosExperimentChaosExperimentType } from '../schemas/ChaosExperimentChaosExperimentType';
|
|
3
|
+
import type { ExperimentInfraType } from '../schemas/ExperimentInfraType';
|
|
4
|
+
import type { TemplateInput } from '../schemas/TemplateInput';
|
|
5
|
+
import type { ChaosExperimentRecommendation } from '../schemas/ChaosExperimentRecommendation';
|
|
6
|
+
import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
|
|
7
|
+
import type { ExperimentsTemplateResources } from '../schemas/ExperimentsTemplateResources';
|
|
8
|
+
export interface ExperimentsCreateRequest {
|
|
9
|
+
cronSyntax?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
eventsMetadata?: ExperimentsEventMetadata[];
|
|
12
|
+
experimentId?: string;
|
|
13
|
+
experimentType?: ChaosExperimentChaosExperimentType;
|
|
14
|
+
identity?: string;
|
|
15
|
+
infraId?: string;
|
|
16
|
+
infraType?: ExperimentInfraType;
|
|
17
|
+
inputs?: TemplateInput[];
|
|
18
|
+
isSingleRunCronEnabled?: boolean;
|
|
19
|
+
manifest?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
recommendation?: ChaosExperimentRecommendation;
|
|
22
|
+
tags?: string[];
|
|
23
|
+
templateDetails?: ChaosExperimentRunTemplateDetails;
|
|
24
|
+
templateResources?: ExperimentsTemplateResources;
|
|
25
|
+
validateManifest?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ExperimentsAuditInfo } from '../schemas/ExperimentsAuditInfo';
|
|
2
|
+
import type { ExperimentsCreateRequest } from '../schemas/ExperimentsCreateRequest';
|
|
3
|
+
export interface ExperimentsCreateResponse {
|
|
4
|
+
/**
|
|
5
|
+
* account id to access the resource
|
|
6
|
+
*/
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
audit?: ExperimentsAuditInfo;
|
|
9
|
+
data?: ExperimentsCreateRequest;
|
|
10
|
+
/**
|
|
11
|
+
* organization id to access the resource
|
|
12
|
+
*/
|
|
13
|
+
organizationIdentifier?: string;
|
|
14
|
+
/**
|
|
15
|
+
* resolved parent scope unique ID (from scope-info API or query param)
|
|
16
|
+
*/
|
|
17
|
+
parentUniqueId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* project id to access the resource
|
|
20
|
+
*/
|
|
21
|
+
projectIdentifier?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
2
|
+
import type { ChaosExperimentChaosExperimentType } from '../schemas/ChaosExperimentChaosExperimentType';
|
|
3
|
+
import type { ExperimentsInfraDetails } from '../schemas/ExperimentsInfraDetails';
|
|
4
|
+
import type { ExperimentsRecentRunDetails } from '../schemas/ExperimentsRecentRunDetails';
|
|
5
|
+
import type { ChaosExperimentRecommendation } from '../schemas/ChaosExperimentRecommendation';
|
|
6
|
+
import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
|
|
7
|
+
export interface ExperimentsExperimentListItem {
|
|
8
|
+
createdAt?: number;
|
|
9
|
+
createdBy?: HcesdkUserDetails;
|
|
10
|
+
cronSyntax?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
experimentId?: string;
|
|
13
|
+
experimentType?: ChaosExperimentChaosExperimentType;
|
|
14
|
+
identity?: string;
|
|
15
|
+
infra?: ExperimentsInfraDetails;
|
|
16
|
+
isCronEnabled?: boolean;
|
|
17
|
+
isCustomExperiment?: boolean;
|
|
18
|
+
isSingleRunCronEnabled?: boolean;
|
|
19
|
+
lastExecutedAt?: number;
|
|
20
|
+
name?: string;
|
|
21
|
+
recentRuns?: ExperimentsRecentRunDetails[];
|
|
22
|
+
recommendation?: ChaosExperimentRecommendation;
|
|
23
|
+
tags?: string[];
|
|
24
|
+
templateDetails?: ChaosExperimentRunTemplateDetails;
|
|
25
|
+
totalRuns?: number;
|
|
26
|
+
updatedAt?: number;
|
|
27
|
+
updatedBy?: HcesdkUserDetails;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
2
|
+
import type { ChaosExperimentChaosExperimentType } from '../schemas/ChaosExperimentChaosExperimentType';
|
|
3
|
+
import type { ExperimentsInfraDetails } from '../schemas/ExperimentsInfraDetails';
|
|
4
|
+
import type { TemplateInput } from '../schemas/TemplateInput';
|
|
5
|
+
import type { ExperimentsRecentRunDetails } from '../schemas/ExperimentsRecentRunDetails';
|
|
6
|
+
import type { ChaosExperimentRecommendation } from '../schemas/ChaosExperimentRecommendation';
|
|
7
|
+
import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
|
|
8
|
+
export interface ExperimentsGetResponse {
|
|
9
|
+
createdAt?: number;
|
|
10
|
+
createdBy?: HcesdkUserDetails;
|
|
11
|
+
cronSyntax?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
experimentId?: string;
|
|
14
|
+
experimentType?: ChaosExperimentChaosExperimentType;
|
|
15
|
+
identity?: string;
|
|
16
|
+
infra?: ExperimentsInfraDetails;
|
|
17
|
+
inputs?: TemplateInput[];
|
|
18
|
+
isCronEnabled?: boolean;
|
|
19
|
+
isCustomExperiment?: boolean;
|
|
20
|
+
isSingleRunCronEnabled?: boolean;
|
|
21
|
+
lastExecutedAt?: number;
|
|
22
|
+
manifest?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
recentRuns?: ExperimentsRecentRunDetails[];
|
|
25
|
+
recommendation?: ChaosExperimentRecommendation;
|
|
26
|
+
tags?: string[];
|
|
27
|
+
templateDetails?: ChaosExperimentRunTemplateDetails;
|
|
28
|
+
totalRuns?: number;
|
|
29
|
+
updatedAt?: number;
|
|
30
|
+
updatedBy?: HcesdkUserDetails;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ExperimentsExperimentListItem } from '../schemas/ExperimentsExperimentListItem';
|
|
2
|
+
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
3
|
+
export interface ExperimentsListExperimentsResponse {
|
|
4
|
+
data?: ExperimentsExperimentListItem[];
|
|
5
|
+
pagination?: SharedPaginationResponse;
|
|
6
|
+
totalItems?: number;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
2
|
+
export interface ExperimentsRecentRunDetails {
|
|
3
|
+
createdAt?: number;
|
|
4
|
+
createdBy?: HcesdkUserDetails;
|
|
5
|
+
experimentRunId?: string;
|
|
6
|
+
phase?: string;
|
|
7
|
+
resiliencyScore?: number;
|
|
8
|
+
updatedBy?: HcesdkUserDetails;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ExperimentsTemplateResourceDetails } from '../schemas/ExperimentsTemplateResourceDetails';
|
|
2
|
+
export interface ExperimentsTemplateResources {
|
|
3
|
+
actions?: ExperimentsTemplateResourceDetails[];
|
|
4
|
+
faults?: ExperimentsTemplateResourceDetails[];
|
|
5
|
+
probes?: ExperimentsTemplateResourceDetails[];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ExperimentsUpdateCronStateAction = 'Disable' | 'Enable' | 'Update';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ExperimentsEventMetadata } from '../schemas/ExperimentsEventMetadata';
|
|
2
|
+
import type { ChaosExperimentChaosExperimentType } from '../schemas/ChaosExperimentChaosExperimentType';
|
|
3
|
+
import type { ExperimentInfraType } from '../schemas/ExperimentInfraType';
|
|
4
|
+
import type { TemplateInput } from '../schemas/TemplateInput';
|
|
5
|
+
import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
|
|
6
|
+
export interface ExperimentsUpdateRequest {
|
|
7
|
+
cronSyntax?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
eventsMetadata?: ExperimentsEventMetadata[];
|
|
10
|
+
experimentType?: ChaosExperimentChaosExperimentType;
|
|
11
|
+
identity?: string;
|
|
12
|
+
infraId?: string;
|
|
13
|
+
infraType?: ExperimentInfraType;
|
|
14
|
+
inputs?: TemplateInput[];
|
|
15
|
+
isSingleRunCronEnabled?: boolean;
|
|
16
|
+
manifest?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
tags?: string[];
|
|
19
|
+
templateDetails?: ChaosExperimentRunTemplateDetails;
|
|
20
|
+
validateManifest?: boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ImageregistriesArtifactType = 'DockerRegistry' | '
|
|
1
|
+
export type ImageregistriesArtifactType = 'DockerRegistry' | 'Ecr' | 'GoogleArtifactRegistry' | 'Har';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TemplateInputCategory } from '../schemas/TemplateInputCategory';
|
|
2
|
+
import type { TemplateInputReference } from '../schemas/TemplateInputReference';
|
|
2
3
|
import type { TemplateInputType } from '../schemas/TemplateInputType';
|
|
3
4
|
export interface TemplateInput {
|
|
4
5
|
allowedValues?: Array<{}>;
|
|
@@ -7,6 +8,7 @@ export interface TemplateInput {
|
|
|
7
8
|
description?: string;
|
|
8
9
|
name: string;
|
|
9
10
|
path?: string;
|
|
11
|
+
reference?: TemplateInputReference;
|
|
10
12
|
required?: boolean;
|
|
11
13
|
stringify?: boolean;
|
|
12
14
|
tags?: string[];
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import type { TemplateInputCategory } from '../schemas/TemplateInputCategory';
|
|
2
|
+
import type { TemplateInputReference } from '../schemas/TemplateInputReference';
|
|
1
3
|
export interface TemplateInputMinimum {
|
|
4
|
+
category?: TemplateInputCategory;
|
|
2
5
|
name: string;
|
|
6
|
+
reference?: TemplateInputReference;
|
|
3
7
|
value: {};
|
|
4
8
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TemplateInputReferenceKind } from '../schemas/TemplateInputReferenceKind';
|
|
2
|
+
import type { TemplateInputReferenceType } from '../schemas/TemplateInputReferenceType';
|
|
3
|
+
export interface TemplateInputReference {
|
|
4
|
+
kind?: TemplateInputReferenceKind;
|
|
5
|
+
type?: TemplateInputReferenceType;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TemplateInputReferenceKind = 'ChaosInfrastructure' | 'Connector' | 'Secret';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TemplateInputReferenceType = 'AppDynamics' | 'Datadog' | 'Dynatrace' | 'KubernetesV2' | 'Linux' | 'NewRelic' | 'Prometheus' | 'SecretFile' | 'SecretText' | 'SignalFX' | 'Splunk' | 'Windows';
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import type { TemplateInputCategory } from '../schemas/TemplateInputCategory';
|
|
2
|
+
import type { TemplateInputReference } from '../schemas/TemplateInputReference';
|
|
1
3
|
import type { TemplateVariableType } from '../schemas/TemplateVariableType';
|
|
2
4
|
export interface TemplateVariable {
|
|
5
|
+
category?: TemplateInputCategory;
|
|
3
6
|
description?: string;
|
|
4
7
|
name: string;
|
|
5
8
|
path?: string;
|
|
9
|
+
reference?: TemplateInputReference;
|
|
6
10
|
required?: boolean;
|
|
7
11
|
type?: TemplateVariableType;
|
|
8
12
|
value: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { V3ListExperimentData } from '../schemas/V3ListExperimentData';
|
|
2
2
|
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
3
3
|
import type { ExperimenttemplateListExperimentTemplateData } from '../schemas/ExperimenttemplateListExperimentTemplateData';
|
|
4
4
|
export interface V3ListExperimentOrTemplateResponse {
|
|
5
5
|
correlationId?: string;
|
|
6
|
-
experiments?:
|
|
6
|
+
experiments?: V3ListExperimentData[];
|
|
7
7
|
pagination?: SharedPaginationResponse;
|
|
8
8
|
templates?: ExperimenttemplateListExperimentTemplateData[];
|
|
9
9
|
}
|
package/package.json
CHANGED