@harnessio/react-chaos-manager-client 1.4.0 → 1.5.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 (19) hide show
  1. package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.d.ts +2 -2
  2. package/dist/chaos-manager/src/services/index.d.ts +7 -0
  3. package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse.d.ts +6 -0
  4. package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse.js +1 -0
  5. package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineReferenceEntities.d.ts +10 -0
  6. package/dist/chaos-manager/src/services/schemas/ChaosexperimentpipelineReferenceEntities.js +1 -0
  7. package/dist/chaos-manager/src/services/schemas/ChaoshubresourcesChaosHubResource.d.ts +4 -0
  8. package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.d.ts +40 -0
  9. package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.js +1 -0
  10. package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +27 -0
  11. package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.js +1 -0
  12. package/dist/chaos-manager/src/services/schemas/ExperimentProbeActions.d.ts +19 -0
  13. package/dist/chaos-manager/src/services/schemas/ExperimentProbeActions.js +1 -0
  14. package/dist/chaos-manager/src/services/schemas/ExperimentProbeConditions.d.ts +6 -0
  15. package/dist/chaos-manager/src/services/schemas/ExperimentProbeConditions.js +4 -0
  16. package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +49 -0
  17. package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.js +1 -0
  18. package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
  19. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ChaosExecutionNodesChaosExecutionNode } from '../schemas/ChaosExecutionNodesChaosExecutionNode';
2
+ import type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from '../schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
5
  export interface GetChaosPipelineStepDetailsQueryPathParams {
@@ -12,7 +12,7 @@ export interface GetChaosPipelineStepDetailsQueryQueryParams {
12
12
  organizationIdentifier: string;
13
13
  projectIdentifier: string;
14
14
  }
15
- export type GetChaosPipelineStepDetailsOkResponse = ChaosExecutionNodesChaosExecutionNode;
15
+ export type GetChaosPipelineStepDetailsOkResponse = ChaosexperimentpipelineGetChaosPipelineNodesResponse;
16
16
  export type GetChaosPipelineStepDetailsErrorResponse = ApiRestError;
17
17
  export interface GetChaosPipelineStepDetailsProps extends GetChaosPipelineStepDetailsQueryPathParams, Omit<FetcherOptions<GetChaosPipelineStepDetailsQueryQueryParams, unknown>, 'url'> {
18
18
  queryParams: GetChaosPipelineStepDetailsQueryQueryParams;
@@ -323,6 +323,8 @@ export type { ChaosInfrastructureV2InfraType } from './schemas/ChaosInfrastructu
323
323
  export type { ChaosInfrastructureV2K8sInfraV2SpecIdentifiers } from './schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers';
324
324
  export type { ChaosactiontemplateActionsTemplateCount } from './schemas/ChaosactiontemplateActionsTemplateCount';
325
325
  export type { ChaosactiontemplateChaosActionTemplate } from './schemas/ChaosactiontemplateChaosActionTemplate';
326
+ export type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from './schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
327
+ export type { ChaosexperimentpipelineReferenceEntities } from './schemas/ChaosexperimentpipelineReferenceEntities';
326
328
  export type { ChaosfaulttemplateActionTemplate } from './schemas/ChaosfaulttemplateActionTemplate';
327
329
  export type { ChaosfaulttemplateActionTemplateVariables } from './schemas/ChaosfaulttemplateActionTemplateVariables';
328
330
  export type { ChaosfaulttemplateCreateFaultTemplateRequest } from './schemas/ChaosfaulttemplateCreateFaultTemplateRequest';
@@ -395,13 +397,18 @@ export type { ExecutionInfraType } from './schemas/ExecutionInfraType';
395
397
  export type { ExecutionProbeData } from './schemas/ExecutionProbeData';
396
398
  export type { ExecutionProbeIterations } from './schemas/ExecutionProbeIterations';
397
399
  export type { ExecutionPromProbe } from './schemas/ExecutionPromProbe';
400
+ export type { ExperimentActionRef } from './schemas/ExperimentActionRef';
398
401
  export type { ExperimentApplication } from './schemas/ExperimentApplication';
399
402
  export type { ExperimentChaosInputs } from './schemas/ExperimentChaosInputs';
400
403
  export type { ExperimentConfigMap } from './schemas/ExperimentConfigMap';
401
404
  export type { ExperimentDefinition } from './schemas/ExperimentDefinition';
402
405
  export type { ExperimentExperimentComponents } from './schemas/ExperimentExperimentComponents';
406
+ export type { ExperimentFaultRef } from './schemas/ExperimentFaultRef';
403
407
  export type { ExperimentHelperConfig } from './schemas/ExperimentHelperConfig';
404
408
  export type { ExperimentHostFile } from './schemas/ExperimentHostFile';
409
+ export type { ExperimentProbeActions } from './schemas/ExperimentProbeActions';
410
+ export type { ExperimentProbeConditions } from './schemas/ExperimentProbeConditions';
411
+ export type { ExperimentProbeRef } from './schemas/ExperimentProbeRef';
405
412
  export type { ExperimentProjectedVolumes } from './schemas/ExperimentProjectedVolumes';
406
413
  export type { ExperimentSaveChaosExperimentResponse } from './schemas/ExperimentSaveChaosExperimentResponse';
407
414
  export type { ExperimentSecret } from './schemas/ExperimentSecret';
@@ -0,0 +1,6 @@
1
+ import type { ChaosExecutionNodesChaosExecutionNode } from '../schemas/ChaosExecutionNodesChaosExecutionNode';
2
+ import type { ChaosexperimentpipelineReferenceEntities } from '../schemas/ChaosexperimentpipelineReferenceEntities';
3
+ export interface ChaosexperimentpipelineGetChaosPipelineNodesResponse {
4
+ chaosExecutionNode?: ChaosExecutionNodesChaosExecutionNode;
5
+ refEntities?: ChaosexperimentpipelineReferenceEntities;
6
+ }
@@ -0,0 +1,10 @@
1
+ import type { ExperimentActionRef } from '../schemas/ExperimentActionRef';
2
+ import type { ExperimentFaultRef } from '../schemas/ExperimentFaultRef';
3
+ import type { ExperimentProbeRef } from '../schemas/ExperimentProbeRef';
4
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
5
+ export interface ChaosexperimentpipelineReferenceEntities {
6
+ actionRef?: ExperimentActionRef;
7
+ faultRef?: ExperimentFaultRef;
8
+ probeRef?: ExperimentProbeRef;
9
+ variables?: TemplateVariable[];
10
+ }
@@ -64,6 +64,10 @@ export interface ChaoshubresourcesChaosHubResource {
64
64
  */
65
65
  isDefaultHub?: boolean;
66
66
  isRemoved: boolean;
67
+ /**
68
+ * IsTemplatised denotes if template is available for the fault
69
+ */
70
+ isTemplatised?: boolean;
67
71
  /**
68
72
  * K8sFault yml in encoded form (k8s-fault.yaml)
69
73
  */
@@ -0,0 +1,40 @@
1
+ import type { V1EnvVar } from '../schemas/V1EnvVar';
2
+ import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
3
+ export interface ExperimentActionRef {
4
+ /**
5
+ * Args of the action
6
+ */
7
+ args?: string[];
8
+ /**
9
+ * ContinueOnCompletion to continue on completion
10
+ */
11
+ continueOnCompletion?: boolean;
12
+ /**
13
+ * ENV of the action
14
+ */
15
+ env?: V1EnvVar[];
16
+ /**
17
+ * HubRef of the fault reference
18
+ */
19
+ hubRef?: string;
20
+ /**
21
+ * Identity of the action reference
22
+ */
23
+ identity?: string;
24
+ /**
25
+ * InfraID contains the infrastructure id
26
+ */
27
+ infraId?: string;
28
+ /**
29
+ * Name of the action reference
30
+ */
31
+ name?: string;
32
+ /**
33
+ * Revision of the fault reference
34
+ */
35
+ revision?: number;
36
+ /**
37
+ * Variables to store the variables
38
+ */
39
+ values?: TemplateVariableMinimum[];
40
+ }
@@ -0,0 +1,27 @@
1
+ import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
2
+ export interface ExperimentFaultRef {
3
+ /**
4
+ * HubRef of the fault reference
5
+ */
6
+ hubRef?: string;
7
+ /**
8
+ * Identity of the fault reference
9
+ */
10
+ identity?: string;
11
+ /**
12
+ * InfraID contains the infrastructure id
13
+ */
14
+ infraId?: string;
15
+ /**
16
+ * Name of the fault reference
17
+ */
18
+ name?: string;
19
+ /**
20
+ * Revision of the fault reference
21
+ */
22
+ revision?: number;
23
+ /**
24
+ * Variables to store the variables
25
+ */
26
+ values?: TemplateVariableMinimum[];
27
+ }
@@ -0,0 +1,19 @@
1
+ import type { V1EnvVar } from '../schemas/V1EnvVar';
2
+ export interface ExperimentProbeActions {
3
+ /**
4
+ * Args of the action
5
+ */
6
+ args?: string[];
7
+ /**
8
+ * Condition to check the condition
9
+ */
10
+ condition?: string;
11
+ /**
12
+ * ENV of the action
13
+ */
14
+ env?: V1EnvVar[];
15
+ /**
16
+ * Identity of the action
17
+ */
18
+ identity?: string;
19
+ }
@@ -0,0 +1,6 @@
1
+ export interface ExperimentProbeConditions {
2
+ /**
3
+ * ExecuteUpon to execute the probe on the condition
4
+ */
5
+ executeUpon?: string;
6
+ }
@@ -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 {};
@@ -0,0 +1,49 @@
1
+ import type { ExperimentProbeActions } from '../schemas/ExperimentProbeActions';
2
+ import type { ExperimentProbeConditions } from '../schemas/ExperimentProbeConditions';
3
+ import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
4
+ export interface ExperimentProbeRef {
5
+ /**
6
+ * Actions to be performed
7
+ */
8
+ actions?: ExperimentProbeActions[];
9
+ /**
10
+ * Conditions to be checked
11
+ */
12
+ conditions?: ExperimentProbeConditions[];
13
+ /**
14
+ * Duration of the probe
15
+ */
16
+ duration?: string;
17
+ /**
18
+ * EnableDataCollection to enable data collection
19
+ */
20
+ enableDataCollection?: boolean;
21
+ /**
22
+ * HubRef of the fault reference
23
+ */
24
+ hubRef?: string;
25
+ /**
26
+ * Identity of the probe
27
+ */
28
+ identity?: string;
29
+ /**
30
+ * InfraID contains the infrastructure id
31
+ */
32
+ infraId?: string;
33
+ /**
34
+ * Name of the probe
35
+ */
36
+ name?: string;
37
+ /**
38
+ * Revision of the fault reference
39
+ */
40
+ revision?: number;
41
+ /**
42
+ * Variables to store the variables
43
+ */
44
+ values?: TemplateVariableMinimum[];
45
+ /**
46
+ * Weightage of the probe
47
+ */
48
+ weightage?: number;
49
+ }
@@ -1,3 +1,3 @@
1
1
  export interface ResourceQuantity {
2
- Format?: 'BinarySI' | 'DecimalExponent' | 'DecimalSI';
2
+ Format?: string;
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",