@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,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerPkgActionsAction } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface CreateActionMutationQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
organizationIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type CreateActionRequestBody = GithubComHarnessHceSaasGraphqlServerPkgActionsAction;
|
|
11
|
+
export type CreateActionOkResponse = GithubComHarnessHceSaasGraphqlServerPkgActionsAction;
|
|
12
|
+
export type CreateActionErrorResponse = ApiRestError;
|
|
13
|
+
export interface CreateActionProps extends Omit<FetcherOptions<CreateActionMutationQueryParams, CreateActionRequestBody>, 'url'> {
|
|
14
|
+
queryParams: CreateActionMutationQueryParams;
|
|
15
|
+
body: CreateActionRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateActionResponseContainer {
|
|
18
|
+
body: CreateActionOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function createAction(props: CreateActionProps): Promise<CreateActionResponseContainer>;
|
|
22
|
+
export type CreateActionMutationProps<T extends keyof CreateActionProps> = Omit<CreateActionProps, T> & Partial<Pick<CreateActionProps, T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Create a new action
|
|
25
|
+
*/
|
|
26
|
+
export declare function useCreateActionMutation<T extends keyof CreateActionProps>(props: Pick<Partial<CreateActionProps>, T>, options?: Omit<UseMutationOptions<CreateActionResponseContainer, CreateActionErrorResponse, CreateActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateActionResponseContainer, ApiRestError, CreateActionMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function createAction(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a new action
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateActionMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createAction(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaulttemplateActionTemplate } from '../schemas/ChaosfaulttemplateActionTemplate';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ChaosfaulttemplateActionTemplateRequestBody } from '../requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateActionTemplateMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
organizationIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type CreateActionTemplateRequestBody = ChaosfaulttemplateActionTemplateRequestBody;
|
|
12
|
+
export type CreateActionTemplateOkResponse = ChaosfaulttemplateActionTemplate;
|
|
13
|
+
export type CreateActionTemplateErrorResponse = ApiRestError;
|
|
14
|
+
export interface CreateActionTemplateProps extends Omit<FetcherOptions<CreateActionTemplateMutationQueryParams, CreateActionTemplateRequestBody>, 'url'> {
|
|
15
|
+
queryParams: CreateActionTemplateMutationQueryParams;
|
|
16
|
+
body: CreateActionTemplateRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateActionTemplateResponseContainer {
|
|
19
|
+
body: CreateActionTemplateOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function createActionTemplate(props: CreateActionTemplateProps): Promise<CreateActionTemplateResponseContainer>;
|
|
23
|
+
export type CreateActionTemplateMutationProps<T extends keyof CreateActionTemplateProps> = Omit<CreateActionTemplateProps, T> & Partial<Pick<CreateActionTemplateProps, T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates action templates in a hub based on tag
|
|
26
|
+
*/
|
|
27
|
+
export declare function useCreateActionTemplateMutation<T extends keyof CreateActionTemplateProps>(props: Pick<Partial<CreateActionTemplateProps>, T>, options?: Omit<UseMutationOptions<CreateActionTemplateResponseContainer, CreateActionTemplateErrorResponse, CreateActionTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateActionTemplateResponseContainer, ApiRestError, CreateActionTemplateMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function createActionTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates action templates in a hub based on tag
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateActionTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createActionTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Chaoshubv2GetHubResponse } from '../schemas/Chaoshubv2GetHubResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { Chaoshubv2CreateHubRequest } from '../schemas/Chaoshubv2CreateHubRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateChaosHubMutationPathParams {
|
|
7
|
+
hubIdentity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateChaosHubMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type CreateChaosHubRequestBody = Chaoshubv2CreateHubRequest;
|
|
15
|
+
export type CreateChaosHubOkResponse = Chaoshubv2GetHubResponse;
|
|
16
|
+
export type CreateChaosHubErrorResponse = ApiRestError;
|
|
17
|
+
export interface CreateChaosHubProps extends CreateChaosHubMutationPathParams, Omit<FetcherOptions<CreateChaosHubMutationQueryParams, CreateChaosHubRequestBody>, 'url'> {
|
|
18
|
+
queryParams: CreateChaosHubMutationQueryParams;
|
|
19
|
+
body: CreateChaosHubRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export interface CreateChaosHubResponseContainer {
|
|
22
|
+
body: CreateChaosHubOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function createChaosHub(props: CreateChaosHubProps): Promise<CreateChaosHubResponseContainer>;
|
|
26
|
+
export type CreateChaosHubMutationProps<T extends keyof CreateChaosHubProps> = Omit<CreateChaosHubProps, T> & Partial<Pick<CreateChaosHubProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* Create chaos hub
|
|
29
|
+
*/
|
|
30
|
+
export declare function useCreateChaosHubMutation<T extends keyof CreateChaosHubProps>(props: Pick<Partial<CreateChaosHubProps>, T>, options?: Omit<UseMutationOptions<CreateChaosHubResponseContainer, CreateChaosHubErrorResponse, CreateChaosHubMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChaosHubResponseContainer, ApiRestError, CreateChaosHubMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function createChaosHub(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hubs`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create chaos hub
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateChaosHubMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createChaosHub(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RecommendationsCreateActionResponse } from '../schemas/RecommendationsCreateActionResponse';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface CreateRecommendationMutationQueryParams {
|
|
5
|
+
accountIdentifier: string;
|
|
6
|
+
organizationIdentifier: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
recommendationID: string;
|
|
9
|
+
}
|
|
10
|
+
export type CreateRecommendationOkResponse = RecommendationsCreateActionResponse;
|
|
11
|
+
export type CreateRecommendationErrorResponse = unknown;
|
|
12
|
+
export interface CreateRecommendationProps extends Omit<FetcherOptions<CreateRecommendationMutationQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: CreateRecommendationMutationQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export interface CreateRecommendationResponseContainer {
|
|
16
|
+
body: CreateRecommendationOkResponse;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
}
|
|
19
|
+
export declare function createRecommendation(props: CreateRecommendationProps): Promise<CreateRecommendationResponseContainer>;
|
|
20
|
+
export type CreateRecommendationMutationProps<T extends keyof CreateRecommendationProps> = Omit<CreateRecommendationProps, T> & Partial<Pick<CreateRecommendationProps, T>>;
|
|
21
|
+
/**
|
|
22
|
+
* Create new experiment based on the recommendation
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCreateRecommendationMutation<T extends keyof CreateRecommendationProps>(props: Pick<Partial<CreateRecommendationProps>, T>, options?: Omit<UseMutationOptions<CreateRecommendationResponseContainer, CreateRecommendationErrorResponse, CreateRecommendationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRecommendationResponseContainer, unknown, CreateRecommendationMutationProps<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 createRecommendation(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/recommendations/action/create`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create new experiment based on the recommendation
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateRecommendationMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createRecommendation(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface DeleteActionMutationPathParams {
|
|
5
|
+
actionId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteActionMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
organizationIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type DeleteActionOkResponse = string;
|
|
13
|
+
export type DeleteActionErrorResponse = ApiRestError;
|
|
14
|
+
export interface DeleteActionProps extends DeleteActionMutationPathParams, Omit<FetcherOptions<DeleteActionMutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: DeleteActionMutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteActionResponseContainer {
|
|
18
|
+
body: DeleteActionOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function deleteAction(props: DeleteActionProps): Promise<DeleteActionResponseContainer>;
|
|
22
|
+
export type DeleteActionMutationProps<T extends keyof DeleteActionProps> = Omit<DeleteActionProps, T> & Partial<Pick<DeleteActionProps, T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Delete an action with a provided identifier
|
|
25
|
+
*/
|
|
26
|
+
export declare function useDeleteActionMutation<T extends keyof DeleteActionProps>(props: Pick<Partial<DeleteActionProps>, T>, options?: Omit<UseMutationOptions<DeleteActionResponseContainer, DeleteActionErrorResponse, DeleteActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteActionResponseContainer, ApiRestError, DeleteActionMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function deleteAction(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions/${props.actionId}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete an action with a provided identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteActionMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteAction(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
3
|
+
export interface DeleteRecommendationMutationQueryParams {
|
|
4
|
+
accountIdentifier: string;
|
|
5
|
+
organizationIdentifier: string;
|
|
6
|
+
projectIdentifier: string;
|
|
7
|
+
recommendationID: string;
|
|
8
|
+
}
|
|
9
|
+
export type DeleteRecommendationOkResponse = unknown;
|
|
10
|
+
export type DeleteRecommendationErrorResponse = unknown;
|
|
11
|
+
export interface DeleteRecommendationProps extends Omit<FetcherOptions<DeleteRecommendationMutationQueryParams, unknown>, 'url'> {
|
|
12
|
+
queryParams: DeleteRecommendationMutationQueryParams;
|
|
13
|
+
}
|
|
14
|
+
export interface DeleteRecommendationResponseContainer {
|
|
15
|
+
body: DeleteRecommendationOkResponse;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
}
|
|
18
|
+
export declare function deleteRecommendation(props: DeleteRecommendationProps): Promise<DeleteRecommendationResponseContainer>;
|
|
19
|
+
export type DeleteRecommendationMutationProps<T extends keyof DeleteRecommendationProps> = Omit<DeleteRecommendationProps, T> & Partial<Pick<DeleteRecommendationProps, T>>;
|
|
20
|
+
/**
|
|
21
|
+
* Delete recommendation based on the recommendation id
|
|
22
|
+
*/
|
|
23
|
+
export declare function useDeleteRecommendationMutation<T extends keyof DeleteRecommendationProps>(props: Pick<Partial<DeleteRecommendationProps>, T>, options?: Omit<UseMutationOptions<DeleteRecommendationResponseContainer, DeleteRecommendationErrorResponse, DeleteRecommendationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRecommendationResponseContainer, unknown, DeleteRecommendationMutationProps<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 deleteRecommendation(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/recommendations`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete recommendation based on the recommendation id
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteRecommendationMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteRecommendation(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface GetActionManifestQueryPathParams {
|
|
5
|
+
identity: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetActionManifestQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
organizationIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetActionManifestOkResponse = string;
|
|
13
|
+
export type GetActionManifestErrorResponse = ApiRestError;
|
|
14
|
+
export interface GetActionManifestProps extends GetActionManifestQueryPathParams, Omit<FetcherOptions<GetActionManifestQueryQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: GetActionManifestQueryQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export interface GetActionManifestResponseContainer {
|
|
18
|
+
body: GetActionManifestOkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function getActionManifest(props: GetActionManifestProps): Promise<GetActionManifestResponseContainer>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve Action manifest of a specific action by its ID
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetActionManifestQuery(props: GetActionManifestProps, options?: Omit<UseQueryOptions<GetActionManifestResponseContainer, GetActionManifestErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionManifestResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getActionManifest(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions/manifest/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve Action manifest of a specific action by its ID
|
|
11
|
+
*/
|
|
12
|
+
export function useGetActionManifestQuery(props, options) {
|
|
13
|
+
return useQuery(['getActionManifest', props.identity, props.queryParams], ({ signal }) => getActionManifest(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ActionsActionResponse } from '../schemas/ActionsActionResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetActionQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetActionQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetActionOkResponse = ActionsActionResponse;
|
|
14
|
+
export type GetActionErrorResponse = ApiRestError;
|
|
15
|
+
export interface GetActionProps extends GetActionQueryPathParams, Omit<FetcherOptions<GetActionQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: GetActionQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export interface GetActionResponseContainer {
|
|
19
|
+
body: GetActionOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function getAction(props: GetActionProps): Promise<GetActionResponseContainer>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve details of a specific action by its ID
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetActionQuery(props: GetActionProps, options?: Omit<UseQueryOptions<GetActionResponseContainer, GetActionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getAction(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve details of a specific action by its ID
|
|
11
|
+
*/
|
|
12
|
+
export function useGetActionQuery(props, options) {
|
|
13
|
+
return useQuery(['getAction', props.identity, props.queryParams], ({ signal }) => getAction(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaulttemplateGetActionTemplateResponse } from '../schemas/ChaosfaulttemplateGetActionTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetActionTemplateQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetActionTemplateQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
revision?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetActionTemplateOkResponse = ChaosfaulttemplateGetActionTemplateResponse;
|
|
16
|
+
export type GetActionTemplateErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetActionTemplateProps extends GetActionTemplateQueryPathParams, Omit<FetcherOptions<GetActionTemplateQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetActionTemplateQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetActionTemplateResponseContainer {
|
|
21
|
+
body: GetActionTemplateOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getActionTemplate(props: GetActionTemplateProps): Promise<GetActionTemplateResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the action template in a hub based on action ref
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetActionTemplateQuery(props: GetActionTemplateProps, options?: Omit<UseQueryOptions<GetActionTemplateResponseContainer, GetActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionTemplateResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getActionTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the action template in a hub based on action ref
|
|
11
|
+
*/
|
|
12
|
+
export function useGetActionTemplateQuery(props, options) {
|
|
13
|
+
return useQuery(['getActionTemplate', props.identity, props.queryParams], ({ signal }) => getActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useGetActionTemplateRevisionDifferenceQuery.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaulttemplateListActionTemplateResponse } from '../schemas/ChaosfaulttemplateListActionTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetActionTemplateRevisionDifferenceQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetActionTemplateRevisionDifferenceQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
hubIdentity: string;
|
|
13
|
+
revision: string;
|
|
14
|
+
revisionToCompare: string;
|
|
15
|
+
}
|
|
16
|
+
export type GetActionTemplateRevisionDifferenceOkResponse = ChaosfaulttemplateListActionTemplateResponse;
|
|
17
|
+
export type GetActionTemplateRevisionDifferenceErrorResponse = ApiRestError;
|
|
18
|
+
export interface GetActionTemplateRevisionDifferenceProps extends GetActionTemplateRevisionDifferenceQueryPathParams, Omit<FetcherOptions<GetActionTemplateRevisionDifferenceQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetActionTemplateRevisionDifferenceQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface GetActionTemplateRevisionDifferenceResponseContainer {
|
|
22
|
+
body: GetActionTemplateRevisionDifferenceOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function getActionTemplateRevisionDifference(props: GetActionTemplateRevisionDifferenceProps): Promise<GetActionTemplateRevisionDifferenceResponseContainer>;
|
|
26
|
+
/**
|
|
27
|
+
* Get the difference between 2 revisions of action template in a hub
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetActionTemplateRevisionDifferenceQuery(props: GetActionTemplateRevisionDifferenceProps, options?: Omit<UseQueryOptions<GetActionTemplateRevisionDifferenceResponseContainer, GetActionTemplateRevisionDifferenceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionTemplateRevisionDifferenceResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getActionTemplateRevisionDifference(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}/compare`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the difference between 2 revisions of action template in a hub
|
|
11
|
+
*/
|
|
12
|
+
export function useGetActionTemplateRevisionDifferenceQuery(props, options) {
|
|
13
|
+
return useQuery(['getActionTemplateRevisionDifference', props.identity, props.queryParams], ({ signal }) => getActionTemplateRevisionDifference(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Chaoshubv2GetHubResponse } from '../schemas/Chaoshubv2GetHubResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetChaosHubQueryPathParams {
|
|
6
|
+
hubIdentity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetChaosHubQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
organizationIdentifier: string;
|
|
11
|
+
projectIdentifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetChaosHubOkResponse = Chaoshubv2GetHubResponse;
|
|
14
|
+
export type GetChaosHubErrorResponse = ApiRestError;
|
|
15
|
+
export interface GetChaosHubProps extends GetChaosHubQueryPathParams, Omit<FetcherOptions<GetChaosHubQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: GetChaosHubQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export interface GetChaosHubResponseContainer {
|
|
19
|
+
body: GetChaosHubOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function getChaosHub(props: GetChaosHubProps): Promise<GetChaosHubResponseContainer>;
|
|
23
|
+
/**
|
|
24
|
+
* Get chaos hub based on given filters
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetChaosHubQuery(props: GetChaosHubProps, options?: Omit<UseQueryOptions<GetChaosHubResponseContainer, GetChaosHubErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosHubResponseContainer, ApiRestError>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getChaosHub(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hubs/${props.hubIdentity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get chaos hub based on given filters
|
|
11
|
+
*/
|
|
12
|
+
export function useGetChaosHubQuery(props, options) {
|
|
13
|
+
return useQuery(['getChaosHub', props.hubIdentity, props.queryParams], ({ signal }) => getChaosHub(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendation } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendation';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface GetRecommendationQueryQueryParams {
|
|
5
|
+
accountIdentifier: string;
|
|
6
|
+
organizationIdentifier: string;
|
|
7
|
+
projectIdentifier: string;
|
|
8
|
+
recommendationID: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetRecommendationOkResponse = GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendation;
|
|
11
|
+
export type GetRecommendationErrorResponse = unknown;
|
|
12
|
+
export interface GetRecommendationProps extends Omit<FetcherOptions<GetRecommendationQueryQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: GetRecommendationQueryQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export interface GetRecommendationResponseContainer {
|
|
16
|
+
body: GetRecommendationOkResponse;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
}
|
|
19
|
+
export declare function getRecommendation(props: GetRecommendationProps): Promise<GetRecommendationResponseContainer>;
|
|
20
|
+
/**
|
|
21
|
+
* Get recommendation details based on the recommendation id
|
|
22
|
+
*/
|
|
23
|
+
export declare function useGetRecommendationQuery(props: GetRecommendationProps, options?: Omit<UseQueryOptions<GetRecommendationResponseContainer, GetRecommendationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRecommendationResponseContainer, 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 getRecommendation(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/recommendations`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get recommendation details based on the recommendation id
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRecommendationQuery(props, options) {
|
|
13
|
+
return useQuery(['getRecommendation', props.queryParams], ({ signal }) => getRecommendation(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RecommendationsGetRecommendationsStatusResponse } from '../schemas/RecommendationsGetRecommendationsStatusResponse';
|
|
3
|
+
import type { RecommendationsGetRecommendationsStatusRequest } from '../schemas/RecommendationsGetRecommendationsStatusRequest';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export type GetRecommendationStatusRequestBody = RecommendationsGetRecommendationsStatusRequest;
|
|
6
|
+
export type GetRecommendationStatusOkResponse = RecommendationsGetRecommendationsStatusResponse;
|
|
7
|
+
export type GetRecommendationStatusErrorResponse = unknown;
|
|
8
|
+
export interface GetRecommendationStatusProps extends Omit<FetcherOptions<unknown, GetRecommendationStatusRequestBody>, 'url'> {
|
|
9
|
+
body: GetRecommendationStatusRequestBody;
|
|
10
|
+
}
|
|
11
|
+
export interface GetRecommendationStatusResponseContainer {
|
|
12
|
+
body: GetRecommendationStatusOkResponse;
|
|
13
|
+
headers: Headers;
|
|
14
|
+
}
|
|
15
|
+
export declare function getRecommendationStatus(props: GetRecommendationStatusProps): Promise<GetRecommendationStatusResponseContainer>;
|
|
16
|
+
export type GetRecommendationStatusMutationProps<T extends keyof GetRecommendationStatusProps> = Omit<GetRecommendationStatusProps, T> & Partial<Pick<GetRecommendationStatusProps, T>>;
|
|
17
|
+
/**
|
|
18
|
+
* get the recommendation status
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetRecommendationStatusMutation<T extends keyof GetRecommendationStatusProps>(props: Pick<Partial<GetRecommendationStatusProps>, T>, options?: Omit<UseMutationOptions<GetRecommendationStatusResponseContainer, GetRecommendationStatusErrorResponse, GetRecommendationStatusMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetRecommendationStatusResponseContainer, unknown, GetRecommendationStatusMutationProps<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 getRecommendationStatus(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internal/recommendations/status`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* get the recommendation status
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRecommendationStatusMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => getRecommendationStatus(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { ActionsImportActionTemplateRequest } from '../schemas/ActionsImportActionTemplateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface ImportActionMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
organizationIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type ImportActionRequestBody = ActionsImportActionTemplateRequest;
|
|
12
|
+
export type ImportActionOkResponse = GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction;
|
|
13
|
+
export type ImportActionErrorResponse = ApiRestError;
|
|
14
|
+
export interface ImportActionProps extends Omit<FetcherOptions<ImportActionMutationQueryParams, ImportActionRequestBody>, 'url'> {
|
|
15
|
+
queryParams: ImportActionMutationQueryParams;
|
|
16
|
+
body: ImportActionRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export interface ImportActionResponseContainer {
|
|
19
|
+
body: ImportActionOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function importAction(props: ImportActionProps): Promise<ImportActionResponseContainer>;
|
|
23
|
+
export type ImportActionMutationProps<T extends keyof ImportActionProps> = Omit<ImportActionProps, T> & Partial<Pick<ImportActionProps, T>>;
|
|
24
|
+
/**
|
|
25
|
+
* Import a new action
|
|
26
|
+
*/
|
|
27
|
+
export declare function useImportActionMutation<T extends keyof ImportActionProps>(props: Pick<Partial<ImportActionProps>, T>, options?: Omit<UseMutationOptions<ImportActionResponseContainer, ImportActionErrorResponse, ImportActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportActionResponseContainer, ApiRestError, ImportActionMutationProps<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 importAction(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/actions/import`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Import a new action
|
|
11
|
+
*/
|
|
12
|
+
export function useImportActionMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => importAction(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RecommendationsInsertRecommendationsRequest } from '../schemas/RecommendationsInsertRecommendationsRequest';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export type InsertRecommendationsRequestBody = RecommendationsInsertRecommendationsRequest;
|
|
5
|
+
export type InsertRecommendationsOkResponse = unknown;
|
|
6
|
+
export type InsertRecommendationsErrorResponse = unknown;
|
|
7
|
+
export interface InsertRecommendationsProps extends Omit<FetcherOptions<unknown, InsertRecommendationsRequestBody>, 'url'> {
|
|
8
|
+
body: InsertRecommendationsRequestBody;
|
|
9
|
+
}
|
|
10
|
+
export interface InsertRecommendationsResponseContainer {
|
|
11
|
+
body: InsertRecommendationsOkResponse;
|
|
12
|
+
headers: Headers;
|
|
13
|
+
}
|
|
14
|
+
export declare function insertRecommendations(props: InsertRecommendationsProps): Promise<InsertRecommendationsResponseContainer>;
|
|
15
|
+
export type InsertRecommendationsMutationProps<T extends keyof InsertRecommendationsProps> = Omit<InsertRecommendationsProps, T> & Partial<Pick<InsertRecommendationsProps, T>>;
|
|
16
|
+
/**
|
|
17
|
+
* Insert the recommendation details
|
|
18
|
+
*/
|
|
19
|
+
export declare function useInsertRecommendationsMutation<T extends keyof InsertRecommendationsProps>(props: Pick<Partial<InsertRecommendationsProps>, T>, options?: Omit<UseMutationOptions<InsertRecommendationsResponseContainer, InsertRecommendationsErrorResponse, InsertRecommendationsMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InsertRecommendationsResponseContainer, unknown, InsertRecommendationsMutationProps<T>, unknown>;
|