@harnessio/react-chaos-manager-client 0.8.0 → 0.10.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/useCreateActionMutation.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useCreateActionMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useCreateActionTemplateMutation.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useCreateActionTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.d.ts +24 -0
- package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useCreateChaosHubMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useCreateChaosHubMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteActionMutation.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteActionMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useExperimentExecutionNodeDetailsQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useExperimentExecutionNodeDetailsQuery.js +20 -0
- package/dist/chaos-manager/src/services/hooks/useGetActionManifestQuery.d.ts +25 -0
- package/dist/chaos-manager/src/services/hooks/useGetActionManifestQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetActionQuery.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useGetActionQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetActionTemplateQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetActionTemplateQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetActionTemplateRevisionDifferenceQuery.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useGetActionTemplateRevisionDifferenceQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosHubQuery.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosHubQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.js +20 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentRunInternalApiMutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentRunInternalApiMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunTimelineViewQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunTimelineViewQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetInfraTokenQuery.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useGetInfraTokenQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useImportActionMutation.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useImportActionMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListActionTemplateQuery.d.ts +36 -0
- package/dist/chaos-manager/src/services/hooks/useListActionTemplateQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListActionTemplateRevisionsQuery.d.ts +35 -0
- package/dist/chaos-manager/src/services/hooks/useListActionTemplateRevisionsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +36 -0
- package/dist/chaos-manager/src/services/hooks/useListActionsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListApplicationQuery.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useListApplicationQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.d.ts +33 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListFunctionQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useListFunctionQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListVariablesInActionTemplateQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useListVariablesInActionTemplateQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useRunChaosV2InternalApiMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useRunChaosV2InternalApiMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateActionMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateActionMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateActionTemplateMutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateActionTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosHubMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosHubMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateEmissaryMutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateEmissaryMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +185 -0
- package/dist/chaos-manager/src/services/index.js +30 -0
- package/dist/chaos-manager/src/services/requestBodies/ChaosfaulttemplateActionTemplateRequestBody.d.ts +2 -0
- package/dist/chaos-manager/src/services/requestBodies/ChaosfaulttemplateActionTemplateRequestBody.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ActionsActionDetails.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ActionsActionDetails.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.d.ts +29 -0
- package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ActionsActionRunProperties.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ActionsActionRunProperties.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ActionsActionType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ActionsActionType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ActionsExecutedByExperiment.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ActionsExecutedByExperiment.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ActionsImportActionTemplateRequest.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ActionsImportActionTemplateRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ActionsInfrastructureType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ActionsInfrastructureType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ActionsListActionTemplateResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ActionsListActionTemplateResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ActionsRecentExecutions.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ActionsRecentExecutions.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ApplicationchaostargetListApplicationResponse.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ApplicationchaostargetListApplicationResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ApplicationchaostargetListFunctionResponse.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ApplicationchaostargetListFunctionResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesActionData.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesActionData.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosData.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosData.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.d.ts +23 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts +23 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepStatus.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepStatus.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesCommandProbe.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesCommandProbe.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesErrorData.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesErrorData.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesHelperPodDetails.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesHelperPodDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesHttpProbe.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesHttpProbe.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeIterations.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeIterations.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesPromProbe.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesPromProbe.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentChaosExperimentRequest.d.ts +3 -3
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentExperimentRunDetail.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ChaosHubAuthType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosHubAuthType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosHubConnectorScope.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosHubConnectorScope.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosHubStatus.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosHubStatus.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosInfrastructureV2ChaosInfraV2.d.ts +4 -3
- package/dist/chaos-manager/src/services/schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionProperties.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionProperties.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionsTemplateCount.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionsTemplateCount.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateChaosActionTemplate.d.ts +44 -0
- package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateChaosActionTemplate.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplate.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplate.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplateVariables.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplateVariables.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetActionTemplateResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetActionTemplateResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateListActionTemplateResponse.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateListActionTemplateResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +44 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +44 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2ListHubResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2ListHubResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction.d.ts +18 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.d.ts +24 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonKubernetesV2ModelChaosData.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonKubernetesV2ModelChaosData.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.d.ts +66 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesChaosInputs.d.ts +49 -0
- package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesChaosInputs.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition.js +1 -0
- package/dist/chaos-manager/src/services/schemas/InputsetInputSet.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/K8sinfraGetInfraTokenResponse.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/K8sinfraGetInfraTokenResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sinfraUpdateEmissaryUrlRequest.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/K8sinfraUpdateEmissaryUrlRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/K8sinfraUpdateEmissaryUrlResponse.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/K8sinfraUpdateEmissaryUrlResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelActionData.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ModelActionData.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelChaosExecutionNode.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/ModelChaosExecutionNode.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelChaosStepStatus.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelChaosStepStatus.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelChaosStepType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelChaosStepType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelCommandProbe.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ModelCommandProbe.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelConditionDetails.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ModelConditionDetails.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelErrorData.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelErrorData.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelFaultData.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ModelFaultData.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelHelperPodDetails.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelHelperPodDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelHttpProbe.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ModelHttpProbe.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelInfrastructure.d.ts +87 -0
- package/dist/chaos-manager/src/services/schemas/ModelInfrastructure.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelProbeData.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ModelProbeData.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelProbeIterations.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ModelProbeIterations.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelProbeMap.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelProbeMap.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelPromProbe.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ModelPromProbe.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelRecurrence.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ModelRecurrence.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelRecurrenceSpec.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelRecurrenceSpec.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelRecurrenceType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelRecurrenceType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelRuleDetails.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ModelRuleDetails.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernance.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernance.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernanceNodeData.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernanceNodeData.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernancePhase.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernancePhase.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelTimeWindow.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/ModelTimeWindow.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ModelWeightages.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ModelWeightages.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ModelWorkflowRun.d.ts +141 -0
- package/dist/chaos-manager/src/services/schemas/ModelWorkflowRun.js +1 -0
- package/dist/chaos-manager/src/services/schemas/NetworkmapGetTargetNetworkMapResponse.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/TargetnetworkmapExperimentRunDetail.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/TargetnetworkmapTargetNetworkMap.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/TargetserviceTargetService.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/TemplateVariable.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/TypesConfigMap.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/TypesConfigMap.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesExperimentComponents.d.ts +66 -0
- package/dist/chaos-manager/src/services/schemas/TypesExperimentComponents.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesFault.d.ts +21 -0
- package/dist/chaos-manager/src/services/schemas/TypesFault.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesFaultRef.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/TypesFaultRef.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesHostFile.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/TypesHostFile.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesInternalExperimentRunRequest.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/TypesInternalExperimentRunRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesProjectedVolumes.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/TypesProjectedVolumes.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesSecret.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/TypesSecret.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesSecurityContext.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/TypesSecurityContext.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesSelector.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/TypesSelector.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesSidecar.d.ts +26 -0
- package/dist/chaos-manager/src/services/schemas/TypesSidecar.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesStatusCheckTimeout.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/TypesStatusCheckTimeout.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesTargets.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/TypesTargets.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesWorkload.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/TypesWorkload.js +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesWorkloadKind.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesWorkloadKind.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1Authorization.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/V1Authorization.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1Capabilities.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/V1Capabilities.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1CmdProbeInputs.d.ts +17 -0
- package/dist/chaos-manager/src/services/schemas/V1CmdProbeInputs.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1ComparatorInfo.d.ts +17 -0
- package/dist/chaos-manager/src/services/schemas/V1ComparatorInfo.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1ConfigMapEnvSource.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/V1ConfigMapEnvSource.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1DatadogMetrics.d.ts +15 -0
- package/dist/chaos-manager/src/services/schemas/V1DatadogMetrics.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1DatadogProbeInputs.d.ts +20 -0
- package/dist/chaos-manager/src/services/schemas/V1DatadogProbeInputs.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1DatadogSyntheticsTestType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/V1DatadogSyntheticsTestType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1DynatraceProbeInputs.d.ts +24 -0
- package/dist/chaos-manager/src/services/schemas/V1DynatraceProbeInputs.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1EnvFromSource.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/V1EnvFromSource.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1GetMethod.d.ts +15 -0
- package/dist/chaos-manager/src/services/schemas/V1GetMethod.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1HttpMethod.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/V1HttpMethod.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1HttpProbeInputs.d.ts +31 -0
- package/dist/chaos-manager/src/services/schemas/V1HttpProbeInputs.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1K8sProbeInputs.d.ts +40 -0
- package/dist/chaos-manager/src/services/schemas/V1K8sProbeInputs.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1Metrics.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/V1Metrics.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1NewrelicMetrics.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/V1NewrelicMetrics.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1NewrelicProbeInputs.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/V1NewrelicProbeInputs.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1PodFsGroupChangePolicy.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/V1PodFsGroupChangePolicy.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1PodSecurityContext.d.ts +92 -0
- package/dist/chaos-manager/src/services/schemas/V1PodSecurityContext.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1PostMethod.d.ts +27 -0
- package/dist/chaos-manager/src/services/schemas/V1PostMethod.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1ProcMountType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/V1ProcMountType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1PromProbeInputs.d.ts +29 -0
- package/dist/chaos-manager/src/services/schemas/V1PromProbeInputs.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1RunProperty.d.ts +42 -0
- package/dist/chaos-manager/src/services/schemas/V1RunProperty.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1SeLinuxOptions.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/V1SeLinuxOptions.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1SeccompProfile.d.ts +21 -0
- package/dist/chaos-manager/src/services/schemas/V1SeccompProfile.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1SeccompProfileType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/V1SeccompProfileType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1SecretEnvSource.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/V1SecretEnvSource.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1SecurityContext.d.ts +92 -0
- package/dist/chaos-manager/src/services/schemas/V1SecurityContext.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1SloProbeInputs.d.ts +34 -0
- package/dist/chaos-manager/src/services/schemas/V1SloProbeInputs.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1SyntheticsTest.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/V1SyntheticsTest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V1Sysctl.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/V1Sysctl.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1TlsConfig.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/V1TlsConfig.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1WindowsSecurityContextOptions.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/V1WindowsSecurityContextOptions.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1alpha1TargetDetails.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/V1alpha1TargetDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V1alpha1Targets.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/V1alpha1Targets.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingV2Onboarding.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerPkgActionsAction } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface CreateActionMutationQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
organizationIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type CreateActionRequestBody = GithubComHarnessHceSaasGraphqlServerPkgActionsAction;
|
|
11
|
+
export type CreateActionOkResponse = GithubComHarnessHceSaasGraphqlServerPkgActionsAction;
|
|
12
|
+
export type CreateActionErrorResponse = ApiRestError;
|
|
13
|
+
export interface CreateActionProps extends Omit<FetcherOptions<CreateActionMutationQueryParams, CreateActionRequestBody>, 'url'> {
|
|
14
|
+
queryParams: CreateActionMutationQueryParams;
|
|
15
|
+
body: CreateActionRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateActionResponseContainer {
|
|
18
|
+
body: CreateActionOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function createAction(props: CreateActionProps): Promise<CreateActionResponseContainer>;
|
|
22
|
+
export type CreateActionMutationProps<T extends keyof CreateActionProps> = Omit<CreateActionProps, T> & Partial<Pick<CreateActionProps, T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Create a new action
|
|
25
|
+
*/
|
|
26
|
+
export declare function useCreateActionMutation<T extends keyof CreateActionProps>(props: Pick<Partial<CreateActionProps>, T>, options?: Omit<UseMutationOptions<CreateActionResponseContainer, CreateActionErrorResponse, CreateActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateActionResponseContainer, ApiRestError, CreateActionMutationProps<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 createAction(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a new action
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateActionMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createAction(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaulttemplateActionTemplate } from '../schemas/ChaosfaulttemplateActionTemplate';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ChaosfaulttemplateActionTemplateRequestBody } from '../requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateActionTemplateMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
organizationIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type CreateActionTemplateRequestBody = ChaosfaulttemplateActionTemplateRequestBody;
|
|
12
|
+
export type CreateActionTemplateOkResponse = ChaosfaulttemplateActionTemplate;
|
|
13
|
+
export type CreateActionTemplateErrorResponse = ApiRestError;
|
|
14
|
+
export interface CreateActionTemplateProps extends Omit<FetcherOptions<CreateActionTemplateMutationQueryParams, CreateActionTemplateRequestBody>, 'url'> {
|
|
15
|
+
queryParams: CreateActionTemplateMutationQueryParams;
|
|
16
|
+
body: CreateActionTemplateRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateActionTemplateResponseContainer {
|
|
19
|
+
body: CreateActionTemplateOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function createActionTemplate(props: CreateActionTemplateProps): Promise<CreateActionTemplateResponseContainer>;
|
|
23
|
+
export type CreateActionTemplateMutationProps<T extends keyof CreateActionTemplateProps> = Omit<CreateActionTemplateProps, T> & Partial<Pick<CreateActionTemplateProps, T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates action templates in a hub based on tag
|
|
26
|
+
*/
|
|
27
|
+
export declare function useCreateActionTemplateMutation<T extends keyof CreateActionTemplateProps>(props: Pick<Partial<CreateActionTemplateProps>, T>, options?: Omit<UseMutationOptions<CreateActionTemplateResponseContainer, CreateActionTemplateErrorResponse, CreateActionTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateActionTemplateResponseContainer, ApiRestError, CreateActionTemplateMutationProps<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 createActionTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates action templates in a hub based on tag
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateActionTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createActionTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import type { ModelChaosExecutionNode } from '../schemas/ModelChaosExecutionNode';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface CreateChaosExperimentExecutionNodeMutationPathParams {
|
|
6
|
+
experimentId: string;
|
|
7
|
+
experimentRunId: string;
|
|
8
|
+
}
|
|
9
|
+
export type CreateChaosExperimentExecutionNodeRequestBody = ModelChaosExecutionNode[];
|
|
10
|
+
export type CreateChaosExperimentExecutionNodeOkResponse = string;
|
|
11
|
+
export type CreateChaosExperimentExecutionNodeErrorResponse = ApiRestError;
|
|
12
|
+
export interface CreateChaosExperimentExecutionNodeProps extends CreateChaosExperimentExecutionNodeMutationPathParams, Omit<FetcherOptions<unknown, CreateChaosExperimentExecutionNodeRequestBody>, 'url'> {
|
|
13
|
+
body: CreateChaosExperimentExecutionNodeRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export interface CreateChaosExperimentExecutionNodeResponseContainer {
|
|
16
|
+
body: CreateChaosExperimentExecutionNodeOkResponse;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
}
|
|
19
|
+
export declare function createChaosExperimentExecutionNode(props: CreateChaosExperimentExecutionNodeProps): Promise<CreateChaosExperimentExecutionNodeResponseContainer>;
|
|
20
|
+
export type CreateChaosExperimentExecutionNodeMutationProps<T extends keyof CreateChaosExperimentExecutionNodeProps> = Omit<CreateChaosExperimentExecutionNodeProps, T> & Partial<Pick<CreateChaosExperimentExecutionNodeProps, T>>;
|
|
21
|
+
/**
|
|
22
|
+
* Create chaos execution node
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCreateChaosExperimentExecutionNodeMutation<T extends keyof CreateChaosExperimentExecutionNodeProps>(props: Pick<Partial<CreateChaosExperimentExecutionNodeProps>, T>, options?: Omit<UseMutationOptions<CreateChaosExperimentExecutionNodeResponseContainer, CreateChaosExperimentExecutionNodeErrorResponse, CreateChaosExperimentExecutionNodeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChaosExperimentExecutionNodeResponseContainer, ApiRestError, CreateChaosExperimentExecutionNodeMutationProps<T>, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.js
ADDED
|
@@ -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 createChaosExperimentExecutionNode(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internal/v2/taskCallback/${props.experimentId}/${props.experimentRunId}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create chaos execution node
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateChaosExperimentExecutionNodeMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createChaosExperimentExecutionNode(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Chaoshubv2GetHubResponse } from '../schemas/Chaoshubv2GetHubResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { Chaoshubv2CreateHubRequest } from '../schemas/Chaoshubv2CreateHubRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateChaosHubMutationPathParams {
|
|
7
|
+
hubIdentity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateChaosHubMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type CreateChaosHubRequestBody = Chaoshubv2CreateHubRequest;
|
|
15
|
+
export type CreateChaosHubOkResponse = Chaoshubv2GetHubResponse;
|
|
16
|
+
export type CreateChaosHubErrorResponse = ApiRestError;
|
|
17
|
+
export interface CreateChaosHubProps extends CreateChaosHubMutationPathParams, Omit<FetcherOptions<CreateChaosHubMutationQueryParams, CreateChaosHubRequestBody>, 'url'> {
|
|
18
|
+
queryParams: CreateChaosHubMutationQueryParams;
|
|
19
|
+
body: CreateChaosHubRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export interface CreateChaosHubResponseContainer {
|
|
22
|
+
body: CreateChaosHubOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function createChaosHub(props: CreateChaosHubProps): Promise<CreateChaosHubResponseContainer>;
|
|
26
|
+
export type CreateChaosHubMutationProps<T extends keyof CreateChaosHubProps> = Omit<CreateChaosHubProps, T> & Partial<Pick<CreateChaosHubProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Create chaos hub
|
|
29
|
+
*/
|
|
30
|
+
export declare function useCreateChaosHubMutation<T extends keyof CreateChaosHubProps>(props: Pick<Partial<CreateChaosHubProps>, T>, options?: Omit<UseMutationOptions<CreateChaosHubResponseContainer, CreateChaosHubErrorResponse, CreateChaosHubMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChaosHubResponseContainer, ApiRestError, CreateChaosHubMutationProps<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 createChaosHub(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hubs`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create chaos hub
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateChaosHubMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createChaosHub(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 DeleteActionMutationPathParams {
|
|
5
|
+
actionId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteActionMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
organizationIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type DeleteActionOkResponse = string;
|
|
13
|
+
export type DeleteActionErrorResponse = ApiRestError;
|
|
14
|
+
export interface DeleteActionProps extends DeleteActionMutationPathParams, Omit<FetcherOptions<DeleteActionMutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: DeleteActionMutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteActionResponseContainer {
|
|
18
|
+
body: DeleteActionOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function deleteAction(props: DeleteActionProps): Promise<DeleteActionResponseContainer>;
|
|
22
|
+
export type DeleteActionMutationProps<T extends keyof DeleteActionProps> = Omit<DeleteActionProps, T> & Partial<Pick<DeleteActionProps, T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Delete an action with a provided identifier
|
|
25
|
+
*/
|
|
26
|
+
export declare function useDeleteActionMutation<T extends keyof DeleteActionProps>(props: Pick<Partial<DeleteActionProps>, T>, options?: Omit<UseMutationOptions<DeleteActionResponseContainer, DeleteActionErrorResponse, DeleteActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteActionResponseContainer, ApiRestError, DeleteActionMutationProps<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 deleteAction(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions/${props.actionId}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete an action with a provided identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteActionMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteAction(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ModelChaosExecutionNode } from '../schemas/ModelChaosExecutionNode';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ExperimentExecutionNodeDetailsQueryPathParams {
|
|
6
|
+
name: string;
|
|
7
|
+
experimentId: string;
|
|
8
|
+
experimentRunId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ExperimentExecutionNodeDetailsQueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
organizationIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
}
|
|
15
|
+
export type ExperimentExecutionNodeDetailsOkResponse = ModelChaosExecutionNode[];
|
|
16
|
+
export type ExperimentExecutionNodeDetailsErrorResponse = ApiRestError;
|
|
17
|
+
export interface ExperimentExecutionNodeDetailsProps extends ExperimentExecutionNodeDetailsQueryPathParams, Omit<FetcherOptions<ExperimentExecutionNodeDetailsQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: ExperimentExecutionNodeDetailsQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface ExperimentExecutionNodeDetailsResponseContainer {
|
|
21
|
+
body: ExperimentExecutionNodeDetailsOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function experimentExecutionNodeDetails(props: ExperimentExecutionNodeDetailsProps): Promise<ExperimentExecutionNodeDetailsResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get chaos execution node
|
|
27
|
+
*/
|
|
28
|
+
export declare function useExperimentExecutionNodeDetailsQuery(props: ExperimentExecutionNodeDetailsProps, options?: Omit<UseQueryOptions<ExperimentExecutionNodeDetailsResponseContainer, ExperimentExecutionNodeDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ExperimentExecutionNodeDetailsResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 experimentExecutionNodeDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internal/v2/node/${props.experimentId}/${props.experimentRunId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get chaos execution node
|
|
11
|
+
*/
|
|
12
|
+
export function useExperimentExecutionNodeDetailsQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'experimentExecutionNodeDetails',
|
|
15
|
+
props.name,
|
|
16
|
+
props.experimentId,
|
|
17
|
+
props.experimentRunId,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => experimentExecutionNodeDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface GetActionManifestQueryPathParams {
|
|
5
|
+
identity: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetActionManifestQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
organizationIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetActionManifestOkResponse = string;
|
|
13
|
+
export type GetActionManifestErrorResponse = ApiRestError;
|
|
14
|
+
export interface GetActionManifestProps extends GetActionManifestQueryPathParams, Omit<FetcherOptions<GetActionManifestQueryQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: GetActionManifestQueryQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export interface GetActionManifestResponseContainer {
|
|
18
|
+
body: GetActionManifestOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function getActionManifest(props: GetActionManifestProps): Promise<GetActionManifestResponseContainer>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve Action manifest of a specific action by its ID
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetActionManifestQuery(props: GetActionManifestProps, options?: Omit<UseQueryOptions<GetActionManifestResponseContainer, GetActionManifestErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionManifestResponseContainer, 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 getActionManifest(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions/manifest/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve Action manifest of a specific action by its ID
|
|
11
|
+
*/
|
|
12
|
+
export function useGetActionManifestQuery(props, options) {
|
|
13
|
+
return useQuery(['getActionManifest', props.identity, props.queryParams], ({ signal }) => getActionManifest(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ActionsActionResponse } from '../schemas/ActionsActionResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetActionQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetActionQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetActionOkResponse = ActionsActionResponse;
|
|
14
|
+
export type GetActionErrorResponse = ApiRestError;
|
|
15
|
+
export interface GetActionProps extends GetActionQueryPathParams, Omit<FetcherOptions<GetActionQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: GetActionQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export interface GetActionResponseContainer {
|
|
19
|
+
body: GetActionOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function getAction(props: GetActionProps): Promise<GetActionResponseContainer>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve details of a specific action by its ID
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetActionQuery(props: GetActionProps, options?: Omit<UseQueryOptions<GetActionResponseContainer, GetActionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionResponseContainer, 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 getAction(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve details of a specific action by its ID
|
|
11
|
+
*/
|
|
12
|
+
export function useGetActionQuery(props, options) {
|
|
13
|
+
return useQuery(['getAction', props.identity, props.queryParams], ({ signal }) => getAction(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaulttemplateGetActionTemplateResponse } from '../schemas/ChaosfaulttemplateGetActionTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetActionTemplateQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetActionTemplateQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
revision?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetActionTemplateOkResponse = ChaosfaulttemplateGetActionTemplateResponse;
|
|
16
|
+
export type GetActionTemplateErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetActionTemplateProps extends GetActionTemplateQueryPathParams, Omit<FetcherOptions<GetActionTemplateQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetActionTemplateQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetActionTemplateResponseContainer {
|
|
21
|
+
body: GetActionTemplateOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getActionTemplate(props: GetActionTemplateProps): Promise<GetActionTemplateResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the action template in a hub based on action ref
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetActionTemplateQuery(props: GetActionTemplateProps, options?: Omit<UseQueryOptions<GetActionTemplateResponseContainer, GetActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionTemplateResponseContainer, 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 getActionTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the action template in a hub based on action ref
|
|
11
|
+
*/
|
|
12
|
+
export function useGetActionTemplateQuery(props, options) {
|
|
13
|
+
return useQuery(['getActionTemplate', props.identity, props.queryParams], ({ signal }) => getActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useGetActionTemplateRevisionDifferenceQuery.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaulttemplateListActionTemplateResponse } from '../schemas/ChaosfaulttemplateListActionTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetActionTemplateRevisionDifferenceQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetActionTemplateRevisionDifferenceQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
revision: string;
|
|
14
|
+
revisionToCompare: string;
|
|
15
|
+
}
|
|
16
|
+
export type GetActionTemplateRevisionDifferenceOkResponse = ChaosfaulttemplateListActionTemplateResponse;
|
|
17
|
+
export type GetActionTemplateRevisionDifferenceErrorResponse = ApiRestError;
|
|
18
|
+
export interface GetActionTemplateRevisionDifferenceProps extends GetActionTemplateRevisionDifferenceQueryPathParams, Omit<FetcherOptions<GetActionTemplateRevisionDifferenceQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetActionTemplateRevisionDifferenceQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface GetActionTemplateRevisionDifferenceResponseContainer {
|
|
22
|
+
body: GetActionTemplateRevisionDifferenceOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function getActionTemplateRevisionDifference(props: GetActionTemplateRevisionDifferenceProps): Promise<GetActionTemplateRevisionDifferenceResponseContainer>;
|
|
26
|
+
/**
|
|
27
|
+
* Get the difference between 2 revisions of action template in a hub
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetActionTemplateRevisionDifferenceQuery(props: GetActionTemplateRevisionDifferenceProps, options?: Omit<UseQueryOptions<GetActionTemplateRevisionDifferenceResponseContainer, GetActionTemplateRevisionDifferenceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionTemplateRevisionDifferenceResponseContainer, 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 getActionTemplateRevisionDifference(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}/compare`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the difference between 2 revisions of action template in a hub
|
|
11
|
+
*/
|
|
12
|
+
export function useGetActionTemplateRevisionDifferenceQuery(props, options) {
|
|
13
|
+
return useQuery(['getActionTemplateRevisionDifference', props.identity, props.queryParams], ({ signal }) => getActionTemplateRevisionDifference(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Chaoshubv2GetHubResponse } from '../schemas/Chaoshubv2GetHubResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetChaosHubQueryPathParams {
|
|
6
|
+
hubIdentity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetChaosHubQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetChaosHubOkResponse = Chaoshubv2GetHubResponse;
|
|
14
|
+
export type GetChaosHubErrorResponse = ApiRestError;
|
|
15
|
+
export interface GetChaosHubProps extends GetChaosHubQueryPathParams, Omit<FetcherOptions<GetChaosHubQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: GetChaosHubQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export interface GetChaosHubResponseContainer {
|
|
19
|
+
body: GetChaosHubOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function getChaosHub(props: GetChaosHubProps): Promise<GetChaosHubResponseContainer>;
|
|
23
|
+
/**
|
|
24
|
+
* Get chaos hub based on given filters
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetChaosHubQuery(props: GetChaosHubProps, options?: Omit<UseQueryOptions<GetChaosHubResponseContainer, GetChaosHubErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosHubResponseContainer, 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 getChaosHub(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hubs/${props.hubIdentity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get chaos hub based on given filters
|
|
11
|
+
*/
|
|
12
|
+
export function useGetChaosHubQuery(props, options) {
|
|
13
|
+
return useQuery(['getChaosHub', props.hubIdentity, props.queryParams], ({ signal }) => getChaosHub(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosExecutionNodesChaosExecutionResponse } from '../schemas/ChaosExecutionNodesChaosExecutionResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetChaosPipelineExecutionQueryPathParams {
|
|
6
|
+
experimentId: string;
|
|
7
|
+
experimentRunId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetChaosPipelineExecutionQueryQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type GetChaosPipelineExecutionOkResponse = ChaosExecutionNodesChaosExecutionResponse;
|
|
15
|
+
export type GetChaosPipelineExecutionErrorResponse = ApiRestError;
|
|
16
|
+
export interface GetChaosPipelineExecutionProps extends GetChaosPipelineExecutionQueryPathParams, Omit<FetcherOptions<GetChaosPipelineExecutionQueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: GetChaosPipelineExecutionQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface GetChaosPipelineExecutionResponseContainer {
|
|
20
|
+
body: GetChaosPipelineExecutionOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function getChaosPipelineExecution(props: GetChaosPipelineExecutionProps): Promise<GetChaosPipelineExecutionResponseContainer>;
|
|
24
|
+
/**
|
|
25
|
+
* Get a chaos pipeline execution
|
|
26
|
+
*/
|
|
27
|
+
export declare function useGetChaosPipelineExecutionQuery(props: GetChaosPipelineExecutionProps, options?: Omit<UseQueryOptions<GetChaosPipelineExecutionResponseContainer, GetChaosPipelineExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosPipelineExecutionResponseContainer, 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 getChaosPipelineExecution(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/chaos-pipeline/${props.experimentId}/${props.experimentRunId}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get a chaos pipeline execution
|
|
11
|
+
*/
|
|
12
|
+
export function useGetChaosPipelineExecutionQuery(props, options) {
|
|
13
|
+
return useQuery(['getChaosPipelineExecution', props.experimentId, props.experimentRunId, props.queryParams], ({ signal }) => getChaosPipelineExecution(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosExecutionNodesChaosExecutionNode } from '../schemas/ChaosExecutionNodesChaosExecutionNode';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetChaosPipelineStepDetailsQueryPathParams {
|
|
6
|
+
experimentId: string;
|
|
7
|
+
experimentRunId: string;
|
|
8
|
+
stepName: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetChaosPipelineStepDetailsQueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
organizationIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetChaosPipelineStepDetailsOkResponse = ChaosExecutionNodesChaosExecutionNode;
|
|
16
|
+
export type GetChaosPipelineStepDetailsErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetChaosPipelineStepDetailsProps extends GetChaosPipelineStepDetailsQueryPathParams, Omit<FetcherOptions<GetChaosPipelineStepDetailsQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetChaosPipelineStepDetailsQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetChaosPipelineStepDetailsResponseContainer {
|
|
21
|
+
body: GetChaosPipelineStepDetailsOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getChaosPipelineStepDetails(props: GetChaosPipelineStepDetailsProps): Promise<GetChaosPipelineStepDetailsResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get a chaos pipeline step execution
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetChaosPipelineStepDetailsQuery(props: GetChaosPipelineStepDetailsProps, options?: Omit<UseQueryOptions<GetChaosPipelineStepDetailsResponseContainer, GetChaosPipelineStepDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosPipelineStepDetailsResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 getChaosPipelineStepDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/chaos-pipeline/step/${props.experimentId}/${props.experimentRunId}/${props.stepName}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get a chaos pipeline step execution
|
|
11
|
+
*/
|
|
12
|
+
export function useGetChaosPipelineStepDetailsQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getChaosPipelineStepDetails',
|
|
15
|
+
props.experimentId,
|
|
16
|
+
props.experimentRunId,
|
|
17
|
+
props.stepName,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getChaosPipelineStepDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentRunInternalApiMutation.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ModelWorkflowRun } from '../schemas/ModelWorkflowRun';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { TypesInternalExperimentRunRequest } from '../schemas/TypesInternalExperimentRunRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface GetChaosV2ExperimentRunInternalApiMutationPathParams {
|
|
7
|
+
experimentId: string;
|
|
8
|
+
notifyId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetChaosV2ExperimentRunInternalApiMutationQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
organizationIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetChaosV2ExperimentRunInternalApiRequestBody = TypesInternalExperimentRunRequest;
|
|
16
|
+
export type GetChaosV2ExperimentRunInternalApiOkResponse = ModelWorkflowRun;
|
|
17
|
+
export type GetChaosV2ExperimentRunInternalApiErrorResponse = ApiRestError;
|
|
18
|
+
export interface GetChaosV2ExperimentRunInternalApiProps extends GetChaosV2ExperimentRunInternalApiMutationPathParams, Omit<FetcherOptions<GetChaosV2ExperimentRunInternalApiMutationQueryParams, GetChaosV2ExperimentRunInternalApiRequestBody>, 'url'> {
|
|
19
|
+
queryParams: GetChaosV2ExperimentRunInternalApiMutationQueryParams;
|
|
20
|
+
body: GetChaosV2ExperimentRunInternalApiRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export interface GetChaosV2ExperimentRunInternalApiResponseContainer {
|
|
23
|
+
body: GetChaosV2ExperimentRunInternalApiOkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function getChaosV2ExperimentRunInternalApi(props: GetChaosV2ExperimentRunInternalApiProps): Promise<GetChaosV2ExperimentRunInternalApiResponseContainer>;
|
|
27
|
+
export type GetChaosV2ExperimentRunInternalApiMutationProps<T extends keyof GetChaosV2ExperimentRunInternalApiProps> = Omit<GetChaosV2ExperimentRunInternalApiProps, T> & Partial<Pick<GetChaosV2ExperimentRunInternalApiProps, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get the execution details of a chaos v2 experiment
|
|
30
|
+
*/
|
|
31
|
+
export declare function useGetChaosV2ExperimentRunInternalApiMutation<T extends keyof GetChaosV2ExperimentRunInternalApiProps>(props: Pick<Partial<GetChaosV2ExperimentRunInternalApiProps>, T>, options?: Omit<UseMutationOptions<GetChaosV2ExperimentRunInternalApiResponseContainer, GetChaosV2ExperimentRunInternalApiErrorResponse, GetChaosV2ExperimentRunInternalApiMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetChaosV2ExperimentRunInternalApiResponseContainer, ApiRestError, GetChaosV2ExperimentRunInternalApiMutationProps<T>, unknown>;
|