@harnessio/react-chaos-manager-client 1.25.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.
Files changed (16) hide show
  1. package/dist/chaos-manager/src/services/hooks/useHealthCheckV3Query.d.ts +21 -0
  2. package/dist/chaos-manager/src/services/hooks/useHealthCheckV3Query.js +14 -0
  3. package/dist/chaos-manager/src/services/index.d.ts +6 -1
  4. package/dist/chaos-manager/src/services/index.js +1 -0
  5. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs.d.ts +6 -0
  6. package/dist/chaos-manager/src/services/schemas/{ProbeGcpCloudMonitoringProbeInputs.d.ts → GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs.d.ts} +1 -1
  7. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs.js +1 -0
  8. package/dist/chaos-manager/src/services/schemas/HealthHealthCheckResponse.d.ts +4 -0
  9. package/dist/chaos-manager/src/services/schemas/HealthHealthCheckResponse.js +4 -0
  10. package/dist/chaos-manager/src/services/schemas/ProbeApmProbe.d.ts +2 -0
  11. package/dist/chaos-manager/src/services/schemas/ProbeApmProbeTemplate.d.ts +2 -2
  12. package/dist/chaos-manager/src/services/schemas/SharedError.d.ts +5 -0
  13. package/dist/chaos-manager/src/services/schemas/SharedError.js +4 -0
  14. package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts +13 -0
  15. package/package.json +1 -1
  16. /package/dist/chaos-manager/src/services/schemas/{ProbeGcpCloudMonitoringProbeInputs.js → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs.js} +0 -0
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { HealthHealthCheckResponse } from '../schemas/HealthHealthCheckResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface HealthCheckV3QueryQueryParams {
6
+ correlationID?: string;
7
+ }
8
+ export type HealthCheckV3OkResponse = HealthHealthCheckResponse;
9
+ export type HealthCheckV3ErrorResponse = SharedError;
10
+ export interface HealthCheckV3Props extends Omit<FetcherOptions<HealthCheckV3QueryQueryParams, unknown>, 'url'> {
11
+ queryParams: HealthCheckV3QueryQueryParams;
12
+ }
13
+ export interface HealthCheckV3ResponseContainer {
14
+ body: HealthCheckV3OkResponse;
15
+ headers: Headers;
16
+ }
17
+ export declare function healthCheckV3(props: HealthCheckV3Props): Promise<HealthCheckV3ResponseContainer>;
18
+ /**
19
+ * Health check
20
+ */
21
+ export declare function useHealthCheckV3Query(props: HealthCheckV3Props, options?: Omit<UseQueryOptions<HealthCheckV3ResponseContainer, HealthCheckV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<HealthCheckV3ResponseContainer, SharedError>;
@@ -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 healthCheckV3(props) {
7
+ return fetcher(Object.assign({ url: `/api/v3/health`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Health check
11
+ */
12
+ export function useHealthCheckV3Query(props, options) {
13
+ return useQuery(['healthCheckV3', props.queryParams], ({ signal }) => healthCheckV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -186,6 +186,8 @@ export type { GetV2InfrastructureYamlErrorResponse, GetV2InfrastructureYamlMutat
186
186
  export { getV2InfrastructureYaml, useGetV2InfrastructureYamlMutation, } from './hooks/useGetV2InfrastructureYamlMutation';
187
187
  export type { GetV2OnboardingErrorResponse, GetV2OnboardingOkResponse, GetV2OnboardingProps, GetV2OnboardingQueryPathParams, GetV2OnboardingQueryQueryParams, } from './hooks/useGetV2OnboardingQuery';
188
188
  export { getV2Onboarding, useGetV2OnboardingQuery } from './hooks/useGetV2OnboardingQuery';
189
+ export type { HealthCheckV3ErrorResponse, HealthCheckV3OkResponse, HealthCheckV3Props, HealthCheckV3QueryQueryParams, } from './hooks/useHealthCheckV3Query';
190
+ export { healthCheckV3, useHealthCheckV3Query } from './hooks/useHealthCheckV3Query';
189
191
  export type { ImportActionErrorResponse, ImportActionMutationProps, ImportActionMutationQueryParams, ImportActionOkResponse, ImportActionProps, ImportActionRequestBody, } from './hooks/useImportActionMutation';
190
192
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
191
193
  export type { ImportProbeErrorResponse, ImportProbeMutationProps, ImportProbeMutationQueryParams, ImportProbeOkResponse, ImportProbeProps, ImportProbeRequestBody, } from './hooks/useImportProbeMutation';
@@ -582,6 +584,7 @@ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMet
582
584
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType';
583
585
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDynatraceApmProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDynatraceApmProbeInputs';
584
586
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv';
587
+ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs';
585
588
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet';
586
589
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders';
587
590
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier';
@@ -604,6 +607,7 @@ export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics } from
604
607
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType';
605
608
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs';
606
609
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv';
610
+ export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs';
607
611
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet';
608
612
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders';
609
613
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier';
@@ -627,6 +631,7 @@ export type { HandlersListExperimentsWithActiveInfrasMinimalNotificationResponse
627
631
  export type { HandlersMinimalNotificationWorkflow } from './schemas/HandlersMinimalNotificationWorkflow';
628
632
  export type { HandlersReferenceDto } from './schemas/HandlersReferenceDto';
629
633
  export type { HandlersUsageDataDto } from './schemas/HandlersUsageDataDto';
634
+ export type { HealthHealthCheckResponse } from './schemas/HealthHealthCheckResponse';
630
635
  export type { ImageRegistryCustomImagesRequest } from './schemas/ImageRegistryCustomImagesRequest';
631
636
  export type { ImageRegistryImageRegistryV2 } from './schemas/ImageRegistryImageRegistryV2';
632
637
  export type { ImageRegistryUserDetails } from './schemas/ImageRegistryUserDetails';
@@ -762,7 +767,6 @@ export type { ProbeDynatraceProbe } from './schemas/ProbeDynatraceProbe';
762
767
  export type { ProbeDynatraceProbeTemplate } from './schemas/ProbeDynatraceProbeTemplate';
763
768
  export type { ProbeEvaluationWindow } from './schemas/ProbeEvaluationWindow';
764
769
  export type { ProbeEvaluationWindowTemplate } from './schemas/ProbeEvaluationWindowTemplate';
765
- export type { ProbeGcpCloudMonitoringProbeInputs } from './schemas/ProbeGcpCloudMonitoringProbeInputs';
766
770
  export type { ProbeHttpProbe } from './schemas/ProbeHttpProbe';
767
771
  export type { ProbeHttpProbeTemplate } from './schemas/ProbeHttpProbeTemplate';
768
772
  export type { ProbeInfrastructureType } from './schemas/ProbeInfrastructureType';
@@ -827,6 +831,7 @@ export type { SecurityGovernanceRecurrence } from './schemas/SecurityGovernanceR
827
831
  export type { SecurityGovernanceRecurrenceSpec } from './schemas/SecurityGovernanceRecurrenceSpec';
828
832
  export type { SecurityGovernanceTimeWindow } from './schemas/SecurityGovernanceTimeWindow';
829
833
  export type { SecurityGovernanceWorkload } from './schemas/SecurityGovernanceWorkload';
834
+ export type { SharedError } from './schemas/SharedError';
830
835
  export type { TargetnetworkmapExperimentCreationMode } from './schemas/TargetnetworkmapExperimentCreationMode';
831
836
  export type { TargetnetworkmapExperimentRunDetail } from './schemas/TargetnetworkmapExperimentRunDetail';
832
837
  export type { TargetnetworkmapStatus } from './schemas/TargetnetworkmapStatus';
@@ -92,6 +92,7 @@ export { getSgpTemplateByGenAi, useGetSgpTemplateByGenAiMutation, } from './hook
92
92
  export { getTargetNetworkMap, useGetTargetNetworkMapQuery, } from './hooks/useGetTargetNetworkMapQuery';
93
93
  export { getV2InfrastructureYaml, useGetV2InfrastructureYamlMutation, } from './hooks/useGetV2InfrastructureYamlMutation';
94
94
  export { getV2Onboarding, useGetV2OnboardingQuery } from './hooks/useGetV2OnboardingQuery';
95
+ export { healthCheckV3, useHealthCheckV3Query } from './hooks/useHealthCheckV3Query';
95
96
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
96
97
  export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
97
98
  export { listActionTemplate, useListActionTemplateQuery } from './hooks/useListActionTemplateQuery';
@@ -0,0 +1,6 @@
1
+ import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager';
2
+ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs {
3
+ projectID?: string;
4
+ query?: string;
5
+ serviceAccountKey?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager;
6
+ }
@@ -1,5 +1,5 @@
1
1
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager';
2
- export interface ProbeGcpCloudMonitoringProbeInputs {
2
+ export interface GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs {
3
3
  projectID?: string;
4
4
  query?: string;
5
5
  serviceAccountKey?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager;
@@ -0,0 +1,4 @@
1
+ export interface HealthHealthCheckResponse {
2
+ correlationId?: string;
3
+ status?: string;
4
+ }
@@ -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,6 +1,7 @@
1
1
  import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppDynamicsProbeInputs } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppDynamicsProbeInputs';
2
2
  import type { ProbeComparator } from '../schemas/ProbeComparator';
3
3
  import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDynatraceApmProbeInputs } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDynatraceApmProbeInputs';
4
+ import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs';
4
5
  import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs';
5
6
  import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePrometheusProbeInputs } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePrometheusProbeInputs';
6
7
  import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSplunkObservabilityProbeInputs } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSplunkObservabilityProbeInputs';
@@ -9,6 +10,7 @@ export interface ProbeApmProbe {
9
10
  attempt?: {};
10
11
  comparator?: ProbeComparator;
11
12
  dynatraceApmProbeInputs?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDynatraceApmProbeInputs;
13
+ gcpCloudMonitoringProbeInputs?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGcpCloudMonitoringProbeInputs;
12
14
  initialDelay?: string;
13
15
  initialDelaySeconds?: {};
14
16
  interval?: string;
@@ -1,7 +1,7 @@
1
1
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs';
2
2
  import type { ProbeComparatorTemplate } from '../schemas/ProbeComparatorTemplate';
3
3
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs';
4
- import type { ProbeGcpCloudMonitoringProbeInputs } from '../schemas/ProbeGcpCloudMonitoringProbeInputs';
4
+ import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs';
5
5
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs';
6
6
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs';
7
7
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs';
@@ -10,7 +10,7 @@ export interface ProbeApmProbeTemplate {
10
10
  appDynamicsProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs;
11
11
  comparator?: ProbeComparatorTemplate;
12
12
  dynatraceApmProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs;
13
- gcpCloudMonitoringProbeInputs?: ProbeGcpCloudMonitoringProbeInputs;
13
+ gcpCloudMonitoringProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGcpCloudMonitoringProbeInputs;
14
14
  newRelicProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs;
15
15
  prometheusProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs;
16
16
  splunkObservabilityProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs;
@@ -0,0 +1,5 @@
1
+ export interface SharedError {
2
+ code?: number;
3
+ correlationID?: string;
4
+ message?: string;
5
+ }
@@ -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,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.25.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",