@harnessio/react-chaos-manager-client 1.18.0 → 1.18.1-beta.1

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 (66) hide show
  1. package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunsForPipelineQuery.d.ts +26 -0
  2. package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunsForPipelineQuery.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useGetProbesInExperimentQuery.d.ts +26 -0
  4. package/dist/chaos-manager/src/services/hooks/useGetProbesInExperimentQuery.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useListFaultv2Query.d.ts +3 -2
  6. package/dist/chaos-manager/src/services/hooks/usePipelineAddExperimentRecommendationMutation.d.ts +23 -0
  7. package/dist/chaos-manager/src/services/hooks/usePipelineAddExperimentRecommendationMutation.js +14 -0
  8. package/dist/chaos-manager/src/services/hooks/usePipelineCanOnboardChaosQuery.d.ts +26 -0
  9. package/dist/chaos-manager/src/services/hooks/usePipelineCanOnboardChaosQuery.js +14 -0
  10. package/dist/chaos-manager/src/services/hooks/usePipelineOnboardChaosMutation.d.ts +27 -0
  11. package/dist/chaos-manager/src/services/hooks/usePipelineOnboardChaosMutation.js +14 -0
  12. package/dist/chaos-manager/src/services/hooks/usePipelineOnboardChaosStatusQuery.d.ts +26 -0
  13. package/dist/chaos-manager/src/services/hooks/usePipelineOnboardChaosStatusQuery.js +14 -0
  14. package/dist/chaos-manager/src/services/hooks/useVerifyChaosStageInPipelineRunQuery.d.ts +26 -0
  15. package/dist/chaos-manager/src/services/hooks/useVerifyChaosStageInPipelineRunQuery.js +14 -0
  16. package/dist/chaos-manager/src/services/index.d.ts +32 -1
  17. package/dist/chaos-manager/src/services/index.js +7 -0
  18. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateChaosFaultTemplate.d.ts +2 -0
  19. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails.d.ts +5 -0
  20. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails.d.ts +5 -0
  21. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails.js +4 -0
  22. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendation.d.ts +2 -0
  23. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeStatus.d.ts +11 -0
  24. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeStatus.js +1 -0
  25. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeVerdict.d.ts +1 -0
  26. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeVerdict.js +4 -0
  27. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse.d.ts +16 -0
  28. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse.js +4 -0
  29. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse.d.ts +27 -0
  30. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse.js +1 -0
  31. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingTaskRequest.d.ts +3 -0
  32. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingTaskRequest.js +4 -0
  33. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingTaskResponse.d.ts +3 -0
  34. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingTaskResponse.js +4 -0
  35. package/dist/chaos-manager/src/services/schemas/PipelineonboardingStatus.d.ts +1 -0
  36. package/dist/chaos-manager/src/services/schemas/PipelineonboardingStatus.js +4 -0
  37. package/dist/chaos-manager/src/services/schemas/PipelinesVerifyChaosStageInPipelineRunResponse.d.ts +3 -0
  38. package/dist/chaos-manager/src/services/schemas/PipelinesVerifyChaosStageInPipelineRunResponse.js +4 -0
  39. package/dist/chaos-manager/src/services/schemas/ProbeInfrastructureType.d.ts +1 -1
  40. package/dist/chaos-manager/src/services/schemas/ProbeLinuxCmdProbe.d.ts +2 -0
  41. package/dist/chaos-manager/src/services/schemas/ProbeWindowsCmdProbe.d.ts +2 -0
  42. package/dist/chaos-manager/src/services/schemas/RecommendationPipelineFilters.d.ts +6 -0
  43. package/dist/chaos-manager/src/services/schemas/RecommendationPipelineFilters.js +4 -0
  44. package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationCategory.d.ts +1 -1
  45. package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationSource.d.ts +1 -1
  46. package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationType.d.ts +1 -1
  47. package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
  48. package/dist/chaos-manager/src/services/schemas/TypesCreateProbeResponse.d.ts +2 -1
  49. package/dist/chaos-manager/src/services/schemas/TypesExecutedByExperiment.d.ts +2 -2
  50. package/dist/chaos-manager/src/services/schemas/TypesFilterListChaosPipelineRuns.d.ts +3 -0
  51. package/dist/chaos-manager/src/services/schemas/TypesFilterListChaosPipelineRuns.js +4 -0
  52. package/dist/chaos-manager/src/services/schemas/TypesInfra.d.ts +6 -0
  53. package/dist/chaos-manager/src/services/schemas/TypesInfra.js +4 -0
  54. package/dist/chaos-manager/src/services/schemas/TypesListChaosPipelineRuns.d.ts +14 -0
  55. package/dist/chaos-manager/src/services/schemas/TypesListChaosPipelineRuns.js +1 -0
  56. package/dist/chaos-manager/src/services/schemas/TypesProbeDetailsInExperiment.d.ts +18 -0
  57. package/dist/chaos-manager/src/services/schemas/TypesProbeDetailsInExperiment.js +1 -0
  58. package/dist/chaos-manager/src/services/schemas/TypesProbeDetailsInExperimentRequest.d.ts +4 -0
  59. package/dist/chaos-manager/src/services/schemas/TypesProbeDetailsInExperimentRequest.js +4 -0
  60. package/dist/chaos-manager/src/services/schemas/TypesProbeDetailsInExperimentResponse.d.ts +4 -0
  61. package/dist/chaos-manager/src/services/schemas/TypesProbeDetailsInExperimentResponse.js +1 -0
  62. package/dist/chaos-manager/src/services/schemas/TypesProbeDetailsMinimal.d.ts +8 -0
  63. package/dist/chaos-manager/src/services/schemas/TypesProbeDetailsMinimal.js +1 -0
  64. package/package.json +1 -1
  65. package/dist/chaos-manager/src/services/schemas/TypesUserDetails.d.ts +0 -5
  66. /package/dist/chaos-manager/src/services/schemas/{TypesUserDetails.js → GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails.js} +0 -0
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesListChaosPipelineRuns } from '../schemas/TypesListChaosPipelineRuns';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { TypesFilterListChaosPipelineRuns } from '../schemas/TypesFilterListChaosPipelineRuns';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface GetChaosExperimentRunsForPipelineQueryQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier: string;
9
+ projectIdentifier: string;
10
+ }
11
+ export type GetChaosExperimentRunsForPipelineRequestBody = TypesFilterListChaosPipelineRuns;
12
+ export type GetChaosExperimentRunsForPipelineOkResponse = TypesListChaosPipelineRuns[];
13
+ export type GetChaosExperimentRunsForPipelineErrorResponse = ApiRestError;
14
+ export interface GetChaosExperimentRunsForPipelineProps extends Omit<FetcherOptions<GetChaosExperimentRunsForPipelineQueryQueryParams, GetChaosExperimentRunsForPipelineRequestBody>, 'url'> {
15
+ queryParams: GetChaosExperimentRunsForPipelineQueryQueryParams;
16
+ body: GetChaosExperimentRunsForPipelineRequestBody;
17
+ }
18
+ export interface GetChaosExperimentRunsForPipelineResponseContainer {
19
+ body: GetChaosExperimentRunsForPipelineOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function getChaosExperimentRunsForPipeline(props: GetChaosExperimentRunsForPipelineProps): Promise<GetChaosExperimentRunsForPipelineResponseContainer>;
23
+ /**
24
+ * List the experiment runs for a pipeline execution
25
+ */
26
+ export declare function useGetChaosExperimentRunsForPipelineQuery(props: GetChaosExperimentRunsForPipelineProps, options?: Omit<UseQueryOptions<GetChaosExperimentRunsForPipelineResponseContainer, GetChaosExperimentRunsForPipelineErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosExperimentRunsForPipelineResponseContainer, 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 getChaosExperimentRunsForPipeline(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/pipeline/experiment/runs`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * List the experiment runs for a pipeline execution
11
+ */
12
+ export function useGetChaosExperimentRunsForPipelineQuery(props, options) {
13
+ return useQuery(['getChaosExperimentRunsForPipeline', props.queryParams, props.body], ({ signal }) => getChaosExperimentRunsForPipeline(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesProbeDetailsInExperimentResponse } from '../schemas/TypesProbeDetailsInExperimentResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { TypesProbeDetailsInExperimentRequest } from '../schemas/TypesProbeDetailsInExperimentRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface GetProbesInExperimentQueryQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier: string;
9
+ projectIdentifier: string;
10
+ }
11
+ export type GetProbesInExperimentRequestBody = TypesProbeDetailsInExperimentRequest;
12
+ export type GetProbesInExperimentOkResponse = TypesProbeDetailsInExperimentResponse;
13
+ export type GetProbesInExperimentErrorResponse = ApiRestError;
14
+ export interface GetProbesInExperimentProps extends Omit<FetcherOptions<GetProbesInExperimentQueryQueryParams, GetProbesInExperimentRequestBody>, 'url'> {
15
+ queryParams: GetProbesInExperimentQueryQueryParams;
16
+ body: GetProbesInExperimentRequestBody;
17
+ }
18
+ export interface GetProbesInExperimentResponseContainer {
19
+ body: GetProbesInExperimentOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function getProbesInExperiment(props: GetProbesInExperimentProps): Promise<GetProbesInExperimentResponseContainer>;
23
+ /**
24
+ * Get Probes In Experiment
25
+ */
26
+ export declare function useGetProbesInExperimentQuery(props: GetProbesInExperimentProps, options?: Omit<UseQueryOptions<GetProbesInExperimentResponseContainer, GetProbesInExperimentErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProbesInExperimentResponseContainer, 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 getProbesInExperiment(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/probes/experiment-run`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get Probes In Experiment
11
+ */
12
+ export function useGetProbesInExperimentQuery(props, options) {
13
+ return useQuery(['getProbesInExperiment', props.queryParams, props.body], ({ signal }) => getProbesInExperiment(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -6,7 +6,8 @@ export interface ListFaultv2QueryQueryParams {
6
6
  accountIdentifier: string;
7
7
  category?: string;
8
8
  correlationID?: string;
9
- infrastructureType?: 'KubernetesV2';
9
+ infrastructure?: 'KubernetesV2';
10
+ infrastructureType?: 'Kubernetes';
10
11
  isEnterprise?: boolean;
11
12
  /**
12
13
  * @default 10
@@ -22,7 +23,7 @@ export interface ListFaultv2QueryQueryParams {
22
23
  sortAscending?: boolean;
23
24
  sortField?: 'lastUpdated' | 'name';
24
25
  tags?: string;
25
- type?: 'Resource';
26
+ type?: string;
26
27
  }
27
28
  export type ListFaultv2OkResponse = ChaosfaultListFaultResponse;
28
29
  export type ListFaultv2ErrorResponse = ApiRestError;
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
3
+ export interface PipelineAddExperimentRecommendationMutationQueryParams {
4
+ accountIdentifier: string;
5
+ organizationIdentifier: string;
6
+ projectIdentifier: string;
7
+ recommendationID: string;
8
+ }
9
+ export type PipelineAddExperimentRecommendationOkResponse = unknown;
10
+ export type PipelineAddExperimentRecommendationErrorResponse = unknown;
11
+ export interface PipelineAddExperimentRecommendationProps extends Omit<FetcherOptions<PipelineAddExperimentRecommendationMutationQueryParams, unknown>, 'url'> {
12
+ queryParams: PipelineAddExperimentRecommendationMutationQueryParams;
13
+ }
14
+ export interface PipelineAddExperimentRecommendationResponseContainer {
15
+ body: PipelineAddExperimentRecommendationOkResponse;
16
+ headers: Headers;
17
+ }
18
+ export declare function pipelineAddExperimentRecommendation(props: PipelineAddExperimentRecommendationProps): Promise<PipelineAddExperimentRecommendationResponseContainer>;
19
+ export type PipelineAddExperimentRecommendationMutationProps<T extends keyof PipelineAddExperimentRecommendationProps> = Omit<PipelineAddExperimentRecommendationProps, T> & Partial<Pick<PipelineAddExperimentRecommendationProps, T>>;
20
+ /**
21
+ * Add recommended experiment to pipeline
22
+ */
23
+ export declare function usePipelineAddExperimentRecommendationMutation<T extends keyof PipelineAddExperimentRecommendationProps>(props: Pick<Partial<PipelineAddExperimentRecommendationProps>, T>, options?: Omit<UseMutationOptions<PipelineAddExperimentRecommendationResponseContainer, PipelineAddExperimentRecommendationErrorResponse, PipelineAddExperimentRecommendationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PipelineAddExperimentRecommendationResponseContainer, unknown, PipelineAddExperimentRecommendationMutationProps<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 pipelineAddExperimentRecommendation(props) {
7
+ return fetcher(Object.assign({ url: `/rest/recommendations/action/pipeline`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Add recommended experiment to pipeline
11
+ */
12
+ export function usePipelineAddExperimentRecommendationMutation(props, options) {
13
+ return useMutation((mutateProps) => pipelineAddExperimentRecommendation(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PipelineonboardingPipelineChaosOnboardingCheckResponse } from '../schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface PipelineCanOnboardChaosQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface PipelineCanOnboardChaosQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export type PipelineCanOnboardChaosOkResponse = PipelineonboardingPipelineChaosOnboardingCheckResponse;
14
+ export type PipelineCanOnboardChaosErrorResponse = ApiRestError;
15
+ export interface PipelineCanOnboardChaosProps extends PipelineCanOnboardChaosQueryPathParams, Omit<FetcherOptions<PipelineCanOnboardChaosQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: PipelineCanOnboardChaosQueryQueryParams;
17
+ }
18
+ export interface PipelineCanOnboardChaosResponseContainer {
19
+ body: PipelineCanOnboardChaosOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function pipelineCanOnboardChaos(props: PipelineCanOnboardChaosProps): Promise<PipelineCanOnboardChaosResponseContainer>;
23
+ /**
24
+ * Checks if a pipeline can be onboarded or not
25
+ */
26
+ export declare function usePipelineCanOnboardChaosQuery(props: PipelineCanOnboardChaosProps, options?: Omit<UseQueryOptions<PipelineCanOnboardChaosResponseContainer, PipelineCanOnboardChaosErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<PipelineCanOnboardChaosResponseContainer, 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 pipelineCanOnboardChaos(props) {
7
+ return fetcher(Object.assign({ url: `/rest/pipeline-onboarding/${props.identity}/can-onboard-chaos`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Checks if a pipeline can be onboarded or not
11
+ */
12
+ export function usePipelineCanOnboardChaosQuery(props, options) {
13
+ return useQuery(['pipelineCanOnboardChaos', props.identity, props.queryParams], ({ signal }) => pipelineCanOnboardChaos(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { PipelineonboardingPipelineChaosOnboardingTaskResponse } from '../schemas/PipelineonboardingPipelineChaosOnboardingTaskResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { PipelineonboardingPipelineChaosOnboardingTaskRequest } from '../schemas/PipelineonboardingPipelineChaosOnboardingTaskRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface PipelineOnboardChaosMutationQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier?: string;
9
+ projectIdentifier?: string;
10
+ }
11
+ export type PipelineOnboardChaosRequestBody = PipelineonboardingPipelineChaosOnboardingTaskRequest;
12
+ export type PipelineOnboardChaosOkResponse = PipelineonboardingPipelineChaosOnboardingTaskResponse;
13
+ export type PipelineOnboardChaosErrorResponse = ApiRestError;
14
+ export interface PipelineOnboardChaosProps extends Omit<FetcherOptions<PipelineOnboardChaosMutationQueryParams, PipelineOnboardChaosRequestBody>, 'url'> {
15
+ queryParams: PipelineOnboardChaosMutationQueryParams;
16
+ body: PipelineOnboardChaosRequestBody;
17
+ }
18
+ export interface PipelineOnboardChaosResponseContainer {
19
+ body: PipelineOnboardChaosOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function pipelineOnboardChaos(props: PipelineOnboardChaosProps): Promise<PipelineOnboardChaosResponseContainer>;
23
+ export type PipelineOnboardChaosMutationProps<T extends keyof PipelineOnboardChaosProps> = Omit<PipelineOnboardChaosProps, T> & Partial<Pick<PipelineOnboardChaosProps, T>>;
24
+ /**
25
+ * Onboards a pipeline to chaos
26
+ */
27
+ export declare function usePipelineOnboardChaosMutation<T extends keyof PipelineOnboardChaosProps>(props: Pick<Partial<PipelineOnboardChaosProps>, T>, options?: Omit<UseMutationOptions<PipelineOnboardChaosResponseContainer, PipelineOnboardChaosErrorResponse, PipelineOnboardChaosMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PipelineOnboardChaosResponseContainer, ApiRestError, PipelineOnboardChaosMutationProps<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 pipelineOnboardChaos(props) {
7
+ return fetcher(Object.assign({ url: `/rest/pipeline-onboarding`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Onboards a pipeline to chaos
11
+ */
12
+ export function usePipelineOnboardChaosMutation(props, options) {
13
+ return useMutation((mutateProps) => pipelineOnboardChaos(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PipelineonboardingPipelineChaosOnboardingStatusResponse } from '../schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface PipelineOnboardChaosStatusQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface PipelineOnboardChaosStatusQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export type PipelineOnboardChaosStatusOkResponse = PipelineonboardingPipelineChaosOnboardingStatusResponse;
14
+ export type PipelineOnboardChaosStatusErrorResponse = ApiRestError;
15
+ export interface PipelineOnboardChaosStatusProps extends PipelineOnboardChaosStatusQueryPathParams, Omit<FetcherOptions<PipelineOnboardChaosStatusQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: PipelineOnboardChaosStatusQueryQueryParams;
17
+ }
18
+ export interface PipelineOnboardChaosStatusResponseContainer {
19
+ body: PipelineOnboardChaosStatusOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function pipelineOnboardChaosStatus(props: PipelineOnboardChaosStatusProps): Promise<PipelineOnboardChaosStatusResponseContainer>;
23
+ /**
24
+ * Checks chaos onboarding status for the pipeline
25
+ */
26
+ export declare function usePipelineOnboardChaosStatusQuery(props: PipelineOnboardChaosStatusProps, options?: Omit<UseQueryOptions<PipelineOnboardChaosStatusResponseContainer, PipelineOnboardChaosStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<PipelineOnboardChaosStatusResponseContainer, 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 pipelineOnboardChaosStatus(props) {
7
+ return fetcher(Object.assign({ url: `/rest/pipeline-onboarding/${props.identity}/status`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Checks chaos onboarding status for the pipeline
11
+ */
12
+ export function usePipelineOnboardChaosStatusQuery(props, options) {
13
+ return useQuery(['pipelineOnboardChaosStatus', props.identity, props.queryParams], ({ signal }) => pipelineOnboardChaosStatus(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PipelinesVerifyChaosStageInPipelineRunResponse } from '../schemas/PipelinesVerifyChaosStageInPipelineRunResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface VerifyChaosStageInPipelineRunQueryQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ pipelineID?: string;
10
+ executionID?: string;
11
+ stageID?: string;
12
+ }
13
+ export type VerifyChaosStageInPipelineRunOkResponse = PipelinesVerifyChaosStageInPipelineRunResponse;
14
+ export type VerifyChaosStageInPipelineRunErrorResponse = ApiRestError;
15
+ export interface VerifyChaosStageInPipelineRunProps extends Omit<FetcherOptions<VerifyChaosStageInPipelineRunQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: VerifyChaosStageInPipelineRunQueryQueryParams;
17
+ }
18
+ export interface VerifyChaosStageInPipelineRunResponseContainer {
19
+ body: VerifyChaosStageInPipelineRunOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function verifyChaosStageInPipelineRun(props: VerifyChaosStageInPipelineRunProps): Promise<VerifyChaosStageInPipelineRunResponseContainer>;
23
+ /**
24
+ * Verify the chaos stage in pipeline run
25
+ */
26
+ export declare function useVerifyChaosStageInPipelineRunQuery(props: VerifyChaosStageInPipelineRunProps, options?: Omit<UseQueryOptions<VerifyChaosStageInPipelineRunResponseContainer, VerifyChaosStageInPipelineRunErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<VerifyChaosStageInPipelineRunResponseContainer, 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 verifyChaosStageInPipelineRun(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/pipeline/verify/runs`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Verify the chaos stage in pipeline run
11
+ */
12
+ export function useVerifyChaosStageInPipelineRunQuery(props, options) {
13
+ return useQuery(['verifyChaosStageInPipelineRun', props.queryParams], ({ signal }) => verifyChaosStageInPipelineRun(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -82,6 +82,8 @@ export type { GetChaosDashboardErrorResponse, GetChaosDashboardOkResponse, GetCh
82
82
  export { getChaosDashboard, useGetChaosDashboardQuery } from './hooks/useGetChaosDashboardQuery';
83
83
  export type { GetChaosExperimentRunReportErrorResponse, GetChaosExperimentRunReportOkResponse, GetChaosExperimentRunReportProps, GetChaosExperimentRunReportQueryPathParams, GetChaosExperimentRunReportQueryQueryParams, } from './hooks/useGetChaosExperimentRunReportQuery';
84
84
  export { getChaosExperimentRunReport, useGetChaosExperimentRunReportQuery, } from './hooks/useGetChaosExperimentRunReportQuery';
85
+ export type { GetChaosExperimentRunsForPipelineErrorResponse, GetChaosExperimentRunsForPipelineOkResponse, GetChaosExperimentRunsForPipelineProps, GetChaosExperimentRunsForPipelineQueryQueryParams, GetChaosExperimentRunsForPipelineRequestBody, } from './hooks/useGetChaosExperimentRunsForPipelineQuery';
86
+ export { getChaosExperimentRunsForPipeline, useGetChaosExperimentRunsForPipelineQuery, } from './hooks/useGetChaosExperimentRunsForPipelineQuery';
85
87
  export type { GetChaosHubErrorResponse, GetChaosHubOkResponse, GetChaosHubProps, GetChaosHubQueryPathParams, GetChaosHubQueryQueryParams, } from './hooks/useGetChaosHubQuery';
86
88
  export { getChaosHub, useGetChaosHubQuery } from './hooks/useGetChaosHubQuery';
87
89
  export type { GetChaosPipelineExecutionErrorResponse, GetChaosPipelineExecutionOkResponse, GetChaosPipelineExecutionProps, GetChaosPipelineExecutionQueryPathParams, GetChaosPipelineExecutionQueryQueryParams, } from './hooks/useGetChaosPipelineExecutionQuery';
@@ -146,6 +148,8 @@ export type { GetProbeErrorResponse, GetProbeOkResponse, GetProbeProps, GetProbe
146
148
  export { getProbe, useGetProbeQuery } from './hooks/useGetProbeQuery';
147
149
  export type { GetProbeTemplateErrorResponse, GetProbeTemplateOkResponse, GetProbeTemplateProps, GetProbeTemplateQueryPathParams, GetProbeTemplateQueryQueryParams, } from './hooks/useGetProbeTemplateQuery';
148
150
  export { getProbeTemplate, useGetProbeTemplateQuery } from './hooks/useGetProbeTemplateQuery';
151
+ export type { GetProbesInExperimentErrorResponse, GetProbesInExperimentOkResponse, GetProbesInExperimentProps, GetProbesInExperimentQueryQueryParams, GetProbesInExperimentRequestBody, } from './hooks/useGetProbesInExperimentQuery';
152
+ export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/useGetProbesInExperimentQuery';
149
153
  export type { GetRecommendationErrorResponse, GetRecommendationOkResponse, GetRecommendationProps, GetRecommendationQueryQueryParams, } from './hooks/useGetRecommendationQuery';
150
154
  export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
151
155
  export type { GetResourceUsageErrorResponse, GetResourceUsageOkResponse, GetResourceUsageProps, } from './hooks/useGetResourceUsageQuery';
@@ -230,6 +234,14 @@ export type { OnboardingConfirmExperimentRunErrorResponse, OnboardingConfirmExpe
230
234
  export { onboardingConfirmExperimentRun, useOnboardingConfirmExperimentRunMutation, } from './hooks/useOnboardingConfirmExperimentRunMutation';
231
235
  export type { OnboardingConfirmNetworkMapErrorResponse, OnboardingConfirmNetworkMapMutationPathParams, OnboardingConfirmNetworkMapMutationProps, OnboardingConfirmNetworkMapMutationQueryParams, OnboardingConfirmNetworkMapOkResponse, OnboardingConfirmNetworkMapProps, OnboardingConfirmNetworkMapRequestBody, } from './hooks/useOnboardingConfirmNetworkMapMutation';
232
236
  export { onboardingConfirmNetworkMap, useOnboardingConfirmNetworkMapMutation, } from './hooks/useOnboardingConfirmNetworkMapMutation';
237
+ export type { PipelineAddExperimentRecommendationErrorResponse, PipelineAddExperimentRecommendationMutationProps, PipelineAddExperimentRecommendationMutationQueryParams, PipelineAddExperimentRecommendationOkResponse, PipelineAddExperimentRecommendationProps, } from './hooks/usePipelineAddExperimentRecommendationMutation';
238
+ export { pipelineAddExperimentRecommendation, usePipelineAddExperimentRecommendationMutation, } from './hooks/usePipelineAddExperimentRecommendationMutation';
239
+ export type { PipelineCanOnboardChaosErrorResponse, PipelineCanOnboardChaosOkResponse, PipelineCanOnboardChaosProps, PipelineCanOnboardChaosQueryPathParams, PipelineCanOnboardChaosQueryQueryParams, } from './hooks/usePipelineCanOnboardChaosQuery';
240
+ export { pipelineCanOnboardChaos, usePipelineCanOnboardChaosQuery, } from './hooks/usePipelineCanOnboardChaosQuery';
241
+ export type { PipelineOnboardChaosErrorResponse, PipelineOnboardChaosMutationProps, PipelineOnboardChaosMutationQueryParams, PipelineOnboardChaosOkResponse, PipelineOnboardChaosProps, PipelineOnboardChaosRequestBody, } from './hooks/usePipelineOnboardChaosMutation';
242
+ export { pipelineOnboardChaos, usePipelineOnboardChaosMutation, } from './hooks/usePipelineOnboardChaosMutation';
243
+ export type { PipelineOnboardChaosStatusErrorResponse, PipelineOnboardChaosStatusOkResponse, PipelineOnboardChaosStatusProps, PipelineOnboardChaosStatusQueryPathParams, PipelineOnboardChaosStatusQueryQueryParams, } from './hooks/usePipelineOnboardChaosStatusQuery';
244
+ export { pipelineOnboardChaosStatus, usePipelineOnboardChaosStatusQuery, } from './hooks/usePipelineOnboardChaosStatusQuery';
233
245
  export type { RecommendationEventErrorResponse, RecommendationEventMutationProps, RecommendationEventOkResponse, RecommendationEventProps, RecommendationEventRequestBody, } from './hooks/useRecommendationEventMutation';
234
246
  export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
235
247
  export type { RegisterInfraV2ErrorResponse, RegisterInfraV2MutationProps, RegisterInfraV2MutationQueryParams, RegisterInfraV2OkResponse, RegisterInfraV2Props, RegisterInfraV2RequestBody, } from './hooks/useRegisterInfraV2Mutation';
@@ -286,6 +298,8 @@ export type { UpdateProbeTemplateErrorResponse, UpdateProbeTemplateMutationPathP
286
298
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
287
299
  export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatusMutationProps, UpdateRecommendationStatusMutationQueryParams, UpdateRecommendationStatusOkResponse, UpdateRecommendationStatusProps, } from './hooks/useUpdateRecommendationStatusMutation';
288
300
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
301
+ export type { VerifyChaosStageInPipelineRunErrorResponse, VerifyChaosStageInPipelineRunOkResponse, VerifyChaosStageInPipelineRunProps, VerifyChaosStageInPipelineRunQueryQueryParams, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
302
+ export { useVerifyChaosStageInPipelineRunQuery, verifyChaosStageInPipelineRun, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
289
303
  export type { ChaosfaulttemplateActionTemplateRequestBody } from './requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
290
304
  export type { InfraV2ListKubernetesInfraV2RequestRequestBody } from './requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
291
305
  export type { TypesProbeRequestRequestBody } from './requestBodies/TypesProbeRequestRequestBody';
@@ -490,7 +504,9 @@ export type { GithubComHarnessHceSaasGraphqlServerGraphModelInfraFilterInput } f
490
504
  export type { GithubComHarnessHceSaasGraphqlServerGraphModelPagination } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelPagination';
491
505
  export type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails';
492
506
  export type { GithubComHarnessHceSaasGraphqlServerPkgActionsAction } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction';
507
+ export type { GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails';
493
508
  export type { GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesProbeVerdict } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesProbeVerdict';
509
+ export type { GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails';
494
510
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction';
495
511
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate';
496
512
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppDynamicsProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppDynamicsProbeInputs';
@@ -528,6 +544,8 @@ export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilit
528
544
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs';
529
545
  export type { GithubComHarnessHceSaasHceSdkTypesApiK8sifsImageRegistryScopedIdentifiers } from './schemas/GithubComHarnessHceSaasHceSdkTypesApiK8sifsImageRegistryScopedIdentifiers';
530
546
  export type { GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra } from './schemas/GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra';
547
+ export type { GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeStatus } from './schemas/GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeStatus';
548
+ export type { GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeVerdict } from './schemas/GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeVerdict';
531
549
  export type { HandlersChaosExperimentRunsStatsResponse } from './schemas/HandlersChaosExperimentRunsStatsResponse';
532
550
  export type { HandlersChaosLicenseUsageDto } from './schemas/HandlersChaosLicenseUsageDto';
533
551
  export type { HandlersDashboard } from './schemas/HandlersDashboard';
@@ -641,10 +659,16 @@ export type { NetworkmapListTargetServiceResponse } from './schemas/NetworkmapLi
641
659
  export type { NetworkmapRetryExperimentCreationRequest } from './schemas/NetworkmapRetryExperimentCreationRequest';
642
660
  export type { NetworkmapRetryExperimentCreationResponse } from './schemas/NetworkmapRetryExperimentCreationResponse';
643
661
  export type { NetworkmapTargetServiceDetails } from './schemas/NetworkmapTargetServiceDetails';
662
+ export type { PipelineonboardingPipelineChaosOnboardingCheckResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse';
663
+ export type { PipelineonboardingPipelineChaosOnboardingStatusResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse';
664
+ export type { PipelineonboardingPipelineChaosOnboardingTaskRequest } from './schemas/PipelineonboardingPipelineChaosOnboardingTaskRequest';
665
+ export type { PipelineonboardingPipelineChaosOnboardingTaskResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingTaskResponse';
666
+ export type { PipelineonboardingStatus } from './schemas/PipelineonboardingStatus';
644
667
  export type { PipelinesBulkExperimentRunResponse } from './schemas/PipelinesBulkExperimentRunResponse';
645
668
  export type { PipelinesChaosPipelineInput } from './schemas/PipelinesChaosPipelineInput';
646
669
  export type { PipelinesCreatePipelineResponse } from './schemas/PipelinesCreatePipelineResponse';
647
670
  export type { PipelinesExperimentSpec } from './schemas/PipelinesExperimentSpec';
671
+ export type { PipelinesVerifyChaosStageInPipelineRunResponse } from './schemas/PipelinesVerifyChaosStageInPipelineRunResponse';
648
672
  export type { ProbeApmProbe } from './schemas/ProbeApmProbe';
649
673
  export type { ProbeApmProbeTemplate } from './schemas/ProbeApmProbeTemplate';
650
674
  export type { ProbeApmProbeType } from './schemas/ProbeApmProbeType';
@@ -697,6 +721,7 @@ export type { RecommendationFaultFilters } from './schemas/RecommendationFaultFi
697
721
  export type { RecommendationFaultPayload } from './schemas/RecommendationFaultPayload';
698
722
  export type { RecommendationFixes } from './schemas/RecommendationFixes';
699
723
  export type { RecommendationIdentifiers } from './schemas/RecommendationIdentifiers';
724
+ export type { RecommendationPipelineFilters } from './schemas/RecommendationPipelineFilters';
700
725
  export type { RecommendationProbeFilters } from './schemas/RecommendationProbeFilters';
701
726
  export type { RecommendationProbePayload } from './schemas/RecommendationProbePayload';
702
727
  export type { RecommendationRecommendationCategory } from './schemas/RecommendationRecommendationCategory';
@@ -757,14 +782,17 @@ export type { TypesExperimentRequest } from './schemas/TypesExperimentRequest';
757
782
  export type { TypesExperimentRunRequest } from './schemas/TypesExperimentRunRequest';
758
783
  export type { TypesExperimentRuns } from './schemas/TypesExperimentRuns';
759
784
  export type { TypesExperimentV2 } from './schemas/TypesExperimentV2';
785
+ export type { TypesFilterListChaosPipelineRuns } from './schemas/TypesFilterListChaosPipelineRuns';
760
786
  export type { TypesGamedayInfraDetails } from './schemas/TypesGamedayInfraDetails';
761
787
  export type { TypesGamedayV2 } from './schemas/TypesGamedayV2';
762
788
  export type { TypesGetGamedayExperimentResponse } from './schemas/TypesGetGamedayExperimentResponse';
763
789
  export type { TypesGetGamedayResponse } from './schemas/TypesGetGamedayResponse';
764
790
  export type { TypesGetProbeResponse } from './schemas/TypesGetProbeResponse';
765
791
  export type { TypesImportProbeTemplateRequest } from './schemas/TypesImportProbeTemplateRequest';
792
+ export type { TypesInfra } from './schemas/TypesInfra';
766
793
  export type { TypesInfrastructureType } from './schemas/TypesInfrastructureType';
767
794
  export type { TypesInternalExperimentRunRequest } from './schemas/TypesInternalExperimentRunRequest';
795
+ export type { TypesListChaosPipelineRuns } from './schemas/TypesListChaosPipelineRuns';
768
796
  export type { TypesListExperimentV2Response } from './schemas/TypesListExperimentV2Response';
769
797
  export type { TypesListGamedayExperimentResponse } from './schemas/TypesListGamedayExperimentResponse';
770
798
  export type { TypesListGamedayRunV2Response } from './schemas/TypesListGamedayRunV2Response';
@@ -775,6 +803,10 @@ export type { TypesNotes } from './schemas/TypesNotes';
775
803
  export type { TypesPrerequisite } from './schemas/TypesPrerequisite';
776
804
  export type { TypesPrerequisiteForRun } from './schemas/TypesPrerequisiteForRun';
777
805
  export type { TypesProbeBulkEnableRequest } from './schemas/TypesProbeBulkEnableRequest';
806
+ export type { TypesProbeDetailsInExperiment } from './schemas/TypesProbeDetailsInExperiment';
807
+ export type { TypesProbeDetailsInExperimentRequest } from './schemas/TypesProbeDetailsInExperimentRequest';
808
+ export type { TypesProbeDetailsInExperimentResponse } from './schemas/TypesProbeDetailsInExperimentResponse';
809
+ export type { TypesProbeDetailsMinimal } from './schemas/TypesProbeDetailsMinimal';
778
810
  export type { TypesProbeRecentExecutions } from './schemas/TypesProbeRecentExecutions';
779
811
  export type { TypesProbeRequest } from './schemas/TypesProbeRequest';
780
812
  export type { TypesProbeType } from './schemas/TypesProbeType';
@@ -797,7 +829,6 @@ export type { TypesUpdateNoteRequest } from './schemas/TypesUpdateNoteRequest';
797
829
  export type { TypesUpdateOperation } from './schemas/TypesUpdateOperation';
798
830
  export type { TypesUpdatePrerequisiteRequest } from './schemas/TypesUpdatePrerequisiteRequest';
799
831
  export type { TypesUpdateStakeHolderActionRequest } from './schemas/TypesUpdateStakeHolderActionRequest';
800
- export type { TypesUserDetails } from './schemas/TypesUserDetails';
801
832
  export type { TypesWeightages } from './schemas/TypesWeightages';
802
833
  export type { V1ApmProbeInputs } from './schemas/V1ApmProbeInputs';
803
834
  export type { V1ApmProbeTlsConfig } from './schemas/V1ApmProbeTlsConfig';
@@ -40,6 +40,7 @@ export { getActionTemplate, useGetActionTemplateQuery } from './hooks/useGetActi
40
40
  export { getActionTemplateRevisionDifference, useGetActionTemplateRevisionDifferenceQuery, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
41
41
  export { getChaosDashboard, useGetChaosDashboardQuery } from './hooks/useGetChaosDashboardQuery';
42
42
  export { getChaosExperimentRunReport, useGetChaosExperimentRunReportQuery, } from './hooks/useGetChaosExperimentRunReportQuery';
43
+ export { getChaosExperimentRunsForPipeline, useGetChaosExperimentRunsForPipelineQuery, } from './hooks/useGetChaosExperimentRunsForPipelineQuery';
43
44
  export { getChaosHub, useGetChaosHubQuery } from './hooks/useGetChaosHubQuery';
44
45
  export { getChaosPipelineExecution, useGetChaosPipelineExecutionQuery, } from './hooks/useGetChaosPipelineExecutionQuery';
45
46
  export { getChaosPipelineStepDetails, useGetChaosPipelineStepDetailsQuery, } from './hooks/useGetChaosPipelineStepDetailsQuery';
@@ -72,6 +73,7 @@ export { getOverallServiceUsageStats, useGetOverallServiceUsageStatsQuery, } fro
72
73
  export { getProbeManifest, useGetProbeManifestQuery } from './hooks/useGetProbeManifestQuery';
73
74
  export { getProbe, useGetProbeQuery } from './hooks/useGetProbeQuery';
74
75
  export { getProbeTemplate, useGetProbeTemplateQuery } from './hooks/useGetProbeTemplateQuery';
76
+ export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/useGetProbesInExperimentQuery';
75
77
  export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
76
78
  export { getResourceUsage, useGetResourceUsageQuery } from './hooks/useGetResourceUsageQuery';
77
79
  export { getServiceResponse, useGetServiceResponseQuery } from './hooks/useGetServiceResponseQuery';
@@ -114,6 +116,10 @@ export { onboardingConfirmDiscovery, useOnboardingConfirmDiscoveryMutation, } fr
114
116
  export { onboardingConfirmExperimentCreation, useOnboardingConfirmExperimentCreationMutation, } from './hooks/useOnboardingConfirmExperimentCreationMutation';
115
117
  export { onboardingConfirmExperimentRun, useOnboardingConfirmExperimentRunMutation, } from './hooks/useOnboardingConfirmExperimentRunMutation';
116
118
  export { onboardingConfirmNetworkMap, useOnboardingConfirmNetworkMapMutation, } from './hooks/useOnboardingConfirmNetworkMapMutation';
119
+ export { pipelineAddExperimentRecommendation, usePipelineAddExperimentRecommendationMutation, } from './hooks/usePipelineAddExperimentRecommendationMutation';
120
+ export { pipelineCanOnboardChaos, usePipelineCanOnboardChaosQuery, } from './hooks/usePipelineCanOnboardChaosQuery';
121
+ export { pipelineOnboardChaos, usePipelineOnboardChaosMutation, } from './hooks/usePipelineOnboardChaosMutation';
122
+ export { pipelineOnboardChaosStatus, usePipelineOnboardChaosStatusQuery, } from './hooks/usePipelineOnboardChaosStatusQuery';
117
123
  export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
118
124
  export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
119
125
  export { registerMachineInfra, useRegisterMachineInfraMutation, } from './hooks/useRegisterMachineInfraMutation';
@@ -142,3 +148,4 @@ export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation
142
148
  export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
143
149
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
144
150
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
151
+ export { useVerifyChaosStageInPipelineRunQuery, verifyChaosStageInPipelineRun, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
@@ -30,6 +30,8 @@ export interface ChaosfaulttemplateChaosFaultTemplate {
30
30
  revision?: string;
31
31
  tags?: string[];
32
32
  template?: string;
33
+ templateUid?: string;
34
+ templateUidWithRevision?: string;
33
35
  type?: string;
34
36
  updatedAt?: number;
35
37
  updatedBy?: string;
@@ -0,0 +1,5 @@
1
+ export interface GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails {
2
+ email?: string;
3
+ userID?: string;
4
+ username?: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails {
2
+ email?: string;
3
+ userID?: 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 {};
@@ -1,9 +1,11 @@
1
+ import type { RecommendationPipelineFilters } from '../schemas/RecommendationPipelineFilters';
1
2
  import type { RecommendationFaultFilters } from '../schemas/RecommendationFaultFilters';
2
3
  import type { RecommendationProbeFilters } from '../schemas/RecommendationProbeFilters';
3
4
  import type { RecommendationRecommendationCategory } from '../schemas/RecommendationRecommendationCategory';
4
5
  import type { RecommendationRecommendationSource } from '../schemas/RecommendationRecommendationSource';
5
6
  import type { RecommendationSuggestions } from '../schemas/RecommendationSuggestions';
6
7
  export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendation {
8
+ PipelineFilters?: RecommendationPipelineFilters;
7
9
  accountID: string;
8
10
  environmentID?: string;
9
11
  eventIdentifier?: string;
@@ -0,0 +1,11 @@
1
+ import type { GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeVerdict } from '../schemas/GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeVerdict';
2
+ export interface GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeStatus {
3
+ /**
4
+ * Description defines the description of probe status
5
+ */
6
+ description?: string;
7
+ /**
8
+ * Verdict defines the verdict of the probe, range: Passed, Failed, N/A
9
+ */
10
+ verdict?: GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeVerdict;
11
+ }
@@ -0,0 +1 @@
1
+ export type GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeVerdict = 'Awaited' | 'Failed' | 'N/A' | 'Passed';
@@ -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,16 @@
1
+ export interface PipelineonboardingPipelineChaosOnboardingCheckResponse {
2
+ check?: boolean;
3
+ infrastructures?: {
4
+ [key: string]: {
5
+ [key: string]: {
6
+ [key: string]: any;
7
+ };
8
+ };
9
+ };
10
+ message?: string;
11
+ services?: {
12
+ [key: string]: {
13
+ [key: string]: any;
14
+ };
15
+ };
16
+ }
@@ -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,27 @@
1
+ import type { PipelineonboardingStatus } from '../schemas/PipelineonboardingStatus';
2
+ export interface PipelineonboardingPipelineChaosOnboardingStatusResponse {
3
+ accountID: string;
4
+ createdAt?: number;
5
+ createdBy?: string;
6
+ infrastructures?: {
7
+ [key: string]: {
8
+ [key: string]: {
9
+ [key: string]: any;
10
+ };
11
+ };
12
+ };
13
+ isRemoved: boolean;
14
+ message?: string;
15
+ orgID?: string;
16
+ pipelineIdentity?: string;
17
+ projectID?: string;
18
+ services?: {
19
+ [key: string]: {
20
+ [key: string]: any;
21
+ };
22
+ };
23
+ singleClickOnboardings?: string[];
24
+ status?: PipelineonboardingStatus;
25
+ updatedAt?: number;
26
+ updatedBy?: string;
27
+ }
@@ -0,0 +1,3 @@
1
+ export interface PipelineonboardingPipelineChaosOnboardingTaskRequest {
2
+ pipelineIdentity?: 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,3 @@
1
+ export interface PipelineonboardingPipelineChaosOnboardingTaskResponse {
2
+ [key: string]: any;
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 PipelineonboardingStatus = 'COMPLETED' | 'ERRORED' | 'RUNNING' | 'SKIPPED';
@@ -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,3 @@
1
+ export interface PipelinesVerifyChaosStageInPipelineRunResponse {
2
+ exists?: boolean;
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 {};
@@ -1 +1 @@
1
- export type ProbeInfrastructureType = 'CloudFoundry' | 'Kubernetes' | 'KubernetesV2' | 'Linux' | 'Windows';
1
+ export type ProbeInfrastructureType = 'CloudFoundry' | 'Container' | 'Kubernetes' | 'KubernetesV2' | 'Linux' | 'Windows';
@@ -1,8 +1,10 @@
1
1
  import type { ProbeComparator } from '../schemas/ProbeComparator';
2
+ import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv';
2
3
  export interface ProbeLinuxCmdProbe {
3
4
  attempt?: {};
4
5
  command?: string;
5
6
  comparator?: ProbeComparator;
7
+ env?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv[];
6
8
  initialDelay?: string;
7
9
  initialDelaySeconds?: {};
8
10
  interval?: string;
@@ -1,8 +1,10 @@
1
1
  import type { ProbeComparator } from '../schemas/ProbeComparator';
2
+ import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv';
2
3
  export interface ProbeWindowsCmdProbe {
3
4
  attempt?: {};
4
5
  command?: string;
5
6
  comparator?: ProbeComparator;
7
+ env?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv[];
6
8
  initialDelay?: string;
7
9
  initialDelaySeconds?: {};
8
10
  interval?: string;
@@ -0,0 +1,6 @@
1
+ export interface RecommendationPipelineFilters {
2
+ pipelineID?: string;
3
+ pipelineName?: string;
4
+ serviceID?: string;
5
+ serviceName?: string;
6
+ }
@@ -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 {};
@@ -1 +1 @@
1
- export type RecommendationRecommendationCategory = 'FAULT' | 'PROBE';
1
+ export type RecommendationRecommendationCategory = 'FAULT' | 'PIPELINE' | 'PROBE';
@@ -1 +1 @@
1
- export type RecommendationRecommendationSource = 'ConfigScanner' | 'K8sWatcher';
1
+ export type RecommendationRecommendationSource = 'ConfigScanner' | 'InternalWatcher' | 'K8sWatcher';
@@ -1 +1 @@
1
- export type RecommendationRecommendationType = 'CREATE' | 'FIX' | 'RUN';
1
+ export type RecommendationRecommendationType = 'ADD_TO_PIPELINE' | 'CREATE' | 'FIX' | 'RUN';
@@ -1,3 +1,3 @@
1
1
  export interface ResourceQuantity {
2
- Format?: string;
2
+ Format?: 'BinarySI' | 'DecimalExponent' | 'DecimalSI';
3
3
  }
@@ -1,9 +1,9 @@
1
1
  import type { ProbeApmProbe } from '../schemas/ProbeApmProbe';
2
+ import type { ProbeHttpProbe } from '../schemas/ProbeHttpProbe';
2
3
  import type { ProbeK8SProbe } from '../schemas/ProbeK8SProbe';
3
4
  import type { ProbeKubernetesCmdProbe } from '../schemas/ProbeKubernetesCmdProbe';
4
5
  import type { ProbeDatadogProbe } from '../schemas/ProbeDatadogProbe';
5
6
  import type { ProbeDynatraceProbe } from '../schemas/ProbeDynatraceProbe';
6
- import type { ProbeHttpProbe } from '../schemas/ProbeHttpProbe';
7
7
  import type { ProbeLinuxCmdProbe } from '../schemas/ProbeLinuxCmdProbe';
8
8
  import type { ProbePromProbe } from '../schemas/ProbePromProbe';
9
9
  import type { ProbeSloProbe } from '../schemas/ProbeSloProbe';
@@ -11,6 +11,7 @@ import type { TemplateVariable } from '../schemas/TemplateVariable';
11
11
  import type { ProbeWindowsCmdProbe } from '../schemas/ProbeWindowsCmdProbe';
12
12
  export interface TypesCreateProbeResponse {
13
13
  apmProperties?: ProbeApmProbe;
14
+ containerHttpProperties?: ProbeHttpProbe;
14
15
  description?: string;
15
16
  k8sProperties?: ProbeK8SProbe;
16
17
  kubernetesCmdProperties?: ProbeKubernetesCmdProbe;
@@ -1,5 +1,5 @@
1
1
  import type { TypesScenarioType } from '../schemas/TypesScenarioType';
2
- import type { TypesUserDetails } from '../schemas/TypesUserDetails';
2
+ import type { GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails';
3
3
  export interface TypesExecutedByExperiment {
4
4
  experimentID?: string;
5
5
  experimentName?: string;
@@ -7,5 +7,5 @@ export interface TypesExecutedByExperiment {
7
7
  experimentType?: TypesScenarioType;
8
8
  notifyID?: string;
9
9
  updatedAt?: number;
10
- updatedBy?: TypesUserDetails;
10
+ updatedBy?: GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails;
11
11
  }
@@ -0,0 +1,3 @@
1
+ export interface TypesFilterListChaosPipelineRuns {
2
+ notifyIDs?: 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,6 @@
1
+ export interface TypesInfra {
2
+ environmentID?: string;
3
+ infraID?: string;
4
+ infraName?: string;
5
+ infraType?: string;
6
+ }
@@ -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,14 @@
1
+ import type { GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails';
2
+ import type { TypesInfra } from '../schemas/TypesInfra';
3
+ export interface TypesListChaosPipelineRuns {
4
+ executedAt?: number;
5
+ executedBy?: GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails;
6
+ experimentID?: string;
7
+ experimentName?: string;
8
+ experimentNotifyID?: string;
9
+ experimentRunID?: string;
10
+ infra?: TypesInfra;
11
+ resilienceScore?: string;
12
+ tags?: string[];
13
+ targetService?: string;
14
+ }
@@ -0,0 +1,18 @@
1
+ import type { TypesProbeDetailsMinimal } from '../schemas/TypesProbeDetailsMinimal';
2
+ import type { GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeStatus } from '../schemas/GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeStatus';
3
+ export interface TypesProbeDetailsInExperiment {
4
+ experimentId?: string;
5
+ experimentName?: string;
6
+ experimentRunId?: string;
7
+ faultName?: string;
8
+ isExperimentLevelProbe?: boolean;
9
+ mode?: string;
10
+ name?: string;
11
+ nodeName?: string;
12
+ notifyId?: string;
13
+ probeDetails?: TypesProbeDetailsMinimal;
14
+ probeId?: string;
15
+ probeYaml?: string;
16
+ status?: GithubComWingsSoftwareChaosOperatorApiLitmuschaosV1alpha1ProbeStatus;
17
+ type?: string;
18
+ }
@@ -0,0 +1,4 @@
1
+ export interface TypesProbeDetailsInExperimentRequest {
2
+ experimentRunIds?: string[];
3
+ notifyIds?: 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,4 @@
1
+ import type { TypesProbeDetailsInExperiment } from '../schemas/TypesProbeDetailsInExperiment';
2
+ export interface TypesProbeDetailsInExperimentResponse {
3
+ data?: TypesProbeDetailsInExperiment[];
4
+ }
@@ -0,0 +1,8 @@
1
+ import type { TypesInfrastructureType } from '../schemas/TypesInfrastructureType';
2
+ import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
3
+ import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
4
+ export interface TypesProbeDetailsMinimal {
5
+ infrastructureType?: TypesInfrastructureType;
6
+ probeProperties?: ProbeProbeTemplateProperties;
7
+ runProperties?: ProbeProbeTemplateRunProperties;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.18.0",
3
+ "version": "1.18.1-beta.1",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,5 +0,0 @@
1
- export interface TypesUserDetails {
2
- email?: string;
3
- userID?: string;
4
- username?: string;
5
- }