@harnessio/react-chaos-manager-client 1.54.0 → 1.54.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/useGetCommandUnitStatusesQuery.d.ts +22 -0
- package/dist/chaos-manager/src/services/hooks/useGetCommandUnitStatusesQuery.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +4 -0
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/LogserviceCommandUnitStatus.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/LogserviceCommandUnitStatus.js +4 -0
- package/dist/chaos-manager/src/services/schemas/LogserviceCommandUnitStatusResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/LogserviceCommandUnitStatusResponse.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { LogserviceCommandUnitStatusResponse } from '../schemas/LogserviceCommandUnitStatusResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetCommandUnitStatusesQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
uid: string;
|
|
8
|
+
}
|
|
9
|
+
export type GetCommandUnitStatusesOkResponse = LogserviceCommandUnitStatusResponse;
|
|
10
|
+
export type GetCommandUnitStatusesErrorResponse = ApiRestError;
|
|
11
|
+
export interface GetCommandUnitStatusesProps extends Omit<FetcherOptions<GetCommandUnitStatusesQueryQueryParams, unknown>, 'url'> {
|
|
12
|
+
queryParams: GetCommandUnitStatusesQueryQueryParams;
|
|
13
|
+
}
|
|
14
|
+
export interface GetCommandUnitStatusesResponseContainer {
|
|
15
|
+
body: GetCommandUnitStatusesOkResponse;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
}
|
|
18
|
+
export declare function getCommandUnitStatuses(props: GetCommandUnitStatusesProps): Promise<GetCommandUnitStatusesResponseContainer>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the status (not_started, running, completed) of each command unit for a K8s apply delegate task by checking log-service stream/blob endpoints
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetCommandUnitStatusesQuery(props: GetCommandUnitStatusesProps, options?: Omit<UseQueryOptions<GetCommandUnitStatusesResponseContainer, GetCommandUnitStatusesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCommandUnitStatusesResponseContainer, 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 getCommandUnitStatuses(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/delegate-task/command-unit-status`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the status (not_started, running, completed) of each command unit for a K8s apply delegate task by checking log-service stream/blob endpoints
|
|
11
|
+
*/
|
|
12
|
+
export function useGetCommandUnitStatusesQuery(props, options) {
|
|
13
|
+
return useQuery(['getCommandUnitStatuses', props.queryParams], ({ signal }) => getCommandUnitStatuses(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -138,6 +138,8 @@ export type { GetChaosV2ExperimentRunErrorResponse, GetChaosV2ExperimentRunOkRes
|
|
|
138
138
|
export { getChaosV2ExperimentRun, useGetChaosV2ExperimentRunQuery, } from './hooks/useGetChaosV2ExperimentRunQuery';
|
|
139
139
|
export type { GetChaosV2ExperimentVariablesErrorResponse, GetChaosV2ExperimentVariablesOkResponse, GetChaosV2ExperimentVariablesProps, GetChaosV2ExperimentVariablesQueryPathParams, GetChaosV2ExperimentVariablesQueryQueryParams, } from './hooks/useGetChaosV2ExperimentVariablesQuery';
|
|
140
140
|
export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, } from './hooks/useGetChaosV2ExperimentVariablesQuery';
|
|
141
|
+
export type { GetCommandUnitStatusesErrorResponse, GetCommandUnitStatusesOkResponse, GetCommandUnitStatusesProps, GetCommandUnitStatusesQueryQueryParams, } from './hooks/useGetCommandUnitStatusesQuery';
|
|
142
|
+
export { getCommandUnitStatuses, useGetCommandUnitStatusesQuery, } from './hooks/useGetCommandUnitStatusesQuery';
|
|
141
143
|
export type { GetConditionErrorResponse, GetConditionOkResponse, GetConditionProps, GetConditionQueryPathParams, GetConditionQueryQueryParams, } from './hooks/useGetConditionQuery';
|
|
142
144
|
export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
|
|
143
145
|
export type { GetConnectorForInfraErrorResponse, GetConnectorForInfraOkResponse, GetConnectorForInfraProps, GetConnectorForInfraQueryPathParams, GetConnectorForInfraQueryQueryParams, } from './hooks/useGetConnectorForInfraQuery';
|
|
@@ -895,6 +897,8 @@ export type { K8sIoApimachineryPkgApisMetaV1ConditionStatus } from './schemas/K8
|
|
|
895
897
|
export type { K8sinfraGetInfraTokenResponse } from './schemas/K8sinfraGetInfraTokenResponse';
|
|
896
898
|
export type { K8sinfraUpdateEmissaryUrlRequest } from './schemas/K8sinfraUpdateEmissaryUrlRequest';
|
|
897
899
|
export type { K8sinfraUpdateEmissaryUrlResponse } from './schemas/K8sinfraUpdateEmissaryUrlResponse';
|
|
900
|
+
export type { LogserviceCommandUnitStatus } from './schemas/LogserviceCommandUnitStatus';
|
|
901
|
+
export type { LogserviceCommandUnitStatusResponse } from './schemas/LogserviceCommandUnitStatusResponse';
|
|
898
902
|
export type { ModelClusterType } from './schemas/ModelClusterType';
|
|
899
903
|
export type { ModelConditionDetails } from './schemas/ModelConditionDetails';
|
|
900
904
|
export type { ModelDateRange } from './schemas/ModelDateRange';
|
|
@@ -68,6 +68,7 @@ export { getChaosV2Experiment, useGetChaosV2ExperimentQuery, } from './hooks/use
|
|
|
68
68
|
export { getChaosV2ExperimentRunInternalApi, useGetChaosV2ExperimentRunInternalApiMutation, } from './hooks/useGetChaosV2ExperimentRunInternalApiMutation';
|
|
69
69
|
export { getChaosV2ExperimentRun, useGetChaosV2ExperimentRunQuery, } from './hooks/useGetChaosV2ExperimentRunQuery';
|
|
70
70
|
export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, } from './hooks/useGetChaosV2ExperimentVariablesQuery';
|
|
71
|
+
export { getCommandUnitStatuses, useGetCommandUnitStatusesQuery, } from './hooks/useGetCommandUnitStatusesQuery';
|
|
71
72
|
export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
|
|
72
73
|
export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
|
|
73
74
|
export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
|
package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface ChaosExecutionNodesChaosExecutionResponse {
|
|
|
24
24
|
status?: ExecutionChaosStepStatus;
|
|
25
25
|
stepName?: string;
|
|
26
26
|
stepType?: ExecutionChaosStepType;
|
|
27
|
+
streamID?: string;
|
|
27
28
|
templateDetails?: ChaosExperimentRunTemplateDetails;
|
|
28
29
|
uniqueId?: string;
|
|
29
30
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED