@harnessio/react-chaos-manager-client 0.9.0 → 0.11.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/useCreateChaosHubMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useCreateChaosHubMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRecommendationMutation.d.ts +24 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRecommendationMutation.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/useDeleteRecommendationMutation.d.ts +23 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRecommendationMutation.js +14 -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/useGetRecommendationQuery.d.ts +23 -0
- package/dist/chaos-manager/src/services/hooks/useGetRecommendationQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetRecommendationStatusMutation.d.ts +20 -0
- package/dist/chaos-manager/src/services/hooks/useGetRecommendationStatusMutation.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/useInsertRecommendationsMutation.d.ts +19 -0
- package/dist/chaos-manager/src/services/hooks/useInsertRecommendationsMutation.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/useListRecommendationsQuery.d.ts +25 -0
- package/dist/chaos-manager/src/services/hooks/useListRecommendationsQuery.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/useRunRecommendationMutation.d.ts +24 -0
- package/dist/chaos-manager/src/services/hooks/useRunRecommendationMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useStopChaosV2ExperimentMutation.d.ts +1 -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/useUpdateChaosHubMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosHubMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRecommendationStatusMutation.d.ts +24 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRecommendationStatusMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +112 -0
- package/dist/chaos-manager/src/services/index.js +26 -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/ChaosExecutionNodesChaosExecutionNode.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts +1 -1
- 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/DatabaseAgentConfiguration.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceCollection.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseNetworkMapEntity.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseNetworkMapEntityKubernetesInfo.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseServiceCollection.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction.d.ts +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/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationNode.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationNode.js +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendation.d.ts +26 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendation.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationTarget.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationTarget.js +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationWorkload.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationWorkload.js +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/InputsetInputSet.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/NetworkmapGetTargetNetworkMapResponse.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/NetworkmapTargetServiceDetails.d.ts +9 -3
- package/dist/chaos-manager/src/services/schemas/NetworkmapTargetServiceDetails.js +0 -3
- package/dist/chaos-manager/src/services/schemas/RecommendationEc2Instance.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationEc2Instance.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationFaultFilters.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationFaultFilters.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationFixes.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationFixes.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationProbeFilters.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationProbeFilters.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationCategory.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationCategory.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationSource.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationSource.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationStatus.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationStatus.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationTargetType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationTargetType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationRecommendationType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationSuggestions.d.ts +13 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationSuggestions.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsCreateActionResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsCreateActionResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsEc2Instance.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsEc2Instance.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsFault.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsFault.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsFaultFilters.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsFaultFilters.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsFilters.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsFilters.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsGetRecommendationsStatusRequest.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsGetRecommendationsStatusRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsGetRecommendationsStatusResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsGetRecommendationsStatusResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsIdentifiers.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsIdentifiers.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsInActiveEvent.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsInActiveEvent.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsInsertRecommendationsRequest.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsInsertRecommendationsRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsListRecommendationsRequest.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsListRecommendationsRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsListRecommendationsResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsListRecommendationsResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsLlmResponse.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsLlmResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsNode.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsNode.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsProbeFilters.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsProbeFilters.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsProbeFix.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsProbeFix.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsRunActionResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsRunActionResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsTarget.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsTarget.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsWorkload.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RecommendationsWorkload.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
- 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/V2OnboardingV2Onboarding.d.ts +2 -2
- package/package.json +2 -2
|
@@ -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 insertRecommendations(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internal/recommendations/insert`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Insert the recommendation details
|
|
11
|
+
*/
|
|
12
|
+
export function useInsertRecommendationsMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => insertRecommendations(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -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,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RecommendationsListRecommendationsResponse } from '../schemas/RecommendationsListRecommendationsResponse';
|
|
3
|
+
import type { RecommendationsListRecommendationsRequest } from '../schemas/RecommendationsListRecommendationsRequest';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListRecommendationsQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
organizationIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type ListRecommendationsRequestBody = RecommendationsListRecommendationsRequest;
|
|
11
|
+
export type ListRecommendationsOkResponse = RecommendationsListRecommendationsResponse;
|
|
12
|
+
export type ListRecommendationsErrorResponse = unknown;
|
|
13
|
+
export interface ListRecommendationsProps extends Omit<FetcherOptions<ListRecommendationsQueryQueryParams, ListRecommendationsRequestBody>, 'url'> {
|
|
14
|
+
queryParams: ListRecommendationsQueryQueryParams;
|
|
15
|
+
body: ListRecommendationsRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export interface ListRecommendationsResponseContainer {
|
|
18
|
+
body: ListRecommendationsOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function listRecommendations(props: ListRecommendationsProps): Promise<ListRecommendationsResponseContainer>;
|
|
22
|
+
/**
|
|
23
|
+
* List recommendations based on the filters
|
|
24
|
+
*/
|
|
25
|
+
export declare function useListRecommendationsQuery(props: ListRecommendationsProps, options?: Omit<UseQueryOptions<ListRecommendationsResponseContainer, ListRecommendationsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRecommendationsResponseContainer, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listRecommendations(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/recommendations`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List recommendations based on the filters
|
|
11
|
+
*/
|
|
12
|
+
export function useListRecommendationsQuery(props, options) {
|
|
13
|
+
return useQuery(['listRecommendations', props.queryParams, props.body], ({ signal }) => listRecommendations(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,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RecommendationsRunActionResponse } from '../schemas/RecommendationsRunActionResponse';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface RunRecommendationMutationQueryParams {
|
|
5
|
+
accountIdentifier: string;
|
|
6
|
+
organizationIdentifier: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
recommendationID: string;
|
|
9
|
+
}
|
|
10
|
+
export type RunRecommendationOkResponse = RecommendationsRunActionResponse;
|
|
11
|
+
export type RunRecommendationErrorResponse = unknown;
|
|
12
|
+
export interface RunRecommendationProps extends Omit<FetcherOptions<RunRecommendationMutationQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: RunRecommendationMutationQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export interface RunRecommendationResponseContainer {
|
|
16
|
+
body: RunRecommendationOkResponse;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
}
|
|
19
|
+
export declare function runRecommendation(props: RunRecommendationProps): Promise<RunRecommendationResponseContainer>;
|
|
20
|
+
export type RunRecommendationMutationProps<T extends keyof RunRecommendationProps> = Omit<RunRecommendationProps, T> & Partial<Pick<RunRecommendationProps, T>>;
|
|
21
|
+
/**
|
|
22
|
+
* Run the recommended experiment
|
|
23
|
+
*/
|
|
24
|
+
export declare function useRunRecommendationMutation<T extends keyof RunRecommendationProps>(props: Pick<Partial<RunRecommendationProps>, T>, options?: Omit<UseMutationOptions<RunRecommendationResponseContainer, RunRecommendationErrorResponse, RunRecommendationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RunRecommendationResponseContainer, unknown, RunRecommendationMutationProps<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 runRecommendation(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/recommendations/action/run`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Run the recommended experiment
|
|
11
|
+
*/
|
|
12
|
+
export function useRunRecommendationMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => runRecommendation(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -11,6 +11,7 @@ export interface StopChaosV2ExperimentMutationQueryParams {
|
|
|
11
11
|
projectIdentifier: string;
|
|
12
12
|
experimentRunId: string;
|
|
13
13
|
notifyId: string;
|
|
14
|
+
force?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export type StopChaosV2ExperimentOkResponse = TypesStopChaosV2ExperimentResponse;
|
|
16
17
|
export type StopChaosV2ExperimentErrorResponse = ApiRestError;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { 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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
3
|
+
export interface UpdateRecommendationStatusMutationQueryParams {
|
|
4
|
+
accountIdentifier: string;
|
|
5
|
+
organizationIdentifier: string;
|
|
6
|
+
projectIdentifier: string;
|
|
7
|
+
recommendationID: string;
|
|
8
|
+
status: string;
|
|
9
|
+
}
|
|
10
|
+
export type UpdateRecommendationStatusOkResponse = unknown;
|
|
11
|
+
export type UpdateRecommendationStatusErrorResponse = unknown;
|
|
12
|
+
export interface UpdateRecommendationStatusProps extends Omit<FetcherOptions<UpdateRecommendationStatusMutationQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: UpdateRecommendationStatusMutationQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export interface UpdateRecommendationStatusResponseContainer {
|
|
16
|
+
body: UpdateRecommendationStatusOkResponse;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
}
|
|
19
|
+
export declare function updateRecommendationStatus(props: UpdateRecommendationStatusProps): Promise<UpdateRecommendationStatusResponseContainer>;
|
|
20
|
+
export type UpdateRecommendationStatusMutationProps<T extends keyof UpdateRecommendationStatusProps> = Omit<UpdateRecommendationStatusProps, T> & Partial<Pick<UpdateRecommendationStatusProps, T>>;
|
|
21
|
+
/**
|
|
22
|
+
* Update the recommendation status
|
|
23
|
+
*/
|
|
24
|
+
export declare function useUpdateRecommendationStatusMutation<T extends keyof UpdateRecommendationStatusProps>(props: Pick<Partial<UpdateRecommendationStatusProps>, T>, options?: Omit<UseMutationOptions<UpdateRecommendationStatusResponseContainer, UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatusMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRecommendationStatusResponseContainer, unknown, UpdateRecommendationStatusMutationProps<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 updateRecommendationStatus(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/recommendations/status`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update the recommendation status
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateRecommendationStatusMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateRecommendationStatus(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|