@harnessio/react-chaos-manager-client 1.18.1-beta.4 → 1.19.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.
@@ -1,5 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { RecommendationsPipelineAddExperimentResponse } from '../schemas/RecommendationsPipelineAddExperimentResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
4
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
5
  export interface PipelineAddExperimentRecommendationMutationQueryParams {
5
6
  accountIdentifier: string;
@@ -8,7 +9,7 @@ export interface PipelineAddExperimentRecommendationMutationQueryParams {
8
9
  recommendationID: string;
9
10
  }
10
11
  export type PipelineAddExperimentRecommendationOkResponse = RecommendationsPipelineAddExperimentResponse;
11
- export type PipelineAddExperimentRecommendationErrorResponse = unknown;
12
+ export type PipelineAddExperimentRecommendationErrorResponse = unknown | ApiRestError;
12
13
  export interface PipelineAddExperimentRecommendationProps extends Omit<FetcherOptions<PipelineAddExperimentRecommendationMutationQueryParams, unknown>, 'url'> {
13
14
  queryParams: PipelineAddExperimentRecommendationMutationQueryParams;
14
15
  }
@@ -324,6 +324,7 @@ export type { ActionsUserDetails } from './schemas/ActionsUserDetails';
324
324
  export type { ApiGetHarnessInfrastructureResponse } from './schemas/ApiGetHarnessInfrastructureResponse';
325
325
  export type { ApiHarnessInfrastructure } from './schemas/ApiHarnessInfrastructure';
326
326
  export type { ApiListHarnessInfrastructureResponse } from './schemas/ApiListHarnessInfrastructureResponse';
327
+ export type { ApiResponseErrorCode } from './schemas/ApiResponseErrorCode';
327
328
  export type { ApiRestError } from './schemas/ApiRestError';
328
329
  export type { ApplicationchaostargetListApplicationResponse } from './schemas/ApplicationchaostargetListApplicationResponse';
329
330
  export type { ApplicationchaostargetListFunctionResponse } from './schemas/ApplicationchaostargetListFunctionResponse';
@@ -0,0 +1 @@
1
+ export type ApiResponseErrorCode = 'PIPELINE_NOT_FOUND';
@@ -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,4 +1,6 @@
1
+ import type { ApiResponseErrorCode } from '../schemas/ApiResponseErrorCode';
1
2
  export interface ApiRestError {
3
+ code?: ApiResponseErrorCode;
2
4
  description?: string;
3
5
  message?: string;
4
6
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -25,4 +25,5 @@ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommend
25
25
  source?: RecommendationRecommendationSource;
26
26
  suggestions?: RecommendationSuggestions[];
27
27
  tags?: string[];
28
+ updatedAt?: number;
28
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.18.1-beta.4",
3
+ "version": "1.19.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",