@harnessio/react-chaos-manager-client 0.9.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/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/useListChaosHubQuery.d.ts +33 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.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/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/index.d.ts +90 -3
- package/dist/chaos-manager/src/services/index.js +23 -0
- package/dist/chaos-manager/src/services/requestBodies/ChaosfaulttemplateActionTemplateRequestBody.d.ts +2 -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/ActionsActionType.d.ts +1 -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/ChaosExecutionNodesChaosExecutionNode.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts +1 -1
- 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/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 +3 -3
- 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 +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesChaosInputs.d.ts +31 -5
- package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/InputsetInputSet.d.ts +1 -1
- 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/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/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/ModelPromProbe.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/ModelPromProbe.js +4 -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/TypesConfigMap.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/TypesExperimentComponents.d.ts +39 -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 +12 -0
- package/dist/chaos-manager/src/services/schemas/TypesProjectedVolumes.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/TypesSecret.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/TypesSecurityContext.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/TypesSelector.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/TypesSidecar.d.ts +15 -0
- package/dist/chaos-manager/src/services/schemas/TypesStatusCheckTimeout.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/TypesTargets.d.ts +3 -2
- package/dist/chaos-manager/src/services/schemas/TypesWorkload.d.ts +12 -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
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultDetails.d.ts +0 -5
- package/dist/chaos-manager/src/services/schemas/TypesApplication.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/TypesCleanupPolicy.d.ts +0 -1
- /package/dist/chaos-manager/src/services/{schemas/ChaosExecutionNodesFaultDetails.js → requestBodies/ChaosfaulttemplateActionTemplateRequestBody.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesApplication.js → ActionsActionRunProperties.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{TypesCleanupPolicy.js → ActionsActionType.js} +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
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 ListActionTemplateQueryQueryParams {
|
|
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
|
+
actionType?: string;
|
|
21
|
+
includeallscope?: string;
|
|
22
|
+
}
|
|
23
|
+
export type ListActionTemplateOkResponse = ChaosfaulttemplateListActionTemplateResponse;
|
|
24
|
+
export type ListActionTemplateErrorResponse = ApiRestError;
|
|
25
|
+
export interface ListActionTemplateProps extends Omit<FetcherOptions<ListActionTemplateQueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: ListActionTemplateQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export interface ListActionTemplateResponseContainer {
|
|
29
|
+
body: ListActionTemplateOkResponse;
|
|
30
|
+
headers: Headers;
|
|
31
|
+
}
|
|
32
|
+
export declare function listActionTemplate(props: ListActionTemplateProps): Promise<ListActionTemplateResponseContainer>;
|
|
33
|
+
/**
|
|
34
|
+
* Lists all the action templates in a hub based on tag
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListActionTemplateQuery(props: ListActionTemplateProps, options?: Omit<UseQueryOptions<ListActionTemplateResponseContainer, ListActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionTemplateResponseContainer, 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 listActionTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the action templates in a hub based on tag
|
|
11
|
+
*/
|
|
12
|
+
export function useListActionTemplateQuery(props, options) {
|
|
13
|
+
return useQuery(['listActionTemplate', props.queryParams], ({ signal }) => listActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 ListActionTemplateRevisionsQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListActionTemplateRevisionsQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
/**
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
page: number;
|
|
17
|
+
/**
|
|
18
|
+
* @default 15
|
|
19
|
+
*/
|
|
20
|
+
limit: number;
|
|
21
|
+
}
|
|
22
|
+
export type ListActionTemplateRevisionsOkResponse = ChaosfaulttemplateListActionTemplateResponse;
|
|
23
|
+
export type ListActionTemplateRevisionsErrorResponse = ApiRestError;
|
|
24
|
+
export interface ListActionTemplateRevisionsProps extends ListActionTemplateRevisionsQueryPathParams, Omit<FetcherOptions<ListActionTemplateRevisionsQueryQueryParams, unknown>, 'url'> {
|
|
25
|
+
queryParams: ListActionTemplateRevisionsQueryQueryParams;
|
|
26
|
+
}
|
|
27
|
+
export interface ListActionTemplateRevisionsResponseContainer {
|
|
28
|
+
body: ListActionTemplateRevisionsOkResponse;
|
|
29
|
+
headers: Headers;
|
|
30
|
+
}
|
|
31
|
+
export declare function listActionTemplateRevisions(props: ListActionTemplateRevisionsProps): Promise<ListActionTemplateRevisionsResponseContainer>;
|
|
32
|
+
/**
|
|
33
|
+
* Lists all the revision of a fault template in a hub
|
|
34
|
+
*/
|
|
35
|
+
export declare function useListActionTemplateRevisionsQuery(props: ListActionTemplateRevisionsProps, options?: Omit<UseQueryOptions<ListActionTemplateRevisionsResponseContainer, ListActionTemplateRevisionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionTemplateRevisionsResponseContainer, 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 listActionTemplateRevisions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}/revisions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the revision of a fault template in a hub
|
|
11
|
+
*/
|
|
12
|
+
export function useListActionTemplateRevisionsQuery(props, options) {
|
|
13
|
+
return useQuery(['listActionTemplateRevisions', props.identity, props.queryParams], ({ signal }) => listActionTemplateRevisions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ActionsListActionTemplateResponse } from '../schemas/ActionsListActionTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListActionsQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
organizationIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
hubIdentity?: string;
|
|
10
|
+
search: string;
|
|
11
|
+
/**
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default 15
|
|
17
|
+
*/
|
|
18
|
+
limit: number;
|
|
19
|
+
infraType?: string;
|
|
20
|
+
actionType?: string;
|
|
21
|
+
includeallscope?: string;
|
|
22
|
+
}
|
|
23
|
+
export type ListActionsOkResponse = ActionsListActionTemplateResponse;
|
|
24
|
+
export type ListActionsErrorResponse = ApiRestError;
|
|
25
|
+
export interface ListActionsProps extends Omit<FetcherOptions<ListActionsQueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: ListActionsQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export interface ListActionsResponseContainer {
|
|
29
|
+
body: ListActionsOkResponse;
|
|
30
|
+
headers: Headers;
|
|
31
|
+
}
|
|
32
|
+
export declare function listActions(props: ListActionsProps): Promise<ListActionsResponseContainer>;
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve a list of actions based on various filters like name, tags, date range, and infrastructure type, with pagination support.
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListActionsQuery(props: ListActionsProps, options?: Omit<UseQueryOptions<ListActionsResponseContainer, ListActionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionsResponseContainer, 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 listActions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a list of actions based on various filters like name, tags, date range, and infrastructure type, with pagination support.
|
|
11
|
+
*/
|
|
12
|
+
export function useListActionsQuery(props, options) {
|
|
13
|
+
return useQuery(['listActions', props.queryParams], ({ signal }) => listActions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Chaoshubv2ListHubResponse } from '../schemas/Chaoshubv2ListHubResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListChaosHubQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
organizationIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
search: string;
|
|
10
|
+
includeallscope: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default 15
|
|
17
|
+
*/
|
|
18
|
+
limit: number;
|
|
19
|
+
}
|
|
20
|
+
export type ListChaosHubOkResponse = Chaoshubv2ListHubResponse;
|
|
21
|
+
export type ListChaosHubErrorResponse = ApiRestError;
|
|
22
|
+
export interface ListChaosHubProps extends Omit<FetcherOptions<ListChaosHubQueryQueryParams, unknown>, 'url'> {
|
|
23
|
+
queryParams: ListChaosHubQueryQueryParams;
|
|
24
|
+
}
|
|
25
|
+
export interface ListChaosHubResponseContainer {
|
|
26
|
+
body: ListChaosHubOkResponse;
|
|
27
|
+
headers: Headers;
|
|
28
|
+
}
|
|
29
|
+
export declare function listChaosHub(props: ListChaosHubProps): Promise<ListChaosHubResponseContainer>;
|
|
30
|
+
/**
|
|
31
|
+
* Lists chaos hubs based on given filters
|
|
32
|
+
*/
|
|
33
|
+
export declare function useListChaosHubQuery(props: ListChaosHubProps, options?: Omit<UseQueryOptions<ListChaosHubResponseContainer, ListChaosHubErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosHubResponseContainer, 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 listChaosHub(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hubs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists chaos hubs based on given filters
|
|
11
|
+
*/
|
|
12
|
+
export function useListChaosHubQuery(props, options) {
|
|
13
|
+
return useQuery(['listChaosHub', props.queryParams], ({ signal }) => listChaosHub(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaulttemplateActionTemplateVariables } from '../schemas/ChaosfaulttemplateActionTemplateVariables';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListVariablesInActionTemplateQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListVariablesInActionTemplateQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
revision: string;
|
|
14
|
+
}
|
|
15
|
+
export type ListVariablesInActionTemplateOkResponse = ChaosfaulttemplateActionTemplateVariables;
|
|
16
|
+
export type ListVariablesInActionTemplateErrorResponse = ApiRestError;
|
|
17
|
+
export interface ListVariablesInActionTemplateProps extends ListVariablesInActionTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInActionTemplateQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: ListVariablesInActionTemplateQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface ListVariablesInActionTemplateResponseContainer {
|
|
21
|
+
body: ListVariablesInActionTemplateOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function listVariablesInActionTemplate(props: ListVariablesInActionTemplateProps): Promise<ListVariablesInActionTemplateResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the list of variables in a fault template based on revision
|
|
27
|
+
*/
|
|
28
|
+
export declare function useListVariablesInActionTemplateQuery(props: ListVariablesInActionTemplateProps, options?: Omit<UseQueryOptions<ListVariablesInActionTemplateResponseContainer, ListVariablesInActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVariablesInActionTemplateResponseContainer, 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 listVariablesInActionTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions/${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 useListVariablesInActionTemplateQuery(props, options) {
|
|
13
|
+
return useQuery(['listVariablesInActionTemplate', props.identity, props.queryParams], ({ signal }) => listVariablesInActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerPkgActionsAction } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ActionsActionResponse } from '../schemas/ActionsActionResponse';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateActionMutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateActionMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateActionRequestBody = ActionsActionResponse;
|
|
15
|
+
export type UpdateActionOkResponse = GithubComHarnessHceSaasGraphqlServerPkgActionsAction;
|
|
16
|
+
export type UpdateActionErrorResponse = ApiRestError;
|
|
17
|
+
export interface UpdateActionProps extends UpdateActionMutationPathParams, Omit<FetcherOptions<UpdateActionMutationQueryParams, UpdateActionRequestBody>, 'url'> {
|
|
18
|
+
queryParams: UpdateActionMutationQueryParams;
|
|
19
|
+
body: UpdateActionRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateActionResponseContainer {
|
|
22
|
+
body: UpdateActionOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function updateAction(props: UpdateActionProps): Promise<UpdateActionResponseContainer>;
|
|
26
|
+
export type UpdateActionMutationProps<T extends keyof UpdateActionProps> = Omit<UpdateActionProps, T> & Partial<Pick<UpdateActionProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Update a new action with the specified configuration
|
|
29
|
+
*/
|
|
30
|
+
export declare function useUpdateActionMutation<T extends keyof UpdateActionProps>(props: Pick<Partial<UpdateActionProps>, T>, options?: Omit<UseMutationOptions<UpdateActionResponseContainer, UpdateActionErrorResponse, UpdateActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateActionResponseContainer, ApiRestError, UpdateActionMutationProps<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 updateAction(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions/${props.identity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update a new action with the specified configuration
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateActionMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateAction(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 UpdateActionTemplateMutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateActionTemplateMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
isDefault?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateActionTemplateRequestBody = ChaosfaulttemplateActionTemplateRequestBody;
|
|
16
|
+
export type UpdateActionTemplateOkResponse = ChaosfaulttemplateActionTemplate;
|
|
17
|
+
export type UpdateActionTemplateErrorResponse = ApiRestError;
|
|
18
|
+
export interface UpdateActionTemplateProps extends UpdateActionTemplateMutationPathParams, Omit<FetcherOptions<UpdateActionTemplateMutationQueryParams, UpdateActionTemplateRequestBody>, 'url'> {
|
|
19
|
+
queryParams: UpdateActionTemplateMutationQueryParams;
|
|
20
|
+
body: UpdateActionTemplateRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export interface UpdateActionTemplateResponseContainer {
|
|
23
|
+
body: UpdateActionTemplateOkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function updateActionTemplate(props: UpdateActionTemplateProps): Promise<UpdateActionTemplateResponseContainer>;
|
|
27
|
+
export type UpdateActionTemplateMutationProps<T extends keyof UpdateActionTemplateProps> = Omit<UpdateActionTemplateProps, T> & Partial<Pick<UpdateActionTemplateProps, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* Updates an existing action template in a hub with new configuration
|
|
30
|
+
*/
|
|
31
|
+
export declare function useUpdateActionTemplateMutation<T extends keyof UpdateActionTemplateProps>(props: Pick<Partial<UpdateActionTemplateProps>, T>, options?: Omit<UseMutationOptions<UpdateActionTemplateResponseContainer, UpdateActionTemplateErrorResponse, UpdateActionTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateActionTemplateResponseContainer, ApiRestError, UpdateActionTemplateMutationProps<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 updateActionTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates an existing action template in a hub with new configuration
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateActionTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateActionTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
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 UpdateChaosExperimentExecutionNodeMutationPathParams {
|
|
6
|
+
name: string;
|
|
7
|
+
experimentId: string;
|
|
8
|
+
experimentRunId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateChaosExperimentExecutionNodeMutationQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type UpdateChaosExperimentExecutionNodeRequestBody = ModelChaosExecutionNode;
|
|
14
|
+
export type UpdateChaosExperimentExecutionNodeOkResponse = string;
|
|
15
|
+
export type UpdateChaosExperimentExecutionNodeErrorResponse = ApiRestError;
|
|
16
|
+
export interface UpdateChaosExperimentExecutionNodeProps extends UpdateChaosExperimentExecutionNodeMutationPathParams, Omit<FetcherOptions<UpdateChaosExperimentExecutionNodeMutationQueryParams, UpdateChaosExperimentExecutionNodeRequestBody>, 'url'> {
|
|
17
|
+
queryParams: UpdateChaosExperimentExecutionNodeMutationQueryParams;
|
|
18
|
+
body: UpdateChaosExperimentExecutionNodeRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export interface UpdateChaosExperimentExecutionNodeResponseContainer {
|
|
21
|
+
body: UpdateChaosExperimentExecutionNodeOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function updateChaosExperimentExecutionNode(props: UpdateChaosExperimentExecutionNodeProps): Promise<UpdateChaosExperimentExecutionNodeResponseContainer>;
|
|
25
|
+
export type UpdateChaosExperimentExecutionNodeMutationProps<T extends keyof UpdateChaosExperimentExecutionNodeProps> = Omit<UpdateChaosExperimentExecutionNodeProps, T> & Partial<Pick<UpdateChaosExperimentExecutionNodeProps, T>>;
|
|
26
|
+
/**
|
|
27
|
+
* Update chaos execution node
|
|
28
|
+
*/
|
|
29
|
+
export declare function useUpdateChaosExperimentExecutionNodeMutation<T extends keyof UpdateChaosExperimentExecutionNodeProps>(props: Pick<Partial<UpdateChaosExperimentExecutionNodeProps>, T>, options?: Omit<UseMutationOptions<UpdateChaosExperimentExecutionNodeResponseContainer, UpdateChaosExperimentExecutionNodeErrorResponse, UpdateChaosExperimentExecutionNodeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateChaosExperimentExecutionNodeResponseContainer, ApiRestError, UpdateChaosExperimentExecutionNodeMutationProps<T>, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.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 updateChaosExperimentExecutionNode(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internal/v2/taskCallback/${props.experimentId}/${props.experimentRunId}/${props.name}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update chaos execution node
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateChaosExperimentExecutionNodeMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateChaosExperimentExecutionNode(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 { Chaoshubv2UpdateHubRequest } from '../schemas/Chaoshubv2UpdateHubRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateChaosHubMutationPathParams {
|
|
7
|
+
hubIdentity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateChaosHubMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateChaosHubRequestBody = Chaoshubv2UpdateHubRequest;
|
|
15
|
+
export type UpdateChaosHubOkResponse = Chaoshubv2GetHubResponse;
|
|
16
|
+
export type UpdateChaosHubErrorResponse = ApiRestError;
|
|
17
|
+
export interface UpdateChaosHubProps extends UpdateChaosHubMutationPathParams, Omit<FetcherOptions<UpdateChaosHubMutationQueryParams, UpdateChaosHubRequestBody>, 'url'> {
|
|
18
|
+
queryParams: UpdateChaosHubMutationQueryParams;
|
|
19
|
+
body: UpdateChaosHubRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateChaosHubResponseContainer {
|
|
22
|
+
body: UpdateChaosHubOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function updateChaosHub(props: UpdateChaosHubProps): Promise<UpdateChaosHubResponseContainer>;
|
|
26
|
+
export type UpdateChaosHubMutationProps<T extends keyof UpdateChaosHubProps> = Omit<UpdateChaosHubProps, T> & Partial<Pick<UpdateChaosHubProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Update chaos hub
|
|
29
|
+
*/
|
|
30
|
+
export declare function useUpdateChaosHubMutation<T extends keyof UpdateChaosHubProps>(props: Pick<Partial<UpdateChaosHubProps>, T>, options?: Omit<UseMutationOptions<UpdateChaosHubResponseContainer, UpdateChaosHubErrorResponse, UpdateChaosHubMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateChaosHubResponseContainer, ApiRestError, UpdateChaosHubMutationProps<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 updateChaosHub(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hubs/${props.hubIdentity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update chaos hub
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateChaosHubMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateChaosHub(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|