@harnessio/react-chaos-manager-client 1.49.1-beta.2 → 1.50.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 (70) hide show
  1. package/dist/chaos-manager/src/services/hooks/useCreateChaosComponentMutation.d.ts +2 -2
  2. package/dist/chaos-manager/src/services/hooks/useGetChaosComponentVariableQuery.d.ts +2 -2
  3. package/dist/chaos-manager/src/services/hooks/useGetExperimentOrTemplateVariableQuery.d.ts +1 -1
  4. package/dist/chaos-manager/src/services/hooks/useGetExperimentOrTemplateVariableQuery.js +1 -1
  5. package/dist/chaos-manager/src/services/hooks/useGetExperimentTemplateVariablesQuery.d.ts +1 -1
  6. package/dist/chaos-manager/src/services/hooks/useGetExperimentTemplateVariablesQuery.js +1 -1
  7. package/dist/chaos-manager/src/services/hooks/useGetExperimentTemplateYamlQuery.d.ts +1 -1
  8. package/dist/chaos-manager/src/services/hooks/useGetExperimentTemplateYamlQuery.js +1 -1
  9. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateVariablesQuery.d.ts +1 -1
  10. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateVariablesQuery.js +1 -1
  11. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateYamlQuery.d.ts +1 -1
  12. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateYamlQuery.js +1 -1
  13. package/dist/chaos-manager/src/services/hooks/useGetFaultVariablesQuery.d.ts +1 -1
  14. package/dist/chaos-manager/src/services/hooks/useGetFaultVariablesQuery.js +1 -1
  15. package/dist/chaos-manager/src/services/hooks/useListChaosComponentQuery.d.ts +2 -2
  16. package/dist/chaos-manager/src/services/hooks/useListVariablesInActionTemplateQuery.d.ts +1 -1
  17. package/dist/chaos-manager/src/services/hooks/useListVariablesInActionTemplateQuery.js +1 -1
  18. package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.d.ts +1 -1
  19. package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.js +1 -1
  20. package/dist/chaos-manager/src/services/hooks/useUpdateChaosComponentMutation.d.ts +2 -2
  21. package/dist/chaos-manager/src/services/index.d.ts +17 -15
  22. package/dist/chaos-manager/src/services/schemas/ChaoscomponentActionData.d.ts +4 -0
  23. package/dist/chaos-manager/src/services/schemas/ChaoscomponentChaosComponentExecutionNode.d.ts +26 -0
  24. package/dist/chaos-manager/src/services/schemas/ChaoscomponentChaosComponentType.d.ts +1 -0
  25. package/dist/chaos-manager/src/services/schemas/ChaoscomponentChaosData.d.ts +8 -0
  26. package/dist/chaos-manager/src/services/schemas/ChaoscomponentCommandProbe.d.ts +3 -0
  27. package/dist/chaos-manager/src/services/schemas/{ChaosComponentErrorData.d.ts → ChaoscomponentErrorData.d.ts} +1 -1
  28. package/dist/chaos-manager/src/services/schemas/ChaoscomponentFaultData.d.ts +8 -0
  29. package/dist/chaos-manager/src/services/schemas/ChaoscomponentHelperPodDetails.d.ts +4 -0
  30. package/dist/chaos-manager/src/services/schemas/{ChaosComponentHttpProbe.d.ts → ChaoscomponentHttpProbe.d.ts} +1 -1
  31. package/dist/chaos-manager/src/services/schemas/ChaoscomponentInfraType.d.ts +1 -0
  32. package/dist/chaos-manager/src/services/schemas/ChaoscomponentProbeData.d.ts +8 -0
  33. package/dist/chaos-manager/src/services/schemas/ChaoscomponentProbeIterations.d.ts +11 -0
  34. package/dist/chaos-manager/src/services/schemas/ChaoscomponentPromProbe.d.ts +3 -0
  35. package/dist/chaos-manager/src/services/schemas/{ChaosComponentStatus.d.ts → ChaoscomponentStatus.d.ts} +1 -1
  36. package/dist/chaos-manager/src/services/schemas/ChaoscomponentType.d.ts +1 -0
  37. package/dist/chaos-manager/src/services/schemas/ChaoscomponentsGetChaosComponentVariableData.d.ts +5 -0
  38. package/dist/chaos-manager/src/services/schemas/ChaoscomponentsGetChaosComponentVariableData.js +1 -0
  39. package/dist/chaos-manager/src/services/schemas/ChaoscomponentsGetChaosComponentVariableResponse.d.ts +4 -0
  40. package/dist/chaos-manager/src/services/schemas/ChaoscomponentsGetChaosComponentVariableResponse.js +1 -0
  41. package/dist/chaos-manager/src/services/schemas/ChaoscomponentsRunChaosComponentRequest.d.ts +2 -2
  42. package/dist/chaos-manager/src/services/schemas/InputsetInputSet.d.ts +1 -1
  43. package/package.json +1 -1
  44. package/dist/chaos-manager/src/services/schemas/ChaosComponentActionData.d.ts +0 -4
  45. package/dist/chaos-manager/src/services/schemas/ChaosComponentChaosComponentExecutionNode.d.ts +0 -26
  46. package/dist/chaos-manager/src/services/schemas/ChaosComponentChaosComponentType.d.ts +0 -1
  47. package/dist/chaos-manager/src/services/schemas/ChaosComponentChaosData.d.ts +0 -8
  48. package/dist/chaos-manager/src/services/schemas/ChaosComponentCommandProbe.d.ts +0 -3
  49. package/dist/chaos-manager/src/services/schemas/ChaosComponentFaultData.d.ts +0 -8
  50. package/dist/chaos-manager/src/services/schemas/ChaosComponentHelperPodDetails.d.ts +0 -4
  51. package/dist/chaos-manager/src/services/schemas/ChaosComponentInfraType.d.ts +0 -1
  52. package/dist/chaos-manager/src/services/schemas/ChaosComponentProbeData.d.ts +0 -8
  53. package/dist/chaos-manager/src/services/schemas/ChaosComponentProbeIterations.d.ts +0 -11
  54. package/dist/chaos-manager/src/services/schemas/ChaosComponentPromProbe.d.ts +0 -3
  55. package/dist/chaos-manager/src/services/schemas/ChaosComponentType.d.ts +0 -1
  56. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentActionData.js → ChaoscomponentActionData.js} +0 -0
  57. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentChaosComponentExecutionNode.js → ChaoscomponentChaosComponentExecutionNode.js} +0 -0
  58. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentChaosComponentType.js → ChaoscomponentChaosComponentType.js} +0 -0
  59. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentChaosData.js → ChaoscomponentChaosData.js} +0 -0
  60. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentCommandProbe.js → ChaoscomponentCommandProbe.js} +0 -0
  61. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentErrorData.js → ChaoscomponentErrorData.js} +0 -0
  62. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentFaultData.js → ChaoscomponentFaultData.js} +0 -0
  63. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentHelperPodDetails.js → ChaoscomponentHelperPodDetails.js} +0 -0
  64. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentHttpProbe.js → ChaoscomponentHttpProbe.js} +0 -0
  65. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentInfraType.js → ChaoscomponentInfraType.js} +0 -0
  66. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentProbeData.js → ChaoscomponentProbeData.js} +0 -0
  67. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentProbeIterations.js → ChaoscomponentProbeIterations.js} +0 -0
  68. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentPromProbe.js → ChaoscomponentPromProbe.js} +0 -0
  69. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentStatus.js → ChaoscomponentStatus.js} +0 -0
  70. /package/dist/chaos-manager/src/services/schemas/{ChaosComponentType.js → ChaoscomponentType.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { ChaosComponentChaosComponentExecutionNode } from '../schemas/ChaosComponentChaosComponentExecutionNode';
4
+ import type { ChaoscomponentChaosComponentExecutionNode } from '../schemas/ChaoscomponentChaosComponentExecutionNode';
5
5
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
6
  export interface CreateChaosComponentMutationPathParams {
7
7
  identity: string;
@@ -13,7 +13,7 @@ export interface CreateChaosComponentMutationQueryParams {
13
13
  organizationIdentifier?: string;
14
14
  projectIdentifier?: string;
15
15
  }
16
- export type CreateChaosComponentRequestBody = ChaosComponentChaosComponentExecutionNode[];
16
+ export type CreateChaosComponentRequestBody = ChaoscomponentChaosComponentExecutionNode[];
17
17
  export type CreateChaosComponentOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
18
18
  export type CreateChaosComponentErrorResponse = ApiRestError;
19
19
  export interface CreateChaosComponentProps extends CreateChaosComponentMutationPathParams, Omit<FetcherOptions<CreateChaosComponentMutationQueryParams, CreateChaosComponentRequestBody>, 'url'> {
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TemplateVariable } from '../schemas/TemplateVariable';
2
+ import type { ChaoscomponentsGetChaosComponentVariableResponse } from '../schemas/ChaoscomponentsGetChaosComponentVariableResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
5
  export interface GetChaosComponentVariableQueryQueryParams {
@@ -11,7 +11,7 @@ export interface GetChaosComponentVariableQueryQueryParams {
11
11
  projectIdentifier?: string;
12
12
  type?: 'Action' | 'Fault' | 'Probe';
13
13
  }
14
- export type GetChaosComponentVariableOkResponse = TemplateVariable[];
14
+ export type GetChaosComponentVariableOkResponse = ChaoscomponentsGetChaosComponentVariableResponse;
15
15
  export type GetChaosComponentVariableErrorResponse = ApiRestError;
16
16
  export interface GetChaosComponentVariableProps extends Omit<FetcherOptions<GetChaosComponentVariableQueryQueryParams, unknown>, 'url'> {
17
17
  queryParams: GetChaosComponentVariableQueryQueryParams;
@@ -23,6 +23,6 @@ export interface GetExperimentOrTemplateVariableResponseContainer {
23
23
  }
24
24
  export declare function getExperimentOrTemplateVariable(props: GetExperimentOrTemplateVariableProps): Promise<GetExperimentOrTemplateVariableResponseContainer>;
25
25
  /**
26
- * gets experiment or template variables
26
+ * gets experiment or template inputs
27
27
  */
28
28
  export declare function useGetExperimentOrTemplateVariableQuery(props: GetExperimentOrTemplateVariableProps, options?: Omit<UseQueryOptions<GetExperimentOrTemplateVariableResponseContainer, GetExperimentOrTemplateVariableErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentOrTemplateVariableResponseContainer, ApiRestError>;
@@ -7,7 +7,7 @@ export function getExperimentOrTemplateVariable(props) {
7
7
  return fetcher(Object.assign({ url: `/v3/integrations/get-experiment-or-template-variable`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * gets experiment or template variables
10
+ * gets experiment or template inputs
11
11
  */
12
12
  export function useGetExperimentOrTemplateVariableQuery(props, options) {
13
13
  return useQuery(['getExperimentOrTemplateVariable', props.queryParams], ({ signal }) => getExperimentOrTemplateVariable(Object.assign(Object.assign({}, props), { signal })), options);
@@ -26,6 +26,6 @@ export interface GetExperimentTemplateVariablesResponseContainer {
26
26
  }
27
27
  export declare function getExperimentTemplateVariables(props: GetExperimentTemplateVariablesProps): Promise<GetExperimentTemplateVariablesResponseContainer>;
28
28
  /**
29
- * Get the list of variables in an experiment template based on revision
29
+ * Get the list of inputs in an experiment template based on revision
30
30
  */
31
31
  export declare function useGetExperimentTemplateVariablesQuery(props: GetExperimentTemplateVariablesProps, options?: Omit<UseQueryOptions<GetExperimentTemplateVariablesResponseContainer, GetExperimentTemplateVariablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentTemplateVariablesResponseContainer, ApiRestError>;
@@ -7,7 +7,7 @@ export function getExperimentTemplateVariables(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/experimenttemplates/${props.identity}/variables`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get the list of variables in an experiment template based on revision
10
+ * Get the list of inputs in an experiment template based on revision
11
11
  */
12
12
  export function useGetExperimentTemplateVariablesQuery(props, options) {
13
13
  return useQuery(['getExperimentTemplateVariables', props.identity, props.queryParams], ({ signal }) => getExperimentTemplateVariables(Object.assign(Object.assign({}, props), { signal })), options);
@@ -26,6 +26,6 @@ export interface GetExperimentTemplateYamlResponseContainer {
26
26
  }
27
27
  export declare function getExperimentTemplateYaml(props: GetExperimentTemplateYamlProps): Promise<GetExperimentTemplateYamlResponseContainer>;
28
28
  /**
29
- * Get the list of variables in an experiment template based on revision
29
+ * Get experiment template yaml based on revision
30
30
  */
31
31
  export declare function useGetExperimentTemplateYamlQuery(props: GetExperimentTemplateYamlProps, options?: Omit<UseQueryOptions<GetExperimentTemplateYamlResponseContainer, GetExperimentTemplateYamlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentTemplateYamlResponseContainer, ApiRestError>;
@@ -7,7 +7,7 @@ export function getExperimentTemplateYaml(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/experimenttemplates/${props.identity}/yaml`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get the list of variables in an experiment template based on revision
10
+ * Get experiment template yaml based on revision
11
11
  */
12
12
  export function useGetExperimentTemplateYamlQuery(props, options) {
13
13
  return useQuery(['getExperimentTemplateYaml', props.identity, props.queryParams], ({ signal }) => getExperimentTemplateYaml(Object.assign(Object.assign({}, props), { signal })), options);
@@ -24,6 +24,6 @@ export interface GetFaultTemplateVariablesResponseContainer {
24
24
  }
25
25
  export declare function getFaultTemplateVariables(props: GetFaultTemplateVariablesProps): Promise<GetFaultTemplateVariablesResponseContainer>;
26
26
  /**
27
- * Get the list of variables in a fault template based on revision
27
+ * Get the list of inputs in a fault template based on revision
28
28
  */
29
29
  export declare function useGetFaultTemplateVariablesQuery(props: GetFaultTemplateVariablesProps, options?: Omit<UseQueryOptions<GetFaultTemplateVariablesResponseContainer, GetFaultTemplateVariablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFaultTemplateVariablesResponseContainer, ApiRestError>;
@@ -7,7 +7,7 @@ export function getFaultTemplateVariables(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/faulttemplates/${props.identity}/variables`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get the list of variables in a fault template based on revision
10
+ * Get the list of inputs in a fault template based on revision
11
11
  */
12
12
  export function useGetFaultTemplateVariablesQuery(props, options) {
13
13
  return useQuery(['getFaultTemplateVariables', props.identity, props.queryParams], ({ signal }) => getFaultTemplateVariables(Object.assign(Object.assign({}, props), { signal })), options);
@@ -24,6 +24,6 @@ export interface GetFaultTemplateYamlResponseContainer {
24
24
  }
25
25
  export declare function getFaultTemplateYaml(props: GetFaultTemplateYamlProps): Promise<GetFaultTemplateYamlResponseContainer>;
26
26
  /**
27
- * Get the list of variables in a fault template based on revision
27
+ * Get a fault template yaml based on revision
28
28
  */
29
29
  export declare function useGetFaultTemplateYamlQuery(props: GetFaultTemplateYamlProps, options?: Omit<UseQueryOptions<GetFaultTemplateYamlResponseContainer, GetFaultTemplateYamlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFaultTemplateYamlResponseContainer, ApiRestError>;
@@ -7,7 +7,7 @@ export function getFaultTemplateYaml(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/faulttemplates/${props.identity}/yaml`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get the list of variables in a fault template based on revision
10
+ * Get a fault template yaml based on revision
11
11
  */
12
12
  export function useGetFaultTemplateYamlQuery(props, options) {
13
13
  return useQuery(['getFaultTemplateYaml', props.identity, props.queryParams], ({ signal }) => getFaultTemplateYaml(Object.assign(Object.assign({}, props), { signal })), options);
@@ -23,6 +23,6 @@ export interface GetFaultVariablesResponseContainer {
23
23
  }
24
24
  export declare function getFaultVariables(props: GetFaultVariablesProps): Promise<GetFaultVariablesResponseContainer>;
25
25
  /**
26
- * Get the list of variables in a fault
26
+ * Get the list of inputs in a fault
27
27
  */
28
28
  export declare function useGetFaultVariablesQuery(props: GetFaultVariablesProps, options?: Omit<UseQueryOptions<GetFaultVariablesResponseContainer, GetFaultVariablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFaultVariablesResponseContainer, ApiRestError>;
@@ -7,7 +7,7 @@ export function getFaultVariables(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/faults/${props.identity}/variables`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get the list of variables in a fault
10
+ * Get the list of inputs in a fault
11
11
  */
12
12
  export function useGetFaultVariablesQuery(props, options) {
13
13
  return useQuery(['getFaultVariables', props.identity, props.queryParams], ({ signal }) => getFaultVariables(Object.assign(Object.assign({}, props), { signal })), options);
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ChaosComponentChaosComponentExecutionNode } from '../schemas/ChaosComponentChaosComponentExecutionNode';
2
+ import type { ChaoscomponentChaosComponentExecutionNode } from '../schemas/ChaoscomponentChaosComponentExecutionNode';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
5
  export interface ListChaosComponentQueryPathParams {
@@ -13,7 +13,7 @@ export interface ListChaosComponentQueryQueryParams {
13
13
  organizationIdentifier?: string;
14
14
  projectIdentifier?: string;
15
15
  }
16
- export type ListChaosComponentOkResponse = ChaosComponentChaosComponentExecutionNode[];
16
+ export type ListChaosComponentOkResponse = ChaoscomponentChaosComponentExecutionNode[];
17
17
  export type ListChaosComponentErrorResponse = ApiRestError;
18
18
  export interface ListChaosComponentProps extends ListChaosComponentQueryPathParams, Omit<FetcherOptions<ListChaosComponentQueryQueryParams, unknown>, 'url'> {
19
19
  queryParams: ListChaosComponentQueryQueryParams;
@@ -23,6 +23,6 @@ export interface ListVariablesInActionTemplateResponseContainer {
23
23
  }
24
24
  export declare function listVariablesInActionTemplate(props: ListVariablesInActionTemplateProps): Promise<ListVariablesInActionTemplateResponseContainer>;
25
25
  /**
26
- * Get the list of variables in a fault template based on revision
26
+ * Get the list of inputs in a fault template based on revision
27
27
  */
28
28
  export declare function useListVariablesInActionTemplateQuery(props: ListVariablesInActionTemplateProps, options?: Omit<UseQueryOptions<ListVariablesInActionTemplateResponseContainer, ListVariablesInActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVariablesInActionTemplateResponseContainer, ApiRestError>;
@@ -7,7 +7,7 @@ export function listVariablesInActionTemplate(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}/variables`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get the list of variables in a fault template based on revision
10
+ * Get the list of inputs in a fault template based on revision
11
11
  */
12
12
  export function useListVariablesInActionTemplateQuery(props, options) {
13
13
  return useQuery(['listVariablesInActionTemplate', props.identity, props.queryParams], ({ signal }) => listVariablesInActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
@@ -23,6 +23,6 @@ export interface ListVariablesInProbeTemplateResponseContainer {
23
23
  }
24
24
  export declare function listVariablesInProbeTemplate(props: ListVariablesInProbeTemplateProps): Promise<ListVariablesInProbeTemplateResponseContainer>;
25
25
  /**
26
- * Get the list of variables in a fault template based on revision
26
+ * Get the list of inputs in a fault template based on revision
27
27
  */
28
28
  export declare function useListVariablesInProbeTemplateQuery(props: ListVariablesInProbeTemplateProps, options?: Omit<UseQueryOptions<ListVariablesInProbeTemplateResponseContainer, ListVariablesInProbeTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVariablesInProbeTemplateResponseContainer, ApiRestError>;
@@ -7,7 +7,7 @@ export function listVariablesInProbeTemplate(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/variables`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get the list of variables in a fault template based on revision
10
+ * Get the list of inputs in a fault template based on revision
11
11
  */
12
12
  export function useListVariablesInProbeTemplateQuery(props, options) {
13
13
  return useQuery(['listVariablesInProbeTemplate', props.identity, props.queryParams], ({ signal }) => listVariablesInProbeTemplate(Object.assign(Object.assign({}, props), { signal })), options);
@@ -1,7 +1,7 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { ChaosComponentChaosComponentExecutionNode } from '../schemas/ChaosComponentChaosComponentExecutionNode';
4
+ import type { ChaoscomponentChaosComponentExecutionNode } from '../schemas/ChaoscomponentChaosComponentExecutionNode';
5
5
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
6
  export interface UpdateChaosComponentMutationPathParams {
7
7
  identity: string;
@@ -15,7 +15,7 @@ export interface UpdateChaosComponentMutationQueryParams {
15
15
  organizationIdentifier?: string;
16
16
  projectIdentifier?: string;
17
17
  }
18
- export type UpdateChaosComponentRequestBody = ChaosComponentChaosComponentExecutionNode;
18
+ export type UpdateChaosComponentRequestBody = ChaoscomponentChaosComponentExecutionNode;
19
19
  export type UpdateChaosComponentOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
20
20
  export type UpdateChaosComponentErrorResponse = ApiRestError;
21
21
  export interface UpdateChaosComponentProps extends UpdateChaosComponentMutationPathParams, Omit<FetcherOptions<UpdateChaosComponentMutationQueryParams, UpdateChaosComponentRequestBody>, 'url'> {
@@ -458,21 +458,6 @@ export type { BulkactionBulkAddTagsInExperimetsInput } from './schemas/Bulkactio
458
458
  export type { BulkactionBulkAddTagsInExperimetsResponse } from './schemas/BulkactionBulkAddTagsInExperimetsResponse';
459
459
  export type { BulkactionBulkDeleteExperimetsInput } from './schemas/BulkactionBulkDeleteExperimetsInput';
460
460
  export type { BulkactionBulkDeleteExperimetsResponse } from './schemas/BulkactionBulkDeleteExperimetsResponse';
461
- export type { ChaosComponentActionData } from './schemas/ChaosComponentActionData';
462
- export type { ChaosComponentChaosComponentExecutionNode } from './schemas/ChaosComponentChaosComponentExecutionNode';
463
- export type { ChaosComponentChaosComponentType } from './schemas/ChaosComponentChaosComponentType';
464
- export type { ChaosComponentChaosData } from './schemas/ChaosComponentChaosData';
465
- export type { ChaosComponentCommandProbe } from './schemas/ChaosComponentCommandProbe';
466
- export type { ChaosComponentErrorData } from './schemas/ChaosComponentErrorData';
467
- export type { ChaosComponentFaultData } from './schemas/ChaosComponentFaultData';
468
- export type { ChaosComponentHelperPodDetails } from './schemas/ChaosComponentHelperPodDetails';
469
- export type { ChaosComponentHttpProbe } from './schemas/ChaosComponentHttpProbe';
470
- export type { ChaosComponentInfraType } from './schemas/ChaosComponentInfraType';
471
- export type { ChaosComponentProbeData } from './schemas/ChaosComponentProbeData';
472
- export type { ChaosComponentProbeIterations } from './schemas/ChaosComponentProbeIterations';
473
- export type { ChaosComponentPromProbe } from './schemas/ChaosComponentPromProbe';
474
- export type { ChaosComponentStatus } from './schemas/ChaosComponentStatus';
475
- export type { ChaosComponentType } from './schemas/ChaosComponentType';
476
461
  export type { ChaosExecutionNodesActionData } from './schemas/ChaosExecutionNodesActionData';
477
462
  export type { ChaosExecutionNodesChaosData } from './schemas/ChaosExecutionNodesChaosData';
478
463
  export type { ChaosExecutionNodesChaosExecutionNode } from './schemas/ChaosExecutionNodesChaosExecutionNode';
@@ -514,6 +499,21 @@ export type { ChaosInfrastructureV2InfraType } from './schemas/ChaosInfrastructu
514
499
  export type { ChaosInfrastructureV2K8sInfraV2SpecIdentifiers } from './schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers';
515
500
  export type { ChaosactiontemplateActionsTemplateCount } from './schemas/ChaosactiontemplateActionsTemplateCount';
516
501
  export type { ChaosactiontemplateChaosActionTemplate } from './schemas/ChaosactiontemplateChaosActionTemplate';
502
+ export type { ChaoscomponentActionData } from './schemas/ChaoscomponentActionData';
503
+ export type { ChaoscomponentChaosComponentExecutionNode } from './schemas/ChaoscomponentChaosComponentExecutionNode';
504
+ export type { ChaoscomponentChaosComponentType } from './schemas/ChaoscomponentChaosComponentType';
505
+ export type { ChaoscomponentChaosData } from './schemas/ChaoscomponentChaosData';
506
+ export type { ChaoscomponentCommandProbe } from './schemas/ChaoscomponentCommandProbe';
507
+ export type { ChaoscomponentErrorData } from './schemas/ChaoscomponentErrorData';
508
+ export type { ChaoscomponentFaultData } from './schemas/ChaoscomponentFaultData';
509
+ export type { ChaoscomponentHelperPodDetails } from './schemas/ChaoscomponentHelperPodDetails';
510
+ export type { ChaoscomponentHttpProbe } from './schemas/ChaoscomponentHttpProbe';
511
+ export type { ChaoscomponentInfraType } from './schemas/ChaoscomponentInfraType';
512
+ export type { ChaoscomponentProbeData } from './schemas/ChaoscomponentProbeData';
513
+ export type { ChaoscomponentProbeIterations } from './schemas/ChaoscomponentProbeIterations';
514
+ export type { ChaoscomponentPromProbe } from './schemas/ChaoscomponentPromProbe';
515
+ export type { ChaoscomponentStatus } from './schemas/ChaoscomponentStatus';
516
+ export type { ChaoscomponentType } from './schemas/ChaoscomponentType';
517
517
  export type { ChaoscomponentsAbortChaosComponentRequest } from './schemas/ChaoscomponentsAbortChaosComponentRequest';
518
518
  export type { ChaoscomponentsAbortChaosComponentResponse } from './schemas/ChaoscomponentsAbortChaosComponentResponse';
519
519
  export type { ChaoscomponentsAbortChaosComponentResponseData } from './schemas/ChaoscomponentsAbortChaosComponentResponseData';
@@ -524,6 +524,8 @@ export type { ChaoscomponentsDrTest } from './schemas/ChaoscomponentsDrTest';
524
524
  export type { ChaoscomponentsDrTestPipelineInfo } from './schemas/ChaoscomponentsDrTestPipelineInfo';
525
525
  export type { ChaoscomponentsDrTestRunInfo } from './schemas/ChaoscomponentsDrTestRunInfo';
526
526
  export type { ChaoscomponentsDrTestSpec } from './schemas/ChaoscomponentsDrTestSpec';
527
+ export type { ChaoscomponentsGetChaosComponentVariableData } from './schemas/ChaoscomponentsGetChaosComponentVariableData';
528
+ export type { ChaoscomponentsGetChaosComponentVariableResponse } from './schemas/ChaoscomponentsGetChaosComponentVariableResponse';
527
529
  export type { ChaoscomponentsListDrTestsResponse } from './schemas/ChaoscomponentsListDrTestsResponse';
528
530
  export type { ChaoscomponentsRunChaosComponentRequest } from './schemas/ChaoscomponentsRunChaosComponentRequest';
529
531
  export type { ChaoscomponentsRunChaosComponentResponse } from './schemas/ChaoscomponentsRunChaosComponentResponse';
@@ -0,0 +1,4 @@
1
+ export interface ChaoscomponentActionData {
2
+ name?: string;
3
+ type?: string;
4
+ }
@@ -0,0 +1,26 @@
1
+ import type { ChaoscomponentChaosData } from '../schemas/ChaoscomponentChaosData';
2
+ import type { ChaoscomponentErrorData } from '../schemas/ChaoscomponentErrorData';
3
+ import type { ChaoscomponentInfraType } from '../schemas/ChaoscomponentInfraType';
4
+ import type { ChaoscomponentStatus } from '../schemas/ChaoscomponentStatus';
5
+ import type { ChaoscomponentType } from '../schemas/ChaoscomponentType';
6
+ export interface ChaoscomponentChaosComponentExecutionNode {
7
+ accountID?: string;
8
+ chaosData?: ChaoscomponentChaosData;
9
+ errorData?: ChaoscomponentErrorData;
10
+ finishedAt?: number;
11
+ identity?: string;
12
+ infraID?: string;
13
+ infraType?: ChaoscomponentInfraType;
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?: ChaoscomponentStatus;
24
+ streamID?: string;
25
+ type?: ChaoscomponentType;
26
+ }
@@ -0,0 +1 @@
1
+ export type ChaoscomponentChaosComponentType = 'Action' | 'Fault' | 'Probe';
@@ -0,0 +1,8 @@
1
+ import type { ChaoscomponentActionData } from '../schemas/ChaoscomponentActionData';
2
+ import type { ChaoscomponentFaultData } from '../schemas/ChaoscomponentFaultData';
3
+ import type { ChaoscomponentProbeData } from '../schemas/ChaoscomponentProbeData';
4
+ export interface ChaoscomponentChaosData {
5
+ actionData?: ChaoscomponentActionData;
6
+ faultData?: ChaoscomponentFaultData;
7
+ probeData?: ChaoscomponentProbeData;
8
+ }
@@ -0,0 +1,3 @@
1
+ export interface ChaoscomponentCommandProbe {
2
+ output?: number[];
3
+ }
@@ -1,4 +1,4 @@
1
- export interface ChaosComponentErrorData {
1
+ export interface ChaoscomponentErrorData {
2
2
  code?: string;
3
3
  message?: string;
4
4
  }
@@ -0,0 +1,8 @@
1
+ import type { ChaoscomponentHelperPodDetails } from '../schemas/ChaoscomponentHelperPodDetails';
2
+ import type { V1alpha1Targets } from '../schemas/V1alpha1Targets';
3
+ export interface ChaoscomponentFaultData {
4
+ helperPodDetails?: ChaoscomponentHelperPodDetails[];
5
+ name?: string;
6
+ namespace?: string;
7
+ targets?: V1alpha1Targets[];
8
+ }
@@ -0,0 +1,4 @@
1
+ export interface ChaoscomponentHelperPodDetails {
2
+ logStreamID?: string;
3
+ name?: string;
4
+ }
@@ -1,4 +1,4 @@
1
- export interface ChaosComponentHttpProbe {
1
+ export interface ChaoscomponentHttpProbe {
2
2
  responseBody?: number[];
3
3
  responseTime?: number;
4
4
  statusCode?: number;
@@ -0,0 +1 @@
1
+ export type ChaoscomponentInfraType = 'Kubernetes';
@@ -0,0 +1,8 @@
1
+ import type { ChaoscomponentProbeIterations } from '../schemas/ChaoscomponentProbeIterations';
2
+ export interface ChaoscomponentProbeData {
3
+ description?: string;
4
+ iterations?: ChaoscomponentProbeIterations[];
5
+ name?: string;
6
+ probeType?: string;
7
+ risks?: string[];
8
+ }
@@ -0,0 +1,11 @@
1
+ import type { ChaoscomponentCommandProbe } from '../schemas/ChaoscomponentCommandProbe';
2
+ import type { ChaoscomponentHttpProbe } from '../schemas/ChaoscomponentHttpProbe';
3
+ import type { ChaoscomponentPromProbe } from '../schemas/ChaoscomponentPromProbe';
4
+ export interface ChaoscomponentProbeIterations {
5
+ commandProbe?: ChaoscomponentCommandProbe;
6
+ duration?: number;
7
+ httpProbe?: ChaoscomponentHttpProbe;
8
+ phase?: string;
9
+ promProbe?: ChaoscomponentPromProbe;
10
+ timestamp?: number;
11
+ }
@@ -0,0 +1,3 @@
1
+ export interface ChaoscomponentPromProbe {
2
+ metrics?: string;
3
+ }
@@ -1 +1 @@
1
- export type ChaosComponentStatus = 'Completed' | 'Error' | 'Failed' | 'Interrupted' | 'Passed' | 'Pending' | 'Running' | 'Skipped' | 'Stopped';
1
+ export type ChaoscomponentStatus = 'Completed' | 'Error' | 'Failed' | 'Interrupted' | 'Passed' | 'Pending' | 'Running' | 'Skipped' | 'Stopped';
@@ -0,0 +1 @@
1
+ export type ChaoscomponentType = 'ACTION' | 'FAULT' | 'PROBE';
@@ -0,0 +1,5 @@
1
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
2
+ export interface ChaoscomponentsGetChaosComponentVariableData {
3
+ name?: string;
4
+ variables?: TemplateVariable[];
5
+ }
@@ -0,0 +1,4 @@
1
+ import type { ChaoscomponentsGetChaosComponentVariableData } from '../schemas/ChaoscomponentsGetChaosComponentVariableData';
2
+ export interface ChaoscomponentsGetChaosComponentVariableResponse {
3
+ items?: ChaoscomponentsGetChaosComponentVariableData[];
4
+ }
@@ -1,11 +1,11 @@
1
1
  import type { TemplateChaosComponentInputsetSpec } from '../schemas/TemplateChaosComponentInputsetSpec';
2
- import type { ChaosComponentChaosComponentType } from '../schemas/ChaosComponentChaosComponentType';
2
+ import type { ChaoscomponentChaosComponentType } from '../schemas/ChaoscomponentChaosComponentType';
3
3
  import type { ChaoscomponentsUserMetaData } from '../schemas/ChaoscomponentsUserMetaData';
4
4
  export interface ChaoscomponentsRunChaosComponentRequest {
5
5
  duration?: string;
6
6
  identity?: string;
7
7
  infraReference?: string;
8
8
  runtimeInputs?: TemplateChaosComponentInputsetSpec;
9
- type?: ChaosComponentChaosComponentType;
9
+ type?: ChaoscomponentChaosComponentType;
10
10
  userMetaData?: ChaoscomponentsUserMetaData;
11
11
  }
@@ -40,7 +40,7 @@ export interface InputsetInputSet {
40
40
  * Foreign key to link with probes
41
41
  * TODO: not sure if required
42
42
  * ProbeID string `bson:"probe_id"`
43
- * For fault level variables, key = step
43
+ * For fault level inputs, key = step
44
44
  */
45
45
  spec?: string;
46
46
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.49.1-beta.2",
3
+ "version": "1.50.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,4 +0,0 @@
1
- export interface ChaosComponentActionData {
2
- name?: string;
3
- type?: string;
4
- }
@@ -1,26 +0,0 @@
1
- import type { ChaosComponentChaosData } from '../schemas/ChaosComponentChaosData';
2
- import type { ChaosComponentErrorData } from '../schemas/ChaosComponentErrorData';
3
- import type { ChaosComponentInfraType } from '../schemas/ChaosComponentInfraType';
4
- import type { ChaosComponentStatus } from '../schemas/ChaosComponentStatus';
5
- import type { ChaosComponentType } from '../schemas/ChaosComponentType';
6
- export interface ChaosComponentChaosComponentExecutionNode {
7
- accountID?: string;
8
- chaosData?: ChaosComponentChaosData;
9
- errorData?: ChaosComponentErrorData;
10
- finishedAt?: number;
11
- identity?: string;
12
- infraID?: string;
13
- infraType?: ChaosComponentInfraType;
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?: ChaosComponentStatus;
24
- streamID?: string;
25
- type?: ChaosComponentType;
26
- }
@@ -1 +0,0 @@
1
- export type ChaosComponentChaosComponentType = 'Action' | 'Fault' | 'Probe';
@@ -1,8 +0,0 @@
1
- import type { ChaosComponentActionData } from '../schemas/ChaosComponentActionData';
2
- import type { ChaosComponentFaultData } from '../schemas/ChaosComponentFaultData';
3
- import type { ChaosComponentProbeData } from '../schemas/ChaosComponentProbeData';
4
- export interface ChaosComponentChaosData {
5
- actionData?: ChaosComponentActionData;
6
- faultData?: ChaosComponentFaultData;
7
- probeData?: ChaosComponentProbeData;
8
- }
@@ -1,3 +0,0 @@
1
- export interface ChaosComponentCommandProbe {
2
- output?: number[];
3
- }
@@ -1,8 +0,0 @@
1
- import type { ChaosComponentHelperPodDetails } from '../schemas/ChaosComponentHelperPodDetails';
2
- import type { V1alpha1Targets } from '../schemas/V1alpha1Targets';
3
- export interface ChaosComponentFaultData {
4
- helperPodDetails?: ChaosComponentHelperPodDetails[];
5
- name?: string;
6
- namespace?: string;
7
- targets?: V1alpha1Targets[];
8
- }
@@ -1,4 +0,0 @@
1
- export interface ChaosComponentHelperPodDetails {
2
- logStreamID?: string;
3
- name?: string;
4
- }
@@ -1 +0,0 @@
1
- export type ChaosComponentInfraType = 'Kubernetes';
@@ -1,8 +0,0 @@
1
- import type { ChaosComponentProbeIterations } from '../schemas/ChaosComponentProbeIterations';
2
- export interface ChaosComponentProbeData {
3
- description?: string;
4
- iterations?: ChaosComponentProbeIterations[];
5
- name?: string;
6
- probeType?: string;
7
- risks?: string[];
8
- }
@@ -1,11 +0,0 @@
1
- import type { ChaosComponentCommandProbe } from '../schemas/ChaosComponentCommandProbe';
2
- import type { ChaosComponentHttpProbe } from '../schemas/ChaosComponentHttpProbe';
3
- import type { ChaosComponentPromProbe } from '../schemas/ChaosComponentPromProbe';
4
- export interface ChaosComponentProbeIterations {
5
- commandProbe?: ChaosComponentCommandProbe;
6
- duration?: number;
7
- httpProbe?: ChaosComponentHttpProbe;
8
- phase?: string;
9
- promProbe?: ChaosComponentPromProbe;
10
- timestamp?: number;
11
- }
@@ -1,3 +0,0 @@
1
- export interface ChaosComponentPromProbe {
2
- metrics?: string;
3
- }
@@ -1 +0,0 @@
1
- export type ChaosComponentType = 'ACTION' | 'FAULT' | 'PROBE';