@harnessio/react-chaos-manager-client 1.59.0 → 1.59.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chaos-manager/src/services/hooks/useExperimentExecutionOutputQuery.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useExperimentExecutionOutputQuery.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +5 -1
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExecutionChaosExecutionNode.d.ts +0 -2
- package/dist/chaos-manager/src/services/schemas/ExecutionExecutionOutputResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExecutionExecutionOutputResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2GetKubernetesInfrastructureV2YamlRequest.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2RegisterInfrastructureV2Request.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2ResourceList.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2ResourceList.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2ResourceRequirements.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/schemas/ExecutionExecutionOutput.d.ts +0 -8
- /package/dist/chaos-manager/src/services/schemas/{ExecutionExecutionOutput.js → InfraV2ResourceRequirements.js} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExecutionExecutionOutputResponse } from '../schemas/ExecutionExecutionOutputResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ExperimentExecutionOutputQueryPathParams {
|
|
6
|
+
experimentId: string;
|
|
7
|
+
experimentRunId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ExperimentExecutionOutputQueryQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type ExperimentExecutionOutputOkResponse = ExecutionExecutionOutputResponse;
|
|
15
|
+
export type ExperimentExecutionOutputErrorResponse = ApiRestError;
|
|
16
|
+
export interface ExperimentExecutionOutputProps extends ExperimentExecutionOutputQueryPathParams, Omit<FetcherOptions<ExperimentExecutionOutputQueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: ExperimentExecutionOutputQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface ExperimentExecutionOutputResponseContainer {
|
|
20
|
+
body: ExperimentExecutionOutputOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function experimentExecutionOutput(props: ExperimentExecutionOutputProps): Promise<ExperimentExecutionOutputResponseContainer>;
|
|
24
|
+
/**
|
|
25
|
+
* Get chaos execution output
|
|
26
|
+
*/
|
|
27
|
+
export declare function useExperimentExecutionOutputQuery(props: ExperimentExecutionOutputProps, options?: Omit<UseQueryOptions<ExperimentExecutionOutputResponseContainer, ExperimentExecutionOutputErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ExperimentExecutionOutputResponseContainer, 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 experimentExecutionOutput(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internal/execution-node/${props.experimentId}/${props.experimentRunId}/output`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get chaos execution output
|
|
11
|
+
*/
|
|
12
|
+
export function useExperimentExecutionOutputQuery(props, options) {
|
|
13
|
+
return useQuery(['experimentExecutionOutput', props.experimentId, props.experimentRunId, props.queryParams], ({ signal }) => experimentExecutionOutput(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -106,6 +106,8 @@ export type { EnableRuleErrorResponse, EnableRuleMutationPathParams, EnableRuleM
|
|
|
106
106
|
export { enableRule, useEnableRuleMutation } from './hooks/useEnableRuleMutation';
|
|
107
107
|
export type { ExperimentExecutionNodeDetailsErrorResponse, ExperimentExecutionNodeDetailsOkResponse, ExperimentExecutionNodeDetailsProps, ExperimentExecutionNodeDetailsQueryPathParams, ExperimentExecutionNodeDetailsQueryQueryParams, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
108
108
|
export { experimentExecutionNodeDetails, useExperimentExecutionNodeDetailsQuery, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
109
|
+
export type { ExperimentExecutionOutputErrorResponse, ExperimentExecutionOutputOkResponse, ExperimentExecutionOutputProps, ExperimentExecutionOutputQueryPathParams, ExperimentExecutionOutputQueryQueryParams, } from './hooks/useExperimentExecutionOutputQuery';
|
|
110
|
+
export { experimentExecutionOutput, useExperimentExecutionOutputQuery, } from './hooks/useExperimentExecutionOutputQuery';
|
|
109
111
|
export type { GetAccountServiceDetailsErrorResponse, GetAccountServiceDetailsOkResponse, GetAccountServiceDetailsProps, GetAccountServiceDetailsQueryPathParams, GetAccountServiceDetailsQueryQueryParams, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
110
112
|
export { getAccountServiceDetails, useGetAccountServiceDetailsQuery, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
111
113
|
export type { GetAccountServiceUsageStatsErrorResponse, GetAccountServiceUsageStatsOkResponse, GetAccountServiceUsageStatsProps, GetAccountServiceUsageStatsQueryPathParams, GetAccountServiceUsageStatsQueryQueryParams, } from './hooks/useGetAccountServiceUsageStatsQuery';
|
|
@@ -687,7 +689,7 @@ export type { ExecutionChaosStepStatus } from './schemas/ExecutionChaosStepStatu
|
|
|
687
689
|
export type { ExecutionChaosStepType } from './schemas/ExecutionChaosStepType';
|
|
688
690
|
export type { ExecutionCommandProbe } from './schemas/ExecutionCommandProbe';
|
|
689
691
|
export type { ExecutionErrorData } from './schemas/ExecutionErrorData';
|
|
690
|
-
export type {
|
|
692
|
+
export type { ExecutionExecutionOutputResponse } from './schemas/ExecutionExecutionOutputResponse';
|
|
691
693
|
export type { ExecutionFaultData } from './schemas/ExecutionFaultData';
|
|
692
694
|
export type { ExecutionHelperPodDetails } from './schemas/ExecutionHelperPodDetails';
|
|
693
695
|
export type { ExecutionHttpProbe } from './schemas/ExecutionHttpProbe';
|
|
@@ -892,6 +894,8 @@ export type { InfraV2Pagination } from './schemas/InfraV2Pagination';
|
|
|
892
894
|
export type { InfraV2ProxyConfiguration } from './schemas/InfraV2ProxyConfiguration';
|
|
893
895
|
export type { InfraV2RegisterInfrastructureV2Request } from './schemas/InfraV2RegisterInfrastructureV2Request';
|
|
894
896
|
export type { InfraV2RegisterInfrastructureV2Response } from './schemas/InfraV2RegisterInfrastructureV2Response';
|
|
897
|
+
export type { InfraV2ResourceList } from './schemas/InfraV2ResourceList';
|
|
898
|
+
export type { InfraV2ResourceRequirements } from './schemas/InfraV2ResourceRequirements';
|
|
895
899
|
export type { InfraV2SortInput } from './schemas/InfraV2SortInput';
|
|
896
900
|
export type { InfraV2SortingField } from './schemas/InfraV2SortingField';
|
|
897
901
|
export type { InfraV2UpdateKubernetesInfrastructureV2Request } from './schemas/InfraV2UpdateKubernetesInfrastructureV2Request';
|
|
@@ -52,6 +52,7 @@ export { deleteTargetNetworkMap, useDeleteTargetNetworkMapMutation, } from './ho
|
|
|
52
52
|
export { enableProbe, useEnableProbeMutation } from './hooks/useEnableProbeMutation';
|
|
53
53
|
export { enableRule, useEnableRuleMutation } from './hooks/useEnableRuleMutation';
|
|
54
54
|
export { experimentExecutionNodeDetails, useExperimentExecutionNodeDetailsQuery, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
55
|
+
export { experimentExecutionOutput, useExperimentExecutionOutputQuery, } from './hooks/useExperimentExecutionOutputQuery';
|
|
55
56
|
export { getAccountServiceDetails, useGetAccountServiceDetailsQuery, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
56
57
|
export { getAccountServiceUsageStats, useGetAccountServiceUsageStatsQuery, } from './hooks/useGetAccountServiceUsageStatsQuery';
|
|
57
58
|
export { getActionManifest, useGetActionManifestQuery } from './hooks/useGetActionManifestQuery';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ExecutionChaosData } from '../schemas/ExecutionChaosData';
|
|
2
2
|
import type { ExecutionErrorData } from '../schemas/ExecutionErrorData';
|
|
3
3
|
import type { ExecutionInfraType } from '../schemas/ExecutionInfraType';
|
|
4
|
-
import type { ExecutionExecutionOutput } from '../schemas/ExecutionExecutionOutput';
|
|
5
4
|
import type { ExecutionChaosStepStatus } from '../schemas/ExecutionChaosStepStatus';
|
|
6
5
|
import type { ExecutionChaosStepType } from '../schemas/ExecutionChaosStepType';
|
|
7
6
|
export interface ExecutionChaosExecutionNode {
|
|
@@ -15,7 +14,6 @@ export interface ExecutionChaosExecutionNode {
|
|
|
15
14
|
infraType?: ExecutionInfraType;
|
|
16
15
|
isRemoved?: boolean;
|
|
17
16
|
lastUpdatedAt?: number;
|
|
18
|
-
output?: ExecutionExecutionOutput;
|
|
19
17
|
spec?: string;
|
|
20
18
|
startedAt?: number;
|
|
21
19
|
status?: ExecutionChaosStepStatus;
|
package/dist/chaos-manager/src/services/schemas/InfraV2GetKubernetesInfrastructureV2YamlRequest.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { InfraV2Env } from '../schemas/InfraV2Env';
|
|
|
2
2
|
import type { InfraV2Identifiers } from '../schemas/InfraV2Identifiers';
|
|
3
3
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
4
4
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
5
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
5
6
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
6
7
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
7
8
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
@@ -25,6 +26,7 @@ export interface InfraV2GetKubernetesInfrastructureV2YamlRequest {
|
|
|
25
26
|
[key: string]: string;
|
|
26
27
|
};
|
|
27
28
|
proxy?: InfraV2ProxyConfiguration;
|
|
29
|
+
resources?: InfraV2ResourceRequirements;
|
|
28
30
|
runAsGroup?: number;
|
|
29
31
|
runAsUser?: number;
|
|
30
32
|
serviceAccount?: string;
|
package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type { InfraV2InfraType } from '../schemas/InfraV2InfraType';
|
|
|
7
7
|
import type { InfraV2InstallationType } from '../schemas/InfraV2InstallationType';
|
|
8
8
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
9
9
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
10
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
10
11
|
import type { InfraV2InfraStatus } from '../schemas/InfraV2InfraStatus';
|
|
11
12
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
12
13
|
import type { InfraV2UpdateStatus } from '../schemas/InfraV2UpdateStatus';
|
|
@@ -53,6 +54,7 @@ export interface InfraV2KubernetesInfrastructureV2Details {
|
|
|
53
54
|
};
|
|
54
55
|
platformName?: string;
|
|
55
56
|
proxy?: InfraV2ProxyConfiguration;
|
|
57
|
+
resources?: InfraV2ResourceRequirements;
|
|
56
58
|
runAsGroup?: number;
|
|
57
59
|
runAsUser?: number;
|
|
58
60
|
serviceAccount?: string;
|
|
@@ -5,6 +5,7 @@ import type { InfraV2InfraScope } from '../schemas/InfraV2InfraScope';
|
|
|
5
5
|
import type { InfraV2InfraType } from '../schemas/InfraV2InfraType';
|
|
6
6
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
7
7
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
8
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
8
9
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
9
10
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
10
11
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
@@ -38,6 +39,7 @@ export interface InfraV2RegisterInfrastructureV2Request {
|
|
|
38
39
|
[key: string]: string;
|
|
39
40
|
};
|
|
40
41
|
proxy?: InfraV2ProxyConfiguration;
|
|
42
|
+
resources?: InfraV2ResourceRequirements;
|
|
41
43
|
runAsGroup?: number;
|
|
42
44
|
runAsUser?: number;
|
|
43
45
|
serviceAccount?: string;
|
package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { InfraV2Env } from '../schemas/InfraV2Env';
|
|
|
2
2
|
import type { ImageRegistryImageRegistryV2 } from '../schemas/ImageRegistryImageRegistryV2';
|
|
3
3
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
4
4
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
5
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
5
6
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
6
7
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
7
8
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
@@ -29,6 +30,7 @@ export interface InfraV2UpdateKubernetesInfrastructureV2Request {
|
|
|
29
30
|
[key: string]: string;
|
|
30
31
|
};
|
|
31
32
|
proxy?: InfraV2ProxyConfiguration;
|
|
33
|
+
resources?: InfraV2ResourceRequirements;
|
|
32
34
|
runAsGroup?: number;
|
|
33
35
|
runAsUser?: number;
|
|
34
36
|
serviceAccount?: string;
|
package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { InfraV2Env } from '../schemas/InfraV2Env';
|
|
|
2
2
|
import type { V1PullPolicy } from '../schemas/V1PullPolicy';
|
|
3
3
|
import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
|
|
4
4
|
import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
|
|
5
|
+
import type { InfraV2ResourceRequirements } from '../schemas/InfraV2ResourceRequirements';
|
|
5
6
|
import type { V1Toleration } from '../schemas/V1Toleration';
|
|
6
7
|
import type { V1VolumeMount } from '../schemas/V1VolumeMount';
|
|
7
8
|
import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
|
|
@@ -22,6 +23,7 @@ export interface V2OnboardingChaosInfraAdvanceConfiguration {
|
|
|
22
23
|
[key: string]: string;
|
|
23
24
|
};
|
|
24
25
|
proxy?: InfraV2ProxyConfiguration;
|
|
26
|
+
resources?: InfraV2ResourceRequirements;
|
|
25
27
|
runAsGroup?: number;
|
|
26
28
|
runAsUser?: number;
|
|
27
29
|
tolerations?: V1Toleration[];
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ExecutionChaosStepStatus } from '../schemas/ExecutionChaosStepStatus';
|
|
2
|
-
export interface ExecutionExecutionOutput {
|
|
3
|
-
orgIdentifier?: string;
|
|
4
|
-
projectIdentifier?: string;
|
|
5
|
-
resourceIdentifier?: string;
|
|
6
|
-
resourceType?: string;
|
|
7
|
-
status?: ExecutionChaosStepStatus;
|
|
8
|
-
}
|
|
File without changes
|