@harnessio/react-chaos-manager-client 1.74.0 → 1.76.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,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 GetProbesInStepExecutionQueryQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier: string;
9
+ projectIdentifier: string;
10
+ }
11
+ export type GetProbesInStepExecutionRequestBody = TypesProbeDetailsInExperimentRequest;
12
+ export type GetProbesInStepExecutionOkResponse = TypesProbeDetailsInExperimentResponse;
13
+ export type GetProbesInStepExecutionErrorResponse = ApiRestError;
14
+ export interface GetProbesInStepExecutionProps extends Omit<FetcherOptions<GetProbesInStepExecutionQueryQueryParams, GetProbesInStepExecutionRequestBody>, 'url'> {
15
+ queryParams: GetProbesInStepExecutionQueryQueryParams;
16
+ body: GetProbesInStepExecutionRequestBody;
17
+ }
18
+ export interface GetProbesInStepExecutionResponseContainer {
19
+ body: GetProbesInStepExecutionOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function getProbesInStepExecution(props: GetProbesInStepExecutionProps): Promise<GetProbesInStepExecutionResponseContainer>;
23
+ /**
24
+ * Get probe results for probes executed as independent pipeline steps within a composite-load stage, grouped by notify ids
25
+ */
26
+ export declare function useGetProbesInStepExecutionQuery(props: GetProbesInStepExecutionProps, options?: Omit<UseQueryOptions<GetProbesInStepExecutionResponseContainer, GetProbesInStepExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProbesInStepExecutionResponseContainer, 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 getProbesInStepExecution(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/probes/step-execution`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get probe results for probes executed as independent pipeline steps within a composite-load stage, grouped by notify ids
11
+ */
12
+ export function useGetProbesInStepExecutionQuery(props, options) {
13
+ return useQuery(['getProbesInStepExecution', props.queryParams, props.body], ({ signal }) => getProbesInStepExecution(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -256,6 +256,8 @@ export type { GetProbeTemplateErrorResponse, GetProbeTemplateOkResponse, GetProb
256
256
  export { getProbeTemplate, useGetProbeTemplateQuery } from './hooks/useGetProbeTemplateQuery';
257
257
  export type { GetProbesInExperimentErrorResponse, GetProbesInExperimentOkResponse, GetProbesInExperimentProps, GetProbesInExperimentQueryQueryParams, GetProbesInExperimentRequestBody, } from './hooks/useGetProbesInExperimentQuery';
258
258
  export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/useGetProbesInExperimentQuery';
259
+ export type { GetProbesInStepExecutionErrorResponse, GetProbesInStepExecutionOkResponse, GetProbesInStepExecutionProps, GetProbesInStepExecutionQueryQueryParams, GetProbesInStepExecutionRequestBody, } from './hooks/useGetProbesInStepExecutionQuery';
260
+ export { getProbesInStepExecution, useGetProbesInStepExecutionQuery, } from './hooks/useGetProbesInStepExecutionQuery';
259
261
  export type { GetRecommendationErrorResponse, GetRecommendationOkResponse, GetRecommendationProps, GetRecommendationQueryQueryParams, } from './hooks/useGetRecommendationQuery';
260
262
  export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
261
263
  export type { GetResourceUsageErrorResponse, GetResourceUsageOkResponse, GetResourceUsageProps, } from './hooks/useGetResourceUsageQuery';
@@ -621,6 +623,7 @@ export type { ChaoscomponentFaultData } from './schemas/ChaoscomponentFaultData'
621
623
  export type { ChaoscomponentHelperPodDetails } from './schemas/ChaoscomponentHelperPodDetails';
622
624
  export type { ChaoscomponentHttpProbe } from './schemas/ChaoscomponentHttpProbe';
623
625
  export type { ChaoscomponentInfraType } from './schemas/ChaoscomponentInfraType';
626
+ export type { ChaoscomponentPipelineDetails } from './schemas/ChaoscomponentPipelineDetails';
624
627
  export type { ChaoscomponentProbeData } from './schemas/ChaoscomponentProbeData';
625
628
  export type { ChaoscomponentProbeIterations } from './schemas/ChaoscomponentProbeIterations';
626
629
  export type { ChaoscomponentPromProbe } from './schemas/ChaoscomponentPromProbe';
@@ -127,6 +127,7 @@ export { getProbeManifest, useGetProbeManifestQuery } from './hooks/useGetProbeM
127
127
  export { getProbe, useGetProbeQuery } from './hooks/useGetProbeQuery';
128
128
  export { getProbeTemplate, useGetProbeTemplateQuery } from './hooks/useGetProbeTemplateQuery';
129
129
  export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/useGetProbesInExperimentQuery';
130
+ export { getProbesInStepExecution, useGetProbesInStepExecutionQuery, } from './hooks/useGetProbesInStepExecutionQuery';
130
131
  export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
131
132
  export { getResourceUsage, useGetResourceUsageQuery } from './hooks/useGetResourceUsageQuery';
132
133
  export { getRisk, useGetRiskQuery } from './hooks/useGetRiskQuery';
@@ -1,6 +1,7 @@
1
1
  import type { ChaoscomponentChaosData } from '../schemas/ChaoscomponentChaosData';
2
2
  import type { ChaoscomponentErrorData } from '../schemas/ChaoscomponentErrorData';
3
3
  import type { ChaoscomponentInfraType } from '../schemas/ChaoscomponentInfraType';
4
+ import type { ChaoscomponentPipelineDetails } from '../schemas/ChaoscomponentPipelineDetails';
4
5
  import type { ChaoscomponentStatus } from '../schemas/ChaoscomponentStatus';
5
6
  import type { ChaoscomponentType } from '../schemas/ChaoscomponentType';
6
7
  export interface ChaoscomponentChaosComponentExecutionNode {
@@ -16,6 +17,7 @@ export interface ChaoscomponentChaosComponentExecutionNode {
16
17
  name?: string;
17
18
  notifyID?: string;
18
19
  orgID?: string;
20
+ pipelineDetails?: ChaoscomponentPipelineDetails;
19
21
  projectID?: string;
20
22
  runID?: string;
21
23
  spec?: string;
@@ -0,0 +1,26 @@
1
+ export interface ChaoscomponentPipelineDetails {
2
+ /**
3
+ * PipelineExecutionID is the pipeline execution ID
4
+ */
5
+ executionID?: string;
6
+ /**
7
+ * PipelineIdentifier is the pipeline identifier (human-readable)
8
+ */
9
+ identifier?: string;
10
+ /**
11
+ * StageID for internal tracking (setup ID)
12
+ */
13
+ stageId?: string;
14
+ /**
15
+ * StageIdentifier for deep linking to pipeline stage (human-readable)
16
+ */
17
+ stageIdentifier?: string;
18
+ /**
19
+ * StepID for internal tracking (setup ID)
20
+ */
21
+ stepId?: string;
22
+ /**
23
+ * StepIdentifier for deep linking to pipeline step (human-readable)
24
+ */
25
+ stepIdentifier?: string;
26
+ }
@@ -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 {};
@@ -5,4 +5,5 @@ export interface ChaoscomponentProbeData {
5
5
  name?: string;
6
6
  probeType?: string;
7
7
  risks?: string[];
8
+ serviceID?: string;
8
9
  }
@@ -8,6 +8,14 @@ export interface ChaoscomponentsRunChaosComponentRequest {
8
8
  infraReference?: string;
9
9
  kind?: ChaoscomponentsChaosComponentKind;
10
10
  runtimeInputs?: TemplateChaosComponentInputsetSpec;
11
+ serviceReference?: string;
12
+ stageId?: string;
13
+ /**
14
+ * Execution context for deep linking (pipelineId and executionId already in query params as Identity and RunID)
15
+ */
16
+ stageIdentifier?: string;
17
+ stepId?: string;
18
+ stepIdentifier?: string;
11
19
  type?: ChaoscomponentChaosComponentType;
12
20
  userMetaData?: ChaoscomponentsUserMetaData;
13
21
  }
@@ -1,6 +1,7 @@
1
1
  export interface RiskDiscoveredService {
2
2
  agentIdentity?: string;
3
3
  environmentIdentity?: string;
4
+ externalID?: string;
4
5
  identity?: string;
5
6
  parentUniqueID?: string;
6
7
  uniqueID?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.74.0",
3
+ "version": "1.76.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",