@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.
@@ -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';
@@ -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,8 @@
1
+ export interface LogserviceCommandUnitStatus {
2
+ logKey?: string;
3
+ name?: string;
4
+ /**
5
+ * "not_started", "running", "completed"
6
+ */
7
+ status?: string;
8
+ }
@@ -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
+ import type { LogserviceCommandUnitStatus } from '../schemas/LogserviceCommandUnitStatus';
2
+ export interface LogserviceCommandUnitStatusResponse {
3
+ accountId?: string;
4
+ commandUnits?: LogserviceCommandUnitStatus[];
5
+ uid?: string;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.54.0",
3
+ "version": "1.54.1-beta.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",