@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.
- package/dist/chaos-manager/src/services/hooks/useCompareFaultTemplateRevisionsQuery.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useCompareFaultTemplateRevisionsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useCreateFaultTemplateMutation.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useCreateFaultTemplateMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateV2OnboardingMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteFaultTemplateMutation.d.ts +2 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteFaultTemplateMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateQuery.d.ts +5 -3
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateQuery.js +2 -2
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionsQuery.d.ts +36 -0
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateVariablesQuery.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateVariablesQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateYamlQuery.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateYamlQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetOnboardingExperimentsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetV2OnboardingQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListV2OnboardingQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useStopOnboardingExperimentsMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateFaultTemplateMutation.d.ts +2 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateFaultTemplateMutation.js +1 -1
- package/dist/chaos-manager/src/services/index.d.ts +23 -20
- package/dist/chaos-manager/src/services/index.js +4 -3
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.d.ts +4 -4
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts +5 -4
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateChaosFaultTemplate.d.ts +30 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCompareRevisions.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.d.ts +4 -3
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.d.ts +6 -5
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateFaultTemplateVariables.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateFaultTemplateYaml.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetFaultTemplateResponse.d.ts +5 -5
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateListFaultTemplateResponse.d.ts +3 -3
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.d.ts +6 -5
- package/dist/chaos-manager/src/services/schemas/ExecutionChaosStepStatus.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/{K8sfaultApplicationTarget.d.ts → FaulttemplateApplicationTarget.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/{K8sfaultChaosSpec.d.ts → FaulttemplateChaosKubernetesSpec.d.ts} +9 -12
- package/dist/chaos-manager/src/services/schemas/FaulttemplateChaosParameter.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/FaulttemplateChaosSpec.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/{K8sfaultConfigMapVolume.d.ts → FaulttemplateConfigMapVolume.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/{K8sfaultK8SFault.d.ts → FaulttemplateFaultTemplate.d.ts} +5 -4
- package/dist/chaos-manager/src/services/schemas/{K8sfaultHostPathVolume.d.ts → FaulttemplateHostPathVolume.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/{K8sfaultK8STarget.d.ts → FaulttemplateKubernetesTarget.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/{K8sfaultResourceRequirements.d.ts → FaulttemplateResourceRequirements.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/{K8sfaultSecretVolume.d.ts → FaulttemplateSecretVolume.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/FaulttemplateSpec.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/FaulttemplateTarget.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/FaulttemplateTarget.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelWorkflowRun.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/V1AppdMetrics.d.ts +4 -0
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionDifferenceQuery.d.ts +0 -28
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionDifferenceQuery.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateRevisionsQuery.d.ts +0 -34
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateRevisionsQuery.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useListVariablesInFaultTemplateQuery.d.ts +0 -27
- package/dist/chaos-manager/src/services/hooks/useListVariablesInFaultTemplateQuery.js +0 -14
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepStatus.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepType.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate.d.ts +0 -54
- package/dist/chaos-manager/src/services/schemas/K8sfaultChaosParameter.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/K8sfaultK8SFaultSpec.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/K8sfaultTarget.d.ts +0 -6
- /package/dist/chaos-manager/src/services/schemas/{GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate.js → ChaosfaulttemplateChaosFaultTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ChaosExecutionNodesChaosStepStatus.js → ChaosfaulttemplateCompareRevisions.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ChaosExecutionNodesChaosStepType.js → ChaosfaulttemplateFaultTemplateYaml.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultApplicationTarget.js → FaulttemplateApplicationTarget.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultChaosSpec.js → FaulttemplateChaosKubernetesSpec.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultChaosParameter.js → FaulttemplateChaosParameter.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultHostPathVolume.js → FaulttemplateChaosSpec.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultConfigMapVolume.js → FaulttemplateConfigMapVolume.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultK8SFault.js → FaulttemplateFaultTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultK8SFaultSpec.js → FaulttemplateHostPathVolume.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultK8STarget.js → FaulttemplateKubernetesTarget.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultResourceRequirements.js → FaulttemplateResourceRequirements.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultSecretVolume.js → FaulttemplateSecretVolume.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{K8sfaultTarget.js → FaulttemplateSpec.js} +0 -0
package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChaosExecutionNodesChaosExecutionNode } from '../schemas/ChaosExecutionNodesChaosExecutionNode';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
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?:
|
|
21
|
+
status?: ExecutionChaosStepStatus;
|
|
21
22
|
stepName?: string;
|
|
22
|
-
stepType?:
|
|
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
|
}
|
|
@@ -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
|
+
}
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import type {
|
|
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?:
|
|
11
|
-
spec?:
|
|
11
|
+
revision?: string;
|
|
12
|
+
spec?: FaulttemplateSpec;
|
|
12
13
|
tags?: string[];
|
|
13
14
|
variables?: TemplateVariable[];
|
|
14
15
|
}
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
|
|
2
2
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
3
3
|
export interface ChaosfaulttemplateCreateFaultTemplateResponse {
|
|
4
|
-
|
|
4
|
+
correlationID?: string;
|
|
5
5
|
description?: string;
|
|
6
|
-
|
|
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?:
|
|
13
|
-
spec?:
|
|
13
|
+
revision?: string;
|
|
14
|
+
spec?: FaulttemplateSpec;
|
|
14
15
|
tags?: string[];
|
|
15
16
|
variables?: TemplateVariable[];
|
|
16
17
|
}
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetFaultTemplateResponse.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { ChaosfaulttemplateChaosFaultTemplate } from '../schemas/ChaosfaulttemplateChaosFaultTemplate';
|
|
2
|
+
import type { FaulttemplateFaultTemplate } from '../schemas/FaulttemplateFaultTemplate';
|
|
3
3
|
export interface ChaosfaulttemplateGetFaultTemplateResponse {
|
|
4
|
-
|
|
5
|
-
data?:
|
|
6
|
-
|
|
4
|
+
correlationID?: string;
|
|
5
|
+
data?: ChaosfaulttemplateChaosFaultTemplate;
|
|
6
|
+
fault?: FaulttemplateFaultTemplate;
|
|
7
7
|
}
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateListFaultTemplateResponse.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChaosfaulttemplateChaosFaultTemplate } from '../schemas/ChaosfaulttemplateChaosFaultTemplate';
|
|
2
2
|
import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
|
|
3
3
|
export interface ChaosfaulttemplateListFaultTemplateResponse {
|
|
4
|
-
|
|
5
|
-
data?:
|
|
4
|
+
correlationID?: string;
|
|
5
|
+
data?: ChaosfaulttemplateChaosFaultTemplate[];
|
|
6
6
|
pagination?: GithubComHarnessHceSaasGraphqlServerApiPagination;
|
|
7
7
|
}
|
package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
|
|
2
2
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
3
3
|
export interface ChaosfaulttemplateUpdateFaultTemplateResponse {
|
|
4
|
-
|
|
4
|
+
correlationID?: string;
|
|
5
5
|
description?: string;
|
|
6
|
-
|
|
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?:
|
|
13
|
-
spec?:
|
|
13
|
+
revision?: string;
|
|
14
|
+
spec?: FaulttemplateSpec;
|
|
14
15
|
tags?: string[];
|
|
15
16
|
variables?: TemplateVariable[];
|
|
16
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ExecutionChaosStepStatus = '
|
|
1
|
+
export type ExecutionChaosStepStatus = 'Completed' | 'Completed_With_Probe_Failure' | 'Error' | 'Failed' | 'Interrupted' | 'Passed' | 'Pending' | 'Queued' | 'Running' | 'Skipped' | 'Stopped';
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import type {
|
|
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 {
|
|
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 {
|
|
9
|
-
import type {
|
|
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
|
|
10
|
+
export interface FaulttemplateChaosKubernetesSpec {
|
|
12
11
|
annotations?: {
|
|
13
12
|
[key: string]: string;
|
|
14
13
|
};
|
|
15
14
|
args?: string[];
|
|
16
15
|
command?: string[];
|
|
17
|
-
configMapVolume?:
|
|
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?:
|
|
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?:
|
|
37
|
-
secretVolume?:
|
|
33
|
+
resourceRequirements?: FaulttemplateResourceRequirements;
|
|
34
|
+
secretVolume?: FaulttemplateSecretVolume[];
|
|
38
35
|
toleration?: V1Toleration;
|
|
39
36
|
}
|
|
@@ -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,14 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
|
|
2
2
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
3
|
-
export interface
|
|
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?:
|
|
11
|
-
spec?:
|
|
11
|
+
revision?: string;
|
|
12
|
+
spec?: FaulttemplateSpec;
|
|
12
13
|
tags?: string[];
|
|
13
14
|
variables?: TemplateVariable[];
|
|
14
15
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
*/
|
package/package.json
CHANGED
package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionDifferenceQuery.d.ts
DELETED
|
@@ -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,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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|