@harnessio/react-chaos-manager-client 1.12.0 → 1.14.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.
Files changed (33) hide show
  1. package/dist/chaos-manager/src/services/hooks/useCreateFaultMutation.d.ts +28 -0
  2. package/dist/chaos-manager/src/services/hooks/useCreateFaultMutation.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useDeleteFaultMutation.d.ts +28 -0
  4. package/dist/chaos-manager/src/services/hooks/useDeleteFaultMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useGetMachineChaosInfraDetailsQuery.d.ts +1 -0
  6. package/dist/chaos-manager/src/services/hooks/useGetMachineChaosInfraVersionDetailsQuery.d.ts +1 -0
  7. package/dist/chaos-manager/src/services/hooks/useListFaultQuery.d.ts +14 -18
  8. package/dist/chaos-manager/src/services/hooks/useListFaultQuery.js +2 -2
  9. package/dist/chaos-manager/src/services/hooks/useListFaultv2Query.d.ts +40 -0
  10. package/dist/chaos-manager/src/services/hooks/useListFaultv2Query.js +14 -0
  11. package/dist/chaos-manager/src/services/hooks/useListMachineChaosInfraQuery.d.ts +1 -0
  12. package/dist/chaos-manager/src/services/hooks/useUpdateFaultMutation.d.ts +31 -0
  13. package/dist/chaos-manager/src/services/hooks/useUpdateFaultMutation.js +14 -0
  14. package/dist/chaos-manager/src/services/index.d.ts +12 -4
  15. package/dist/chaos-manager/src/services/index.js +4 -1
  16. package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultRequest.d.ts +17 -0
  17. package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultResponse.d.ts +18 -0
  18. package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultRequest.d.ts +17 -0
  19. package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultRequest.js +1 -0
  20. package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultResponse.d.ts +18 -0
  21. package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultResponse.js +1 -0
  22. package/dist/chaos-manager/src/services/schemas/ExecutionActionData.d.ts +0 -1
  23. package/dist/chaos-manager/src/services/schemas/ProbeApmProbeTemplate.d.ts +0 -2
  24. package/dist/chaos-manager/src/services/schemas/ProbeApmProbeType.d.ts +1 -1
  25. package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
  26. package/dist/chaos-manager/src/services/schemas/V1ApmProbeInputs.d.ts +0 -5
  27. package/package.json +1 -1
  28. package/dist/chaos-manager/src/services/hooks/useListFaultInHubQuery.d.ts +0 -36
  29. package/dist/chaos-manager/src/services/hooks/useListFaultInHubQuery.js +0 -14
  30. package/dist/chaos-manager/src/services/schemas/ProbeDynatraceApmProbeInputs.d.ts +0 -6
  31. package/dist/chaos-manager/src/services/schemas/V1DynatraceApmProbeInputs.d.ts +0 -19
  32. /package/dist/chaos-manager/src/services/schemas/{ProbeDynatraceApmProbeInputs.js → ChaosfaultCreateFaultRequest.js} +0 -0
  33. /package/dist/chaos-manager/src/services/schemas/{V1DynatraceApmProbeInputs.js → ChaosfaultCreateFaultResponse.js} +0 -0
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaultCreateFaultResponse } from '../schemas/ChaosfaultCreateFaultResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ChaosfaultCreateFaultRequest } from '../schemas/ChaosfaultCreateFaultRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface CreateFaultMutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ organizationIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export type CreateFaultRequestBody = ChaosfaultCreateFaultRequest;
13
+ export type CreateFaultOkResponse = ChaosfaultCreateFaultResponse;
14
+ export type CreateFaultErrorResponse = ApiRestError;
15
+ export interface CreateFaultProps extends Omit<FetcherOptions<CreateFaultMutationQueryParams, CreateFaultRequestBody>, 'url'> {
16
+ queryParams: CreateFaultMutationQueryParams;
17
+ body: CreateFaultRequestBody;
18
+ }
19
+ export interface CreateFaultResponseContainer {
20
+ body: CreateFaultOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function createFault(props: CreateFaultProps): Promise<CreateFaultResponseContainer>;
24
+ export type CreateFaultMutationProps<T extends keyof CreateFaultProps> = Omit<CreateFaultProps, T> & Partial<Pick<CreateFaultProps, T>>;
25
+ /**
26
+ * Create fault
27
+ */
28
+ export declare function useCreateFaultMutation<T extends keyof CreateFaultProps>(props: Pick<Partial<CreateFaultProps>, T>, options?: Omit<UseMutationOptions<CreateFaultResponseContainer, CreateFaultErrorResponse, CreateFaultMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateFaultResponseContainer, ApiRestError, CreateFaultMutationProps<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 createFault(props) {
7
+ return fetcher(Object.assign({ url: `/rest/faults`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create fault
11
+ */
12
+ export function useCreateFaultMutation(props, options) {
13
+ return useMutation((mutateProps) => createFault(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface DeleteFaultMutationPathParams {
6
+ identity: string;
7
+ }
8
+ export interface DeleteFaultMutationQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ organizationIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export type DeleteFaultOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
15
+ export type DeleteFaultErrorResponse = ApiRestError;
16
+ export interface DeleteFaultProps extends DeleteFaultMutationPathParams, Omit<FetcherOptions<DeleteFaultMutationQueryParams, unknown>, 'url'> {
17
+ queryParams: DeleteFaultMutationQueryParams;
18
+ }
19
+ export interface DeleteFaultResponseContainer {
20
+ body: DeleteFaultOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function deleteFault(props: DeleteFaultProps): Promise<DeleteFaultResponseContainer>;
24
+ export type DeleteFaultMutationProps<T extends keyof DeleteFaultProps> = Omit<DeleteFaultProps, T> & Partial<Pick<DeleteFaultProps, T>>;
25
+ /**
26
+ * Delete the fault templates in a hub based on tag
27
+ */
28
+ export declare function useDeleteFaultMutation<T extends keyof DeleteFaultProps>(props: Pick<Partial<DeleteFaultProps>, T>, options?: Omit<UseMutationOptions<DeleteFaultResponseContainer, DeleteFaultErrorResponse, DeleteFaultMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteFaultResponseContainer, ApiRestError, DeleteFaultMutationProps<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 deleteFault(props) {
7
+ return fetcher(Object.assign({ url: `/rest/faults/${props.identity}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete the fault templates in a hub based on tag
11
+ */
12
+ export function useDeleteFaultMutation(props, options) {
13
+ return useMutation((mutateProps) => deleteFault(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -9,6 +9,7 @@ export interface GetMachineChaosInfraDetailsQueryQueryParams {
9
9
  accountIdentifier: string;
10
10
  organizationIdentifier: string;
11
11
  projectIdentifier: string;
12
+ infraType: string;
12
13
  }
13
14
  export type GetMachineChaosInfraDetailsOkResponse = GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra;
14
15
  export type GetMachineChaosInfraDetailsErrorResponse = ApiRestError;
@@ -6,6 +6,7 @@ export interface GetMachineChaosInfraVersionDetailsQueryQueryParams {
6
6
  accountIdentifier: string;
7
7
  organizationIdentifier: string;
8
8
  projectIdentifier: string;
9
+ infraType: string;
9
10
  }
10
11
  export type GetMachineChaosInfraVersionDetailsOkResponse = InfraInfraVersionDetails;
11
12
  export type GetMachineChaosInfraVersionDetailsErrorResponse = ApiRestError;
@@ -1,30 +1,26 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ChaosfaultListFaultResponse } from '../schemas/ChaosfaultListFaultResponse';
2
+ import type { ChaoshubListFaultsResponse } from '../schemas/ChaoshubListFaultsResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
5
  export interface ListFaultQueryQueryParams {
6
6
  accountIdentifier: string;
7
- category?: 'AWS' | 'Azure' | 'GCP' | 'Kubernetes' | 'Redis';
8
- correlationID?: string;
9
- infrastructureType?: 'KubernetesV2';
10
- isEnterprise?: boolean;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ hubIdentity?: string;
10
+ infraType?: string;
11
+ permissionsRequired?: string;
12
+ entityType?: string;
13
+ search: string;
11
14
  /**
12
- * @default 10
15
+ * @default 0
13
16
  */
14
- limit?: number;
15
- organizationIdentifier?: string;
17
+ page: number;
16
18
  /**
17
- * @default 0
19
+ * @default 15
18
20
  */
19
- page?: number;
20
- projectIdentifier?: string;
21
- search?: string;
22
- sortAscending?: boolean;
23
- sortField?: 'lastUpdated' | 'name';
24
- tags?: string;
25
- type?: 'Resource';
21
+ limit: number;
26
22
  }
27
- export type ListFaultOkResponse = ChaosfaultListFaultResponse;
23
+ export type ListFaultOkResponse = ChaoshubListFaultsResponse;
28
24
  export type ListFaultErrorResponse = ApiRestError;
29
25
  export interface ListFaultProps extends Omit<FetcherOptions<ListFaultQueryQueryParams, unknown>, 'url'> {
30
26
  queryParams: ListFaultQueryQueryParams;
@@ -35,6 +31,6 @@ export interface ListFaultResponseContainer {
35
31
  }
36
32
  export declare function listFault(props: ListFaultProps): Promise<ListFaultResponseContainer>;
37
33
  /**
38
- * Lists lists faults in a project
34
+ * Lists faults in a chaos hub based on given filters
39
35
  */
40
36
  export declare function useListFaultQuery(props: ListFaultProps, options?: Omit<UseQueryOptions<ListFaultResponseContainer, ListFaultErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultResponseContainer, ApiRestError>;
@@ -4,10 +4,10 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function listFault(props) {
7
- return fetcher(Object.assign({ url: `/rest/faults`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/rest/hubs/faults`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Lists lists faults in a project
10
+ * Lists faults in a chaos hub based on given filters
11
11
  */
12
12
  export function useListFaultQuery(props, options) {
13
13
  return useQuery(['listFault', props.queryParams], ({ signal }) => listFault(Object.assign(Object.assign({}, props), { signal })), options);
@@ -0,0 +1,40 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaultListFaultResponse } from '../schemas/ChaosfaultListFaultResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListFaultv2QueryQueryParams {
6
+ accountIdentifier: string;
7
+ category?: 'AWS' | 'Azure' | 'GCP' | 'Kubernetes' | 'Redis';
8
+ correlationID?: string;
9
+ infrastructureType?: 'KubernetesV2';
10
+ isEnterprise?: boolean;
11
+ /**
12
+ * @default 10
13
+ */
14
+ limit?: number;
15
+ organizationIdentifier?: string;
16
+ /**
17
+ * @default 0
18
+ */
19
+ page?: number;
20
+ projectIdentifier?: string;
21
+ search?: string;
22
+ sortAscending?: boolean;
23
+ sortField?: 'lastUpdated' | 'name';
24
+ tags?: string;
25
+ type?: 'Resource';
26
+ }
27
+ export type ListFaultv2OkResponse = ChaosfaultListFaultResponse;
28
+ export type ListFaultv2ErrorResponse = ApiRestError;
29
+ export interface ListFaultv2Props extends Omit<FetcherOptions<ListFaultv2QueryQueryParams, unknown>, 'url'> {
30
+ queryParams: ListFaultv2QueryQueryParams;
31
+ }
32
+ export interface ListFaultv2ResponseContainer {
33
+ body: ListFaultv2OkResponse;
34
+ headers: Headers;
35
+ }
36
+ export declare function listFaultv2(props: ListFaultv2Props): Promise<ListFaultv2ResponseContainer>;
37
+ /**
38
+ * Lists lists faults in a project
39
+ */
40
+ export declare function useListFaultv2Query(props: ListFaultv2Props, options?: Omit<UseQueryOptions<ListFaultv2ResponseContainer, ListFaultv2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultv2ResponseContainer, 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 listFaultv2(props) {
7
+ return fetcher(Object.assign({ url: `/rest/faults`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists lists faults in a project
11
+ */
12
+ export function useListFaultv2Query(props, options) {
13
+ return useQuery(['listFaultv2', props.queryParams], ({ signal }) => listFaultv2(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -7,6 +7,7 @@ export interface ListMachineChaosInfraQueryQueryParams {
7
7
  accountIdentifier: string;
8
8
  organizationIdentifier: string;
9
9
  projectIdentifier: string;
10
+ minimalResponse?: boolean;
10
11
  }
11
12
  export type ListMachineChaosInfraRequestBody = InfraListInfraRequest;
12
13
  export type ListMachineChaosInfraOkResponse = InfraListInfraResponse;
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaultUpdateFaultResponse } from '../schemas/ChaosfaultUpdateFaultResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ChaosfaultUpdateFaultRequest } from '../schemas/ChaosfaultUpdateFaultRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface UpdateFaultMutationPathParams {
7
+ identity: string;
8
+ }
9
+ export interface UpdateFaultMutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ organizationIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export type UpdateFaultRequestBody = ChaosfaultUpdateFaultRequest;
16
+ export type UpdateFaultOkResponse = ChaosfaultUpdateFaultResponse;
17
+ export type UpdateFaultErrorResponse = ApiRestError;
18
+ export interface UpdateFaultProps extends UpdateFaultMutationPathParams, Omit<FetcherOptions<UpdateFaultMutationQueryParams, UpdateFaultRequestBody>, 'url'> {
19
+ queryParams: UpdateFaultMutationQueryParams;
20
+ body: UpdateFaultRequestBody;
21
+ }
22
+ export interface UpdateFaultResponseContainer {
23
+ body: UpdateFaultOkResponse;
24
+ headers: Headers;
25
+ }
26
+ export declare function updateFault(props: UpdateFaultProps): Promise<UpdateFaultResponseContainer>;
27
+ export type UpdateFaultMutationProps<T extends keyof UpdateFaultProps> = Omit<UpdateFaultProps, T> & Partial<Pick<UpdateFaultProps, T>>;
28
+ /**
29
+ * Update the fault templates in a hub based on tag
30
+ */
31
+ export declare function useUpdateFaultMutation<T extends keyof UpdateFaultProps>(props: Pick<Partial<UpdateFaultProps>, T>, options?: Omit<UseMutationOptions<UpdateFaultResponseContainer, UpdateFaultErrorResponse, UpdateFaultMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateFaultResponseContainer, ApiRestError, UpdateFaultMutationProps<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 updateFault(props) {
7
+ return fetcher(Object.assign({ url: `/rest/faults/${props.identity}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update the fault templates in a hub based on tag
11
+ */
12
+ export function useUpdateFaultMutation(props, options) {
13
+ return useMutation((mutateProps) => updateFault(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -18,6 +18,8 @@ export type { CreateChaosExperimentPipelineErrorResponse, CreateChaosExperimentP
18
18
  export { createChaosExperimentPipeline, useCreateChaosExperimentPipelineMutation, } from './hooks/useCreateChaosExperimentPipelineMutation';
19
19
  export type { CreateChaosHubErrorResponse, CreateChaosHubMutationProps, CreateChaosHubMutationQueryParams, CreateChaosHubOkResponse, CreateChaosHubProps, CreateChaosHubRequestBody, } from './hooks/useCreateChaosHubMutation';
20
20
  export { createChaosHub, useCreateChaosHubMutation } from './hooks/useCreateChaosHubMutation';
21
+ export type { CreateFaultErrorResponse, CreateFaultMutationProps, CreateFaultMutationQueryParams, CreateFaultOkResponse, CreateFaultProps, CreateFaultRequestBody, } from './hooks/useCreateFaultMutation';
22
+ export { createFault, useCreateFaultMutation } from './hooks/useCreateFaultMutation';
21
23
  export type { CreateFaultTemplateErrorResponse, CreateFaultTemplateMutationProps, CreateFaultTemplateMutationQueryParams, CreateFaultTemplateOkResponse, CreateFaultTemplateProps, CreateFaultTemplateRequestBody, } from './hooks/useCreateFaultTemplateMutation';
22
24
  export { createFaultTemplate, useCreateFaultTemplateMutation, } from './hooks/useCreateFaultTemplateMutation';
23
25
  export type { CreateGamedayRunV2ErrorResponse, CreateGamedayRunV2MutationPathParams, CreateGamedayRunV2MutationProps, CreateGamedayRunV2MutationQueryParams, CreateGamedayRunV2OkResponse, CreateGamedayRunV2Props, } from './hooks/useCreateGamedayRunV2Mutation';
@@ -40,6 +42,8 @@ export type { DeleteActionTemplateErrorResponse, DeleteActionTemplateMutationPat
40
42
  export { deleteActionTemplate, useDeleteActionTemplateMutation, } from './hooks/useDeleteActionTemplateMutation';
41
43
  export type { DeleteChaosV2ExperimentErrorResponse, DeleteChaosV2ExperimentMutationPathParams, DeleteChaosV2ExperimentMutationProps, DeleteChaosV2ExperimentMutationQueryParams, DeleteChaosV2ExperimentOkResponse, DeleteChaosV2ExperimentProps, } from './hooks/useDeleteChaosV2ExperimentMutation';
42
44
  export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './hooks/useDeleteChaosV2ExperimentMutation';
45
+ export type { DeleteFaultErrorResponse, DeleteFaultMutationPathParams, DeleteFaultMutationProps, DeleteFaultMutationQueryParams, DeleteFaultOkResponse, DeleteFaultProps, } from './hooks/useDeleteFaultMutation';
46
+ export { deleteFault, useDeleteFaultMutation } from './hooks/useDeleteFaultMutation';
43
47
  export type { DeleteFaultTemplateErrorResponse, DeleteFaultTemplateMutationPathParams, DeleteFaultTemplateMutationProps, DeleteFaultTemplateMutationQueryParams, DeleteFaultTemplateOkResponse, DeleteFaultTemplateProps, } from './hooks/useDeleteFaultTemplateMutation';
44
48
  export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
45
49
  export type { DeleteGamedayV2ErrorResponse, DeleteGamedayV2MutationPathParams, DeleteGamedayV2MutationProps, DeleteGamedayV2MutationQueryParams, DeleteGamedayV2OkResponse, DeleteGamedayV2Props, } from './hooks/useDeleteGamedayV2Mutation';
@@ -178,12 +182,12 @@ export type { ListChaosV2ExperimentErrorResponse, ListChaosV2ExperimentOkRespons
178
182
  export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
179
183
  export type { ListExperimentsWithActiveInfrasMinimalNotificationErrorResponse, ListExperimentsWithActiveInfrasMinimalNotificationOkResponse, ListExperimentsWithActiveInfrasMinimalNotificationProps, ListExperimentsWithActiveInfrasMinimalNotificationQueryQueryParams, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
180
184
  export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
181
- export type { ListFaultInHubErrorResponse, ListFaultInHubOkResponse, ListFaultInHubProps, ListFaultInHubQueryQueryParams, } from './hooks/useListFaultInHubQuery';
182
- export { listFaultInHub, useListFaultInHubQuery } from './hooks/useListFaultInHubQuery';
183
185
  export type { ListFaultErrorResponse, ListFaultOkResponse, ListFaultProps, ListFaultQueryQueryParams, } from './hooks/useListFaultQuery';
184
186
  export { listFault, useListFaultQuery } from './hooks/useListFaultQuery';
185
187
  export type { ListFaultTemplateErrorResponse, ListFaultTemplateOkResponse, ListFaultTemplateProps, ListFaultTemplateQueryQueryParams, } from './hooks/useListFaultTemplateQuery';
186
188
  export { listFaultTemplate, useListFaultTemplateQuery } from './hooks/useListFaultTemplateQuery';
189
+ export type { ListFaultv2ErrorResponse, ListFaultv2OkResponse, ListFaultv2Props, ListFaultv2QueryQueryParams, } from './hooks/useListFaultv2Query';
190
+ export { listFaultv2, useListFaultv2Query } from './hooks/useListFaultv2Query';
187
191
  export type { ListFunctionErrorResponse, ListFunctionOkResponse, ListFunctionProps, ListFunctionQueryPathParams, ListFunctionQueryQueryParams, } from './hooks/useListFunctionQuery';
188
192
  export { listFunction, useListFunctionQuery } from './hooks/useListFunctionQuery';
189
193
  export type { ListGamedayRunV2ErrorResponse, ListGamedayRunV2OkResponse, ListGamedayRunV2Props, ListGamedayRunV2QueryPathParams, ListGamedayRunV2QueryQueryParams, } from './hooks/useListGamedayRunV2Query';
@@ -256,6 +260,8 @@ export type { UpdateChaosV2CronExperimentErrorResponse, UpdateChaosV2CronExperim
256
260
  export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
257
261
  export type { UpdateEmissaryErrorResponse, UpdateEmissaryMutationPathParams, UpdateEmissaryMutationProps, UpdateEmissaryMutationQueryParams, UpdateEmissaryOkResponse, UpdateEmissaryProps, UpdateEmissaryRequestBody, } from './hooks/useUpdateEmissaryMutation';
258
262
  export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
263
+ export type { UpdateFaultErrorResponse, UpdateFaultMutationPathParams, UpdateFaultMutationProps, UpdateFaultMutationQueryParams, UpdateFaultOkResponse, UpdateFaultProps, UpdateFaultRequestBody, } from './hooks/useUpdateFaultMutation';
264
+ export { updateFault, useUpdateFaultMutation } from './hooks/useUpdateFaultMutation';
259
265
  export type { UpdateFaultTemplateErrorResponse, UpdateFaultTemplateMutationPathParams, UpdateFaultTemplateMutationProps, UpdateFaultTemplateMutationQueryParams, UpdateFaultTemplateOkResponse, UpdateFaultTemplateProps, } from './hooks/useUpdateFaultTemplateMutation';
260
266
  export { updateFaultTemplate, useUpdateFaultTemplateMutation, } from './hooks/useUpdateFaultTemplateMutation';
261
267
  export type { UpdateGamedayRunPrerequisitesV2ErrorResponse, UpdateGamedayRunPrerequisitesV2MutationPathParams, UpdateGamedayRunPrerequisitesV2MutationProps, UpdateGamedayRunPrerequisitesV2MutationQueryParams, UpdateGamedayRunPrerequisitesV2OkResponse, UpdateGamedayRunPrerequisitesV2Props, UpdateGamedayRunPrerequisitesV2RequestBody, } from './hooks/useUpdateGamedayRunPrerequisitesV2Mutation';
@@ -346,10 +352,14 @@ export type { ChaosactiontemplateChaosActionTemplate } from './schemas/Chaosacti
346
352
  export type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from './schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
347
353
  export type { ChaosexperimentpipelineReferenceEntities } from './schemas/ChaosexperimentpipelineReferenceEntities';
348
354
  export type { ChaosfaultChaosFault } from './schemas/ChaosfaultChaosFault';
355
+ export type { ChaosfaultCreateFaultRequest } from './schemas/ChaosfaultCreateFaultRequest';
356
+ export type { ChaosfaultCreateFaultResponse } from './schemas/ChaosfaultCreateFaultResponse';
349
357
  export type { ChaosfaultFaultVariables } from './schemas/ChaosfaultFaultVariables';
350
358
  export type { ChaosfaultFaultYaml } from './schemas/ChaosfaultFaultYaml';
351
359
  export type { ChaosfaultGetFaultResponse } from './schemas/ChaosfaultGetFaultResponse';
352
360
  export type { ChaosfaultListFaultResponse } from './schemas/ChaosfaultListFaultResponse';
361
+ export type { ChaosfaultUpdateFaultRequest } from './schemas/ChaosfaultUpdateFaultRequest';
362
+ export type { ChaosfaultUpdateFaultResponse } from './schemas/ChaosfaultUpdateFaultResponse';
353
363
  export type { ChaosfaulttemplateActionTemplate } from './schemas/ChaosfaulttemplateActionTemplate';
354
364
  export type { ChaosfaulttemplateActionTemplateVariables } from './schemas/ChaosfaulttemplateActionTemplateVariables';
355
365
  export type { ChaosfaulttemplateChaosFaultTemplate } from './schemas/ChaosfaulttemplateChaosFaultTemplate';
@@ -637,7 +647,6 @@ export type { ProbeDatadogMetrics } from './schemas/ProbeDatadogMetrics';
637
647
  export type { ProbeDatadogMetricsTemplate } from './schemas/ProbeDatadogMetricsTemplate';
638
648
  export type { ProbeDatadogProbe } from './schemas/ProbeDatadogProbe';
639
649
  export type { ProbeDatadogProbeTemplate } from './schemas/ProbeDatadogProbeTemplate';
640
- export type { ProbeDynatraceApmProbeInputs } from './schemas/ProbeDynatraceApmProbeInputs';
641
650
  export type { ProbeDynatraceMetricsTemplate } from './schemas/ProbeDynatraceMetricsTemplate';
642
651
  export type { ProbeDynatraceProbe } from './schemas/ProbeDynatraceProbe';
643
652
  export type { ProbeDynatraceProbeTemplate } from './schemas/ProbeDynatraceProbeTemplate';
@@ -804,7 +813,6 @@ export type { V1DatadogSyntheticsTestType } from './schemas/V1DatadogSyntheticsT
804
813
  export type { V1DownwardApiProjection } from './schemas/V1DownwardApiProjection';
805
814
  export type { V1DownwardApiVolumeFile } from './schemas/V1DownwardApiVolumeFile';
806
815
  export type { V1DownwardApiVolumeSource } from './schemas/V1DownwardApiVolumeSource';
807
- export type { V1DynatraceApmProbeInputs } from './schemas/V1DynatraceApmProbeInputs';
808
816
  export type { V1DynatraceProbeInputs } from './schemas/V1DynatraceProbeInputs';
809
817
  export type { V1EmptyDirVolumeSource } from './schemas/V1EmptyDirVolumeSource';
810
818
  export type { V1EnvFromSource } from './schemas/V1EnvFromSource';
@@ -8,6 +8,7 @@ export { createActionTemplate, useCreateActionTemplateMutation, } from './hooks/
8
8
  export { createChaosExperimentExecutionNode, useCreateChaosExperimentExecutionNodeMutation, } from './hooks/useCreateChaosExperimentExecutionNodeMutation';
9
9
  export { createChaosExperimentPipeline, useCreateChaosExperimentPipelineMutation, } from './hooks/useCreateChaosExperimentPipelineMutation';
10
10
  export { createChaosHub, useCreateChaosHubMutation } from './hooks/useCreateChaosHubMutation';
11
+ export { createFault, useCreateFaultMutation } from './hooks/useCreateFaultMutation';
11
12
  export { createFaultTemplate, useCreateFaultTemplateMutation, } from './hooks/useCreateFaultTemplateMutation';
12
13
  export { createGamedayRunV2, useCreateGamedayRunV2Mutation, } from './hooks/useCreateGamedayRunV2Mutation';
13
14
  export { createGamedayV2, useCreateGamedayV2Mutation } from './hooks/useCreateGamedayV2Mutation';
@@ -19,6 +20,7 @@ export { createV2Onboarding, useCreateV2OnboardingMutation, } from './hooks/useC
19
20
  export { deleteAction, useDeleteActionMutation } from './hooks/useDeleteActionMutation';
20
21
  export { deleteActionTemplate, useDeleteActionTemplateMutation, } from './hooks/useDeleteActionTemplateMutation';
21
22
  export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './hooks/useDeleteChaosV2ExperimentMutation';
23
+ export { deleteFault, useDeleteFaultMutation } from './hooks/useDeleteFaultMutation';
22
24
  export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
23
25
  export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGamedayV2Mutation';
24
26
  export { deleteInfraV2, useDeleteInfraV2Mutation } from './hooks/useDeleteInfraV2Mutation';
@@ -88,9 +90,9 @@ export { listChaosEnabledInfraV2, useListChaosEnabledInfraV2Query, } from './hoo
88
90
  export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
89
91
  export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
90
92
  export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
91
- export { listFaultInHub, useListFaultInHubQuery } from './hooks/useListFaultInHubQuery';
92
93
  export { listFault, useListFaultQuery } from './hooks/useListFaultQuery';
93
94
  export { listFaultTemplate, useListFaultTemplateQuery } from './hooks/useListFaultTemplateQuery';
95
+ export { listFaultv2, useListFaultv2Query } from './hooks/useListFaultv2Query';
94
96
  export { listFunction, useListFunctionQuery } from './hooks/useListFunctionQuery';
95
97
  export { listGamedayRunV2, useListGamedayRunV2Query } from './hooks/useListGamedayRunV2Query';
96
98
  export { listGamedayV2, useListGamedayV2Query } from './hooks/useListGamedayV2Query';
@@ -127,6 +129,7 @@ export { updateChaosExperimentExecutionNode, useUpdateChaosExperimentExecutionNo
127
129
  export { updateChaosHub, useUpdateChaosHubMutation } from './hooks/useUpdateChaosHubMutation';
128
130
  export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
129
131
  export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
132
+ export { updateFault, useUpdateFaultMutation } from './hooks/useUpdateFaultMutation';
130
133
  export { updateFaultTemplate, useUpdateFaultTemplateMutation, } from './hooks/useUpdateFaultTemplateMutation';
131
134
  export { updateGamedayRunPrerequisitesV2, useUpdateGamedayRunPrerequisitesV2Mutation, } from './hooks/useUpdateGamedayRunPrerequisitesV2Mutation';
132
135
  export { updateGamedayRunStakeHolderActionsV2, useUpdateGamedayRunStakeHolderActionsV2Mutation, } from './hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation';
@@ -0,0 +1,17 @@
1
+ import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
2
+ import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
3
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
4
+ export interface ChaosfaultCreateFaultRequest {
5
+ category?: string[];
6
+ description?: string;
7
+ identity?: string;
8
+ infrastructureType?: string;
9
+ name?: string;
10
+ spec?: FaulttemplateSpec;
11
+ tags?: string[];
12
+ templateReference?: string;
13
+ type?: string;
14
+ updatedAt?: number;
15
+ values?: TemplateVariableMinimum[];
16
+ variables?: TemplateVariable[];
17
+ }
@@ -0,0 +1,18 @@
1
+ import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
2
+ import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
3
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
4
+ export interface ChaosfaultCreateFaultResponse {
5
+ category?: string[];
6
+ correlationID?: string;
7
+ description?: string;
8
+ identity?: string;
9
+ infrastructureType?: string;
10
+ name?: string;
11
+ spec?: FaulttemplateSpec;
12
+ tags?: string[];
13
+ templateReference?: string;
14
+ type?: string;
15
+ updatedAt?: number;
16
+ values?: TemplateVariableMinimum[];
17
+ variables?: TemplateVariable[];
18
+ }
@@ -0,0 +1,17 @@
1
+ import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
2
+ import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
3
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
4
+ export interface ChaosfaultUpdateFaultRequest {
5
+ category?: string[];
6
+ description?: string;
7
+ identity?: string;
8
+ infrastructureType?: string;
9
+ name?: string;
10
+ spec?: FaulttemplateSpec;
11
+ tags?: string[];
12
+ templateReference?: string;
13
+ type?: string;
14
+ updatedAt?: number;
15
+ values?: TemplateVariableMinimum[];
16
+ variables?: TemplateVariable[];
17
+ }
@@ -0,0 +1,18 @@
1
+ import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
2
+ import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
3
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
4
+ export interface ChaosfaultUpdateFaultResponse {
5
+ category?: string[];
6
+ correlationID?: string;
7
+ description?: string;
8
+ identity?: string;
9
+ infrastructureType?: string;
10
+ name?: string;
11
+ spec?: FaulttemplateSpec;
12
+ tags?: string[];
13
+ templateReference?: string;
14
+ type?: string;
15
+ updatedAt?: number;
16
+ values?: TemplateVariableMinimum[];
17
+ variables?: TemplateVariable[];
18
+ }
@@ -1,4 +1,3 @@
1
1
  export interface ExecutionActionData {
2
2
  name?: string;
3
- type?: string;
4
3
  }
@@ -1,13 +1,11 @@
1
1
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs';
2
2
  import type { ProbeComparatorTemplate } from '../schemas/ProbeComparatorTemplate';
3
- import type { ProbeDynatraceApmProbeInputs } from '../schemas/ProbeDynatraceApmProbeInputs';
4
3
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs';
5
4
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs';
6
5
  import type { ProbeApmProbeType } from '../schemas/ProbeApmProbeType';
7
6
  export interface ProbeApmProbeTemplate {
8
7
  appDynamicsProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs;
9
8
  comparator?: ProbeComparatorTemplate;
10
- dynatraceApmProbeInputs?: ProbeDynatraceApmProbeInputs;
11
9
  prometheusProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs;
12
10
  splunkObservabilityProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs;
13
11
  type?: ProbeApmProbeType;
@@ -1 +1 @@
1
- export type ProbeApmProbeType = 'AppDynamics' | 'Dynatrace' | 'Prometheus' | 'SplunkObservability';
1
+ export type ProbeApmProbeType = 'AppDynamics' | 'Prometheus' | 'SplunkObservability';
@@ -1,3 +1,3 @@
1
1
  export interface ResourceQuantity {
2
- Format?: string;
2
+ Format?: 'BinarySI' | 'DecimalExponent' | 'DecimalSI';
3
3
  }
@@ -1,6 +1,5 @@
1
1
  import type { V1AppDynamicsInputs } from '../schemas/V1AppDynamicsInputs';
2
2
  import type { V1ComparatorInfo } from '../schemas/V1ComparatorInfo';
3
- import type { V1DynatraceApmProbeInputs } from '../schemas/V1DynatraceApmProbeInputs';
4
3
  import type { V1PrometheusInputs } from '../schemas/V1PrometheusInputs';
5
4
  import type { V1SplunkObservabilityInputs } from '../schemas/V1SplunkObservabilityInputs';
6
5
  export interface V1ApmProbeInputs {
@@ -12,10 +11,6 @@ export interface V1ApmProbeInputs {
12
11
  * Comparator check for the correctness of the probe output
13
12
  */
14
13
  comparator?: V1ComparatorInfo;
15
- /**
16
- * DynatraceApmProbeInputs contains the inputs required for Dynatrace probe
17
- */
18
- dynatraceApmProbeInputs?: V1DynatraceApmProbeInputs;
19
14
  /**
20
15
  * PrometheusInputs contains the inputs required for prometheus probe
21
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,36 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ChaoshubListFaultsResponse } from '../schemas/ChaoshubListFaultsResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface ListFaultInHubQueryQueryParams {
6
- accountIdentifier: string;
7
- organizationIdentifier: string;
8
- projectIdentifier: string;
9
- hubIdentity?: string;
10
- infraType?: string;
11
- permissionsRequired?: string;
12
- entityType?: string;
13
- search: string;
14
- /**
15
- * @default 0
16
- */
17
- page: number;
18
- /**
19
- * @default 15
20
- */
21
- limit: number;
22
- }
23
- export type ListFaultInHubOkResponse = ChaoshubListFaultsResponse;
24
- export type ListFaultInHubErrorResponse = ApiRestError;
25
- export interface ListFaultInHubProps extends Omit<FetcherOptions<ListFaultInHubQueryQueryParams, unknown>, 'url'> {
26
- queryParams: ListFaultInHubQueryQueryParams;
27
- }
28
- export interface ListFaultInHubResponseContainer {
29
- body: ListFaultInHubOkResponse;
30
- headers: Headers;
31
- }
32
- export declare function listFaultInHub(props: ListFaultInHubProps): Promise<ListFaultInHubResponseContainer>;
33
- /**
34
- * Lists faults in a chaos hub based on given filters
35
- */
36
- export declare function useListFaultInHubQuery(props: ListFaultInHubProps, options?: Omit<UseQueryOptions<ListFaultInHubResponseContainer, ListFaultInHubErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultInHubResponseContainer, ApiRestError>;
@@ -1,14 +0,0 @@
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 listFaultInHub(props) {
7
- return fetcher(Object.assign({ url: `/rest/hubs/faults`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Lists faults in a chaos hub based on given filters
11
- */
12
- export function useListFaultInHubQuery(props, options) {
13
- return useQuery(['listFaultInHub', props.queryParams], ({ signal }) => listFaultInHub(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,6 +0,0 @@
1
- import type { ProbeDynatraceMetricsTemplate } from '../schemas/ProbeDynatraceMetricsTemplate';
2
- export interface ProbeDynatraceApmProbeInputs {
3
- connectorID?: string;
4
- durationInMin?: {};
5
- metrics?: ProbeDynatraceMetricsTemplate;
6
- }
@@ -1,19 +0,0 @@
1
- import type { V1Metrics } from '../schemas/V1Metrics';
2
- export interface V1DynatraceApmProbeInputs {
3
- /**
4
- * AuthSecretName secret name for the authentication
5
- */
6
- authSecretName?: string;
7
- /**
8
- * DurationInMin contains the duration in minutes
9
- */
10
- durationInMin?: number;
11
- /**
12
- * Endpoint for the Splunk Observability probe
13
- */
14
- endpoint?: string;
15
- /**
16
- * Raw metrcis details of the Dynatrace probe
17
- */
18
- metrics?: V1Metrics;
19
- }