@harnessio/react-chaos-manager-client 1.60.0 → 1.62.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/useCreateImageRegistryV3Mutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useCreateImageRegistryV3Mutation.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/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/useGetImageRegistryV3Query.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useGetImageRegistryV3Query.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/useResolveImageRegistryV3Query.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useResolveImageRegistryV3Query.js +14 -0
- 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/hooks/useUpdateImageRegistryV3Mutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateImageRegistryV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +47 -3
- package/dist/chaos-manager/src/services/index.js +10 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentConditionOperator.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentConditions.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +3 -3
- package/dist/chaos-manager/src/services/schemas/ExperimentsAuditInfo.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsCreateRequest.d.ts +26 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentsCreateRequest.js +1 -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/ExperimenttemplateAction.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ExperimenttemplateFault.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ExperimenttemplateProbe.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ImageregistriesArtifactType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesArtifactType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesConnectorSpec.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesConnectorSpec.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesCreateRequest.d.ts +17 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesCreateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesCustomImages.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesCustomImages.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesImageRegistryResponse.d.ts +26 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesImageRegistryResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesResolveResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesResolveResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesUpdateRequest.d.ts +17 -0
- package/dist/chaos-manager/src/services/schemas/ImageregistriesUpdateRequest.js +1 -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/ExperimentProbeConditions.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/ExperimenttemplateProbeConditions.d.ts +0 -3
- /package/dist/chaos-manager/src/services/schemas/{ExperimentProbeConditions.js → ExperimentConditionOperator.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ChaosexperimentListExperimentData.js → ExperimentConditions.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ExperimenttemplateProbeConditions.js → ExperimentsAuditInfo.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,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ImageregistriesImageRegistryResponse } from '../schemas/ImageregistriesImageRegistryResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ImageregistriesCreateRequest } from '../schemas/ImageregistriesCreateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateImageRegistryV3MutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
infraID?: string;
|
|
10
|
+
organizationIdentifier?: string;
|
|
11
|
+
parentUniqueId?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
useParentUniqueID?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type CreateImageRegistryV3RequestBody = ImageregistriesCreateRequest;
|
|
16
|
+
export type CreateImageRegistryV3OkResponse = ImageregistriesImageRegistryResponse;
|
|
17
|
+
export type CreateImageRegistryV3ErrorResponse = ApiRestError;
|
|
18
|
+
export interface CreateImageRegistryV3Props extends Omit<FetcherOptions<CreateImageRegistryV3MutationQueryParams, CreateImageRegistryV3RequestBody>, 'url'> {
|
|
19
|
+
queryParams: CreateImageRegistryV3MutationQueryParams;
|
|
20
|
+
body: CreateImageRegistryV3RequestBody;
|
|
21
|
+
}
|
|
22
|
+
export interface CreateImageRegistryV3ResponseContainer {
|
|
23
|
+
body: CreateImageRegistryV3OkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function createImageRegistryV3(props: CreateImageRegistryV3Props): Promise<CreateImageRegistryV3ResponseContainer>;
|
|
27
|
+
export type CreateImageRegistryV3MutationProps<T extends keyof CreateImageRegistryV3Props> = Omit<CreateImageRegistryV3Props, T> & Partial<Pick<CreateImageRegistryV3Props, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* creates an image registry for the given scope
|
|
30
|
+
*/
|
|
31
|
+
export declare function useCreateImageRegistryV3Mutation<T extends keyof CreateImageRegistryV3Props>(props: Pick<Partial<CreateImageRegistryV3Props>, T>, options?: Omit<UseMutationOptions<CreateImageRegistryV3ResponseContainer, CreateImageRegistryV3ErrorResponse, CreateImageRegistryV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateImageRegistryV3ResponseContainer, ApiRestError, CreateImageRegistryV3MutationProps<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 createImageRegistryV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/image-registries`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* creates an image registry for the given scope
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateImageRegistryV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createImageRegistryV3(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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ImageregistriesImageRegistryResponse } from '../schemas/ImageregistriesImageRegistryResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetImageRegistryV3QueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
infraID?: string;
|
|
9
|
+
organizationIdentifier?: string;
|
|
10
|
+
parentUniqueId?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
useParentUniqueID?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type GetImageRegistryV3OkResponse = ImageregistriesImageRegistryResponse;
|
|
15
|
+
export type GetImageRegistryV3ErrorResponse = ApiRestError;
|
|
16
|
+
export interface GetImageRegistryV3Props extends Omit<FetcherOptions<GetImageRegistryV3QueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: GetImageRegistryV3QueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface GetImageRegistryV3ResponseContainer {
|
|
20
|
+
body: GetImageRegistryV3OkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function getImageRegistryV3(props: GetImageRegistryV3Props): Promise<GetImageRegistryV3ResponseContainer>;
|
|
24
|
+
/**
|
|
25
|
+
* gets an image registry for the given scope and optional infraID
|
|
26
|
+
*/
|
|
27
|
+
export declare function useGetImageRegistryV3Query(props: GetImageRegistryV3Props, options?: Omit<UseQueryOptions<GetImageRegistryV3ResponseContainer, GetImageRegistryV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetImageRegistryV3ResponseContainer, 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 getImageRegistryV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/image-registries`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* gets an image registry for the given scope and optional infraID
|
|
11
|
+
*/
|
|
12
|
+
export function useGetImageRegistryV3Query(props, options) {
|
|
13
|
+
return useQuery(['GetImageRegistryV3', props.queryParams], ({ signal }) => getImageRegistryV3(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,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ImageregistriesResolveResponse } from '../schemas/ImageregistriesResolveResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ResolveImageRegistryV3QueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
infraID?: string;
|
|
9
|
+
organizationIdentifier?: string;
|
|
10
|
+
parentUniqueId?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
useParentUniqueID?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type ResolveImageRegistryV3OkResponse = ImageregistriesResolveResponse;
|
|
15
|
+
export type ResolveImageRegistryV3ErrorResponse = ApiRestError;
|
|
16
|
+
export interface ResolveImageRegistryV3Props extends Omit<FetcherOptions<ResolveImageRegistryV3QueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: ResolveImageRegistryV3QueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface ResolveImageRegistryV3ResponseContainer {
|
|
20
|
+
body: ResolveImageRegistryV3OkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function resolveImageRegistryV3(props: ResolveImageRegistryV3Props): Promise<ResolveImageRegistryV3ResponseContainer>;
|
|
24
|
+
/**
|
|
25
|
+
* walks the scope hierarchy and returns the effective image registry configuration
|
|
26
|
+
*/
|
|
27
|
+
export declare function useResolveImageRegistryV3Query(props: ResolveImageRegistryV3Props, options?: Omit<UseQueryOptions<ResolveImageRegistryV3ResponseContainer, ResolveImageRegistryV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ResolveImageRegistryV3ResponseContainer, 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 resolveImageRegistryV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/image-registries/resolve`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* walks the scope hierarchy and returns the effective image registry configuration
|
|
11
|
+
*/
|
|
12
|
+
export function useResolveImageRegistryV3Query(props, options) {
|
|
13
|
+
return useQuery(['ResolveImageRegistryV3', props.queryParams], ({ signal }) => resolveImageRegistryV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|