@harnessio/react-chaos-manager-client 0.10.0 → 0.12.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/useCreateChaosHubMutation.d.ts +1 -4
- package/dist/chaos-manager/src/services/hooks/useCreateProbeTemplateMutation.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useCreateProbeTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteActionMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteActionMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteActionTemplateMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteActionTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteProbeTemplateMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteProbeTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetProbeTemplateQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetProbeTemplateQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useImportProbeMutation.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useImportProbeMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListActionTemplateQuery.d.ts +2 -2
- package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useListFaultQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListProbeTemplateQuery.d.ts +36 -0
- package/dist/chaos-manager/src/services/hooks/useListProbeTemplateQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useStopChaosV2ExperimentMutation.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +75 -60
- package/dist/chaos-manager/src/services/index.js +9 -5
- package/dist/chaos-manager/src/services/schemas/ActionActionTemplateProperties.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/{ActionsActionRunProperties.d.ts → ActionActionTemplateRunProperties.d.ts} +2 -2
- package/dist/chaos-manager/src/services/schemas/ActionCustomScriptActionTemplate.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ActionDelayActionTemplate.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.d.ts +5 -6
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepStatus.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultDetails.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateChaosActionTemplate.d.ts +7 -4
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplate.d.ts +4 -4
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateGetProbeTemplateResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateListProbeTemplateResponse.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +17 -0
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplateCount.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplateVariables.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseAgentConfiguration.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceCollection.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseNetworkMapEntity.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseNetworkMapEntityKubernetesInfo.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseServiceCollection.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction.d.ts +4 -6
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.d.ts +4 -6
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +40 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/{TypesPost.d.ts → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePost.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/{ProbeGet.d.ts → GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/{ProbePost.d.ts → GithubComHarnessHceSaasHceSdkTemplateSchemaProbePost.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesChaosInputs.d.ts +5 -31
- package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/ModelAnnotation.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ModelChart.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ModelExperiments.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ModelFaultList.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ModelLink.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelMaintainer.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ModelMetadata.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ModelPackageInformation.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ModelProvider.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ModelSpec.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/NetworkmapTargetServiceDetails.d.ts +9 -3
- package/dist/chaos-manager/src/services/schemas/NetworkmapTargetServiceDetails.js +0 -3
- package/dist/chaos-manager/src/services/schemas/{TypesAuthorization.d.ts → ProbeAuthorizationTemplate.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/ProbeCmdProbeTemplate.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ProbeComparatorTemplate.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ProbeDatadogMetricsTemplate.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ProbeDatadogProbe.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ProbeDatadogProbeTemplate.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ProbeDynatraceMetricsTemplate.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ProbeDynatraceProbe.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ProbeDynatraceProbeTemplate.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ProbeEvaluationWindow.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ProbeEvaluationWindowTemplate.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ProbeHttpProbe.d.ts +4 -4
- package/dist/chaos-manager/src/services/schemas/ProbeHttpProbeTemplate.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ProbeInfrastructureType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ProbeK8SProbe.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/{TypesK8SProbe.d.ts → ProbeK8SProbeTemplate.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/ProbeKubernetesCmdProbe.d.ts +3 -4
- package/dist/chaos-manager/src/services/schemas/ProbeLinuxCmdProbe.d.ts +3 -4
- package/dist/chaos-manager/src/services/schemas/ProbeMethod.d.ts +4 -4
- package/dist/chaos-manager/src/services/schemas/ProbeMethodTemplate.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ProbeProbeTemplateProperties.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/{TypesRunProperties.d.ts → ProbeProbeTemplateRunProperties.d.ts} +3 -3
- package/dist/chaos-manager/src/services/schemas/ProbeProbeType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ProbePromProbe.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ProbePromProbeTemplate.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ProbeSloProbe.d.ts +6 -6
- package/dist/chaos-manager/src/services/schemas/ProbeSloProbeTemplate.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/ProbeSloSourceMetadata.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ProbeSloSourceMetadata.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ProbeSloSourceMetadataTemplate.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ProbeSloSourceMetadataTemplate.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ProbeSyntheticsTest.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ProbeSyntheticsTestTemplate.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ProbeSyntheticsTestTemplate.js +1 -0
- package/dist/chaos-manager/src/services/schemas/{GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesTlsConfig.d.ts → ProbeTlsConfigTemplate.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/ProbeTlsConfigTemplate.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesApplication.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesApplication.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesCleanupPolicy.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesCleanupPolicy.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesConfigMap.d.ts +0 -9
- package/dist/chaos-manager/src/services/schemas/TypesExperimentComponents.d.ts +0 -39
- package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +4 -16
- package/dist/chaos-manager/src/services/schemas/TypesHostFile.d.ts +0 -12
- package/dist/chaos-manager/src/services/schemas/TypesImportProbeTemplateRequest.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/TypesImportProbeTemplateRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +4 -16
- package/dist/chaos-manager/src/services/schemas/TypesProjectedVolumes.d.ts +0 -12
- package/dist/chaos-manager/src/services/schemas/TypesSecret.d.ts +0 -9
- package/dist/chaos-manager/src/services/schemas/TypesSecurityContext.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/TypesSelector.d.ts +0 -3
- package/dist/chaos-manager/src/services/schemas/TypesSidecar.d.ts +0 -15
- package/dist/chaos-manager/src/services/schemas/TypesStatusCheckTimeout.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/TypesTargets.d.ts +2 -3
- package/dist/chaos-manager/src/services/schemas/TypesWorkload.d.ts +0 -12
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.d.ts +0 -24
- package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useExperimentExecutionNodeDetailsQuery.d.ts +0 -28
- package/dist/chaos-manager/src/services/hooks/useExperimentExecutionNodeDetailsQuery.js +0 -20
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.d.ts +0 -27
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.d.ts +0 -28
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.js +0 -20
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.d.ts +0 -29
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.js +0 -14
- package/dist/chaos-manager/src/services/schemas/ActionsActionDetails.d.ts +0 -7
- package/dist/chaos-manager/src/services/schemas/ChaosHubStatus.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionProperties.d.ts +0 -7
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonKubernetesV2ModelChaosData.d.ts +0 -8
- package/dist/chaos-manager/src/services/schemas/ModelActionData.d.ts +0 -3
- package/dist/chaos-manager/src/services/schemas/ModelChaosExecutionNode.d.ts +0 -19
- package/dist/chaos-manager/src/services/schemas/ModelChaosStepStatus.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/ModelChaosStepType.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/ModelCommandProbe.d.ts +0 -3
- package/dist/chaos-manager/src/services/schemas/ModelErrorData.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/ModelFaultData.d.ts +0 -10
- package/dist/chaos-manager/src/services/schemas/ModelHelperPodDetails.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/ModelHttpProbe.d.ts +0 -5
- package/dist/chaos-manager/src/services/schemas/ModelProbeData.d.ts +0 -8
- package/dist/chaos-manager/src/services/schemas/ModelProbeIterations.d.ts +0 -11
- package/dist/chaos-manager/src/services/schemas/ModelPromProbe.d.ts +0 -3
- package/dist/chaos-manager/src/services/schemas/ProbeDatadogSyntheticsTestType.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/ProbeHeaders.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/TypesCmdProbe.d.ts +0 -9
- package/dist/chaos-manager/src/services/schemas/TypesDatadogProbe.d.ts +0 -8
- package/dist/chaos-manager/src/services/schemas/TypesDynatraceProbe.d.ts +0 -9
- package/dist/chaos-manager/src/services/schemas/TypesFault.d.ts +0 -21
- package/dist/chaos-manager/src/services/schemas/TypesFaultRef.d.ts +0 -14
- package/dist/chaos-manager/src/services/schemas/TypesGet.d.ts +0 -5
- package/dist/chaos-manager/src/services/schemas/TypesHeaders.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/TypesHttpProbe.d.ts +0 -11
- package/dist/chaos-manager/src/services/schemas/TypesMethod.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/TypesPromProbe.d.ts +0 -11
- package/dist/chaos-manager/src/services/schemas/TypesSloProbe.d.ts +0 -12
- package/dist/chaos-manager/src/services/schemas/V1alpha1ConfigMapKeySelector.d.ts +0 -18
- package/dist/chaos-manager/src/services/schemas/V1alpha1ConfigMapVolumeSource.d.ts +0 -37
- package/dist/chaos-manager/src/services/schemas/V1alpha1EnvVar.d.ts +0 -24
- package/dist/chaos-manager/src/services/schemas/V1alpha1EnvVarSource.d.ts +0 -21
- package/dist/chaos-manager/src/services/schemas/V1alpha1KeyToPath.d.ts +0 -23
- package/dist/chaos-manager/src/services/schemas/V1alpha1ObjectFieldSelector.d.ts +0 -11
- package/dist/chaos-manager/src/services/schemas/V1alpha1SecretKeySelector.d.ts +0 -18
- package/dist/chaos-manager/src/services/schemas/V1alpha1SecretVolumeSource.d.ts +0 -36
- package/dist/chaos-manager/src/services/schemas/V1alpha1SourceDetails.d.ts +0 -48
- package/dist/chaos-manager/src/services/schemas/V1alpha1TargetDetails.d.ts +0 -5
- package/dist/chaos-manager/src/services/schemas/V1alpha1Targets.d.ts +0 -8
- package/dist/chaos-manager/src/services/schemas/V1alpha1Volume.d.ts +0 -21
- /package/dist/chaos-manager/src/services/schemas/{ActionsActionDetails.js → ActionActionTemplateProperties.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ActionsActionRunProperties.js → ActionActionTemplateRunProperties.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ChaosHubStatus.js → ActionCustomScriptActionTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesTlsConfig.js → ActionDelayActionTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ChaosactiontemplateActionProperties.js → ChaosExecutionNodesFaultDetails.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{GithubComHarnessHceSaasHceSdkCommonKubernetesV2ModelChaosData.js → ChaosprobetemplateGetProbeTemplateResponse.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelChaosExecutionNode.js → ChaosprobetemplateListProbeTemplateResponse.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelFaultData.js → ChaosprobetemplateProbeTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelProbeData.js → ChaosprobetemplateProbeTemplateCount.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelProbeIterations.js → ChaosprobetemplateProbeTemplateVariables.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesCmdProbe.js → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelActionData.js → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelChaosStepStatus.js → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelChaosStepType.js → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelCommandProbe.js → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelErrorData.js → GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbePost.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelHelperPodDetails.js → GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelHttpProbe.js → GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ModelPromProbe.js → GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ProbeDatadogSyntheticsTestType.js → GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ProbeGet.js → GithubComHarnessHceSaasHceSdkTemplateSchemaProbePost.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ProbeHeaders.js → ModelAnnotation.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesDatadogProbe.js → ModelChart.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ProbePost.js → ModelExperiments.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesAuthorization.js → ModelFaultList.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesFaultRef.js → ModelLink.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesGet.js → ModelMaintainer.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesDynatraceProbe.js → ModelMetadata.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesFault.js → ModelPackageInformation.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesHeaders.js → ModelProvider.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesHttpProbe.js → ModelSpec.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesK8SProbe.js → ProbeAuthorizationTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesMethod.js → ProbeCmdProbeTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesPost.js → ProbeComparatorTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesPromProbe.js → ProbeDatadogMetricsTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesSloProbe.js → ProbeDatadogProbeTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesRunProperties.js → ProbeDynatraceMetricsTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1ConfigMapVolumeSource.js → ProbeDynatraceProbeTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1ConfigMapKeySelector.js → ProbeEvaluationWindow.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1KeyToPath.js → ProbeEvaluationWindowTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1EnvVar.js → ProbeHttpProbeTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1ObjectFieldSelector.js → ProbeInfrastructureType.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1SecretKeySelector.js → ProbeK8SProbeTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1EnvVarSource.js → ProbeMethodTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1SecretVolumeSource.js → ProbeProbeTemplateProperties.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1TargetDetails.js → ProbeProbeTemplateRunProperties.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1Targets.js → ProbeProbeType.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1SourceDetails.js → ProbePromProbeTemplate.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{V1alpha1Volume.js → ProbeSloProbeTemplate.js} +0 -0
|
@@ -3,9 +3,6 @@ import type { Chaoshubv2GetHubResponse } from '../schemas/Chaoshubv2GetHubRespon
|
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { Chaoshubv2CreateHubRequest } from '../schemas/Chaoshubv2CreateHubRequest';
|
|
5
5
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
-
export interface CreateChaosHubMutationPathParams {
|
|
7
|
-
hubIdentity: string;
|
|
8
|
-
}
|
|
9
6
|
export interface CreateChaosHubMutationQueryParams {
|
|
10
7
|
accountIdentifier: string;
|
|
11
8
|
organizationIdentifier: string;
|
|
@@ -14,7 +11,7 @@ export interface CreateChaosHubMutationQueryParams {
|
|
|
14
11
|
export type CreateChaosHubRequestBody = Chaoshubv2CreateHubRequest;
|
|
15
12
|
export type CreateChaosHubOkResponse = Chaoshubv2GetHubResponse;
|
|
16
13
|
export type CreateChaosHubErrorResponse = ApiRestError;
|
|
17
|
-
export interface CreateChaosHubProps extends
|
|
14
|
+
export interface CreateChaosHubProps extends Omit<FetcherOptions<CreateChaosHubMutationQueryParams, CreateChaosHubRequestBody>, 'url'> {
|
|
18
15
|
queryParams: CreateChaosHubMutationQueryParams;
|
|
19
16
|
body: CreateChaosHubRequestBody;
|
|
20
17
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface CreateProbeTemplateMutationQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
organizationIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type CreateProbeTemplateRequestBody = ChaosprobetemplateProbeTemplate;
|
|
11
|
+
export type CreateProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
|
|
12
|
+
export type CreateProbeTemplateErrorResponse = ApiRestError;
|
|
13
|
+
export interface CreateProbeTemplateProps extends Omit<FetcherOptions<CreateProbeTemplateMutationQueryParams, CreateProbeTemplateRequestBody>, 'url'> {
|
|
14
|
+
queryParams: CreateProbeTemplateMutationQueryParams;
|
|
15
|
+
body: CreateProbeTemplateRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateProbeTemplateResponseContainer {
|
|
18
|
+
body: CreateProbeTemplateOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function createProbeTemplate(props: CreateProbeTemplateProps): Promise<CreateProbeTemplateResponseContainer>;
|
|
22
|
+
export type CreateProbeTemplateMutationProps<T extends keyof CreateProbeTemplateProps> = Omit<CreateProbeTemplateProps, T> & Partial<Pick<CreateProbeTemplateProps, T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Creates probe templates in a hub based on tag
|
|
25
|
+
*/
|
|
26
|
+
export declare function useCreateProbeTemplateMutation<T extends keyof CreateProbeTemplateProps>(props: Pick<Partial<CreateProbeTemplateProps>, T>, options?: Omit<UseMutationOptions<CreateProbeTemplateResponseContainer, CreateProbeTemplateErrorResponse, CreateProbeTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateProbeTemplateResponseContainer, ApiRestError, CreateProbeTemplateMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function createProbeTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/probes`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates probe templates in a hub based on tag
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateProbeTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createProbeTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
3
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
4
|
export interface DeleteActionMutationPathParams {
|
|
5
|
-
|
|
5
|
+
identity: string;
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteActionMutationQueryParams {
|
|
8
8
|
accountIdentifier: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function deleteAction(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/actions/${props.
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions/${props.identity}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Delete an action with a provided identifier
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface DeleteActionTemplateMutationPathParams {
|
|
5
|
+
identity: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteActionTemplateMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
organizationIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
hubIdentity: string;
|
|
12
|
+
revision?: string;
|
|
13
|
+
}
|
|
14
|
+
export type DeleteActionTemplateOkResponse = boolean;
|
|
15
|
+
export type DeleteActionTemplateErrorResponse = ApiRestError;
|
|
16
|
+
export interface DeleteActionTemplateProps extends DeleteActionTemplateMutationPathParams, Omit<FetcherOptions<DeleteActionTemplateMutationQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: DeleteActionTemplateMutationQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface DeleteActionTemplateResponseContainer {
|
|
20
|
+
body: DeleteActionTemplateOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function deleteActionTemplate(props: DeleteActionTemplateProps): Promise<DeleteActionTemplateResponseContainer>;
|
|
24
|
+
export type DeleteActionTemplateMutationProps<T extends keyof DeleteActionTemplateProps> = Omit<DeleteActionTemplateProps, T> & Partial<Pick<DeleteActionTemplateProps, T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Deletes action template
|
|
27
|
+
*/
|
|
28
|
+
export declare function useDeleteActionTemplateMutation<T extends keyof DeleteActionTemplateProps>(props: Pick<Partial<DeleteActionTemplateProps>, T>, options?: Omit<UseMutationOptions<DeleteActionTemplateResponseContainer, DeleteActionTemplateErrorResponse, DeleteActionTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteActionTemplateResponseContainer, ApiRestError, DeleteActionTemplateMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function deleteActionTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes action template
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteActionTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteActionTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface DeleteProbeTemplateMutationPathParams {
|
|
5
|
+
identity: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteProbeTemplateMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
organizationIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
hubIdentity: string;
|
|
12
|
+
revision?: string;
|
|
13
|
+
}
|
|
14
|
+
export type DeleteProbeTemplateOkResponse = boolean;
|
|
15
|
+
export type DeleteProbeTemplateErrorResponse = ApiRestError;
|
|
16
|
+
export interface DeleteProbeTemplateProps extends DeleteProbeTemplateMutationPathParams, Omit<FetcherOptions<DeleteProbeTemplateMutationQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: DeleteProbeTemplateMutationQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface DeleteProbeTemplateResponseContainer {
|
|
20
|
+
body: DeleteProbeTemplateOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function deleteProbeTemplate(props: DeleteProbeTemplateProps): Promise<DeleteProbeTemplateResponseContainer>;
|
|
24
|
+
export type DeleteProbeTemplateMutationProps<T extends keyof DeleteProbeTemplateProps> = Omit<DeleteProbeTemplateProps, T> & Partial<Pick<DeleteProbeTemplateProps, T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Deletes probe template
|
|
27
|
+
*/
|
|
28
|
+
export declare function useDeleteProbeTemplateMutation<T extends keyof DeleteProbeTemplateProps>(props: Pick<Partial<DeleteProbeTemplateProps>, T>, options?: Omit<UseMutationOptions<DeleteProbeTemplateResponseContainer, DeleteProbeTemplateErrorResponse, DeleteProbeTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteProbeTemplateResponseContainer, ApiRestError, DeleteProbeTemplateMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function deleteProbeTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes probe template
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteProbeTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteProbeTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetProbeTemplateQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetProbeTemplateQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
revision?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetProbeTemplateOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
|
|
16
|
+
export type GetProbeTemplateErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetProbeTemplateProps extends GetProbeTemplateQueryPathParams, Omit<FetcherOptions<GetProbeTemplateQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetProbeTemplateQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetProbeTemplateResponseContainer {
|
|
21
|
+
body: GetProbeTemplateOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getProbeTemplate(props: GetProbeTemplateProps): Promise<GetProbeTemplateResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the probe template in a hub based on probe ref
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetProbeTemplateQuery(props: GetProbeTemplateProps, options?: Omit<UseQueryOptions<GetProbeTemplateResponseContainer, GetProbeTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProbeTemplateResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getProbeTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the probe template in a hub based on probe ref
|
|
11
|
+
*/
|
|
12
|
+
export function useGetProbeTemplateQuery(props, options) {
|
|
13
|
+
return useQuery(['getProbeTemplate', props.identity, props.queryParams], ({ signal }) => getProbeTemplate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesCreateProbeResponse } from '../schemas/TypesCreateProbeResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { TypesImportProbeTemplateRequest } from '../schemas/TypesImportProbeTemplateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface ImportProbeMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
organizationIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type ImportProbeRequestBody = TypesImportProbeTemplateRequest;
|
|
12
|
+
export type ImportProbeOkResponse = TypesCreateProbeResponse;
|
|
13
|
+
export type ImportProbeErrorResponse = ApiRestError;
|
|
14
|
+
export interface ImportProbeProps extends Omit<FetcherOptions<ImportProbeMutationQueryParams, ImportProbeRequestBody>, 'url'> {
|
|
15
|
+
queryParams: ImportProbeMutationQueryParams;
|
|
16
|
+
body: ImportProbeRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export interface ImportProbeResponseContainer {
|
|
19
|
+
body: ImportProbeOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function importProbe(props: ImportProbeProps): Promise<ImportProbeResponseContainer>;
|
|
23
|
+
export type ImportProbeMutationProps<T extends keyof ImportProbeProps> = Omit<ImportProbeProps, T> & Partial<Pick<ImportProbeProps, T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Import a new probe
|
|
26
|
+
*/
|
|
27
|
+
export declare function useImportProbeMutation<T extends keyof ImportProbeProps>(props: Pick<Partial<ImportProbeProps>, T>, options?: Omit<UseMutationOptions<ImportProbeResponseContainer, ImportProbeErrorResponse, ImportProbeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportProbeResponseContainer, ApiRestError, ImportProbeMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function importProbe(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/probes/import`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Import a new probe
|
|
11
|
+
*/
|
|
12
|
+
export function useImportProbeMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => importProbe(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -17,8 +17,8 @@ export interface ListActionTemplateQueryQueryParams {
|
|
|
17
17
|
limit: number;
|
|
18
18
|
search: string;
|
|
19
19
|
infraType?: string;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
entityType?: string;
|
|
21
|
+
includeAllScope?: string;
|
|
22
22
|
}
|
|
23
23
|
export type ListActionTemplateOkResponse = ChaosfaulttemplateListActionTemplateResponse;
|
|
24
24
|
export type ListActionTemplateErrorResponse = ApiRestError;
|
|
@@ -18,7 +18,7 @@ export interface ListActionsQueryQueryParams {
|
|
|
18
18
|
limit: number;
|
|
19
19
|
infraType?: string;
|
|
20
20
|
actionType?: string;
|
|
21
|
-
|
|
21
|
+
includeAllScope?: string;
|
|
22
22
|
}
|
|
23
23
|
export type ListActionsOkResponse = ActionsListActionTemplateResponse;
|
|
24
24
|
export type ListActionsErrorResponse = ApiRestError;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ModelChart } from '../schemas/ModelChart';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListFaultQueryPathParams {
|
|
6
|
+
hubIdentity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListFaultQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
infraType?: string;
|
|
13
|
+
onlyNamespaceScoped?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type ListFaultOkResponse = ModelChart[];
|
|
16
|
+
export type ListFaultErrorResponse = ApiRestError;
|
|
17
|
+
export interface ListFaultProps extends ListFaultQueryPathParams, Omit<FetcherOptions<ListFaultQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: ListFaultQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface ListFaultResponseContainer {
|
|
21
|
+
body: ListFaultOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function listFault(props: ListFaultProps): Promise<ListFaultResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Lists faults in a chaos hub based on given filters
|
|
27
|
+
*/
|
|
28
|
+
export declare function useListFaultQuery(props: ListFaultProps, options?: Omit<UseQueryOptions<ListFaultResponseContainer, ListFaultErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listFault(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hub/${props.hubIdentity}/faults`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists faults in a chaos hub based on given filters
|
|
11
|
+
*/
|
|
12
|
+
export function useListFaultQuery(props, options) {
|
|
13
|
+
return useQuery(['listFault', props.hubIdentity, props.queryParams], ({ signal }) => listFault(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateListProbeTemplateResponse } from '../schemas/ChaosprobetemplateListProbeTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListProbeTemplateQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
organizationIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
hubIdentity: string;
|
|
10
|
+
/**
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
page: number;
|
|
14
|
+
/**
|
|
15
|
+
* @default 15
|
|
16
|
+
*/
|
|
17
|
+
limit: number;
|
|
18
|
+
search: string;
|
|
19
|
+
infraType?: string;
|
|
20
|
+
entityType?: string;
|
|
21
|
+
includeAllScope?: string;
|
|
22
|
+
}
|
|
23
|
+
export type ListProbeTemplateOkResponse = ChaosprobetemplateListProbeTemplateResponse;
|
|
24
|
+
export type ListProbeTemplateErrorResponse = ApiRestError;
|
|
25
|
+
export interface ListProbeTemplateProps extends Omit<FetcherOptions<ListProbeTemplateQueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: ListProbeTemplateQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export interface ListProbeTemplateResponseContainer {
|
|
29
|
+
body: ListProbeTemplateOkResponse;
|
|
30
|
+
headers: Headers;
|
|
31
|
+
}
|
|
32
|
+
export declare function listProbeTemplate(props: ListProbeTemplateProps): Promise<ListProbeTemplateResponseContainer>;
|
|
33
|
+
/**
|
|
34
|
+
* Lists all the probe templates in a hub based on tag
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListProbeTemplateQuery(props: ListProbeTemplateProps, options?: Omit<UseQueryOptions<ListProbeTemplateResponseContainer, ListProbeTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeTemplateResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listProbeTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/probes`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the probe templates in a hub based on tag
|
|
11
|
+
*/
|
|
12
|
+
export function useListProbeTemplateQuery(props, options) {
|
|
13
|
+
return useQuery(['listProbeTemplate', props.queryParams], ({ signal }) => listProbeTemplate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateProbeTemplateVariables } from '../schemas/ChaosprobetemplateProbeTemplateVariables';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListVariablesInProbeTemplateQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListVariablesInProbeTemplateQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
revision: string;
|
|
14
|
+
}
|
|
15
|
+
export type ListVariablesInProbeTemplateOkResponse = ChaosprobetemplateProbeTemplateVariables;
|
|
16
|
+
export type ListVariablesInProbeTemplateErrorResponse = ApiRestError;
|
|
17
|
+
export interface ListVariablesInProbeTemplateProps extends ListVariablesInProbeTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInProbeTemplateQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: ListVariablesInProbeTemplateQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface ListVariablesInProbeTemplateResponseContainer {
|
|
21
|
+
body: ListVariablesInProbeTemplateOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function listVariablesInProbeTemplate(props: ListVariablesInProbeTemplateProps): Promise<ListVariablesInProbeTemplateResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the list of variables in a fault template based on revision
|
|
27
|
+
*/
|
|
28
|
+
export declare function useListVariablesInProbeTemplateQuery(props: ListVariablesInProbeTemplateProps, options?: Omit<UseQueryOptions<ListVariablesInProbeTemplateResponseContainer, ListVariablesInProbeTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVariablesInProbeTemplateResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listVariablesInProbeTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/variables`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the list of variables in a fault template based on revision
|
|
11
|
+
*/
|
|
12
|
+
export function useListVariablesInProbeTemplateQuery(props, options) {
|
|
13
|
+
return useQuery(['listVariablesInProbeTemplate', props.identity, props.queryParams], ({ signal }) => listVariablesInProbeTemplate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -11,6 +11,7 @@ export interface StopChaosV2ExperimentMutationQueryParams {
|
|
|
11
11
|
projectIdentifier: string;
|
|
12
12
|
experimentRunId: string;
|
|
13
13
|
notifyId: string;
|
|
14
|
+
force?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export type StopChaosV2ExperimentOkResponse = TypesStopChaosV2ExperimentResponse;
|
|
16
17
|
export type StopChaosV2ExperimentErrorResponse = ApiRestError;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface UpdateProbeTemplateMutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateProbeTemplateMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
isDefault?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateProbeTemplateRequestBody = ChaosprobetemplateProbeTemplate;
|
|
15
|
+
export type UpdateProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
|
|
16
|
+
export type UpdateProbeTemplateErrorResponse = ApiRestError;
|
|
17
|
+
export interface UpdateProbeTemplateProps extends UpdateProbeTemplateMutationPathParams, Omit<FetcherOptions<UpdateProbeTemplateMutationQueryParams, UpdateProbeTemplateRequestBody>, 'url'> {
|
|
18
|
+
queryParams: UpdateProbeTemplateMutationQueryParams;
|
|
19
|
+
body: UpdateProbeTemplateRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateProbeTemplateResponseContainer {
|
|
22
|
+
body: UpdateProbeTemplateOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function updateProbeTemplate(props: UpdateProbeTemplateProps): Promise<UpdateProbeTemplateResponseContainer>;
|
|
26
|
+
export type UpdateProbeTemplateMutationProps<T extends keyof UpdateProbeTemplateProps> = Omit<UpdateProbeTemplateProps, T> & Partial<Pick<UpdateProbeTemplateProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Updates an existing probe template in a hub with new configuration
|
|
29
|
+
*/
|
|
30
|
+
export declare function useUpdateProbeTemplateMutation<T extends keyof UpdateProbeTemplateProps>(props: Pick<Partial<UpdateProbeTemplateProps>, T>, options?: Omit<UseMutationOptions<UpdateProbeTemplateResponseContainer, UpdateProbeTemplateErrorResponse, UpdateProbeTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProbeTemplateResponseContainer, ApiRestError, UpdateProbeTemplateMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function updateProbeTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates an existing probe template in a hub with new configuration
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateProbeTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateProbeTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|