@harnessio/react-chaos-manager-client 1.26.0 → 1.27.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.
@@ -8,7 +8,6 @@ export interface GetAccountServiceUsageStatsQueryQueryParams {
8
8
  groupBy: string;
9
9
  startTime: number;
10
10
  endTime: number;
11
- cumulative?: boolean;
12
11
  }
13
12
  export type GetAccountServiceUsageStatsOkResponse = ChaosserviceusageUsageStats;
14
13
  export type GetAccountServiceUsageStatsErrorResponse = unknown;
@@ -6,7 +6,6 @@ export interface GetServiceUsageReportQueryPathParams {
6
6
  export interface GetServiceUsageReportQueryQueryParams {
7
7
  startTime: number;
8
8
  endTime: number;
9
- cumulate?: boolean;
10
9
  }
11
10
  export type GetServiceUsageReportOkResponse = Array<string[]>;
12
11
  export type GetServiceUsageReportErrorResponse = unknown;
@@ -19,6 +18,6 @@ export interface GetServiceUsageReportResponseContainer {
19
18
  }
20
19
  export declare function getServiceUsageReport(props: GetServiceUsageReportProps): Promise<GetServiceUsageReportResponseContainer>;
21
20
  /**
22
- * Generates service usage report for account in a given timeframe
21
+ * Generates service usage report for account in a given timeframe in csv format
23
22
  */
24
23
  export declare function useGetServiceUsageReportQuery(props: GetServiceUsageReportProps, options?: Omit<UseQueryOptions<GetServiceUsageReportResponseContainer, GetServiceUsageReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceUsageReportResponseContainer, unknown>;
@@ -7,7 +7,7 @@ export function getServiceUsageReport(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/service/report/${props.accountID}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Generates service usage report for account in a given timeframe
10
+ * Generates service usage report for account in a given timeframe in csv format
11
11
  */
12
12
  export function useGetServiceUsageReportQuery(props, options) {
13
13
  return useQuery(['getServiceUsageReport', props.accountID, props.queryParams], ({ signal }) => getServiceUsageReport(Object.assign(Object.assign({}, props), { signal })), options);
@@ -126,8 +126,6 @@ export type { GetExperimentTemplateVariablesErrorResponse, GetExperimentTemplate
126
126
  export { getExperimentTemplateVariables, useGetExperimentTemplateVariablesQuery, } from './hooks/useGetExperimentTemplateVariablesQuery';
127
127
  export type { GetExperimentTemplateYamlErrorResponse, GetExperimentTemplateYamlOkResponse, GetExperimentTemplateYamlProps, GetExperimentTemplateYamlQueryPathParams, GetExperimentTemplateYamlQueryQueryParams, } from './hooks/useGetExperimentTemplateYamlQuery';
128
128
  export { getExperimentTemplateYaml, useGetExperimentTemplateYamlQuery, } from './hooks/useGetExperimentTemplateYamlQuery';
129
- export type { GetExperimentationActivityReportErrorResponse, GetExperimentationActivityReportOkResponse, GetExperimentationActivityReportProps, GetExperimentationActivityReportQueryPathParams, GetExperimentationActivityReportQueryQueryParams, } from './hooks/useGetExperimentationActivityReportQuery';
130
- export { getExperimentationActivityReport, useGetExperimentationActivityReportQuery, } from './hooks/useGetExperimentationActivityReportQuery';
131
129
  export type { GetFaultErrorResponse, GetFaultOkResponse, GetFaultProps, GetFaultQueryPathParams, GetFaultQueryQueryParams, } from './hooks/useGetFaultQuery';
132
130
  export { getFault, useGetFaultQuery } from './hooks/useGetFaultQuery';
133
131
  export type { GetFaultTemplateErrorResponse, GetFaultTemplateOkResponse, GetFaultTemplateProps, GetFaultTemplateQueryPathParams, GetFaultTemplateQueryQueryParams, } from './hooks/useGetFaultTemplateQuery';
@@ -462,8 +460,8 @@ export type { ChaosserviceusageOverallServiceUsageStats } from './schemas/Chaoss
462
460
  export type { ChaosserviceusagePeriodicStats } from './schemas/ChaosserviceusagePeriodicStats';
463
461
  export type { ChaosserviceusageServiceData } from './schemas/ChaosserviceusageServiceData';
464
462
  export type { ChaosserviceusageServiceDataResponse } from './schemas/ChaosserviceusageServiceDataResponse';
463
+ export type { ChaosserviceusageServiceStatsByType } from './schemas/ChaosserviceusageServiceStatsByType';
465
464
  export type { ChaosserviceusageServiceType } from './schemas/ChaosserviceusageServiceType';
466
- export type { ChaosserviceusageStatsByType } from './schemas/ChaosserviceusageStatsByType';
467
465
  export type { ChaosserviceusageUsageStats } from './schemas/ChaosserviceusageUsageStats';
468
466
  export type { CommonTypesExperimentRunStats } from './schemas/CommonTypesExperimentRunStats';
469
467
  export type { CommonTypesExperimentRunsData } from './schemas/CommonTypesExperimentRunsData';
@@ -62,7 +62,6 @@ export { getExperimentTemplate, useGetExperimentTemplateQuery, } from './hooks/u
62
62
  export { getExperimentTemplateRevisions, useGetExperimentTemplateRevisionsQuery, } from './hooks/useGetExperimentTemplateRevisionsQuery';
63
63
  export { getExperimentTemplateVariables, useGetExperimentTemplateVariablesQuery, } from './hooks/useGetExperimentTemplateVariablesQuery';
64
64
  export { getExperimentTemplateYaml, useGetExperimentTemplateYamlQuery, } from './hooks/useGetExperimentTemplateYamlQuery';
65
- export { getExperimentationActivityReport, useGetExperimentationActivityReportQuery, } from './hooks/useGetExperimentationActivityReportQuery';
66
65
  export { getFault, useGetFaultQuery } from './hooks/useGetFaultQuery';
67
66
  export { getFaultTemplate, useGetFaultTemplateQuery } from './hooks/useGetFaultTemplateQuery';
68
67
  export { getFaultTemplateRevisions, useGetFaultTemplateRevisionsQuery, } from './hooks/useGetFaultTemplateRevisionsQuery';
@@ -1,7 +1,7 @@
1
- import type { ChaosserviceusageStatsByType } from '../schemas/ChaosserviceusageStatsByType';
1
+ import type { ChaosserviceusageServiceStatsByType } from '../schemas/ChaosserviceusageServiceStatsByType';
2
2
  export interface ChaosserviceusageOverallServiceUsageStats {
3
3
  accountID?: string;
4
- licenseServiceMapping?: ChaosserviceusageStatsByType;
5
- serviceStats?: ChaosserviceusageStatsByType;
4
+ licenseServiceMapping?: ChaosserviceusageServiceStatsByType;
5
+ serviceStats?: ChaosserviceusageServiceStatsByType;
6
6
  totalUsage?: number;
7
7
  }
@@ -1,8 +1,6 @@
1
- import type { ChaosserviceusageStatsByType } from '../schemas/ChaosserviceusageStatsByType';
1
+ import type { ChaosserviceusageServiceStatsByType } from '../schemas/ChaosserviceusageServiceStatsByType';
2
2
  export interface ChaosserviceusagePeriodicStats {
3
- experimentStatsByType?: ChaosserviceusageStatsByType;
4
- serviceStatsByType?: ChaosserviceusageStatsByType;
3
+ serviceStatsByType?: ChaosserviceusageServiceStatsByType;
5
4
  timestamp?: number;
6
5
  totalConsumption?: number;
7
- totalExperimentRunsConsumption?: number;
8
6
  }
@@ -1,4 +1,4 @@
1
- export interface ChaosserviceusageStatsByType {
1
+ export interface ChaosserviceusageServiceStatsByType {
2
2
  'Cloud Resources'?: number;
3
3
  'Container Services'?: number;
4
4
  Kubernetes?: number;
@@ -1,3 +1,3 @@
1
1
  export interface ResourceQuantity {
2
- Format?: string;
2
+ Format?: 'BinarySI' | 'DecimalExponent' | 'DecimalSI';
3
3
  }
@@ -1,11 +1,22 @@
1
+ import type { InfraV2Env } from '../schemas/InfraV2Env';
1
2
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
2
3
  import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
3
4
  import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
4
5
  import type { V1Toleration } from '../schemas/V1Toleration';
6
+ import type { V1VolumeMount } from '../schemas/V1VolumeMount';
7
+ import type { InfraV2Volumes } from '../schemas/InfraV2Volumes';
5
8
  export interface V2OnboardingChaosInfraAdvanceConfiguration {
9
+ annotation?: {
10
+ [key: string]: string;
11
+ };
6
12
  autopilotEnabled?: boolean;
13
+ container?: string;
14
+ env?: InfraV2Env[];
7
15
  imagePullPolicy?: V1PullPolicy;
8
16
  insecureSkipVerify?: boolean;
17
+ label?: {
18
+ [key: string]: string;
19
+ };
9
20
  mtls?: InfraV2MtlsConfiguration;
10
21
  nodeSelector?: {
11
22
  [key: string]: string;
@@ -14,4 +25,6 @@ export interface V2OnboardingChaosInfraAdvanceConfiguration {
14
25
  runAsGroup?: number;
15
26
  runAsUser?: number;
16
27
  tolerations?: V1Toleration[];
28
+ volumeMounts?: V1VolumeMount[];
29
+ volumes?: InfraV2Volumes[];
17
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,24 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
3
- export interface GetExperimentationActivityReportQueryPathParams {
4
- accountID: string;
5
- }
6
- export interface GetExperimentationActivityReportQueryQueryParams {
7
- startTime: number;
8
- endTime: number;
9
- cumulate?: boolean;
10
- }
11
- export type GetExperimentationActivityReportOkResponse = Array<string[]>;
12
- export type GetExperimentationActivityReportErrorResponse = unknown;
13
- export interface GetExperimentationActivityReportProps extends GetExperimentationActivityReportQueryPathParams, Omit<FetcherOptions<GetExperimentationActivityReportQueryQueryParams, unknown>, 'url'> {
14
- queryParams: GetExperimentationActivityReportQueryQueryParams;
15
- }
16
- export interface GetExperimentationActivityReportResponseContainer {
17
- body: GetExperimentationActivityReportOkResponse;
18
- headers: Headers;
19
- }
20
- export declare function getExperimentationActivityReport(props: GetExperimentationActivityReportProps): Promise<GetExperimentationActivityReportResponseContainer>;
21
- /**
22
- * Generates experimentation activity report for account in a given timeframe
23
- */
24
- export declare function useGetExperimentationActivityReportQuery(props: GetExperimentationActivityReportProps, options?: Omit<UseQueryOptions<GetExperimentationActivityReportResponseContainer, GetExperimentationActivityReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentationActivityReportResponseContainer, unknown>;
@@ -1,14 +0,0 @@
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 getExperimentationActivityReport(props) {
7
- return fetcher(Object.assign({ url: `/rest/service/experimentation/report/${props.accountID}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Generates experimentation activity report for account in a given timeframe
11
- */
12
- export function useGetExperimentationActivityReportQuery(props, options) {
13
- return useQuery(['getExperimentationActivityReport', props.accountID, props.queryParams], ({ signal }) => getExperimentationActivityReport(Object.assign(Object.assign({}, props), { signal })), options);
14
- }