@harnessio/react-chaos-manager-client 1.6.0 → 1.8.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 (87) hide show
  1. package/dist/chaos-manager/src/services/hooks/useCompareFaultTemplateRevisionsQuery.d.ts +30 -0
  2. package/dist/chaos-manager/src/services/hooks/useCompareFaultTemplateRevisionsQuery.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useCreateFaultTemplateMutation.d.ts +1 -0
  4. package/dist/chaos-manager/src/services/hooks/useCreateFaultTemplateMutation.js +1 -1
  5. package/dist/chaos-manager/src/services/hooks/useCreateV2OnboardingMutation.d.ts +1 -1
  6. package/dist/chaos-manager/src/services/hooks/useDeleteFaultTemplateMutation.d.ts +2 -1
  7. package/dist/chaos-manager/src/services/hooks/useDeleteFaultTemplateMutation.js +1 -1
  8. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateQuery.d.ts +5 -3
  9. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateQuery.js +2 -2
  10. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionsQuery.d.ts +36 -0
  11. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionsQuery.js +14 -0
  12. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateVariablesQuery.d.ts +29 -0
  13. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateVariablesQuery.js +14 -0
  14. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateYamlQuery.d.ts +29 -0
  15. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateYamlQuery.js +14 -0
  16. package/dist/chaos-manager/src/services/hooks/useGetOnboardingExperimentsQuery.d.ts +1 -1
  17. package/dist/chaos-manager/src/services/hooks/useGetV2OnboardingQuery.d.ts +1 -1
  18. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +1 -0
  19. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.js +1 -1
  20. package/dist/chaos-manager/src/services/hooks/useListV2OnboardingQuery.d.ts +1 -1
  21. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.d.ts +1 -1
  22. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.d.ts +1 -1
  23. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.d.ts +1 -1
  24. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.d.ts +1 -1
  25. package/dist/chaos-manager/src/services/hooks/useStopOnboardingExperimentsMutation.d.ts +1 -1
  26. package/dist/chaos-manager/src/services/hooks/useUpdateFaultTemplateMutation.d.ts +2 -1
  27. package/dist/chaos-manager/src/services/hooks/useUpdateFaultTemplateMutation.js +1 -1
  28. package/dist/chaos-manager/src/services/index.d.ts +23 -20
  29. package/dist/chaos-manager/src/services/index.js +4 -3
  30. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.d.ts +4 -4
  31. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts +5 -4
  32. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.d.ts +4 -0
  33. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +1 -0
  34. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateChaosFaultTemplate.d.ts +30 -0
  35. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCompareRevisions.d.ts +5 -0
  36. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.d.ts +4 -3
  37. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.d.ts +6 -5
  38. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateFaultTemplateVariables.d.ts +1 -0
  39. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateFaultTemplateYaml.d.ts +4 -0
  40. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetFaultTemplateResponse.d.ts +5 -5
  41. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateListFaultTemplateResponse.d.ts +3 -3
  42. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.d.ts +6 -5
  43. package/dist/chaos-manager/src/services/schemas/ExecutionChaosStepStatus.d.ts +1 -1
  44. package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +1 -1
  45. package/dist/chaos-manager/src/services/schemas/{K8sfaultApplicationTarget.d.ts → FaulttemplateApplicationTarget.d.ts} +1 -1
  46. package/dist/chaos-manager/src/services/schemas/{K8sfaultChaosSpec.d.ts → FaulttemplateChaosKubernetesSpec.d.ts} +9 -12
  47. package/dist/chaos-manager/src/services/schemas/FaulttemplateChaosParameter.d.ts +4 -0
  48. package/dist/chaos-manager/src/services/schemas/FaulttemplateChaosSpec.d.ts +7 -0
  49. package/dist/chaos-manager/src/services/schemas/{K8sfaultConfigMapVolume.d.ts → FaulttemplateConfigMapVolume.d.ts} +1 -1
  50. package/dist/chaos-manager/src/services/schemas/{K8sfaultK8SFault.d.ts → FaulttemplateFaultTemplate.d.ts} +5 -4
  51. package/dist/chaos-manager/src/services/schemas/{K8sfaultHostPathVolume.d.ts → FaulttemplateHostPathVolume.d.ts} +1 -1
  52. package/dist/chaos-manager/src/services/schemas/{K8sfaultK8STarget.d.ts → FaulttemplateKubernetesTarget.d.ts} +1 -1
  53. package/dist/chaos-manager/src/services/schemas/{K8sfaultResourceRequirements.d.ts → FaulttemplateResourceRequirements.d.ts} +1 -1
  54. package/dist/chaos-manager/src/services/schemas/{K8sfaultSecretVolume.d.ts → FaulttemplateSecretVolume.d.ts} +1 -1
  55. package/dist/chaos-manager/src/services/schemas/FaulttemplateSpec.d.ts +6 -0
  56. package/dist/chaos-manager/src/services/schemas/FaulttemplateTarget.d.ts +6 -0
  57. package/dist/chaos-manager/src/services/schemas/FaulttemplateTarget.js +1 -0
  58. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics.d.ts +1 -0
  59. package/dist/chaos-manager/src/services/schemas/ModelWorkflowRun.d.ts +4 -0
  60. package/dist/chaos-manager/src/services/schemas/V1AppdMetrics.d.ts +4 -0
  61. package/package.json +1 -1
  62. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionDifferenceQuery.d.ts +0 -28
  63. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionDifferenceQuery.js +0 -14
  64. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateRevisionsQuery.d.ts +0 -34
  65. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateRevisionsQuery.js +0 -14
  66. package/dist/chaos-manager/src/services/hooks/useListVariablesInFaultTemplateQuery.d.ts +0 -27
  67. package/dist/chaos-manager/src/services/hooks/useListVariablesInFaultTemplateQuery.js +0 -14
  68. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepStatus.d.ts +0 -1
  69. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepType.d.ts +0 -1
  70. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate.d.ts +0 -54
  71. package/dist/chaos-manager/src/services/schemas/K8sfaultChaosParameter.d.ts +0 -4
  72. package/dist/chaos-manager/src/services/schemas/K8sfaultK8SFaultSpec.d.ts +0 -6
  73. package/dist/chaos-manager/src/services/schemas/K8sfaultTarget.d.ts +0 -6
  74. /package/dist/chaos-manager/src/services/schemas/{GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate.js → ChaosfaulttemplateChaosFaultTemplate.js} +0 -0
  75. /package/dist/chaos-manager/src/services/schemas/{ChaosExecutionNodesChaosStepStatus.js → ChaosfaulttemplateCompareRevisions.js} +0 -0
  76. /package/dist/chaos-manager/src/services/schemas/{ChaosExecutionNodesChaosStepType.js → ChaosfaulttemplateFaultTemplateYaml.js} +0 -0
  77. /package/dist/chaos-manager/src/services/schemas/{K8sfaultApplicationTarget.js → FaulttemplateApplicationTarget.js} +0 -0
  78. /package/dist/chaos-manager/src/services/schemas/{K8sfaultChaosSpec.js → FaulttemplateChaosKubernetesSpec.js} +0 -0
  79. /package/dist/chaos-manager/src/services/schemas/{K8sfaultChaosParameter.js → FaulttemplateChaosParameter.js} +0 -0
  80. /package/dist/chaos-manager/src/services/schemas/{K8sfaultHostPathVolume.js → FaulttemplateChaosSpec.js} +0 -0
  81. /package/dist/chaos-manager/src/services/schemas/{K8sfaultConfigMapVolume.js → FaulttemplateConfigMapVolume.js} +0 -0
  82. /package/dist/chaos-manager/src/services/schemas/{K8sfaultK8SFault.js → FaulttemplateFaultTemplate.js} +0 -0
  83. /package/dist/chaos-manager/src/services/schemas/{K8sfaultK8SFaultSpec.js → FaulttemplateHostPathVolume.js} +0 -0
  84. /package/dist/chaos-manager/src/services/schemas/{K8sfaultK8STarget.js → FaulttemplateKubernetesTarget.js} +0 -0
  85. /package/dist/chaos-manager/src/services/schemas/{K8sfaultResourceRequirements.js → FaulttemplateResourceRequirements.js} +0 -0
  86. /package/dist/chaos-manager/src/services/schemas/{K8sfaultSecretVolume.js → FaulttemplateSecretVolume.js} +0 -0
  87. /package/dist/chaos-manager/src/services/schemas/{K8sfaultTarget.js → FaulttemplateSpec.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import type { ChaosExecutionNodesChaosExecutionNode } from '../schemas/ChaosExecutionNodesChaosExecutionNode';
2
- import type { ChaosExecutionNodesChaosStepStatus } from '../schemas/ChaosExecutionNodesChaosStepStatus';
3
- import type { ChaosExecutionNodesChaosStepType } from '../schemas/ChaosExecutionNodesChaosStepType';
2
+ import type { ExecutionChaosStepStatus } from '../schemas/ExecutionChaosStepStatus';
3
+ import type { ExecutionChaosStepType } from '../schemas/ExecutionChaosStepType';
4
4
  export interface ChaosExecutionNodesChaosExecutionResponse {
5
5
  accountID: string;
6
6
  duration?: number;
@@ -11,13 +11,14 @@ export interface ChaosExecutionNodesChaosExecutionResponse {
11
11
  infraID?: string;
12
12
  isRemoved?: boolean;
13
13
  lastUpdatedAt?: number;
14
+ manifestVersion?: string;
14
15
  nodes?: ChaosExecutionNodesChaosExecutionNode[];
15
16
  orgID?: string;
16
17
  projectID?: string;
17
18
  resiliencyScore?: number;
18
19
  runSequence?: number;
19
20
  startedAt?: number;
20
- status?: ChaosExecutionNodesChaosStepStatus;
21
+ status?: ExecutionChaosStepStatus;
21
22
  stepName?: string;
22
- stepType?: ChaosExecutionNodesChaosStepType;
23
+ stepType?: ExecutionChaosStepType;
23
24
  }
@@ -1,8 +1,12 @@
1
1
  import type { ChaosExecutionNodesFaultDetails } from '../schemas/ChaosExecutionNodesFaultDetails';
2
2
  import type { ChaosExecutionNodesHelperPodDetails } from '../schemas/ChaosExecutionNodesHelperPodDetails';
3
+ import type { V1alpha1TargetDetails } from '../schemas/V1alpha1TargetDetails';
4
+ import type { V1alpha1Targets } from '../schemas/V1alpha1Targets';
3
5
  export interface ChaosExecutionNodesFaultData {
4
6
  faultDetails?: ChaosExecutionNodesFaultDetails;
5
7
  helperPodDetails?: ChaosExecutionNodesHelperPodDetails[];
6
8
  name?: string;
7
9
  namespace?: string;
10
+ targetChaosStatus?: V1alpha1TargetDetails[];
11
+ targets?: V1alpha1Targets[];
8
12
  }
@@ -22,6 +22,7 @@ export interface ChaosExperimentRunChaosExperimentRun {
22
22
  faultsWithProbes?: ChaosExperimentRunFaults[];
23
23
  infraID?: string;
24
24
  isRemoved: boolean;
25
+ manifestVersion?: string;
25
26
  networkMapID?: string;
26
27
  notifyID?: string;
27
28
  orgID?: string;
@@ -0,0 +1,30 @@
1
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
2
+ export interface ChaosfaulttemplateChaosFaultTemplate {
3
+ accountID: string;
4
+ createdAt?: number;
5
+ createdBy?: string;
6
+ description?: string;
7
+ /**
8
+ * Hub identity of the fault
9
+ */
10
+ hubRef?: string;
11
+ /**
12
+ * Mongo ID (primary key)
13
+ */
14
+ id?: string;
15
+ /**
16
+ * Unique identifier (human-readable) immutable
17
+ */
18
+ identity?: string;
19
+ isDefault?: boolean;
20
+ isRemoved: boolean;
21
+ name: string;
22
+ orgID?: string;
23
+ projectID?: string;
24
+ revision?: string;
25
+ tags?: string[];
26
+ template?: string;
27
+ updatedAt?: number;
28
+ updatedBy?: string;
29
+ variables?: TemplateVariable[];
30
+ }
@@ -0,0 +1,5 @@
1
+ export interface ChaosfaulttemplateCompareRevisions {
2
+ correlationID?: string;
3
+ template1?: string;
4
+ template2?: string;
5
+ }
@@ -1,14 +1,15 @@
1
- import type { K8sfaultK8SFaultSpec } from '../schemas/K8sfaultK8SFaultSpec';
1
+ import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
2
2
  import type { TemplateVariable } from '../schemas/TemplateVariable';
3
3
  export interface ChaosfaulttemplateCreateFaultTemplateRequest {
4
4
  description?: string;
5
5
  identity?: string;
6
6
  infras?: string[];
7
+ isDefault?: boolean;
7
8
  keywords?: string[];
8
9
  name?: string;
9
10
  platforms?: string[];
10
- revision?: number;
11
- spec?: K8sfaultK8SFaultSpec;
11
+ revision?: string;
12
+ spec?: FaulttemplateSpec;
12
13
  tags?: string[];
13
14
  variables?: TemplateVariable[];
14
15
  }
@@ -1,16 +1,17 @@
1
- import type { K8sfaultK8SFaultSpec } from '../schemas/K8sfaultK8SFaultSpec';
1
+ import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
2
2
  import type { TemplateVariable } from '../schemas/TemplateVariable';
3
3
  export interface ChaosfaulttemplateCreateFaultTemplateResponse {
4
- corelationID?: string;
4
+ correlationID?: string;
5
5
  description?: string;
6
- hubID?: string;
6
+ hubIdentity?: string;
7
7
  identity?: string;
8
8
  infras?: string[];
9
+ isDefault?: boolean;
9
10
  keywords?: string[];
10
11
  name?: string;
11
12
  platforms?: string[];
12
- revision?: number;
13
- spec?: K8sfaultK8SFaultSpec;
13
+ revision?: string;
14
+ spec?: FaulttemplateSpec;
14
15
  tags?: string[];
15
16
  variables?: TemplateVariable[];
16
17
  }
@@ -1,5 +1,6 @@
1
1
  import type { TemplateVariable } from '../schemas/TemplateVariable';
2
2
  export interface ChaosfaulttemplateFaultTemplateVariables {
3
+ correlationID?: string;
3
4
  faultTargets?: TemplateVariable[];
4
5
  faultTunable?: TemplateVariable[];
5
6
  variables?: TemplateVariable[];
@@ -0,0 +1,4 @@
1
+ export interface ChaosfaulttemplateFaultTemplateYaml {
2
+ correlationID?: string;
3
+ template?: string;
4
+ }
@@ -1,7 +1,7 @@
1
- import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate';
2
- import type { K8sfaultK8SFault } from '../schemas/K8sfaultK8SFault';
1
+ import type { ChaosfaulttemplateChaosFaultTemplate } from '../schemas/ChaosfaulttemplateChaosFaultTemplate';
2
+ import type { FaulttemplateFaultTemplate } from '../schemas/FaulttemplateFaultTemplate';
3
3
  export interface ChaosfaulttemplateGetFaultTemplateResponse {
4
- corelationID?: string;
5
- data?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate;
6
- typed?: K8sfaultK8SFault;
4
+ correlationID?: string;
5
+ data?: ChaosfaulttemplateChaosFaultTemplate;
6
+ fault?: FaulttemplateFaultTemplate;
7
7
  }
@@ -1,7 +1,7 @@
1
- import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate';
1
+ import type { ChaosfaulttemplateChaosFaultTemplate } from '../schemas/ChaosfaulttemplateChaosFaultTemplate';
2
2
  import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
3
3
  export interface ChaosfaulttemplateListFaultTemplateResponse {
4
- corelationID?: string;
5
- data?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate[];
4
+ correlationID?: string;
5
+ data?: ChaosfaulttemplateChaosFaultTemplate[];
6
6
  pagination?: GithubComHarnessHceSaasGraphqlServerApiPagination;
7
7
  }
@@ -1,16 +1,17 @@
1
- import type { K8sfaultK8SFaultSpec } from '../schemas/K8sfaultK8SFaultSpec';
1
+ import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
2
2
  import type { TemplateVariable } from '../schemas/TemplateVariable';
3
3
  export interface ChaosfaulttemplateUpdateFaultTemplateResponse {
4
- corelationID?: string;
4
+ correlationID?: string;
5
5
  description?: string;
6
- hubID?: string;
6
+ hubIdentity?: string;
7
7
  identity?: string;
8
8
  infras?: string[];
9
+ isDefault?: boolean;
9
10
  keywords?: string[];
10
11
  name?: string;
11
12
  platforms?: string[];
12
- revision?: number;
13
- spec?: K8sfaultK8SFaultSpec;
13
+ revision?: string;
14
+ spec?: FaulttemplateSpec;
14
15
  tags?: string[];
15
16
  variables?: TemplateVariable[];
16
17
  }
@@ -1 +1 @@
1
- export type ExecutionChaosStepStatus = 'COMPLETED' | 'COMPLETED_WITH_PROBE_FAILURE' | 'ERROR' | 'FAILED' | 'PASSED' | 'PENDING' | 'RUNNING' | 'SKIPPED' | 'STOPPED';
1
+ export type ExecutionChaosStepStatus = 'Completed' | 'Completed_With_Probe_Failure' | 'Error' | 'Failed' | 'Interrupted' | 'Passed' | 'Pending' | 'Queued' | 'Running' | 'Skipped' | 'Stopped';
@@ -19,7 +19,7 @@ export interface ExperimentFaultRef {
19
19
  /**
20
20
  * Revision of the fault reference
21
21
  */
22
- revision?: number;
22
+ revision?: string;
23
23
  /**
24
24
  * Variables to store the variables
25
25
  */
@@ -1,4 +1,4 @@
1
- export interface K8sfaultApplicationTarget {
1
+ export interface FaulttemplateApplicationTarget {
2
2
  application?: string;
3
3
  entrypoint?: string;
4
4
  }
@@ -1,27 +1,25 @@
1
- import type { K8sfaultConfigMapVolume } from '../schemas/K8sfaultConfigMapVolume';
1
+ import type { FaulttemplateConfigMapVolume } from '../schemas/FaulttemplateConfigMapVolume';
2
2
  import type { V1SecurityContext } from '../schemas/V1SecurityContext';
3
3
  import type { V1EnvVar } from '../schemas/V1EnvVar';
4
- import type { K8sfaultHostPathVolume } from '../schemas/K8sfaultHostPathVolume';
4
+ import type { FaulttemplateHostPathVolume } from '../schemas/FaulttemplateHostPathVolume';
5
5
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
6
- import type { K8sfaultChaosParameter } from '../schemas/K8sfaultChaosParameter';
7
6
  import type { V1PodSecurityContext } from '../schemas/V1PodSecurityContext';
8
- import type { K8sfaultResourceRequirements } from '../schemas/K8sfaultResourceRequirements';
9
- import type { K8sfaultSecretVolume } from '../schemas/K8sfaultSecretVolume';
7
+ import type { FaulttemplateResourceRequirements } from '../schemas/FaulttemplateResourceRequirements';
8
+ import type { FaulttemplateSecretVolume } from '../schemas/FaulttemplateSecretVolume';
10
9
  import type { V1Toleration } from '../schemas/V1Toleration';
11
- export interface K8sfaultChaosSpec {
10
+ export interface FaulttemplateChaosKubernetesSpec {
12
11
  annotations?: {
13
12
  [key: string]: string;
14
13
  };
15
14
  args?: string[];
16
15
  command?: string[];
17
- configMapVolume?: K8sfaultConfigMapVolume[];
16
+ configMapVolume?: FaulttemplateConfigMapVolume[];
18
17
  containerSecurityContext?: V1SecurityContext;
19
18
  env?: V1EnvVar[];
20
- faultName?: string;
21
19
  hostIPC?: boolean;
22
20
  hostNetwork?: boolean;
23
21
  hostPID?: boolean;
24
- hostPathVolume?: K8sfaultHostPathVolume[];
22
+ hostPathVolume?: FaulttemplateHostPathVolume[];
25
23
  image?: string;
26
24
  imagePullPolicy?: V1PullPolicy;
27
25
  imagePullSecrets?: string[];
@@ -31,9 +29,8 @@ export interface K8sfaultChaosSpec {
31
29
  nodeSelector?: {
32
30
  [key: string]: string;
33
31
  };
34
- params?: K8sfaultChaosParameter[];
35
32
  podSecurityContext?: V1PodSecurityContext;
36
- resourceRequirements?: K8sfaultResourceRequirements;
37
- secretVolume?: K8sfaultSecretVolume[];
33
+ resourceRequirements?: FaulttemplateResourceRequirements;
34
+ secretVolume?: FaulttemplateSecretVolume[];
38
35
  toleration?: V1Toleration;
39
36
  }
@@ -0,0 +1,4 @@
1
+ export interface FaulttemplateChaosParameter {
2
+ name?: string;
3
+ value?: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ import type { FaulttemplateChaosKubernetesSpec } from '../schemas/FaulttemplateChaosKubernetesSpec';
2
+ import type { FaulttemplateChaosParameter } from '../schemas/FaulttemplateChaosParameter';
3
+ export interface FaulttemplateChaosSpec {
4
+ faultName?: string;
5
+ kubernetes?: FaulttemplateChaosKubernetesSpec;
6
+ params?: FaulttemplateChaosParameter[];
7
+ }
@@ -1,4 +1,4 @@
1
- export interface K8sfaultConfigMapVolume {
1
+ export interface FaulttemplateConfigMapVolume {
2
2
  mountMode?: number;
3
3
  mountPath?: string;
4
4
  name?: string;
@@ -1,14 +1,15 @@
1
- import type { K8sfaultK8SFaultSpec } from '../schemas/K8sfaultK8SFaultSpec';
1
+ import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
2
2
  import type { TemplateVariable } from '../schemas/TemplateVariable';
3
- export interface K8sfaultK8SFault {
3
+ export interface FaulttemplateFaultTemplate {
4
4
  description?: string;
5
5
  identity?: string;
6
6
  infras?: string[];
7
+ isDefault?: boolean;
7
8
  keywords?: string[];
8
9
  name?: string;
9
10
  platforms?: string[];
10
- revision?: number;
11
- spec?: K8sfaultK8SFaultSpec;
11
+ revision?: string;
12
+ spec?: FaulttemplateSpec;
12
13
  tags?: string[];
13
14
  variables?: TemplateVariable[];
14
15
  }
@@ -1,5 +1,5 @@
1
1
  import type { V1HostPathType } from '../schemas/V1HostPathType';
2
- export interface K8sfaultHostPathVolume {
2
+ export interface FaulttemplateHostPathVolume {
3
3
  hostPath?: string;
4
4
  mountPath?: string;
5
5
  name?: string;
@@ -1,4 +1,4 @@
1
- export interface K8sfaultK8STarget {
1
+ export interface FaulttemplateKubernetesTarget {
2
2
  kind?: string;
3
3
  labels?: string;
4
4
  names?: string;
@@ -1,4 +1,4 @@
1
- export interface K8sfaultResourceRequirements {
1
+ export interface FaulttemplateResourceRequirements {
2
2
  limits?: {
3
3
  [key: string]: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- export interface K8sfaultSecretVolume {
1
+ export interface FaulttemplateSecretVolume {
2
2
  mountMode?: number;
3
3
  mountPath?: string;
4
4
  name?: string;
@@ -0,0 +1,6 @@
1
+ import type { FaulttemplateChaosSpec } from '../schemas/FaulttemplateChaosSpec';
2
+ import type { FaulttemplateTarget } from '../schemas/FaulttemplateTarget';
3
+ export interface FaulttemplateSpec {
4
+ chaos?: FaulttemplateChaosSpec;
5
+ target?: FaulttemplateTarget;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { FaulttemplateApplicationTarget } from '../schemas/FaulttemplateApplicationTarget';
2
+ import type { FaulttemplateKubernetesTarget } from '../schemas/FaulttemplateKubernetesTarget';
3
+ export interface FaulttemplateTarget {
4
+ application?: FaulttemplateApplicationTarget;
5
+ kubernetes?: FaulttemplateKubernetesTarget[];
6
+ }
@@ -1,4 +1,5 @@
1
1
  export interface GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics {
2
+ applicationName?: string;
2
3
  durationInMin?: {};
3
4
  metricsFullPath?: string;
4
5
  }
@@ -70,6 +70,10 @@ export interface ModelWorkflowRun {
70
70
  * Flag to check if single run status is enabled or not
71
71
  */
72
72
  isSingleRunCronEnabled?: boolean;
73
+ /**
74
+ * kind of the experiment manifest
75
+ */
76
+ manifestVersion?: string;
73
77
  /**
74
78
  * Notify ID of the experiment run
75
79
  */
@@ -1,4 +1,8 @@
1
1
  export interface V1AppdMetrics {
2
+ /**
3
+ * ApplicationName contains the application name
4
+ */
5
+ applicationName?: string;
2
6
  /**
3
7
  * DurationInMin contains the duration in minutes
4
8
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.6.0",
3
+ "version": "1.8.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,28 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ChaosfaulttemplateListFaultTemplateResponse } from '../schemas/ChaosfaulttemplateListFaultTemplateResponse';
3
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
- export interface GetFaultTemplateRevisionDifferenceQueryPathParams {
5
- faultName: string;
6
- }
7
- export interface GetFaultTemplateRevisionDifferenceQueryQueryParams {
8
- accountIdentifier: string;
9
- organizationIdentifier: string;
10
- projectIdentifier: string;
11
- hubIdentity: string;
12
- revision: string;
13
- revisionToCompare: string;
14
- }
15
- export type GetFaultTemplateRevisionDifferenceOkResponse = ChaosfaulttemplateListFaultTemplateResponse;
16
- export type GetFaultTemplateRevisionDifferenceErrorResponse = unknown;
17
- export interface GetFaultTemplateRevisionDifferenceProps extends GetFaultTemplateRevisionDifferenceQueryPathParams, Omit<FetcherOptions<GetFaultTemplateRevisionDifferenceQueryQueryParams, unknown>, 'url'> {
18
- queryParams: GetFaultTemplateRevisionDifferenceQueryQueryParams;
19
- }
20
- export interface GetFaultTemplateRevisionDifferenceResponseContainer {
21
- body: GetFaultTemplateRevisionDifferenceOkResponse;
22
- headers: Headers;
23
- }
24
- export declare function getFaultTemplateRevisionDifference(props: GetFaultTemplateRevisionDifferenceProps): Promise<GetFaultTemplateRevisionDifferenceResponseContainer>;
25
- /**
26
- * Get the difference between 2 revisions of a fault template in a hub
27
- */
28
- export declare function useGetFaultTemplateRevisionDifferenceQuery(props: GetFaultTemplateRevisionDifferenceProps, options?: Omit<UseQueryOptions<GetFaultTemplateRevisionDifferenceResponseContainer, GetFaultTemplateRevisionDifferenceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFaultTemplateRevisionDifferenceResponseContainer, 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 getFaultTemplateRevisionDifference(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/faults/${props.faultName}/compare`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Get the difference between 2 revisions of a fault template in a hub
11
- */
12
- export function useGetFaultTemplateRevisionDifferenceQuery(props, options) {
13
- return useQuery(['getFaultTemplateRevisionDifference', props.faultName, props.queryParams], ({ signal }) => getFaultTemplateRevisionDifference(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,34 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ChaosfaulttemplateListFaultTemplateResponse } from '../schemas/ChaosfaulttemplateListFaultTemplateResponse';
3
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
- export interface ListFaultTemplateRevisionsQueryPathParams {
5
- faultName: string;
6
- }
7
- export interface ListFaultTemplateRevisionsQueryQueryParams {
8
- accountIdentifier: string;
9
- organizationIdentifier: string;
10
- projectIdentifier: string;
11
- hubIdentity: string;
12
- /**
13
- * @default 0
14
- */
15
- page: number;
16
- /**
17
- * @default 15
18
- */
19
- limit: number;
20
- }
21
- export type ListFaultTemplateRevisionsOkResponse = ChaosfaulttemplateListFaultTemplateResponse;
22
- export type ListFaultTemplateRevisionsErrorResponse = unknown;
23
- export interface ListFaultTemplateRevisionsProps extends ListFaultTemplateRevisionsQueryPathParams, Omit<FetcherOptions<ListFaultTemplateRevisionsQueryQueryParams, unknown>, 'url'> {
24
- queryParams: ListFaultTemplateRevisionsQueryQueryParams;
25
- }
26
- export interface ListFaultTemplateRevisionsResponseContainer {
27
- body: ListFaultTemplateRevisionsOkResponse;
28
- headers: Headers;
29
- }
30
- export declare function listFaultTemplateRevisions(props: ListFaultTemplateRevisionsProps): Promise<ListFaultTemplateRevisionsResponseContainer>;
31
- /**
32
- * Lists all the revision of a fault template in a hub
33
- */
34
- export declare function useListFaultTemplateRevisionsQuery(props: ListFaultTemplateRevisionsProps, options?: Omit<UseQueryOptions<ListFaultTemplateRevisionsResponseContainer, ListFaultTemplateRevisionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultTemplateRevisionsResponseContainer, 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 listFaultTemplateRevisions(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/faults/${props.faultName}/revisions`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Lists all the revision of a fault template in a hub
11
- */
12
- export function useListFaultTemplateRevisionsQuery(props, options) {
13
- return useQuery(['listFaultTemplateRevisions', props.faultName, props.queryParams], ({ signal }) => listFaultTemplateRevisions(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,27 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ChaosfaulttemplateFaultTemplateVariables } from '../schemas/ChaosfaulttemplateFaultTemplateVariables';
3
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
- export interface ListVariablesInFaultTemplateQueryPathParams {
5
- faultName: string;
6
- }
7
- export interface ListVariablesInFaultTemplateQueryQueryParams {
8
- accountIdentifier: string;
9
- organizationIdentifier: string;
10
- projectIdentifier: string;
11
- hubIdentity: string;
12
- revision: string;
13
- }
14
- export type ListVariablesInFaultTemplateOkResponse = ChaosfaulttemplateFaultTemplateVariables;
15
- export type ListVariablesInFaultTemplateErrorResponse = unknown;
16
- export interface ListVariablesInFaultTemplateProps extends ListVariablesInFaultTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInFaultTemplateQueryQueryParams, unknown>, 'url'> {
17
- queryParams: ListVariablesInFaultTemplateQueryQueryParams;
18
- }
19
- export interface ListVariablesInFaultTemplateResponseContainer {
20
- body: ListVariablesInFaultTemplateOkResponse;
21
- headers: Headers;
22
- }
23
- export declare function listVariablesInFaultTemplate(props: ListVariablesInFaultTemplateProps): Promise<ListVariablesInFaultTemplateResponseContainer>;
24
- /**
25
- * Get the list of variables in a fault template based on revision
26
- */
27
- export declare function useListVariablesInFaultTemplateQuery(props: ListVariablesInFaultTemplateProps, options?: Omit<UseQueryOptions<ListVariablesInFaultTemplateResponseContainer, ListVariablesInFaultTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVariablesInFaultTemplateResponseContainer, 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 listVariablesInFaultTemplate(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/faults/${props.faultName}/variables`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Get the list of variables in a fault template based on revision
11
- */
12
- export function useListVariablesInFaultTemplateQuery(props, options) {
13
- return useQuery(['listVariablesInFaultTemplate', props.faultName, props.queryParams], ({ signal }) => listVariablesInFaultTemplate(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1 +0,0 @@
1
- export type ChaosExecutionNodesChaosStepStatus = 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'SKIPPED' | 'STOPPED';
@@ -1 +0,0 @@
1
- export type ChaosExecutionNodesChaosStepType = 'ACTION' | 'EXPERIMENT' | 'FAULT' | 'PROBE';
@@ -1,54 +0,0 @@
1
- import type { TemplateVariable } from '../schemas/TemplateVariable';
2
- export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate {
3
- accountID: string;
4
- /**
5
- * creation timestamp of the revision
6
- */
7
- createdAt?: number;
8
- /**
9
- * user ID of the user who created the revision
10
- */
11
- createdBy?: string;
12
- /**
13
- * Hub reference to sync the changes whenever there are changes in the faults
14
- */
15
- hubRef?: string;
16
- /**
17
- * Mongo ID (primary key)
18
- */
19
- id?: string;
20
- /**
21
- * Unique identifier (human-readable) immutable
22
- * Initially it will be same as name
23
- */
24
- identity?: string;
25
- /**
26
- * isDefault indicates if it is the default version
27
- * for predefined faults, latest should be set as default
28
- */
29
- isDefault?: boolean;
30
- /**
31
- * isRemoved indicates if the document is deleted
32
- */
33
- isRemoved?: boolean;
34
- /**
35
- * Fault name to sync the changes from the hub
36
- * HubRef + Name should be unique
37
- */
38
- name?: string;
39
- orgID?: string;
40
- projectID?: string;
41
- /**
42
- * Revision is the version of fault template,
43
- * it increments every time a new version of fault is published
44
- */
45
- revision?: number;
46
- /**
47
- * template of the fault
48
- */
49
- template?: string;
50
- /**
51
- * Variables for template
52
- */
53
- variables?: TemplateVariable[];
54
- }
@@ -1,4 +0,0 @@
1
- export interface K8sfaultChaosParameter {
2
- name?: string;
3
- value?: string;
4
- }
@@ -1,6 +0,0 @@
1
- import type { K8sfaultChaosSpec } from '../schemas/K8sfaultChaosSpec';
2
- import type { K8sfaultTarget } from '../schemas/K8sfaultTarget';
3
- export interface K8sfaultK8SFaultSpec {
4
- chaos?: K8sfaultChaosSpec;
5
- target?: K8sfaultTarget;
6
- }
@@ -1,6 +0,0 @@
1
- import type { K8sfaultApplicationTarget } from '../schemas/K8sfaultApplicationTarget';
2
- import type { K8sfaultK8STarget } from '../schemas/K8sfaultK8STarget';
3
- export interface K8sfaultTarget {
4
- applicationSDK?: K8sfaultApplicationTarget;
5
- k8sResource?: K8sfaultK8STarget[];
6
- }