@harnessio/react-chaos-manager-client 1.28.0 → 1.29.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.
Files changed (26) hide show
  1. package/dist/chaos-manager/src/services/hooks/useGetAccountServiceUsageStatsQuery.d.ts +1 -0
  2. package/dist/chaos-manager/src/services/hooks/useGetExperimentationActivityReportQuery.d.ts +24 -0
  3. package/dist/chaos-manager/src/services/hooks/useGetExperimentationActivityReportQuery.js +14 -0
  4. package/dist/chaos-manager/src/services/hooks/useGetServiceUsageReportQuery.d.ts +2 -1
  5. package/dist/chaos-manager/src/services/hooks/useGetServiceUsageReportQuery.js +1 -1
  6. package/dist/chaos-manager/src/services/index.d.ts +4 -1
  7. package/dist/chaos-manager/src/services/index.js +1 -0
  8. package/dist/chaos-manager/src/services/schemas/ChaosserviceusageOverallServiceUsageStats.d.ts +3 -3
  9. package/dist/chaos-manager/src/services/schemas/ChaosserviceusagePeriodicStats.d.ts +4 -2
  10. package/dist/chaos-manager/src/services/schemas/{ChaosserviceusageServiceStatsByType.d.ts → ChaosserviceusageStatsByType.d.ts} +1 -1
  11. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs.d.ts +1 -2
  12. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs.js +3 -0
  13. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs.d.ts +1 -2
  14. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs.js +3 -0
  15. package/dist/chaos-manager/src/services/schemas/PipelineonboardingInfrastructuresStatus.d.ts +3 -0
  16. package/dist/chaos-manager/src/services/schemas/PipelineonboardingInfrastructuresStatus.js +4 -0
  17. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse.d.ts +2 -3
  18. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse.js +0 -3
  19. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse.d.ts +8 -0
  20. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingTaskRequest.d.ts +5 -0
  21. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineChaosOnboardingTaskRequest.js +0 -3
  22. package/dist/chaos-manager/src/services/schemas/PipelineonboardingPipelineOnboarding.d.ts +8 -0
  23. package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts +1 -1
  24. package/dist/chaos-manager/src/services/schemas/V2OnboardingV2OnboardingRequest.d.ts +1 -0
  25. package/package.json +1 -1
  26. /package/dist/chaos-manager/src/services/schemas/{ChaosserviceusageServiceStatsByType.js → ChaosserviceusageStatsByType.js} +0 -0
@@ -8,6 +8,7 @@ export interface GetAccountServiceUsageStatsQueryQueryParams {
8
8
  groupBy: string;
9
9
  startTime: number;
10
10
  endTime: number;
11
+ cumulative?: boolean;
11
12
  }
12
13
  export type GetAccountServiceUsageStatsOkResponse = ChaosserviceusageUsageStats;
13
14
  export type GetAccountServiceUsageStatsErrorResponse = unknown;
@@ -0,0 +1,24 @@
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>;
@@ -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 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
+ }
@@ -6,6 +6,7 @@ export interface GetServiceUsageReportQueryPathParams {
6
6
  export interface GetServiceUsageReportQueryQueryParams {
7
7
  startTime: number;
8
8
  endTime: number;
9
+ cumulate?: boolean;
9
10
  }
10
11
  export type GetServiceUsageReportOkResponse = Array<string[]>;
11
12
  export type GetServiceUsageReportErrorResponse = unknown;
@@ -18,6 +19,6 @@ export interface GetServiceUsageReportResponseContainer {
18
19
  }
19
20
  export declare function getServiceUsageReport(props: GetServiceUsageReportProps): Promise<GetServiceUsageReportResponseContainer>;
20
21
  /**
21
- * Generates service usage report for account in a given timeframe in csv format
22
+ * Generates service usage report for account in a given timeframe
22
23
  */
23
24
  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 in csv format
10
+ * Generates service usage report for account in a given timeframe
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,6 +126,8 @@ 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';
129
131
  export type { GetFaultErrorResponse, GetFaultOkResponse, GetFaultProps, GetFaultQueryPathParams, GetFaultQueryQueryParams, } from './hooks/useGetFaultQuery';
130
132
  export { getFault, useGetFaultQuery } from './hooks/useGetFaultQuery';
131
133
  export type { GetFaultTemplateErrorResponse, GetFaultTemplateOkResponse, GetFaultTemplateProps, GetFaultTemplateQueryPathParams, GetFaultTemplateQueryQueryParams, } from './hooks/useGetFaultTemplateQuery';
@@ -460,8 +462,8 @@ export type { ChaosserviceusageOverallServiceUsageStats } from './schemas/Chaoss
460
462
  export type { ChaosserviceusagePeriodicStats } from './schemas/ChaosserviceusagePeriodicStats';
461
463
  export type { ChaosserviceusageServiceData } from './schemas/ChaosserviceusageServiceData';
462
464
  export type { ChaosserviceusageServiceDataResponse } from './schemas/ChaosserviceusageServiceDataResponse';
463
- export type { ChaosserviceusageServiceStatsByType } from './schemas/ChaosserviceusageServiceStatsByType';
464
465
  export type { ChaosserviceusageServiceType } from './schemas/ChaosserviceusageServiceType';
466
+ export type { ChaosserviceusageStatsByType } from './schemas/ChaosserviceusageStatsByType';
465
467
  export type { ChaosserviceusageUsageStats } from './schemas/ChaosserviceusageUsageStats';
466
468
  export type { CommonTypesExperimentRunStats } from './schemas/CommonTypesExperimentRunStats';
467
469
  export type { CommonTypesExperimentRunsData } from './schemas/CommonTypesExperimentRunsData';
@@ -736,6 +738,7 @@ export type { NetworkmapRetryExperimentCreationRequest } from './schemas/Network
736
738
  export type { NetworkmapRetryExperimentCreationResponse } from './schemas/NetworkmapRetryExperimentCreationResponse';
737
739
  export type { NetworkmapTargetServiceDetails } from './schemas/NetworkmapTargetServiceDetails';
738
740
  export type { PipelineonboardingInfrastructureOnboardingMapping } from './schemas/PipelineonboardingInfrastructureOnboardingMapping';
741
+ export type { PipelineonboardingInfrastructuresStatus } from './schemas/PipelineonboardingInfrastructuresStatus';
739
742
  export type { PipelineonboardingListPipelineOnboardingResponse } from './schemas/PipelineonboardingListPipelineOnboardingResponse';
740
743
  export type { PipelineonboardingPipelineChaosOnboardingCheckResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingCheckResponse';
741
744
  export type { PipelineonboardingPipelineChaosOnboardingStatusResponse } from './schemas/PipelineonboardingPipelineChaosOnboardingStatusResponse';
@@ -62,6 +62,7 @@ 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';
65
66
  export { getFault, useGetFaultQuery } from './hooks/useGetFaultQuery';
66
67
  export { getFaultTemplate, useGetFaultTemplateQuery } from './hooks/useGetFaultTemplateQuery';
67
68
  export { getFaultTemplateRevisions, useGetFaultTemplateRevisionsQuery, } from './hooks/useGetFaultTemplateRevisionsQuery';
@@ -1,7 +1,7 @@
1
- import type { ChaosserviceusageServiceStatsByType } from '../schemas/ChaosserviceusageServiceStatsByType';
1
+ import type { ChaosserviceusageStatsByType } from '../schemas/ChaosserviceusageStatsByType';
2
2
  export interface ChaosserviceusageOverallServiceUsageStats {
3
3
  accountID?: string;
4
- licenseServiceMapping?: ChaosserviceusageServiceStatsByType;
5
- serviceStats?: ChaosserviceusageServiceStatsByType;
4
+ licenseServiceMapping?: ChaosserviceusageStatsByType;
5
+ serviceStats?: ChaosserviceusageStatsByType;
6
6
  totalUsage?: number;
7
7
  }
@@ -1,6 +1,8 @@
1
- import type { ChaosserviceusageServiceStatsByType } from '../schemas/ChaosserviceusageServiceStatsByType';
1
+ import type { ChaosserviceusageStatsByType } from '../schemas/ChaosserviceusageStatsByType';
2
2
  export interface ChaosserviceusagePeriodicStats {
3
- serviceStatsByType?: ChaosserviceusageServiceStatsByType;
3
+ experimentStatsByType?: ChaosserviceusageStatsByType;
4
+ serviceStatsByType?: ChaosserviceusageStatsByType;
4
5
  timestamp?: number;
5
6
  totalConsumption?: number;
7
+ totalExperimentRunsConsumption?: number;
6
8
  }
@@ -1,4 +1,4 @@
1
- export interface ChaosserviceusageServiceStatsByType {
1
+ export interface ChaosserviceusageStatsByType {
2
2
  'Cloud Resources'?: number;
3
3
  'Container Services'?: number;
4
4
  Kubernetes?: number;
@@ -1,6 +1,5 @@
1
- import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager';
2
1
  export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs {
3
2
  projectID?: string;
4
3
  query?: string;
5
- serviceAccountKey?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager;
4
+ serviceAccountKey?: string;
6
5
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
1
4
  export {};
@@ -1,6 +1,5 @@
1
- import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager';
2
1
  export interface GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs {
3
2
  projectID?: string;
4
3
  query?: string;
5
- serviceAccountKey?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager;
4
+ serviceAccountKey?: string;
6
5
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
1
4
  export {};
@@ -0,0 +1,3 @@
1
+ export interface PipelineonboardingInfrastructuresStatus {
2
+ isChaosEnabled?: boolean;
3
+ }
@@ -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,10 +1,9 @@
1
+ import type { PipelineonboardingInfrastructuresStatus } from '../schemas/PipelineonboardingInfrastructuresStatus';
1
2
  export interface PipelineonboardingPipelineChaosOnboardingCheckResponse {
2
3
  check?: boolean;
3
4
  infrastructures?: {
4
5
  [key: string]: {
5
- [key: string]: {
6
- [key: string]: any;
7
- };
6
+ [key: string]: PipelineonboardingInfrastructuresStatus;
8
7
  };
9
8
  };
10
9
  message?: string;
@@ -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 {};
@@ -1,10 +1,17 @@
1
+ import type { V2OnboardingChaosInfraAdvanceConfiguration } from '../schemas/V2OnboardingChaosInfraAdvanceConfiguration';
2
+ import type { DatabaseAgentConfiguration } from '../schemas/DatabaseAgentConfiguration';
1
3
  import type { PipelineonboardingInfrastructureOnboardingMapping } from '../schemas/PipelineonboardingInfrastructureOnboardingMapping';
2
4
  import type { PipelineonboardingSelectedExperiment } from '../schemas/PipelineonboardingSelectedExperiment';
3
5
  import type { PipelineonboardingStatus } from '../schemas/PipelineonboardingStatus';
4
6
  export interface PipelineonboardingPipelineChaosOnboardingStatusResponse {
5
7
  accountID: string;
8
+ /**
9
+ * Advance Configurations
10
+ */
11
+ chaosInfraAdvanceConfiguration?: V2OnboardingChaosInfraAdvanceConfiguration;
6
12
  createdAt?: number;
7
13
  createdBy?: string;
14
+ discoveryAdvanceConfiguration?: DatabaseAgentConfiguration;
8
15
  infrastructureOnboardingMappings?: PipelineonboardingInfrastructureOnboardingMapping[];
9
16
  infrastructures?: {
10
17
  [key: string]: {
@@ -13,6 +20,7 @@ export interface PipelineonboardingPipelineChaosOnboardingStatusResponse {
13
20
  };
14
21
  };
15
22
  };
23
+ isAiEnabled?: boolean;
16
24
  isRemoved: boolean;
17
25
  message?: string;
18
26
  orgID?: string;
@@ -1,3 +1,8 @@
1
+ import type { V2OnboardingChaosInfraAdvanceConfiguration } from '../schemas/V2OnboardingChaosInfraAdvanceConfiguration';
2
+ import type { DatabaseAgentConfiguration } from '../schemas/DatabaseAgentConfiguration';
1
3
  export interface PipelineonboardingPipelineChaosOnboardingTaskRequest {
4
+ chaosInfraAdvanceConfiguration?: V2OnboardingChaosInfraAdvanceConfiguration;
5
+ discoveryAdvanceConfiguration?: DatabaseAgentConfiguration;
6
+ isAIEnabled?: boolean;
2
7
  pipelineIdentity?: string;
3
8
  }
@@ -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 {};
@@ -1,9 +1,16 @@
1
+ import type { V2OnboardingChaosInfraAdvanceConfiguration } from '../schemas/V2OnboardingChaosInfraAdvanceConfiguration';
2
+ import type { DatabaseAgentConfiguration } from '../schemas/DatabaseAgentConfiguration';
1
3
  import type { PipelineonboardingSelectedExperiment } from '../schemas/PipelineonboardingSelectedExperiment';
2
4
  import type { PipelineonboardingStatus } from '../schemas/PipelineonboardingStatus';
3
5
  export interface PipelineonboardingPipelineOnboarding {
4
6
  accountID: string;
7
+ /**
8
+ * Advance Configurations
9
+ */
10
+ chaosInfraAdvanceConfiguration?: V2OnboardingChaosInfraAdvanceConfiguration;
5
11
  createdAt?: number;
6
12
  createdBy?: string;
13
+ discoveryAdvanceConfiguration?: DatabaseAgentConfiguration;
7
14
  infrastructures?: {
8
15
  [key: string]: {
9
16
  [key: string]: {
@@ -11,6 +18,7 @@ export interface PipelineonboardingPipelineOnboarding {
11
18
  };
12
19
  };
13
20
  };
21
+ isAiEnabled?: boolean;
14
22
  isRemoved: boolean;
15
23
  message?: string;
16
24
  orgID?: string;
@@ -10,7 +10,7 @@ export interface V2OnboardingChaosInfraAdvanceConfiguration {
10
10
  [key: string]: string;
11
11
  };
12
12
  autopilotEnabled?: boolean;
13
- container?: string;
13
+ containers?: string;
14
14
  env?: InfraV2Env[];
15
15
  imagePullPolicy?: V1PullPolicy;
16
16
  insecureSkipVerify?: boolean;
@@ -6,6 +6,7 @@ export interface V2OnboardingV2OnboardingRequest {
6
6
  discoveryAdvanceConfiguration?: DatabaseAgentConfiguration;
7
7
  environmentRef: string;
8
8
  infrastructureRef: string;
9
+ isAIEnabled?: boolean;
9
10
  mode: V2OnboardingOnboardingMode;
10
11
  serviceAccount?: string;
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.28.0",
3
+ "version": "1.29.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",