@harnessio/react-chaos-manager-client 1.59.1-beta.0 → 1.61.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/useCreateImageRegistryV3Mutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useCreateImageRegistryV3Mutation.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/useResolveImageRegistryV3Query.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useResolveImageRegistryV3Query.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 +17 -2
- package/dist/chaos-manager/src/services/index.js +4 -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/ExperimentConditions.js +1 -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/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/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/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/{ExperimenttemplateProbeConditions.js → ImageregistriesArtifactType.js} +0 -0
|
@@ -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,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
|
+
}
|
|
@@ -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,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 { ImageregistriesUpdateRequest } from '../schemas/ImageregistriesUpdateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateImageRegistryV3MutationQueryParams {
|
|
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 UpdateImageRegistryV3RequestBody = ImageregistriesUpdateRequest;
|
|
16
|
+
export type UpdateImageRegistryV3OkResponse = ImageregistriesImageRegistryResponse;
|
|
17
|
+
export type UpdateImageRegistryV3ErrorResponse = ApiRestError;
|
|
18
|
+
export interface UpdateImageRegistryV3Props extends Omit<FetcherOptions<UpdateImageRegistryV3MutationQueryParams, UpdateImageRegistryV3RequestBody>, 'url'> {
|
|
19
|
+
queryParams: UpdateImageRegistryV3MutationQueryParams;
|
|
20
|
+
body: UpdateImageRegistryV3RequestBody;
|
|
21
|
+
}
|
|
22
|
+
export interface UpdateImageRegistryV3ResponseContainer {
|
|
23
|
+
body: UpdateImageRegistryV3OkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function updateImageRegistryV3(props: UpdateImageRegistryV3Props): Promise<UpdateImageRegistryV3ResponseContainer>;
|
|
27
|
+
export type UpdateImageRegistryV3MutationProps<T extends keyof UpdateImageRegistryV3Props> = Omit<UpdateImageRegistryV3Props, T> & Partial<Pick<UpdateImageRegistryV3Props, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* updates an image registry for the given scope
|
|
30
|
+
*/
|
|
31
|
+
export declare function useUpdateImageRegistryV3Mutation<T extends keyof UpdateImageRegistryV3Props>(props: Pick<Partial<UpdateImageRegistryV3Props>, T>, options?: Omit<UseMutationOptions<UpdateImageRegistryV3ResponseContainer, UpdateImageRegistryV3ErrorResponse, UpdateImageRegistryV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateImageRegistryV3ResponseContainer, ApiRestError, UpdateImageRegistryV3MutationProps<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 updateImageRegistryV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/image-registries`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* updates an image registry for the given scope
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateImageRegistryV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateImageRegistryV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -42,6 +42,8 @@ export type { CreateGamedayRunV2ErrorResponse, CreateGamedayRunV2MutationPathPar
|
|
|
42
42
|
export { createGamedayRunV2, useCreateGamedayRunV2Mutation, } from './hooks/useCreateGamedayRunV2Mutation';
|
|
43
43
|
export type { CreateGamedayV2ErrorResponse, CreateGamedayV2MutationProps, CreateGamedayV2MutationQueryParams, CreateGamedayV2OkResponse, CreateGamedayV2Props, CreateGamedayV2RequestBody, } from './hooks/useCreateGamedayV2Mutation';
|
|
44
44
|
export { createGamedayV2, useCreateGamedayV2Mutation } from './hooks/useCreateGamedayV2Mutation';
|
|
45
|
+
export type { CreateImageRegistryV3ErrorResponse, CreateImageRegistryV3MutationProps, CreateImageRegistryV3MutationQueryParams, CreateImageRegistryV3OkResponse, CreateImageRegistryV3Props, CreateImageRegistryV3RequestBody, } from './hooks/useCreateImageRegistryV3Mutation';
|
|
46
|
+
export { createImageRegistryV3, useCreateImageRegistryV3Mutation, } from './hooks/useCreateImageRegistryV3Mutation';
|
|
45
47
|
export type { CreateInputSetErrorResponse, CreateInputSetMutationPathParams, CreateInputSetMutationProps, CreateInputSetMutationQueryParams, CreateInputSetOkResponse, CreateInputSetProps, CreateInputSetRequestBody, } from './hooks/useCreateInputSetMutation';
|
|
46
48
|
export { createInputSet, useCreateInputSetMutation } from './hooks/useCreateInputSetMutation';
|
|
47
49
|
export type { CreateProbeErrorResponse, CreateProbeMutationProps, CreateProbeMutationQueryParams, CreateProbeOkResponse, CreateProbeProps, CreateProbeRequestBody, } from './hooks/useCreateProbeMutation';
|
|
@@ -194,6 +196,8 @@ export type { GetGamedayV2ErrorResponse, GetGamedayV2OkResponse, GetGamedayV2Pro
|
|
|
194
196
|
export { getGamedayV2, useGetGamedayV2Query } from './hooks/useGetGamedayV2Query';
|
|
195
197
|
export type { GetImageRegistryErrorResponse, GetImageRegistryOkResponse, GetImageRegistryProps, } from './hooks/useGetImageRegistryQuery';
|
|
196
198
|
export { getImageRegistry, useGetImageRegistryQuery } from './hooks/useGetImageRegistryQuery';
|
|
199
|
+
export type { GetImageRegistryV3ErrorResponse, GetImageRegistryV3OkResponse, GetImageRegistryV3Props, GetImageRegistryV3QueryQueryParams, } from './hooks/useGetImageRegistryV3Query';
|
|
200
|
+
export { getImageRegistryV3, useGetImageRegistryV3Query } from './hooks/useGetImageRegistryV3Query';
|
|
197
201
|
export type { GetInfraTokenErrorResponse, GetInfraTokenOkResponse, GetInfraTokenProps, GetInfraTokenQueryPathParams, GetInfraTokenQueryQueryParams, } from './hooks/useGetInfraTokenQuery';
|
|
198
202
|
export { getInfraToken, useGetInfraTokenQuery } from './hooks/useGetInfraTokenQuery';
|
|
199
203
|
export type { GetInfraV2ErrorResponse, GetInfraV2OkResponse, GetInfraV2Props, GetInfraV2QueryPathParams, GetInfraV2QueryQueryParams, } from './hooks/useGetInfraV2Query';
|
|
@@ -372,6 +376,8 @@ export type { RegisterMachineInfraErrorResponse, RegisterMachineInfraMutationPro
|
|
|
372
376
|
export { registerMachineInfra, useRegisterMachineInfraMutation, } from './hooks/useRegisterMachineInfraMutation';
|
|
373
377
|
export type { RenderTemplateFormErrorResponse, RenderTemplateFormOkResponse, RenderTemplateFormProps, } from './hooks/useRenderTemplateFormQuery';
|
|
374
378
|
export { renderTemplateForm, useRenderTemplateFormQuery } from './hooks/useRenderTemplateFormQuery';
|
|
379
|
+
export type { ResolveImageRegistryV3ErrorResponse, ResolveImageRegistryV3OkResponse, ResolveImageRegistryV3Props, ResolveImageRegistryV3QueryQueryParams, } from './hooks/useResolveImageRegistryV3Query';
|
|
380
|
+
export { resolveImageRegistryV3, useResolveImageRegistryV3Query, } from './hooks/useResolveImageRegistryV3Query';
|
|
375
381
|
export type { RetryExperimentCreationErrorResponse, RetryExperimentCreationMutationPathParams, RetryExperimentCreationMutationProps, RetryExperimentCreationMutationQueryParams, RetryExperimentCreationOkResponse, RetryExperimentCreationProps, RetryExperimentCreationRequestBody, } from './hooks/useRetryExperimentCreationMutation';
|
|
376
382
|
export { retryExperimentCreation, useRetryExperimentCreationMutation, } from './hooks/useRetryExperimentCreationMutation';
|
|
377
383
|
export type { RunChaosComponentErrorResponse, RunChaosComponentMutationProps, RunChaosComponentMutationQueryParams, RunChaosComponentOkResponse, RunChaosComponentProps, RunChaosComponentRequestBody, } from './hooks/useRunChaosComponentMutation';
|
|
@@ -422,6 +428,8 @@ export type { UpdateGamedayRunV2ErrorResponse, UpdateGamedayRunV2MutationPathPar
|
|
|
422
428
|
export { updateGamedayRunV2, useUpdateGamedayRunV2Mutation, } from './hooks/useUpdateGamedayRunV2Mutation';
|
|
423
429
|
export type { UpdateGamedayV2ErrorResponse, UpdateGamedayV2MutationProps, UpdateGamedayV2MutationQueryParams, UpdateGamedayV2OkResponse, UpdateGamedayV2Props, UpdateGamedayV2RequestBody, } from './hooks/useUpdateGamedayV2Mutation';
|
|
424
430
|
export { updateGamedayV2, useUpdateGamedayV2Mutation } from './hooks/useUpdateGamedayV2Mutation';
|
|
431
|
+
export type { UpdateImageRegistryV3ErrorResponse, UpdateImageRegistryV3MutationProps, UpdateImageRegistryV3MutationQueryParams, UpdateImageRegistryV3OkResponse, UpdateImageRegistryV3Props, UpdateImageRegistryV3RequestBody, } from './hooks/useUpdateImageRegistryV3Mutation';
|
|
432
|
+
export { updateImageRegistryV3, useUpdateImageRegistryV3Mutation, } from './hooks/useUpdateImageRegistryV3Mutation';
|
|
425
433
|
export type { UpdateInfraV2ErrorResponse, UpdateInfraV2MutationProps, UpdateInfraV2MutationQueryParams, UpdateInfraV2OkResponse, UpdateInfraV2Props, UpdateInfraV2RequestBody, } from './hooks/useUpdateInfraV2Mutation';
|
|
426
434
|
export { updateInfraV2, useUpdateInfraV2Mutation } from './hooks/useUpdateInfraV2Mutation';
|
|
427
435
|
export type { UpdateInputSetErrorResponse, UpdateInputSetMutationPathParams, UpdateInputSetMutationProps, UpdateInputSetMutationQueryParams, UpdateInputSetOkResponse, UpdateInputSetProps, UpdateInputSetRequestBody, } from './hooks/useUpdateInputSetMutation';
|
|
@@ -704,6 +712,8 @@ export type { ExperimentAuth } from './schemas/ExperimentAuth';
|
|
|
704
712
|
export type { ExperimentAuthType } from './schemas/ExperimentAuthType';
|
|
705
713
|
export type { ExperimentChaosInputs } from './schemas/ExperimentChaosInputs';
|
|
706
714
|
export type { ExperimentCleanupPolicy } from './schemas/ExperimentCleanupPolicy';
|
|
715
|
+
export type { ExperimentConditionOperator } from './schemas/ExperimentConditionOperator';
|
|
716
|
+
export type { ExperimentConditions } from './schemas/ExperimentConditions';
|
|
707
717
|
export type { ExperimentConfigMap } from './schemas/ExperimentConfigMap';
|
|
708
718
|
export type { ExperimentDefinition } from './schemas/ExperimentDefinition';
|
|
709
719
|
export type { ExperimentExperimentComponents } from './schemas/ExperimentExperimentComponents';
|
|
@@ -712,7 +722,6 @@ export type { ExperimentHelperConfig } from './schemas/ExperimentHelperConfig';
|
|
|
712
722
|
export type { ExperimentHostFile } from './schemas/ExperimentHostFile';
|
|
713
723
|
export type { ExperimentInfraType } from './schemas/ExperimentInfraType';
|
|
714
724
|
export type { ExperimentProbeActions } from './schemas/ExperimentProbeActions';
|
|
715
|
-
export type { ExperimentProbeConditions } from './schemas/ExperimentProbeConditions';
|
|
716
725
|
export type { ExperimentProbeRef } from './schemas/ExperimentProbeRef';
|
|
717
726
|
export type { ExperimentProjectedVolumes } from './schemas/ExperimentProjectedVolumes';
|
|
718
727
|
export type { ExperimentRedisAuth } from './schemas/ExperimentRedisAuth';
|
|
@@ -732,7 +741,6 @@ export type { ExperimenttemplateAction } from './schemas/ExperimenttemplateActio
|
|
|
732
741
|
export type { ExperimenttemplateFault } from './schemas/ExperimenttemplateFault';
|
|
733
742
|
export type { ExperimenttemplateListExperimentTemplateData } from './schemas/ExperimenttemplateListExperimentTemplateData';
|
|
734
743
|
export type { ExperimenttemplateProbe } from './schemas/ExperimenttemplateProbe';
|
|
735
|
-
export type { ExperimenttemplateProbeConditions } from './schemas/ExperimenttemplateProbeConditions';
|
|
736
744
|
export type { ExperimenttemplateSpec } from './schemas/ExperimenttemplateSpec';
|
|
737
745
|
export type { ExperimenttemplateStatusCheckTimeout } from './schemas/ExperimenttemplateStatusCheckTimeout';
|
|
738
746
|
export type { ExperimenttemplateVertex } from './schemas/ExperimenttemplateVertex';
|
|
@@ -854,6 +862,13 @@ export type { HealthHealthCheckResponse } from './schemas/HealthHealthCheckRespo
|
|
|
854
862
|
export type { ImageRegistryCustomImagesRequest } from './schemas/ImageRegistryCustomImagesRequest';
|
|
855
863
|
export type { ImageRegistryImageRegistryV2 } from './schemas/ImageRegistryImageRegistryV2';
|
|
856
864
|
export type { ImageRegistryUserDetails } from './schemas/ImageRegistryUserDetails';
|
|
865
|
+
export type { ImageregistriesArtifactType } from './schemas/ImageregistriesArtifactType';
|
|
866
|
+
export type { ImageregistriesConnectorSpec } from './schemas/ImageregistriesConnectorSpec';
|
|
867
|
+
export type { ImageregistriesCreateRequest } from './schemas/ImageregistriesCreateRequest';
|
|
868
|
+
export type { ImageregistriesCustomImages } from './schemas/ImageregistriesCustomImages';
|
|
869
|
+
export type { ImageregistriesImageRegistryResponse } from './schemas/ImageregistriesImageRegistryResponse';
|
|
870
|
+
export type { ImageregistriesResolveResponse } from './schemas/ImageregistriesResolveResponse';
|
|
871
|
+
export type { ImageregistriesUpdateRequest } from './schemas/ImageregistriesUpdateRequest';
|
|
857
872
|
export type { InfraCloudFoundryInfraUserInputs } from './schemas/InfraCloudFoundryInfraUserInputs';
|
|
858
873
|
export type { InfraContainerInfraInstallationManifest } from './schemas/InfraContainerInfraInstallationManifest';
|
|
859
874
|
export type { InfraContainerInfraUserInputs } from './schemas/InfraContainerInfraUserInputs';
|
|
@@ -20,6 +20,7 @@ export { createFault, useCreateFaultMutation } from './hooks/useCreateFaultMutat
|
|
|
20
20
|
export { createFaultTemplate, useCreateFaultTemplateMutation, } from './hooks/useCreateFaultTemplateMutation';
|
|
21
21
|
export { createGamedayRunV2, useCreateGamedayRunV2Mutation, } from './hooks/useCreateGamedayRunV2Mutation';
|
|
22
22
|
export { createGamedayV2, useCreateGamedayV2Mutation } from './hooks/useCreateGamedayV2Mutation';
|
|
23
|
+
export { createImageRegistryV3, useCreateImageRegistryV3Mutation, } from './hooks/useCreateImageRegistryV3Mutation';
|
|
23
24
|
export { createInputSet, useCreateInputSetMutation } from './hooks/useCreateInputSetMutation';
|
|
24
25
|
export { createProbe, useCreateProbeMutation } from './hooks/useCreateProbeMutation';
|
|
25
26
|
export { createProbeTemplate, useCreateProbeTemplateMutation, } from './hooks/useCreateProbeTemplateMutation';
|
|
@@ -96,6 +97,7 @@ export { getFaultYaml, useGetFaultYamlQuery } from './hooks/useGetFaultYamlQuery
|
|
|
96
97
|
export { getGamedayRunV2, useGetGamedayRunV2Query } from './hooks/useGetGamedayRunV2Query';
|
|
97
98
|
export { getGamedayV2, useGetGamedayV2Query } from './hooks/useGetGamedayV2Query';
|
|
98
99
|
export { getImageRegistry, useGetImageRegistryQuery } from './hooks/useGetImageRegistryQuery';
|
|
100
|
+
export { getImageRegistryV3, useGetImageRegistryV3Query } from './hooks/useGetImageRegistryV3Query';
|
|
99
101
|
export { getInfraToken, useGetInfraTokenQuery } from './hooks/useGetInfraTokenQuery';
|
|
100
102
|
export { getInfraV2, useGetInfraV2Query } from './hooks/useGetInfraV2Query';
|
|
101
103
|
export { getInputSet, useGetInputSetQuery } from './hooks/useGetInputSetQuery';
|
|
@@ -185,6 +187,7 @@ export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegister
|
|
|
185
187
|
export { registerLegacyKubernetesInfra, useRegisterLegacyKubernetesInfraMutation, } from './hooks/useRegisterLegacyKubernetesInfraMutation';
|
|
186
188
|
export { registerMachineInfra, useRegisterMachineInfraMutation, } from './hooks/useRegisterMachineInfraMutation';
|
|
187
189
|
export { renderTemplateForm, useRenderTemplateFormQuery } from './hooks/useRenderTemplateFormQuery';
|
|
190
|
+
export { resolveImageRegistryV3, useResolveImageRegistryV3Query, } from './hooks/useResolveImageRegistryV3Query';
|
|
188
191
|
export { retryExperimentCreation, useRetryExperimentCreationMutation, } from './hooks/useRetryExperimentCreationMutation';
|
|
189
192
|
export { runChaosComponent, useRunChaosComponentMutation, } from './hooks/useRunChaosComponentMutation';
|
|
190
193
|
export { runChaosV2Experiment, useRunChaosV2ExperimentMutation, } from './hooks/useRunChaosV2ExperimentMutation';
|
|
@@ -210,6 +213,7 @@ export { updateGamedayRunPrerequisitesV2, useUpdateGamedayRunPrerequisitesV2Muta
|
|
|
210
213
|
export { updateGamedayRunStakeHolderActionsV2, useUpdateGamedayRunStakeHolderActionsV2Mutation, } from './hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation';
|
|
211
214
|
export { updateGamedayRunV2, useUpdateGamedayRunV2Mutation, } from './hooks/useUpdateGamedayRunV2Mutation';
|
|
212
215
|
export { updateGamedayV2, useUpdateGamedayV2Mutation } from './hooks/useUpdateGamedayV2Mutation';
|
|
216
|
+
export { updateImageRegistryV3, useUpdateImageRegistryV3Mutation, } from './hooks/useUpdateImageRegistryV3Mutation';
|
|
213
217
|
export { updateInfraV2, useUpdateInfraV2Mutation } from './hooks/useUpdateInfraV2Mutation';
|
|
214
218
|
export { updateInputSet, useUpdateInputSetMutation } from './hooks/useUpdateInputSetMutation';
|
|
215
219
|
export { updateLegacyKubernetesChaosInfra, useUpdateLegacyKubernetesChaosInfraMutation, } from './hooks/useUpdateLegacyKubernetesChaosInfraMutation';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
1
2
|
import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
|
|
2
3
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
3
4
|
export interface ExperimentActionRef {
|
|
@@ -5,6 +6,10 @@ export interface ExperimentActionRef {
|
|
|
5
6
|
* Args of the action
|
|
6
7
|
*/
|
|
7
8
|
args?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Conditions to check if the action should be executed
|
|
11
|
+
*/
|
|
12
|
+
conditions?: ExperimentConditions;
|
|
8
13
|
/**
|
|
9
14
|
* ContinueOnCompletion to continue on completion
|
|
10
15
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ExperimentConditionOperator = 'AND' | 'OR';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
1
2
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
2
3
|
export interface ExperimentFaultRef {
|
|
3
4
|
/**
|
|
4
5
|
* AuthEnabled denotes whether authentication is enabled for the fault
|
|
5
6
|
*/
|
|
6
7
|
authEnabled?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Conditions to check if the action should be executed
|
|
10
|
+
*/
|
|
11
|
+
conditions?: ExperimentConditions;
|
|
7
12
|
/**
|
|
8
13
|
* Identity of the fault reference
|
|
9
14
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExperimentProbeActions } from '../schemas/ExperimentProbeActions';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
3
3
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
4
4
|
export interface ExperimentProbeRef {
|
|
5
5
|
/**
|
|
@@ -7,9 +7,9 @@ export interface ExperimentProbeRef {
|
|
|
7
7
|
*/
|
|
8
8
|
actions?: ExperimentProbeActions[];
|
|
9
9
|
/**
|
|
10
|
-
* Conditions to be
|
|
10
|
+
* Conditions to check if the action should be executed
|
|
11
11
|
*/
|
|
12
|
-
conditions?:
|
|
12
|
+
conditions?: ExperimentConditions;
|
|
13
13
|
/**
|
|
14
14
|
* Duration of the probe
|
|
15
15
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
1
2
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
2
3
|
export interface ExperimenttemplateAction {
|
|
4
|
+
conditions?: ExperimentConditions;
|
|
3
5
|
continueOnCompletion?: boolean;
|
|
4
6
|
identity?: string;
|
|
5
7
|
infraId?: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
1
2
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
2
3
|
export interface ExperimenttemplateFault {
|
|
3
4
|
authEnabled?: boolean;
|
|
5
|
+
conditions?: ExperimentConditions;
|
|
4
6
|
identity?: string;
|
|
5
7
|
infraId?: string;
|
|
6
8
|
isEnterprise?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
2
2
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
3
3
|
export interface ExperimenttemplateProbe {
|
|
4
|
-
conditions?:
|
|
4
|
+
conditions?: ExperimentConditions;
|
|
5
5
|
duration?: string;
|
|
6
6
|
enableDataCollection?: boolean;
|
|
7
7
|
identity?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ImageregistriesArtifactType = 'DockerRegistry' | 'DockerRegistry' | 'Ecr' | 'Ecr' | 'GoogleArtifactRegistry' | 'GoogleArtifactRegistry' | 'Har' | 'Har';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ImageregistriesArtifactType } from '../schemas/ImageregistriesArtifactType';
|
|
2
|
+
import type { ImageregistriesConnectorSpec } from '../schemas/ImageregistriesConnectorSpec';
|
|
3
|
+
import type { ImageregistriesCustomImages } from '../schemas/ImageregistriesCustomImages';
|
|
4
|
+
export interface ImageregistriesCreateRequest {
|
|
5
|
+
allowChildOverride?: boolean;
|
|
6
|
+
artifactType?: ImageregistriesArtifactType;
|
|
7
|
+
connectorRef?: string;
|
|
8
|
+
connectorSpec?: ImageregistriesConnectorSpec;
|
|
9
|
+
customImages?: ImageregistriesCustomImages;
|
|
10
|
+
infraID?: string;
|
|
11
|
+
isDefault?: boolean;
|
|
12
|
+
isPrivate?: boolean;
|
|
13
|
+
registryAccount?: string;
|
|
14
|
+
registryServer?: string;
|
|
15
|
+
secretName?: string;
|
|
16
|
+
useCustomImages?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ImageregistriesArtifactType } from '../schemas/ImageregistriesArtifactType';
|
|
2
|
+
import type { ImageregistriesConnectorSpec } from '../schemas/ImageregistriesConnectorSpec';
|
|
3
|
+
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
4
|
+
import type { ImageregistriesCustomImages } from '../schemas/ImageregistriesCustomImages';
|
|
5
|
+
export interface ImageregistriesImageRegistryResponse {
|
|
6
|
+
accountIdentifier?: string;
|
|
7
|
+
allowChildOverride?: boolean;
|
|
8
|
+
artifactType?: ImageregistriesArtifactType;
|
|
9
|
+
connectorRef?: string;
|
|
10
|
+
connectorSpec?: ImageregistriesConnectorSpec;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
createdAt?: number;
|
|
13
|
+
createdBy?: HcesdkUserDetails;
|
|
14
|
+
customImages?: ImageregistriesCustomImages;
|
|
15
|
+
infraID?: string;
|
|
16
|
+
isDefault?: boolean;
|
|
17
|
+
isPrivate?: boolean;
|
|
18
|
+
orgIdentifier?: string;
|
|
19
|
+
projectIdentifier?: string;
|
|
20
|
+
registryAccount?: string;
|
|
21
|
+
registryServer?: string;
|
|
22
|
+
secretName?: string;
|
|
23
|
+
updatedAt?: number;
|
|
24
|
+
updatedBy?: HcesdkUserDetails;
|
|
25
|
+
useCustomImages?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ImageregistriesImageRegistryResponse } from '../schemas/ImageregistriesImageRegistryResponse';
|
|
2
|
+
export interface ImageregistriesResolveResponse {
|
|
3
|
+
blockedByScope?: string;
|
|
4
|
+
correlationID?: string;
|
|
5
|
+
effectiveConfig?: ImageregistriesImageRegistryResponse;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ImageregistriesArtifactType } from '../schemas/ImageregistriesArtifactType';
|
|
2
|
+
import type { ImageregistriesConnectorSpec } from '../schemas/ImageregistriesConnectorSpec';
|
|
3
|
+
import type { ImageregistriesCustomImages } from '../schemas/ImageregistriesCustomImages';
|
|
4
|
+
export interface ImageregistriesUpdateRequest {
|
|
5
|
+
allowChildOverride?: boolean;
|
|
6
|
+
artifactType?: ImageregistriesArtifactType;
|
|
7
|
+
connectorRef?: string;
|
|
8
|
+
connectorSpec?: ImageregistriesConnectorSpec;
|
|
9
|
+
customImages?: ImageregistriesCustomImages;
|
|
10
|
+
infraID?: string;
|
|
11
|
+
isDefault?: boolean;
|
|
12
|
+
isPrivate?: boolean;
|
|
13
|
+
registryAccount?: string;
|
|
14
|
+
registryServer?: string;
|
|
15
|
+
secretName?: string;
|
|
16
|
+
useCustomImages?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
File without changes
|