@harnessio/react-chaos-manager-client 1.49.0 → 1.49.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/chaos-manager/src/services/hooks/useAbortDrComponentMutation.d.ts +30 -0
  2. package/dist/chaos-manager/src/services/hooks/useAbortDrComponentMutation.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useCreateDrComponentNodesMutation.d.ts +32 -0
  4. package/dist/chaos-manager/src/services/hooks/useCreateDrComponentNodesMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useCreateDrPipelineMutation.d.ts +28 -0
  6. package/dist/chaos-manager/src/services/hooks/useCreateDrPipelineMutation.js +14 -0
  7. package/dist/chaos-manager/src/services/hooks/useGetDrComponentExecutionViewQuery.d.ts +28 -0
  8. package/dist/chaos-manager/src/services/hooks/useGetDrComponentExecutionViewQuery.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useGetDrComponentVariableQuery.d.ts +27 -0
  10. package/dist/chaos-manager/src/services/hooks/useGetDrComponentVariableQuery.js +14 -0
  11. package/dist/chaos-manager/src/services/hooks/useListDrComponentNodesQuery.d.ts +29 -0
  12. package/dist/chaos-manager/src/services/hooks/useListDrComponentNodesQuery.js +14 -0
  13. package/dist/chaos-manager/src/services/hooks/useListDrTestsQuery.d.ts +27 -0
  14. package/dist/chaos-manager/src/services/hooks/useListDrTestsQuery.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useUpdateDrComponentNodeMutation.d.ts +34 -0
  16. package/dist/chaos-manager/src/services/hooks/useUpdateDrComponentNodeMutation.js +14 -0
  17. package/dist/chaos-manager/src/services/index.d.ts +45 -0
  18. package/dist/chaos-manager/src/services/index.js +8 -0
  19. package/dist/chaos-manager/src/services/schemas/DrComponentActionData.d.ts +4 -0
  20. package/dist/chaos-manager/src/services/schemas/DrComponentActionData.js +4 -0
  21. package/dist/chaos-manager/src/services/schemas/DrComponentChaosData.d.ts +8 -0
  22. package/dist/chaos-manager/src/services/schemas/DrComponentChaosData.js +1 -0
  23. package/dist/chaos-manager/src/services/schemas/DrComponentCommandProbe.d.ts +3 -0
  24. package/dist/chaos-manager/src/services/schemas/DrComponentCommandProbe.js +4 -0
  25. package/dist/chaos-manager/src/services/schemas/DrComponentDrComponentExecutionNode.d.ts +26 -0
  26. package/dist/chaos-manager/src/services/schemas/DrComponentDrComponentExecutionNode.js +1 -0
  27. package/dist/chaos-manager/src/services/schemas/DrComponentErrorData.d.ts +4 -0
  28. package/dist/chaos-manager/src/services/schemas/DrComponentErrorData.js +4 -0
  29. package/dist/chaos-manager/src/services/schemas/DrComponentFaultData.d.ts +8 -0
  30. package/dist/chaos-manager/src/services/schemas/DrComponentFaultData.js +1 -0
  31. package/dist/chaos-manager/src/services/schemas/DrComponentHelperPodDetails.d.ts +4 -0
  32. package/dist/chaos-manager/src/services/schemas/DrComponentHelperPodDetails.js +4 -0
  33. package/dist/chaos-manager/src/services/schemas/DrComponentHttpProbe.d.ts +5 -0
  34. package/dist/chaos-manager/src/services/schemas/DrComponentHttpProbe.js +4 -0
  35. package/dist/chaos-manager/src/services/schemas/DrComponentInfraType.d.ts +1 -0
  36. package/dist/chaos-manager/src/services/schemas/DrComponentInfraType.js +4 -0
  37. package/dist/chaos-manager/src/services/schemas/DrComponentProbeData.d.ts +7 -0
  38. package/dist/chaos-manager/src/services/schemas/DrComponentProbeData.js +1 -0
  39. package/dist/chaos-manager/src/services/schemas/DrComponentProbeIterations.d.ts +11 -0
  40. package/dist/chaos-manager/src/services/schemas/DrComponentProbeIterations.js +1 -0
  41. package/dist/chaos-manager/src/services/schemas/DrComponentPromProbe.d.ts +3 -0
  42. package/dist/chaos-manager/src/services/schemas/DrComponentPromProbe.js +4 -0
  43. package/dist/chaos-manager/src/services/schemas/DrComponentStatus.d.ts +1 -0
  44. package/dist/chaos-manager/src/services/schemas/DrComponentStatus.js +4 -0
  45. package/dist/chaos-manager/src/services/schemas/DrComponentType.d.ts +1 -0
  46. package/dist/chaos-manager/src/services/schemas/DrComponentType.js +4 -0
  47. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentRequest.d.ts +4 -0
  48. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentRequest.js +4 -0
  49. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentResponse.d.ts +5 -0
  50. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentResponse.js +1 -0
  51. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentResponseData.d.ts +4 -0
  52. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentResponseData.js +4 -0
  53. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineRequest.d.ts +9 -0
  54. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineRequest.js +4 -0
  55. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineResponse.d.ts +5 -0
  56. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineResponse.js +1 -0
  57. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineResponseData.d.ts +4 -0
  58. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineResponseData.js +4 -0
  59. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTest.d.ts +11 -0
  60. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTest.js +1 -0
  61. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestPipelineInfo.d.ts +7 -0
  62. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestPipelineInfo.js +1 -0
  63. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestRunInfo.d.ts +8 -0
  64. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestRunInfo.js +1 -0
  65. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestSpec.d.ts +4 -0
  66. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestSpec.js +1 -0
  67. package/dist/chaos-manager/src/services/schemas/DrcomponentsGetDrComponentVariableData.d.ts +5 -0
  68. package/dist/chaos-manager/src/services/schemas/DrcomponentsGetDrComponentVariableData.js +1 -0
  69. package/dist/chaos-manager/src/services/schemas/DrcomponentsGetDrComponentVariableResponse.d.ts +4 -0
  70. package/dist/chaos-manager/src/services/schemas/DrcomponentsGetDrComponentVariableResponse.js +1 -0
  71. package/dist/chaos-manager/src/services/schemas/DrcomponentsListDrTestsResponse.d.ts +4 -0
  72. package/dist/chaos-manager/src/services/schemas/DrcomponentsListDrTestsResponse.js +1 -0
  73. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerModelsDrcomponentnodesDrComponentExecutionResponse.d.ts +9 -0
  74. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerModelsDrcomponentnodesDrComponentExecutionResponse.js +1 -0
  75. package/dist/chaos-manager/src/services/schemas/PipelinesExecutorInfo.d.ts +5 -0
  76. package/dist/chaos-manager/src/services/schemas/PipelinesExecutorInfo.js +4 -0
  77. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { DrcomponentsAbortDrComponentResponse } from '../schemas/DrcomponentsAbortDrComponentResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { DrcomponentsAbortDrComponentRequest } from '../schemas/DrcomponentsAbortDrComponentRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface AbortDrComponentMutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ organizationIdentifier?: string;
10
+ pipelineExecutionId?: string;
11
+ pipelineIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export type AbortDrComponentRequestBody = DrcomponentsAbortDrComponentRequest;
15
+ export type AbortDrComponentOkResponse = DrcomponentsAbortDrComponentResponse;
16
+ export type AbortDrComponentErrorResponse = ApiRestError;
17
+ export interface AbortDrComponentProps extends Omit<FetcherOptions<AbortDrComponentMutationQueryParams, AbortDrComponentRequestBody>, 'url'> {
18
+ queryParams: AbortDrComponentMutationQueryParams;
19
+ body: AbortDrComponentRequestBody;
20
+ }
21
+ export interface AbortDrComponentResponseContainer {
22
+ body: AbortDrComponentOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function abortDrComponent(props: AbortDrComponentProps): Promise<AbortDrComponentResponseContainer>;
26
+ export type AbortDrComponentMutationProps<T extends keyof AbortDrComponentProps> = Omit<AbortDrComponentProps, T> & Partial<Pick<AbortDrComponentProps, T>>;
27
+ /**
28
+ * aborts a running DR component execution
29
+ */
30
+ export declare function useAbortDrComponentMutation<T extends keyof AbortDrComponentProps>(props: Pick<Partial<AbortDrComponentProps>, T>, options?: Omit<UseMutationOptions<AbortDrComponentResponseContainer, AbortDrComponentErrorResponse, AbortDrComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AbortDrComponentResponseContainer, ApiRestError, AbortDrComponentMutationProps<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 abortDrComponent(props) {
7
+ return fetcher(Object.assign({ url: `/internalv3/integrations/abort-dr-component`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * aborts a running DR component execution
11
+ */
12
+ export function useAbortDrComponentMutation(props, options) {
13
+ return useMutation((mutateProps) => abortDrComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { DrComponentDrComponentExecutionNode } from '../schemas/DrComponentDrComponentExecutionNode';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface CreateDrComponentNodesMutationPathParams {
7
+ identity: string;
8
+ runID: string;
9
+ }
10
+ export interface CreateDrComponentNodesMutationQueryParams {
11
+ accountIdentifier: string;
12
+ correlationID?: string;
13
+ organizationIdentifier?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export type CreateDrComponentNodesRequestBody = DrComponentDrComponentExecutionNode[];
17
+ export type CreateDrComponentNodesOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
18
+ export type CreateDrComponentNodesErrorResponse = ApiRestError;
19
+ export interface CreateDrComponentNodesProps extends CreateDrComponentNodesMutationPathParams, Omit<FetcherOptions<CreateDrComponentNodesMutationQueryParams, CreateDrComponentNodesRequestBody>, 'url'> {
20
+ queryParams: CreateDrComponentNodesMutationQueryParams;
21
+ body: CreateDrComponentNodesRequestBody;
22
+ }
23
+ export interface CreateDrComponentNodesResponseContainer {
24
+ body: CreateDrComponentNodesOkResponse;
25
+ headers: Headers;
26
+ }
27
+ export declare function createDrComponentNodes(props: CreateDrComponentNodesProps): Promise<CreateDrComponentNodesResponseContainer>;
28
+ export type CreateDrComponentNodesMutationProps<T extends keyof CreateDrComponentNodesProps> = Omit<CreateDrComponentNodesProps, T> & Partial<Pick<CreateDrComponentNodesProps, T>>;
29
+ /**
30
+ * creates the DR component nodes
31
+ */
32
+ export declare function useCreateDrComponentNodesMutation<T extends keyof CreateDrComponentNodesProps>(props: Pick<Partial<CreateDrComponentNodesProps>, T>, options?: Omit<UseMutationOptions<CreateDrComponentNodesResponseContainer, CreateDrComponentNodesErrorResponse, CreateDrComponentNodesMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateDrComponentNodesResponseContainer, ApiRestError, CreateDrComponentNodesMutationProps<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 createDrComponentNodes(props) {
7
+ return fetcher(Object.assign({ url: `/internalv3/dr-components/nodes/${props.identity}/${props.runID}`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * creates the DR component nodes
11
+ */
12
+ export function useCreateDrComponentNodesMutation(props, options) {
13
+ return useMutation((mutateProps) => createDrComponentNodes(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { DrcomponentsCreateDrPipelineResponse } from '../schemas/DrcomponentsCreateDrPipelineResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { DrcomponentsCreateDrPipelineRequest } from '../schemas/DrcomponentsCreateDrPipelineRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface CreateDrPipelineMutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ organizationIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export type CreateDrPipelineRequestBody = DrcomponentsCreateDrPipelineRequest;
13
+ export type CreateDrPipelineOkResponse = DrcomponentsCreateDrPipelineResponse;
14
+ export type CreateDrPipelineErrorResponse = ApiRestError;
15
+ export interface CreateDrPipelineProps extends Omit<FetcherOptions<CreateDrPipelineMutationQueryParams, CreateDrPipelineRequestBody>, 'url'> {
16
+ queryParams: CreateDrPipelineMutationQueryParams;
17
+ body: CreateDrPipelineRequestBody;
18
+ }
19
+ export interface CreateDrPipelineResponseContainer {
20
+ body: CreateDrPipelineOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function createDrPipeline(props: CreateDrPipelineProps): Promise<CreateDrPipelineResponseContainer>;
24
+ export type CreateDrPipelineMutationProps<T extends keyof CreateDrPipelineProps> = Omit<CreateDrPipelineProps, T> & Partial<Pick<CreateDrPipelineProps, T>>;
25
+ /**
26
+ * creates a pipeline with DR stage for disaster recovery testing
27
+ */
28
+ export declare function useCreateDrPipelineMutation<T extends keyof CreateDrPipelineProps>(props: Pick<Partial<CreateDrPipelineProps>, T>, options?: Omit<UseMutationOptions<CreateDrPipelineResponseContainer, CreateDrPipelineErrorResponse, CreateDrPipelineMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateDrPipelineResponseContainer, ApiRestError, CreateDrPipelineMutationProps<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 createDrPipeline(props) {
7
+ return fetcher(Object.assign({ url: `/v3/dr-components/create-dr-pipeline`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * creates a pipeline with DR stage for disaster recovery testing
11
+ */
12
+ export function useCreateDrPipelineMutation(props, options) {
13
+ return useMutation((mutateProps) => createDrPipeline(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { GithubComHarnessHceSaasGraphqlServerModelsDrcomponentnodesDrComponentExecutionResponse } from '../schemas/GithubComHarnessHceSaasGraphqlServerModelsDrcomponentnodesDrComponentExecutionResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetDrComponentExecutionViewQueryPathParams {
6
+ identity: string;
7
+ runID: string;
8
+ }
9
+ export interface GetDrComponentExecutionViewQueryQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ organizationIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export type GetDrComponentExecutionViewOkResponse = GithubComHarnessHceSaasGraphqlServerModelsDrcomponentnodesDrComponentExecutionResponse;
16
+ export type GetDrComponentExecutionViewErrorResponse = ApiRestError;
17
+ export interface GetDrComponentExecutionViewProps extends GetDrComponentExecutionViewQueryPathParams, Omit<FetcherOptions<GetDrComponentExecutionViewQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: GetDrComponentExecutionViewQueryQueryParams;
19
+ }
20
+ export interface GetDrComponentExecutionViewResponseContainer {
21
+ body: GetDrComponentExecutionViewOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function getDrComponentExecutionView(props: GetDrComponentExecutionViewProps): Promise<GetDrComponentExecutionViewResponseContainer>;
25
+ /**
26
+ * gets the dr component execution view
27
+ */
28
+ export declare function useGetDrComponentExecutionViewQuery(props: GetDrComponentExecutionViewProps, options?: Omit<UseQueryOptions<GetDrComponentExecutionViewResponseContainer, GetDrComponentExecutionViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDrComponentExecutionViewResponseContainer, 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 getDrComponentExecutionView(props) {
7
+ return fetcher(Object.assign({ url: `/v3/dr-components/execution-view/${props.identity}/${props.runID}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * gets the dr component execution view
11
+ */
12
+ export function useGetDrComponentExecutionViewQuery(props, options) {
13
+ return useQuery(['getDRComponentExecutionView', props.identity, props.runID, props.queryParams], ({ signal }) => getDrComponentExecutionView(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DrcomponentsGetDrComponentVariableResponse } from '../schemas/DrcomponentsGetDrComponentVariableResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetDrComponentVariableQueryQueryParams {
6
+ accountIdentifier: string;
7
+ correlationID?: string;
8
+ hubReference?: string;
9
+ identifier?: string;
10
+ organizationIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ type?: 'Action' | 'Fault' | 'Probe';
13
+ }
14
+ export type GetDrComponentVariableOkResponse = DrcomponentsGetDrComponentVariableResponse;
15
+ export type GetDrComponentVariableErrorResponse = ApiRestError;
16
+ export interface GetDrComponentVariableProps extends Omit<FetcherOptions<GetDrComponentVariableQueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetDrComponentVariableQueryQueryParams;
18
+ }
19
+ export interface GetDrComponentVariableResponseContainer {
20
+ body: GetDrComponentVariableOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function getDrComponentVariable(props: GetDrComponentVariableProps): Promise<GetDrComponentVariableResponseContainer>;
24
+ /**
25
+ * gets DR component variables (faults, probes, actions)
26
+ */
27
+ export declare function useGetDrComponentVariableQuery(props: GetDrComponentVariableProps, options?: Omit<UseQueryOptions<GetDrComponentVariableResponseContainer, GetDrComponentVariableErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDrComponentVariableResponseContainer, 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 getDrComponentVariable(props) {
7
+ return fetcher(Object.assign({ url: `/v3/integrations/get-dr-component-variable`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * gets DR component variables (faults, probes, actions)
11
+ */
12
+ export function useGetDrComponentVariableQuery(props, options) {
13
+ return useQuery(['getDRComponentVariable', props.queryParams], ({ signal }) => getDrComponentVariable(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,29 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DrComponentDrComponentExecutionNode } from '../schemas/DrComponentDrComponentExecutionNode';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListDrComponentNodesQueryPathParams {
6
+ identity: string;
7
+ runID: string;
8
+ notifyId: string;
9
+ }
10
+ export interface ListDrComponentNodesQueryQueryParams {
11
+ accountIdentifier: string;
12
+ correlationID?: string;
13
+ organizationIdentifier?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export type ListDrComponentNodesOkResponse = DrComponentDrComponentExecutionNode[];
17
+ export type ListDrComponentNodesErrorResponse = ApiRestError;
18
+ export interface ListDrComponentNodesProps extends ListDrComponentNodesQueryPathParams, Omit<FetcherOptions<ListDrComponentNodesQueryQueryParams, unknown>, 'url'> {
19
+ queryParams: ListDrComponentNodesQueryQueryParams;
20
+ }
21
+ export interface ListDrComponentNodesResponseContainer {
22
+ body: ListDrComponentNodesOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function listDrComponentNodes(props: ListDrComponentNodesProps): Promise<ListDrComponentNodesResponseContainer>;
26
+ /**
27
+ * list the DR component nodes
28
+ */
29
+ export declare function useListDrComponentNodesQuery(props: ListDrComponentNodesProps, options?: Omit<UseQueryOptions<ListDrComponentNodesResponseContainer, ListDrComponentNodesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDrComponentNodesResponseContainer, 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 listDrComponentNodes(props) {
7
+ return fetcher(Object.assign({ url: `/internalv3/dr-components/nodes/${props.identity}/${props.runID}/${props.notifyId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * list the DR component nodes
11
+ */
12
+ export function useListDrComponentNodesQuery(props, options) {
13
+ return useQuery(['listDRComponentNodes', props.identity, props.runID, props.notifyId, props.queryParams], ({ signal }) => listDrComponentNodes(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DrcomponentsListDrTestsResponse } from '../schemas/DrcomponentsListDrTestsResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListDrTestsQueryQueryParams {
6
+ accountIdentifier: string;
7
+ correlationID?: string;
8
+ organizationIdentifier?: string;
9
+ page?: number;
10
+ projectIdentifier?: string;
11
+ size?: number;
12
+ sort?: string;
13
+ }
14
+ export type ListDrTestsOkResponse = DrcomponentsListDrTestsResponse;
15
+ export type ListDrTestsErrorResponse = ApiRestError;
16
+ export interface ListDrTestsProps extends Omit<FetcherOptions<ListDrTestsQueryQueryParams, unknown>, 'url'> {
17
+ queryParams: ListDrTestsQueryQueryParams;
18
+ }
19
+ export interface ListDrTestsResponseContainer {
20
+ body: ListDrTestsOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function listDrTests(props: ListDrTestsProps): Promise<ListDrTestsResponseContainer>;
24
+ /**
25
+ * lists all DR tests (DRTest stages) from pipelines
26
+ */
27
+ export declare function useListDrTestsQuery(props: ListDrTestsProps, options?: Omit<UseQueryOptions<ListDrTestsResponseContainer, ListDrTestsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDrTestsResponseContainer, 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 listDrTests(props) {
7
+ return fetcher(Object.assign({ url: `/v3/dr-components/list-dr-tests`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * lists all DR tests (DRTest stages) from pipelines
11
+ */
12
+ export function useListDrTestsQuery(props, options) {
13
+ return useQuery(['listDRTests', props.queryParams], ({ signal }) => listDrTests(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,34 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { DrComponentDrComponentExecutionNode } from '../schemas/DrComponentDrComponentExecutionNode';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface UpdateDrComponentNodeMutationPathParams {
7
+ identity: string;
8
+ runID: string;
9
+ notifyId: string;
10
+ name: string;
11
+ }
12
+ export interface UpdateDrComponentNodeMutationQueryParams {
13
+ accountIdentifier: string;
14
+ correlationID?: string;
15
+ organizationIdentifier?: string;
16
+ projectIdentifier?: string;
17
+ }
18
+ export type UpdateDrComponentNodeRequestBody = DrComponentDrComponentExecutionNode;
19
+ export type UpdateDrComponentNodeOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
20
+ export type UpdateDrComponentNodeErrorResponse = ApiRestError;
21
+ export interface UpdateDrComponentNodeProps extends UpdateDrComponentNodeMutationPathParams, Omit<FetcherOptions<UpdateDrComponentNodeMutationQueryParams, UpdateDrComponentNodeRequestBody>, 'url'> {
22
+ queryParams: UpdateDrComponentNodeMutationQueryParams;
23
+ body: UpdateDrComponentNodeRequestBody;
24
+ }
25
+ export interface UpdateDrComponentNodeResponseContainer {
26
+ body: UpdateDrComponentNodeOkResponse;
27
+ headers: Headers;
28
+ }
29
+ export declare function updateDrComponentNode(props: UpdateDrComponentNodeProps): Promise<UpdateDrComponentNodeResponseContainer>;
30
+ export type UpdateDrComponentNodeMutationProps<T extends keyof UpdateDrComponentNodeProps> = Omit<UpdateDrComponentNodeProps, T> & Partial<Pick<UpdateDrComponentNodeProps, T>>;
31
+ /**
32
+ * updates the DR component node
33
+ */
34
+ export declare function useUpdateDrComponentNodeMutation<T extends keyof UpdateDrComponentNodeProps>(props: Pick<Partial<UpdateDrComponentNodeProps>, T>, options?: Omit<UseMutationOptions<UpdateDrComponentNodeResponseContainer, UpdateDrComponentNodeErrorResponse, UpdateDrComponentNodeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateDrComponentNodeResponseContainer, ApiRestError, UpdateDrComponentNodeMutationProps<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 updateDrComponentNode(props) {
7
+ return fetcher(Object.assign({ url: `/internalv3/dr-components/nodes/${props.identity}/${props.runID}/${props.notifyId}/${props.name}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * updates the DR component node
11
+ */
12
+ export function useUpdateDrComponentNodeMutation(props, options) {
13
+ return useMutation((mutateProps) => updateDrComponentNode(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -1,3 +1,5 @@
1
+ export type { AbortDrComponentErrorResponse, AbortDrComponentMutationProps, AbortDrComponentMutationQueryParams, AbortDrComponentOkResponse, AbortDrComponentProps, AbortDrComponentRequestBody, } from './hooks/useAbortDrComponentMutation';
2
+ export { abortDrComponent, useAbortDrComponentMutation } from './hooks/useAbortDrComponentMutation';
1
3
  export type { AddNoteErrorResponse, AddNoteMutationProps, AddNoteMutationQueryParams, AddNoteOkResponse, AddNoteProps, AddNoteRequestBody, } from './hooks/useAddNoteMutation';
2
4
  export { addNote, useAddNoteMutation } from './hooks/useAddNoteMutation';
3
5
  export type { BulkExperimentDeleteErrorResponse, BulkExperimentDeleteMutationProps, BulkExperimentDeleteMutationQueryParams, BulkExperimentDeleteOkResponse, BulkExperimentDeleteProps, BulkExperimentDeleteRequestBody, } from './hooks/useBulkExperimentDeleteMutation';
@@ -24,6 +26,10 @@ export type { CreateChaosHubErrorResponse, CreateChaosHubMutationProps, CreateCh
24
26
  export { createChaosHub, useCreateChaosHubMutation } from './hooks/useCreateChaosHubMutation';
25
27
  export type { CreateConditionErrorResponse, CreateConditionMutationProps, CreateConditionMutationQueryParams, CreateConditionOkResponse, CreateConditionProps, CreateConditionRequestBody, } from './hooks/useCreateConditionMutation';
26
28
  export { createCondition, useCreateConditionMutation } from './hooks/useCreateConditionMutation';
29
+ export type { CreateDrComponentNodesErrorResponse, CreateDrComponentNodesMutationPathParams, CreateDrComponentNodesMutationProps, CreateDrComponentNodesMutationQueryParams, CreateDrComponentNodesOkResponse, CreateDrComponentNodesProps, CreateDrComponentNodesRequestBody, } from './hooks/useCreateDrComponentNodesMutation';
30
+ export { createDrComponentNodes, useCreateDrComponentNodesMutation, } from './hooks/useCreateDrComponentNodesMutation';
31
+ export type { CreateDrPipelineErrorResponse, CreateDrPipelineMutationProps, CreateDrPipelineMutationQueryParams, CreateDrPipelineOkResponse, CreateDrPipelineProps, CreateDrPipelineRequestBody, } from './hooks/useCreateDrPipelineMutation';
32
+ export { createDrPipeline, useCreateDrPipelineMutation } from './hooks/useCreateDrPipelineMutation';
27
33
  export type { CreateExperimentFromTemplateErrorResponse, CreateExperimentFromTemplateMutationPathParams, CreateExperimentFromTemplateMutationProps, CreateExperimentFromTemplateMutationQueryParams, CreateExperimentFromTemplateOkResponse, CreateExperimentFromTemplateProps, CreateExperimentFromTemplateRequestBody, } from './hooks/useCreateExperimentFromTemplateMutation';
28
34
  export { createExperimentFromTemplate, useCreateExperimentFromTemplateMutation, } from './hooks/useCreateExperimentFromTemplateMutation';
29
35
  export type { CreateExperimentTemplateErrorResponse, CreateExperimentTemplateMutationProps, CreateExperimentTemplateMutationQueryParams, CreateExperimentTemplateOkResponse, CreateExperimentTemplateProps, CreateExperimentTemplateRequestBody, } from './hooks/useCreateExperimentTemplateMutation';
@@ -134,6 +140,10 @@ export type { GetConditionErrorResponse, GetConditionOkResponse, GetConditionPro
134
140
  export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
135
141
  export type { GetConnectorForInfraErrorResponse, GetConnectorForInfraOkResponse, GetConnectorForInfraProps, GetConnectorForInfraQueryPathParams, GetConnectorForInfraQueryQueryParams, } from './hooks/useGetConnectorForInfraQuery';
136
142
  export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
143
+ export type { GetDrComponentExecutionViewErrorResponse, GetDrComponentExecutionViewOkResponse, GetDrComponentExecutionViewProps, GetDrComponentExecutionViewQueryPathParams, GetDrComponentExecutionViewQueryQueryParams, } from './hooks/useGetDrComponentExecutionViewQuery';
144
+ export { getDrComponentExecutionView, useGetDrComponentExecutionViewQuery, } from './hooks/useGetDrComponentExecutionViewQuery';
145
+ export type { GetDrComponentVariableErrorResponse, GetDrComponentVariableOkResponse, GetDrComponentVariableProps, GetDrComponentVariableQueryQueryParams, } from './hooks/useGetDrComponentVariableQuery';
146
+ export { getDrComponentVariable, useGetDrComponentVariableQuery, } from './hooks/useGetDrComponentVariableQuery';
137
147
  export type { GetExperimentHelperImageVersionErrorResponse, GetExperimentHelperImageVersionOkResponse, GetExperimentHelperImageVersionProps, } from './hooks/useGetExperimentHelperImageVersionQuery';
138
148
  export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
139
149
  export type { GetExperimentOrTemplateVariableErrorResponse, GetExperimentOrTemplateVariableOkResponse, GetExperimentOrTemplateVariableProps, GetExperimentOrTemplateVariableQueryQueryParams, } from './hooks/useGetExperimentOrTemplateVariableQuery';
@@ -252,6 +262,10 @@ export type { ListChaosV2ExperimentErrorResponse, ListChaosV2ExperimentOkRespons
252
262
  export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
253
263
  export type { ListConditionErrorResponse, ListConditionOkResponse, ListConditionProps, ListConditionQueryQueryParams, } from './hooks/useListConditionQuery';
254
264
  export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
265
+ export type { ListDrComponentNodesErrorResponse, ListDrComponentNodesOkResponse, ListDrComponentNodesProps, ListDrComponentNodesQueryPathParams, ListDrComponentNodesQueryQueryParams, } from './hooks/useListDrComponentNodesQuery';
266
+ export { listDrComponentNodes, useListDrComponentNodesQuery, } from './hooks/useListDrComponentNodesQuery';
267
+ export type { ListDrTestsErrorResponse, ListDrTestsOkResponse, ListDrTestsProps, ListDrTestsQueryQueryParams, } from './hooks/useListDrTestsQuery';
268
+ export { listDrTests, useListDrTestsQuery } from './hooks/useListDrTestsQuery';
255
269
  export type { ListExperimentMetadataErrorResponse, ListExperimentMetadataOkResponse, ListExperimentMetadataProps, ListExperimentMetadataQueryQueryParams, ListExperimentMetadataRequestBody, } from './hooks/useListExperimentMetadataQuery';
256
270
  export { listExperimentMetadata, useListExperimentMetadataQuery, } from './hooks/useListExperimentMetadataQuery';
257
271
  export type { ListExperimentOrTemplateErrorResponse, ListExperimentOrTemplateOkResponse, ListExperimentOrTemplateProps, ListExperimentOrTemplateQueryQueryParams, } from './hooks/useListExperimentOrTemplateQuery';
@@ -372,6 +386,8 @@ export type { UpdateChaosV2CronExperimentErrorResponse, UpdateChaosV2CronExperim
372
386
  export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
373
387
  export type { UpdateConditionErrorResponse, UpdateConditionMutationPathParams, UpdateConditionMutationProps, UpdateConditionMutationQueryParams, UpdateConditionOkResponse, UpdateConditionProps, UpdateConditionRequestBody, } from './hooks/useUpdateConditionMutation';
374
388
  export { updateCondition, useUpdateConditionMutation } from './hooks/useUpdateConditionMutation';
389
+ export type { UpdateDrComponentNodeErrorResponse, UpdateDrComponentNodeMutationPathParams, UpdateDrComponentNodeMutationProps, UpdateDrComponentNodeMutationQueryParams, UpdateDrComponentNodeOkResponse, UpdateDrComponentNodeProps, UpdateDrComponentNodeRequestBody, } from './hooks/useUpdateDrComponentNodeMutation';
390
+ export { updateDrComponentNode, useUpdateDrComponentNodeMutation, } from './hooks/useUpdateDrComponentNodeMutation';
375
391
  export type { UpdateEmissaryErrorResponse, UpdateEmissaryMutationPathParams, UpdateEmissaryMutationProps, UpdateEmissaryMutationQueryParams, UpdateEmissaryOkResponse, UpdateEmissaryProps, UpdateEmissaryRequestBody, } from './hooks/useUpdateEmissaryMutation';
376
392
  export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
377
393
  export type { UpdateExperimentTemplateErrorResponse, UpdateExperimentTemplateMutationPathParams, UpdateExperimentTemplateMutationProps, UpdateExperimentTemplateMutationQueryParams, UpdateExperimentTemplateOkResponse, UpdateExperimentTemplateProps, UpdateExperimentTemplateRequestBody, } from './hooks/useUpdateExperimentTemplateMutation';
@@ -596,6 +612,33 @@ export type { DatabaseResourceList } from './schemas/DatabaseResourceList';
596
612
  export type { DatabaseResourceRequirements } from './schemas/DatabaseResourceRequirements';
597
613
  export type { DatabaseServiceCollection } from './schemas/DatabaseServiceCollection';
598
614
  export type { DatabaseServiceIdentity } from './schemas/DatabaseServiceIdentity';
615
+ export type { DrComponentActionData } from './schemas/DrComponentActionData';
616
+ export type { DrComponentChaosData } from './schemas/DrComponentChaosData';
617
+ export type { DrComponentCommandProbe } from './schemas/DrComponentCommandProbe';
618
+ export type { DrComponentDrComponentExecutionNode } from './schemas/DrComponentDrComponentExecutionNode';
619
+ export type { DrComponentErrorData } from './schemas/DrComponentErrorData';
620
+ export type { DrComponentFaultData } from './schemas/DrComponentFaultData';
621
+ export type { DrComponentHelperPodDetails } from './schemas/DrComponentHelperPodDetails';
622
+ export type { DrComponentHttpProbe } from './schemas/DrComponentHttpProbe';
623
+ export type { DrComponentInfraType } from './schemas/DrComponentInfraType';
624
+ export type { DrComponentProbeData } from './schemas/DrComponentProbeData';
625
+ export type { DrComponentProbeIterations } from './schemas/DrComponentProbeIterations';
626
+ export type { DrComponentPromProbe } from './schemas/DrComponentPromProbe';
627
+ export type { DrComponentStatus } from './schemas/DrComponentStatus';
628
+ export type { DrComponentType } from './schemas/DrComponentType';
629
+ export type { DrcomponentsAbortDrComponentRequest } from './schemas/DrcomponentsAbortDrComponentRequest';
630
+ export type { DrcomponentsAbortDrComponentResponse } from './schemas/DrcomponentsAbortDrComponentResponse';
631
+ export type { DrcomponentsAbortDrComponentResponseData } from './schemas/DrcomponentsAbortDrComponentResponseData';
632
+ export type { DrcomponentsCreateDrPipelineRequest } from './schemas/DrcomponentsCreateDrPipelineRequest';
633
+ export type { DrcomponentsCreateDrPipelineResponse } from './schemas/DrcomponentsCreateDrPipelineResponse';
634
+ export type { DrcomponentsCreateDrPipelineResponseData } from './schemas/DrcomponentsCreateDrPipelineResponseData';
635
+ export type { DrcomponentsDrTest } from './schemas/DrcomponentsDrTest';
636
+ export type { DrcomponentsDrTestPipelineInfo } from './schemas/DrcomponentsDrTestPipelineInfo';
637
+ export type { DrcomponentsDrTestRunInfo } from './schemas/DrcomponentsDrTestRunInfo';
638
+ export type { DrcomponentsDrTestSpec } from './schemas/DrcomponentsDrTestSpec';
639
+ export type { DrcomponentsGetDrComponentVariableData } from './schemas/DrcomponentsGetDrComponentVariableData';
640
+ export type { DrcomponentsGetDrComponentVariableResponse } from './schemas/DrcomponentsGetDrComponentVariableResponse';
641
+ export type { DrcomponentsListDrTestsResponse } from './schemas/DrcomponentsListDrTestsResponse';
599
642
  export type { ExecutionActionData } from './schemas/ExecutionActionData';
600
643
  export type { ExecutionChaosData } from './schemas/ExecutionChaosData';
601
644
  export type { ExecutionChaosExecutionNode } from './schemas/ExecutionChaosExecutionNode';
@@ -686,6 +729,7 @@ export type { GithubComHarnessHceSaasGraphqlServerGraphModelPagination } from '.
686
729
  export type { GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest';
687
730
  export type { GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse';
688
731
  export type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails';
732
+ export type { GithubComHarnessHceSaasGraphqlServerModelsDrcomponentnodesDrComponentExecutionResponse } from './schemas/GithubComHarnessHceSaasGraphqlServerModelsDrcomponentnodesDrComponentExecutionResponse';
689
733
  export type { GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata } from './schemas/GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata';
690
734
  export type { GithubComHarnessHceSaasGraphqlServerPkgActionsAction } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction';
691
735
  export type { GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails';
@@ -897,6 +941,7 @@ export type { PipelineonboardingStatus } from './schemas/PipelineonboardingStatu
897
941
  export type { PipelinesBulkExperimentRunResponse } from './schemas/PipelinesBulkExperimentRunResponse';
898
942
  export type { PipelinesChaosPipelineInput } from './schemas/PipelinesChaosPipelineInput';
899
943
  export type { PipelinesCreatePipelineResponse } from './schemas/PipelinesCreatePipelineResponse';
944
+ export type { PipelinesExecutorInfo } from './schemas/PipelinesExecutorInfo';
900
945
  export type { PipelinesExperimentSpec } from './schemas/PipelinesExperimentSpec';
901
946
  export type { PipelinesVerifyChaosStageInPipelineRunResponse } from './schemas/PipelinesVerifyChaosStageInPipelineRunResponse';
902
947
  export type { ProbeApmProbe } from './schemas/ProbeApmProbe';
@@ -1,3 +1,4 @@
1
+ export { abortDrComponent, useAbortDrComponentMutation } from './hooks/useAbortDrComponentMutation';
1
2
  export { addNote, useAddNoteMutation } from './hooks/useAddNoteMutation';
2
3
  export { bulkExperimentDelete, useBulkExperimentDeleteMutation, } from './hooks/useBulkExperimentDeleteMutation';
3
4
  export { bulkExperimentTagAdd, useBulkExperimentTagAddMutation, } from './hooks/useBulkExperimentTagAddMutation';
@@ -11,6 +12,8 @@ export { createChaosExperimentExecutionNode, useCreateChaosExperimentExecutionNo
11
12
  export { createChaosExperimentPipeline, useCreateChaosExperimentPipelineMutation, } from './hooks/useCreateChaosExperimentPipelineMutation';
12
13
  export { createChaosHub, useCreateChaosHubMutation } from './hooks/useCreateChaosHubMutation';
13
14
  export { createCondition, useCreateConditionMutation } from './hooks/useCreateConditionMutation';
15
+ export { createDrComponentNodes, useCreateDrComponentNodesMutation, } from './hooks/useCreateDrComponentNodesMutation';
16
+ export { createDrPipeline, useCreateDrPipelineMutation } from './hooks/useCreateDrPipelineMutation';
14
17
  export { createExperimentFromTemplate, useCreateExperimentFromTemplateMutation, } from './hooks/useCreateExperimentFromTemplateMutation';
15
18
  export { createExperimentTemplate, useCreateExperimentTemplateMutation, } from './hooks/useCreateExperimentTemplateMutation';
16
19
  export { createFault, useCreateFaultMutation } from './hooks/useCreateFaultMutation';
@@ -66,6 +69,8 @@ export { getChaosV2ExperimentRun, useGetChaosV2ExperimentRunQuery, } from './hoo
66
69
  export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, } from './hooks/useGetChaosV2ExperimentVariablesQuery';
67
70
  export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
68
71
  export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
72
+ export { getDrComponentExecutionView, useGetDrComponentExecutionViewQuery, } from './hooks/useGetDrComponentExecutionViewQuery';
73
+ export { getDrComponentVariable, useGetDrComponentVariableQuery, } from './hooks/useGetDrComponentVariableQuery';
69
74
  export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
70
75
  export { getExperimentOrTemplateVariable, useGetExperimentOrTemplateVariableQuery, } from './hooks/useGetExperimentOrTemplateVariableQuery';
71
76
  export { getExperimentRunTimelineView, useGetExperimentRunTimelineViewQuery, } from './hooks/useGetExperimentRunTimelineViewQuery';
@@ -125,6 +130,8 @@ export { listChaosEnabledInfraV2, useListChaosEnabledInfraV2Query, } from './hoo
125
130
  export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
126
131
  export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
127
132
  export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
133
+ export { listDrComponentNodes, useListDrComponentNodesQuery, } from './hooks/useListDrComponentNodesQuery';
134
+ export { listDrTests, useListDrTestsQuery } from './hooks/useListDrTestsQuery';
128
135
  export { listExperimentMetadata, useListExperimentMetadataQuery, } from './hooks/useListExperimentMetadataQuery';
129
136
  export { listExperimentOrTemplate, useListExperimentOrTemplateQuery, } from './hooks/useListExperimentOrTemplateQuery';
130
137
  export { listExperimentRunsOfFault, useListExperimentRunsOfFaultQuery, } from './hooks/useListExperimentRunsOfFaultQuery';
@@ -185,6 +192,7 @@ export { updateChaosExperimentExecutionNode, useUpdateChaosExperimentExecutionNo
185
192
  export { updateChaosHub, useUpdateChaosHubMutation } from './hooks/useUpdateChaosHubMutation';
186
193
  export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
187
194
  export { updateCondition, useUpdateConditionMutation } from './hooks/useUpdateConditionMutation';
195
+ export { updateDrComponentNode, useUpdateDrComponentNodeMutation, } from './hooks/useUpdateDrComponentNodeMutation';
188
196
  export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
189
197
  export { updateExperimentTemplate, useUpdateExperimentTemplateMutation, } from './hooks/useUpdateExperimentTemplateMutation';
190
198
  export { updateFault, useUpdateFaultMutation } from './hooks/useUpdateFaultMutation';
@@ -0,0 +1,4 @@
1
+ export interface DrComponentActionData {
2
+ name?: string;
3
+ type?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { DrComponentActionData } from '../schemas/DrComponentActionData';
2
+ import type { DrComponentFaultData } from '../schemas/DrComponentFaultData';
3
+ import type { DrComponentProbeData } from '../schemas/DrComponentProbeData';
4
+ export interface DrComponentChaosData {
5
+ actionData?: DrComponentActionData;
6
+ faultData?: DrComponentFaultData;
7
+ probeData?: DrComponentProbeData;
8
+ }
@@ -0,0 +1,3 @@
1
+ export interface DrComponentCommandProbe {
2
+ output?: number[];
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { DrComponentChaosData } from '../schemas/DrComponentChaosData';
2
+ import type { DrComponentErrorData } from '../schemas/DrComponentErrorData';
3
+ import type { DrComponentInfraType } from '../schemas/DrComponentInfraType';
4
+ import type { DrComponentStatus } from '../schemas/DrComponentStatus';
5
+ import type { DrComponentType } from '../schemas/DrComponentType';
6
+ export interface DrComponentDrComponentExecutionNode {
7
+ accountID?: string;
8
+ chaosData?: DrComponentChaosData;
9
+ errorData?: DrComponentErrorData;
10
+ finishedAt?: number;
11
+ identity?: string;
12
+ infraID?: string;
13
+ infraType?: DrComponentInfraType;
14
+ isRemoved?: boolean;
15
+ lastUpdatedAt?: number;
16
+ name?: string;
17
+ notifyID?: string;
18
+ orgID?: string;
19
+ projectID?: string;
20
+ runID?: string;
21
+ spec?: string;
22
+ startedAt?: number;
23
+ status?: DrComponentStatus;
24
+ streamID?: string;
25
+ type?: DrComponentType;
26
+ }
@@ -0,0 +1,4 @@
1
+ export interface DrComponentErrorData {
2
+ code?: string;
3
+ message?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { DrComponentHelperPodDetails } from '../schemas/DrComponentHelperPodDetails';
2
+ import type { V1alpha1Targets } from '../schemas/V1alpha1Targets';
3
+ export interface DrComponentFaultData {
4
+ helperPodDetails?: DrComponentHelperPodDetails[];
5
+ name?: string;
6
+ namespace?: string;
7
+ targets?: V1alpha1Targets[];
8
+ }
@@ -0,0 +1,4 @@
1
+ export interface DrComponentHelperPodDetails {
2
+ logStreamID?: string;
3
+ name?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface DrComponentHttpProbe {
2
+ responseBody?: number[];
3
+ responseTime?: number;
4
+ statusCode?: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1 @@
1
+ export type DrComponentInfraType = 'Kubernetes';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { DrComponentProbeIterations } from '../schemas/DrComponentProbeIterations';
2
+ export interface DrComponentProbeData {
3
+ description?: string;
4
+ iterations?: DrComponentProbeIterations[];
5
+ name?: string;
6
+ probeType?: string;
7
+ }
@@ -0,0 +1,11 @@
1
+ import type { DrComponentCommandProbe } from '../schemas/DrComponentCommandProbe';
2
+ import type { DrComponentHttpProbe } from '../schemas/DrComponentHttpProbe';
3
+ import type { DrComponentPromProbe } from '../schemas/DrComponentPromProbe';
4
+ export interface DrComponentProbeIterations {
5
+ commandProbe?: DrComponentCommandProbe;
6
+ duration?: number;
7
+ httpProbe?: DrComponentHttpProbe;
8
+ phase?: string;
9
+ promProbe?: DrComponentPromProbe;
10
+ timestamp?: number;
11
+ }
@@ -0,0 +1,3 @@
1
+ export interface DrComponentPromProbe {
2
+ metrics?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1 @@
1
+ export type DrComponentStatus = 'Completed' | 'Error' | 'Failed' | 'Interrupted' | 'Passed' | 'Pending' | 'Running' | 'Skipped' | 'Stopped';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1 @@
1
+ export type DrComponentType = 'ACTION' | 'FAULT' | 'PROBE';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface DrcomponentsAbortDrComponentRequest {
2
+ infraReference?: string;
3
+ notifyId?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { DrcomponentsAbortDrComponentResponseData } from '../schemas/DrcomponentsAbortDrComponentResponseData';
2
+ export interface DrcomponentsAbortDrComponentResponse {
3
+ data?: DrcomponentsAbortDrComponentResponseData;
4
+ status?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface DrcomponentsAbortDrComponentResponseData {
2
+ error?: string;
3
+ status?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface DrcomponentsCreateDrPipelineRequest {
2
+ description?: string;
3
+ identifier?: string;
4
+ name?: string;
5
+ objective?: string;
6
+ tags?: {
7
+ [key: string]: string;
8
+ };
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { DrcomponentsCreateDrPipelineResponseData } from '../schemas/DrcomponentsCreateDrPipelineResponseData';
2
+ export interface DrcomponentsCreateDrPipelineResponse {
3
+ data?: DrcomponentsCreateDrPipelineResponseData;
4
+ status?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface DrcomponentsCreateDrPipelineResponseData {
2
+ pipelineIdentifier?: string;
3
+ stageIdentifier?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { DrcomponentsDrTestSpec } from '../schemas/DrcomponentsDrTestSpec';
2
+ export interface DrcomponentsDrTest {
3
+ description?: string;
4
+ identity?: string;
5
+ name?: string;
6
+ objective?: string;
7
+ spec?: DrcomponentsDrTestSpec;
8
+ tags?: {
9
+ [key: string]: string;
10
+ };
11
+ }
@@ -0,0 +1,7 @@
1
+ import type { DrcomponentsDrTestRunInfo } from '../schemas/DrcomponentsDrTestRunInfo';
2
+ export interface DrcomponentsDrTestPipelineInfo {
3
+ identity?: string;
4
+ lastModified?: number;
5
+ name?: string;
6
+ recentRuns?: DrcomponentsDrTestRunInfo[];
7
+ }
@@ -0,0 +1,8 @@
1
+ import type { PipelinesExecutorInfo } from '../schemas/PipelinesExecutorInfo';
2
+ export interface DrcomponentsDrTestRunInfo {
3
+ endTs?: number;
4
+ executionId?: string;
5
+ executorInfo?: PipelinesExecutorInfo;
6
+ startTs?: number;
7
+ status?: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ import type { DrcomponentsDrTestPipelineInfo } from '../schemas/DrcomponentsDrTestPipelineInfo';
2
+ export interface DrcomponentsDrTestSpec {
3
+ pipeline?: DrcomponentsDrTestPipelineInfo;
4
+ }
@@ -0,0 +1,5 @@
1
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
2
+ export interface DrcomponentsGetDrComponentVariableData {
3
+ name?: string;
4
+ variables?: TemplateVariable[];
5
+ }
@@ -0,0 +1,4 @@
1
+ import type { DrcomponentsGetDrComponentVariableData } from '../schemas/DrcomponentsGetDrComponentVariableData';
2
+ export interface DrcomponentsGetDrComponentVariableResponse {
3
+ items?: DrcomponentsGetDrComponentVariableData[];
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { DrcomponentsDrTest } from '../schemas/DrcomponentsDrTest';
2
+ export interface DrcomponentsListDrTestsResponse {
3
+ drtests?: DrcomponentsDrTest[];
4
+ }
@@ -0,0 +1,9 @@
1
+ import type { DrComponentDrComponentExecutionNode } from '../schemas/DrComponentDrComponentExecutionNode';
2
+ export interface GithubComHarnessHceSaasGraphqlServerModelsDrcomponentnodesDrComponentExecutionResponse {
3
+ accountID: string;
4
+ nodes?: DrComponentDrComponentExecutionNode[];
5
+ orgID?: string;
6
+ pipelineExecutionId?: string;
7
+ pipelineIdentity?: string;
8
+ projectID?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ export interface PipelinesExecutorInfo {
2
+ email?: string;
3
+ triggerType?: string;
4
+ username?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.49.0",
3
+ "version": "1.49.1-beta.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",