@harnessio/react-chaos-manager-client 1.23.0 → 1.23.2

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 (23) hide show
  1. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +16 -7
  2. package/dist/chaos-manager/src/services/index.d.ts +6 -4
  3. package/dist/chaos-manager/src/services/schemas/ExecutionChaosStepStatus.d.ts +1 -1
  4. package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +4 -0
  5. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicMetric.d.ts +4 -0
  6. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs.d.ts +5 -0
  7. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicMetric.d.ts +4 -0
  8. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs.d.ts +5 -0
  9. package/dist/chaos-manager/src/services/schemas/ProbeApmProbe.d.ts +2 -0
  10. package/dist/chaos-manager/src/services/schemas/ProbeApmProbeTemplate.d.ts +2 -2
  11. package/dist/chaos-manager/src/services/schemas/V1ApmProbeInputs.d.ts +3 -3
  12. package/dist/chaos-manager/src/services/schemas/V1NewRelicInputs.d.ts +15 -0
  13. package/dist/chaos-manager/src/services/schemas/V1NewRelicInputs.js +1 -0
  14. package/dist/chaos-manager/src/services/schemas/{V1NewrelicMetric.d.ts → V1NewRelicMetric.d.ts} +1 -1
  15. package/dist/chaos-manager/src/services/schemas/V1NewRelicMetric.js +4 -0
  16. package/package.json +1 -1
  17. package/dist/chaos-manager/src/services/schemas/ProbeNewrelicMetric.d.ts +0 -4
  18. package/dist/chaos-manager/src/services/schemas/ProbeNewrelicProbeInputs.d.ts +0 -5
  19. package/dist/chaos-manager/src/services/schemas/V1NewrelicInputs.d.ts +0 -15
  20. /package/dist/chaos-manager/src/services/schemas/{ProbeNewrelicMetric.js → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicMetric.js} +0 -0
  21. /package/dist/chaos-manager/src/services/schemas/{ProbeNewrelicProbeInputs.js → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs.js} +0 -0
  22. /package/dist/chaos-manager/src/services/schemas/{V1NewrelicMetric.js → GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicMetric.js} +0 -0
  23. /package/dist/chaos-manager/src/services/schemas/{V1NewrelicInputs.js → GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs.js} +0 -0
@@ -3,18 +3,27 @@ import type { ChaosfaulttemplateListFaultTemplateResponse } from '../schemas/Cha
3
3
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
4
  export interface ListFaultTemplateQueryQueryParams {
5
5
  accountIdentifier: string;
6
- organizationIdentifier: string;
7
- projectIdentifier: string;
8
- hubIdentity: string;
6
+ category?: string;
9
7
  correlationID?: string;
8
+ hubIdentity?: string;
9
+ infrastructure?: 'KubernetesV2';
10
+ infrastructureType?: 'Kubernetes';
11
+ isEnterprise?: boolean;
10
12
  /**
11
- * @default 0
13
+ * @default 10
12
14
  */
13
- page: number;
15
+ limit?: number;
16
+ organizationIdentifier?: string;
14
17
  /**
15
- * @default 15
18
+ * @default 0
16
19
  */
17
- limit: number;
20
+ page?: number;
21
+ projectIdentifier?: string;
22
+ search?: string;
23
+ sortAscending?: boolean;
24
+ sortField?: 'lastUpdated' | 'name';
25
+ tags?: string;
26
+ type?: string;
18
27
  }
19
28
  export type ListFaultTemplateOkResponse = ChaosfaulttemplateListFaultTemplateResponse;
20
29
  export type ListFaultTemplateErrorResponse = unknown;
@@ -584,6 +584,8 @@ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv } f
584
584
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet';
585
585
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders';
586
586
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier';
587
+ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicMetric } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicMetric';
588
+ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs';
587
589
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePost } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePost';
588
590
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePrometheusProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePrometheusProbeInputs';
589
591
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSecretManager';
@@ -604,6 +606,8 @@ export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv } from './sche
604
606
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet';
605
607
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders';
606
608
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier';
609
+ export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicMetric } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicMetric';
610
+ export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs';
607
611
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbePost } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbePost';
608
612
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs';
609
613
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSecretManager';
@@ -767,8 +771,6 @@ export type { ProbeLinuxCmdProbe } from './schemas/ProbeLinuxCmdProbe';
767
771
  export type { ProbeMethod } from './schemas/ProbeMethod';
768
772
  export type { ProbeMethodTemplate } from './schemas/ProbeMethodTemplate';
769
773
  export type { ProbeMetrics } from './schemas/ProbeMetrics';
770
- export type { ProbeNewrelicMetric } from './schemas/ProbeNewrelicMetric';
771
- export type { ProbeNewrelicProbeInputs } from './schemas/ProbeNewrelicProbeInputs';
772
774
  export type { ProbeProbeTemplateProperties } from './schemas/ProbeProbeTemplateProperties';
773
775
  export type { ProbeProbeTemplateRunProperties } from './schemas/ProbeProbeTemplateRunProperties';
774
776
  export type { ProbeProbeType } from './schemas/ProbeProbeType';
@@ -966,8 +968,8 @@ export type { V1ManagedFieldsEntry } from './schemas/V1ManagedFieldsEntry';
966
968
  export type { V1ManagedFieldsOperationType } from './schemas/V1ManagedFieldsOperationType';
967
969
  export type { V1Metrics } from './schemas/V1Metrics';
968
970
  export type { V1MountPropagationMode } from './schemas/V1MountPropagationMode';
969
- export type { V1NewrelicInputs } from './schemas/V1NewrelicInputs';
970
- export type { V1NewrelicMetric } from './schemas/V1NewrelicMetric';
971
+ export type { V1NewRelicInputs } from './schemas/V1NewRelicInputs';
972
+ export type { V1NewRelicMetric } from './schemas/V1NewRelicMetric';
971
973
  export type { V1NewrelicMetrics } from './schemas/V1NewrelicMetrics';
972
974
  export type { V1NewrelicProbeInputs } from './schemas/V1NewrelicProbeInputs';
973
975
  export type { V1NfsVolumeSource } from './schemas/V1NfsVolumeSource';
@@ -1 +1 @@
1
- export type ExecutionChaosStepStatus = 'Completed' | 'Completed_With_Probe_Failure' | 'Error' | 'Failed' | 'Interrupted' | 'Passed' | 'Pending' | 'Queued' | 'Running' | 'Skipped' | 'Stopped';
1
+ export type ExecutionChaosStepStatus = 'Completed' | 'Completed_With_Probe_Absent' | 'Completed_With_Probe_Failure' | 'Error' | 'Failed' | 'Interrupted' | 'Passed' | 'Pending' | 'Queued' | 'Running' | 'Skipped' | 'Stopped';
@@ -1,5 +1,9 @@
1
1
  import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
2
2
  export interface ExperimentFaultRef {
3
+ /**
4
+ * AuthEnabled denotes whether authentication is enabled for the fault
5
+ */
6
+ authEnabled?: boolean;
3
7
  /**
4
8
  * Identity of the fault reference
5
9
  */
@@ -0,0 +1,4 @@
1
+ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicMetric {
2
+ query?: string;
3
+ queryMetric?: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicMetric } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicMetric';
2
+ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs {
3
+ connectorID?: string;
4
+ newRelicMetric?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicMetric;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicMetric {
2
+ query?: string;
3
+ queryMetric?: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicMetric } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicMetric';
2
+ export interface GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs {
3
+ connectorID?: string;
4
+ newRelicMetric?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicMetric;
5
+ }
@@ -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 { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs';
4
5
  import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePrometheusProbeInputs } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePrometheusProbeInputs';
5
6
  import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSplunkObservabilityProbeInputs } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSplunkObservabilityProbeInputs';
6
7
  export interface ProbeApmProbe {
@@ -11,6 +12,7 @@ export interface ProbeApmProbe {
11
12
  initialDelay?: string;
12
13
  initialDelaySeconds?: {};
13
14
  interval?: string;
15
+ newRelicProbeInputs?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeNewRelicProbeInputs;
14
16
  pollingInterval?: string;
15
17
  probeTimeout?: string;
16
18
  prometheusProbeInputs?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePrometheusProbeInputs;
@@ -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 { ProbeNewrelicProbeInputs } from '../schemas/ProbeNewrelicProbeInputs';
4
+ import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs';
5
5
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs';
6
6
  import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs';
7
7
  import type { ProbeApmProbeType } from '../schemas/ProbeApmProbeType';
@@ -9,7 +9,7 @@ export interface ProbeApmProbeTemplate {
9
9
  appDynamicsProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs;
10
10
  comparator?: ProbeComparatorTemplate;
11
11
  dynatraceApmProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs;
12
- newrelicProbeInputs?: ProbeNewrelicProbeInputs;
12
+ newRelicProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeNewRelicProbeInputs;
13
13
  prometheusProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbePrometheusProbeInputs;
14
14
  splunkObservabilityProbeInputs?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityProbeInputs;
15
15
  type?: ProbeApmProbeType;
@@ -1,7 +1,7 @@
1
1
  import type { V1AppDynamicsInputs } from '../schemas/V1AppDynamicsInputs';
2
2
  import type { V1ComparatorInfo } from '../schemas/V1ComparatorInfo';
3
3
  import type { V1DynatraceApmProbeInputs } from '../schemas/V1DynatraceApmProbeInputs';
4
- import type { V1NewrelicInputs } from '../schemas/V1NewrelicInputs';
4
+ import type { V1NewRelicInputs } from '../schemas/V1NewRelicInputs';
5
5
  import type { V1PrometheusInputs } from '../schemas/V1PrometheusInputs';
6
6
  import type { V1SplunkObservabilityInputs } from '../schemas/V1SplunkObservabilityInputs';
7
7
  export interface V1ApmProbeInputs {
@@ -18,9 +18,9 @@ export interface V1ApmProbeInputs {
18
18
  */
19
19
  dynatraceApmProbeInputs?: V1DynatraceApmProbeInputs;
20
20
  /**
21
- * NewrelicInputs contains the inputs required for Newrelic probe
21
+ * NewRelicInputs contains the inputs required for NewRelic probe
22
22
  */
23
- newrelicInputs?: V1NewrelicInputs;
23
+ newRelicInputs?: V1NewRelicInputs;
24
24
  /**
25
25
  * PrometheusInputs contains the inputs required for prometheus probe
26
26
  */
@@ -0,0 +1,15 @@
1
+ import type { V1NewRelicMetric } from '../schemas/V1NewRelicMetric';
2
+ export interface V1NewRelicInputs {
3
+ /**
4
+ * AccountID for the NewRelic probe
5
+ */
6
+ accountId?: string;
7
+ /**
8
+ * Endpoint for the NewRelic probe
9
+ */
10
+ endpoint?: string;
11
+ /**
12
+ * Raw metrics details of the NewRelic probe
13
+ */
14
+ newRelicMetric?: V1NewRelicMetric;
15
+ }
@@ -1,4 +1,4 @@
1
- export interface V1NewrelicMetric {
1
+ export interface V1NewRelicMetric {
2
2
  /**
3
3
  * Query contains the query for the metrics
4
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.23.0",
3
+ "version": "1.23.2",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,4 +0,0 @@
1
- export interface ProbeNewrelicMetric {
2
- query?: string;
3
- queryMetric?: string;
4
- }
@@ -1,5 +0,0 @@
1
- import type { ProbeNewrelicMetric } from '../schemas/ProbeNewrelicMetric';
2
- export interface ProbeNewrelicProbeInputs {
3
- connectorID?: string;
4
- newrelicMetric?: ProbeNewrelicMetric;
5
- }
@@ -1,15 +0,0 @@
1
- import type { V1NewrelicMetric } from '../schemas/V1NewrelicMetric';
2
- export interface V1NewrelicInputs {
3
- /**
4
- * AccountID for the Newrelic probe
5
- */
6
- accountId?: string;
7
- /**
8
- * Endpoint for the Newrelic probe
9
- */
10
- endpoint?: string;
11
- /**
12
- * Raw metrcis details of the Newrelic probe
13
- */
14
- newrelicMetric?: V1NewrelicMetric;
15
- }