@harnessio/react-chaos-manager-client 0.2.0 → 0.3.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/useAddNoteMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useAddNoteMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useBulkExperimentDeleteMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useBulkExperimentDeleteMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useBulkExperimentTagAddMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useBulkExperimentTagAddMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useCanRetryExperimentCreationQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useCanRetryExperimentCreationQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentPipelineMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentPipelineMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useCreateGamedayRunV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useCreateGamedayRunV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useCreateGamedayV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useCreateGamedayV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useCreateInputSetMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useCreateInputSetMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useCreateV2OnboardingMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useCreateV2OnboardingMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useDeleteChaosV2ExperimentMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useDeleteChaosV2ExperimentMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useDeleteGamedayV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useDeleteGamedayV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useDeleteInfraV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useDeleteInfraV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useDeleteInputSetMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useDeleteInputSetMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useDeleteTargetNetworkMapMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useDeleteTargetNetworkMapMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useGetAccountServiceDetailsQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetAccountServiceDetailsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetAccountServiceUsageStatsQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetAccountServiceUsageStatsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosDashboardQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetChaosDashboardQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunReportQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunReportQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentRunQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentRunQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentVariablesQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentVariablesQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetConnectorForInfraQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetConnectorForInfraQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentHelperImageVersionQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetExperimentHelperImageVersionQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsOverviewStatsQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsOverviewStatsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionDifferenceQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionDifferenceQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetGamedayRunV2Query.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetGamedayRunV2Query.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetGamedayV2Query.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetGamedayV2Query.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetImageRegistryQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetImageRegistryQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetInfraV2Query.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetInfraV2Query.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetInputSetQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetInputSetQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetNoteQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetNoteQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetOnboardingExperimentsQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetOnboardingExperimentsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetOverallServiceUsageStatsQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetOverallServiceUsageStatsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetResourceUsageQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetResourceUsageQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetServiceResponseQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetServiceResponseQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetServiceUsageReportQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetServiceUsageReportQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetSgpTemplateByGenAiMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useGetSgpTemplateByGenAiMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useGetTargetNetworkMapQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetTargetNetworkMapQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetV2InfrastructureYamlMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useGetV2InfrastructureYamlMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useGetV2OnboardingQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useGetV2OnboardingQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListChaosEnabledInfraV2Query.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListChaosEnabledInfraV2Query.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListChaosV2ExperimentQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListChaosV2ExperimentQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateRevisionsQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListFaultTemplateRevisionsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListGamedayRunV2Query.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListGamedayRunV2Query.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListGamedayV2Query.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListGamedayV2Query.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListHarnessInfraQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListHarnessInfraQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListInfraV2Query.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListInfraV2Query.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListInputSetQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListInputSetQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListK8sInfrasV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useListK8sInfrasV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useListServiceQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListServiceQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListTargetNetworkMapsQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListTargetNetworkMapsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListV2OnboardingQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListV2OnboardingQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListVariablesInFaultTemplateQuery.d.ts +8 -5
- package/dist/chaos-manager/src/services/hooks/useListVariablesInFaultTemplateQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useRegisterInfraV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useRegisterInfraV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useRetryExperimentCreationMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useRetryExperimentCreationMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useRunChaosV2ExperimentMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useRunChaosV2ExperimentMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useSaveChaosV2ExperimentMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useSaveChaosV2ExperimentMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useStopChaosV2ExperimentMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useStopChaosV2ExperimentMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useStopOnboardingExperimentsMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useStopOnboardingExperimentsMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosV2CronExperimentMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosV2CronExperimentMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunPrerequisitesV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunPrerequisitesV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useUpdateInfraV2Mutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useUpdateInfraV2Mutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useUpdateInputSetMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useUpdateInputSetMutation.js +3 -3
- package/dist/chaos-manager/src/services/hooks/useUpdateNoteMutation.d.ts +9 -5
- package/dist/chaos-manager/src/services/hooks/useUpdateNoteMutation.js +3 -3
- package/dist/chaos-manager/src/services/index.d.ts +34 -35
- package/dist/custom-fetcher/index.d.ts +22 -0
- package/dist/custom-fetcher/index.js +51 -0
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/helpers.d.ts +0 -14
- package/dist/chaos-manager/src/services/helpers.js +0 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { V2OnboardingV2OnboardingList } from '../schemas/V2OnboardingV2OnboardingList';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
5
|
export interface ListV2OnboardingQueryQueryParams {
|
|
7
6
|
/**
|
|
8
7
|
* @default 0
|
|
@@ -18,13 +17,17 @@ export interface ListV2OnboardingQueryQueryParams {
|
|
|
18
17
|
projectIdentifier: string;
|
|
19
18
|
search: string;
|
|
20
19
|
}
|
|
21
|
-
export type ListV2OnboardingOkResponse =
|
|
20
|
+
export type ListV2OnboardingOkResponse = V2OnboardingV2OnboardingList;
|
|
22
21
|
export type ListV2OnboardingErrorResponse = ApiRestError;
|
|
23
22
|
export interface ListV2OnboardingProps extends Omit<FetcherOptions<ListV2OnboardingQueryQueryParams, unknown>, 'url'> {
|
|
24
23
|
queryParams: ListV2OnboardingQueryQueryParams;
|
|
25
24
|
}
|
|
26
|
-
export
|
|
25
|
+
export interface ListV2OnboardingResponseContainer {
|
|
26
|
+
body: ListV2OnboardingOkResponse;
|
|
27
|
+
headers: Headers;
|
|
28
|
+
}
|
|
29
|
+
export declare function listV2Onboarding(props: ListV2OnboardingProps): Promise<ListV2OnboardingResponseContainer>;
|
|
27
30
|
/**
|
|
28
31
|
* Get V2 Onboarding
|
|
29
32
|
*/
|
|
30
|
-
export declare function useListV2OnboardingQuery(props: ListV2OnboardingProps, options?: Omit<UseQueryOptions<
|
|
33
|
+
export declare function useListV2OnboardingQuery(props: ListV2OnboardingProps, options?: Omit<UseQueryOptions<ListV2OnboardingResponseContainer, ListV2OnboardingErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListV2OnboardingResponseContainer, ApiRestError>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function listV2Onboarding(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ChaosfaulttemplateFaultTemplateVariables } from '../schemas/ChaosfaulttemplateFaultTemplateVariables';
|
|
3
|
-
import
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
4
|
export interface ListVariablesInFaultTemplateQueryPathParams {
|
|
6
5
|
faultName: string;
|
|
7
6
|
}
|
|
@@ -12,13 +11,17 @@ export interface ListVariablesInFaultTemplateQueryQueryParams {
|
|
|
12
11
|
hubIdentity: string;
|
|
13
12
|
revision: string;
|
|
14
13
|
}
|
|
15
|
-
export type ListVariablesInFaultTemplateOkResponse =
|
|
14
|
+
export type ListVariablesInFaultTemplateOkResponse = ChaosfaulttemplateFaultTemplateVariables;
|
|
16
15
|
export type ListVariablesInFaultTemplateErrorResponse = unknown;
|
|
17
16
|
export interface ListVariablesInFaultTemplateProps extends ListVariablesInFaultTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInFaultTemplateQueryQueryParams, unknown>, 'url'> {
|
|
18
17
|
queryParams: ListVariablesInFaultTemplateQueryQueryParams;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface ListVariablesInFaultTemplateResponseContainer {
|
|
20
|
+
body: ListVariablesInFaultTemplateOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function listVariablesInFaultTemplate(props: ListVariablesInFaultTemplateProps): Promise<ListVariablesInFaultTemplateResponseContainer>;
|
|
21
24
|
/**
|
|
22
25
|
* Get the list of variables in a fault template based on revision
|
|
23
26
|
*/
|
|
24
|
-
export declare function useListVariablesInFaultTemplateQuery(props: ListVariablesInFaultTemplateProps, options?: Omit<UseQueryOptions<
|
|
27
|
+
export declare function useListVariablesInFaultTemplateQuery(props: ListVariablesInFaultTemplateProps, options?: Omit<UseQueryOptions<ListVariablesInFaultTemplateResponseContainer, ListVariablesInFaultTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVariablesInFaultTemplateResponseContainer, unknown>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function listVariablesInFaultTemplate(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/templates/faults/${props.faultName}/variables`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { V2OnboardingConfirmDiscoveryResponse } from '../schemas/V2OnboardingConfirmDiscoveryResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
5
|
export interface OnboardingConfirmDiscoveryMutationPathParams {
|
|
7
6
|
onboardingid: string;
|
|
8
7
|
}
|
|
@@ -12,13 +11,18 @@ export interface OnboardingConfirmDiscoveryMutationQueryParams {
|
|
|
12
11
|
organizationIdentifier: string;
|
|
13
12
|
projectIdentifier: string;
|
|
14
13
|
}
|
|
15
|
-
export type OnboardingConfirmDiscoveryOkResponse =
|
|
14
|
+
export type OnboardingConfirmDiscoveryOkResponse = V2OnboardingConfirmDiscoveryResponse;
|
|
16
15
|
export type OnboardingConfirmDiscoveryErrorResponse = ApiRestError;
|
|
17
16
|
export interface OnboardingConfirmDiscoveryProps extends OnboardingConfirmDiscoveryMutationPathParams, Omit<FetcherOptions<OnboardingConfirmDiscoveryMutationQueryParams, unknown>, 'url'> {
|
|
18
17
|
queryParams: OnboardingConfirmDiscoveryMutationQueryParams;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface OnboardingConfirmDiscoveryResponseContainer {
|
|
20
|
+
body: OnboardingConfirmDiscoveryOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function onboardingConfirmDiscovery(props: OnboardingConfirmDiscoveryProps): Promise<OnboardingConfirmDiscoveryResponseContainer>;
|
|
24
|
+
export type OnboardingConfirmDiscoveryMutationProps<T extends keyof OnboardingConfirmDiscoveryProps> = Omit<OnboardingConfirmDiscoveryProps, T> & Partial<Pick<OnboardingConfirmDiscoveryProps, T>>;
|
|
21
25
|
/**
|
|
22
26
|
* confirm discovery step in manual onboarding
|
|
23
27
|
*/
|
|
24
|
-
export declare function useOnboardingConfirmDiscoveryMutation(options?: Omit<UseMutationOptions<
|
|
28
|
+
export declare function useOnboardingConfirmDiscoveryMutation<T extends keyof OnboardingConfirmDiscoveryProps>(props: Pick<Partial<OnboardingConfirmDiscoveryProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmDiscoveryResponseContainer, OnboardingConfirmDiscoveryErrorResponse, OnboardingConfirmDiscoveryMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmDiscoveryResponseContainer, ApiRestError, OnboardingConfirmDiscoveryMutationProps<T>, unknown>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function onboardingConfirmDiscovery(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-discovery/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* confirm discovery step in manual onboarding
|
|
11
11
|
*/
|
|
12
|
-
export function useOnboardingConfirmDiscoveryMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => onboardingConfirmDiscovery(mutateProps), options);
|
|
12
|
+
export function useOnboardingConfirmDiscoveryMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => onboardingConfirmDiscovery(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { V2OnboardingConfirmExperimentCreationResponse } from '../schemas/V2OnboardingConfirmExperimentCreationResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { V2OnboardingConfirmExperimentCreationRequest } from '../schemas/V2OnboardingConfirmExperimentCreationRequest';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface OnboardingConfirmExperimentCreationMutationPathParams {
|
|
8
7
|
onboardingid: string;
|
|
9
8
|
}
|
|
@@ -14,14 +13,19 @@ export interface OnboardingConfirmExperimentCreationMutationQueryParams {
|
|
|
14
13
|
projectIdentifier: string;
|
|
15
14
|
}
|
|
16
15
|
export type OnboardingConfirmExperimentCreationRequestBody = V2OnboardingConfirmExperimentCreationRequest;
|
|
17
|
-
export type OnboardingConfirmExperimentCreationOkResponse =
|
|
16
|
+
export type OnboardingConfirmExperimentCreationOkResponse = V2OnboardingConfirmExperimentCreationResponse;
|
|
18
17
|
export type OnboardingConfirmExperimentCreationErrorResponse = ApiRestError;
|
|
19
18
|
export interface OnboardingConfirmExperimentCreationProps extends OnboardingConfirmExperimentCreationMutationPathParams, Omit<FetcherOptions<OnboardingConfirmExperimentCreationMutationQueryParams, OnboardingConfirmExperimentCreationRequestBody>, 'url'> {
|
|
20
19
|
queryParams: OnboardingConfirmExperimentCreationMutationQueryParams;
|
|
21
20
|
body: OnboardingConfirmExperimentCreationRequestBody;
|
|
22
21
|
}
|
|
23
|
-
export
|
|
22
|
+
export interface OnboardingConfirmExperimentCreationResponseContainer {
|
|
23
|
+
body: OnboardingConfirmExperimentCreationOkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function onboardingConfirmExperimentCreation(props: OnboardingConfirmExperimentCreationProps): Promise<OnboardingConfirmExperimentCreationResponseContainer>;
|
|
27
|
+
export type OnboardingConfirmExperimentCreationMutationProps<T extends keyof OnboardingConfirmExperimentCreationProps> = Omit<OnboardingConfirmExperimentCreationProps, T> & Partial<Pick<OnboardingConfirmExperimentCreationProps, T>>;
|
|
24
28
|
/**
|
|
25
29
|
* confirm experiment creation step in manual onboarding
|
|
26
30
|
*/
|
|
27
|
-
export declare function useOnboardingConfirmExperimentCreationMutation(options?: Omit<UseMutationOptions<
|
|
31
|
+
export declare function useOnboardingConfirmExperimentCreationMutation<T extends keyof OnboardingConfirmExperimentCreationProps>(props: Pick<Partial<OnboardingConfirmExperimentCreationProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmExperimentCreationResponseContainer, OnboardingConfirmExperimentCreationErrorResponse, OnboardingConfirmExperimentCreationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmExperimentCreationResponseContainer, ApiRestError, OnboardingConfirmExperimentCreationMutationProps<T>, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function onboardingConfirmExperimentCreation(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-experiment-creation/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* confirm experiment creation step in manual onboarding
|
|
11
11
|
*/
|
|
12
|
-
export function useOnboardingConfirmExperimentCreationMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => onboardingConfirmExperimentCreation(mutateProps), options);
|
|
12
|
+
export function useOnboardingConfirmExperimentCreationMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => onboardingConfirmExperimentCreation(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { V2OnboardingConfirmExperimentRunResponse } from '../schemas/V2OnboardingConfirmExperimentRunResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
5
|
export interface OnboardingConfirmExperimentRunMutationPathParams {
|
|
7
6
|
onboardingid: string;
|
|
8
7
|
}
|
|
@@ -12,13 +11,18 @@ export interface OnboardingConfirmExperimentRunMutationQueryParams {
|
|
|
12
11
|
organizationIdentifier: string;
|
|
13
12
|
projectIdentifier: string;
|
|
14
13
|
}
|
|
15
|
-
export type OnboardingConfirmExperimentRunOkResponse =
|
|
14
|
+
export type OnboardingConfirmExperimentRunOkResponse = V2OnboardingConfirmExperimentRunResponse;
|
|
16
15
|
export type OnboardingConfirmExperimentRunErrorResponse = ApiRestError;
|
|
17
16
|
export interface OnboardingConfirmExperimentRunProps extends OnboardingConfirmExperimentRunMutationPathParams, Omit<FetcherOptions<OnboardingConfirmExperimentRunMutationQueryParams, unknown>, 'url'> {
|
|
18
17
|
queryParams: OnboardingConfirmExperimentRunMutationQueryParams;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface OnboardingConfirmExperimentRunResponseContainer {
|
|
20
|
+
body: OnboardingConfirmExperimentRunOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function onboardingConfirmExperimentRun(props: OnboardingConfirmExperimentRunProps): Promise<OnboardingConfirmExperimentRunResponseContainer>;
|
|
24
|
+
export type OnboardingConfirmExperimentRunMutationProps<T extends keyof OnboardingConfirmExperimentRunProps> = Omit<OnboardingConfirmExperimentRunProps, T> & Partial<Pick<OnboardingConfirmExperimentRunProps, T>>;
|
|
21
25
|
/**
|
|
22
26
|
* confirm experiment run step in manual onboarding
|
|
23
27
|
*/
|
|
24
|
-
export declare function useOnboardingConfirmExperimentRunMutation(options?: Omit<UseMutationOptions<
|
|
28
|
+
export declare function useOnboardingConfirmExperimentRunMutation<T extends keyof OnboardingConfirmExperimentRunProps>(props: Pick<Partial<OnboardingConfirmExperimentRunProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmExperimentRunResponseContainer, OnboardingConfirmExperimentRunErrorResponse, OnboardingConfirmExperimentRunMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmExperimentRunResponseContainer, ApiRestError, OnboardingConfirmExperimentRunMutationProps<T>, unknown>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function onboardingConfirmExperimentRun(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-experiment-run/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* confirm experiment run step in manual onboarding
|
|
11
11
|
*/
|
|
12
|
-
export function useOnboardingConfirmExperimentRunMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => onboardingConfirmExperimentRun(mutateProps), options);
|
|
12
|
+
export function useOnboardingConfirmExperimentRunMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => onboardingConfirmExperimentRun(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
|
@@ -2,8 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { V2OnboardingConfirmNetworkMapResponse } from '../schemas/V2OnboardingConfirmNetworkMapResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { V2OnboardingConfirmNetworkMapRequest } from '../schemas/V2OnboardingConfirmNetworkMapRequest';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface OnboardingConfirmNetworkMapMutationPathParams {
|
|
8
7
|
onboardingid: string;
|
|
9
8
|
}
|
|
@@ -14,14 +13,19 @@ export interface OnboardingConfirmNetworkMapMutationQueryParams {
|
|
|
14
13
|
projectIdentifier: string;
|
|
15
14
|
}
|
|
16
15
|
export type OnboardingConfirmNetworkMapRequestBody = V2OnboardingConfirmNetworkMapRequest;
|
|
17
|
-
export type OnboardingConfirmNetworkMapOkResponse =
|
|
16
|
+
export type OnboardingConfirmNetworkMapOkResponse = V2OnboardingConfirmNetworkMapResponse;
|
|
18
17
|
export type OnboardingConfirmNetworkMapErrorResponse = ApiRestError;
|
|
19
18
|
export interface OnboardingConfirmNetworkMapProps extends OnboardingConfirmNetworkMapMutationPathParams, Omit<FetcherOptions<OnboardingConfirmNetworkMapMutationQueryParams, OnboardingConfirmNetworkMapRequestBody>, 'url'> {
|
|
20
19
|
queryParams: OnboardingConfirmNetworkMapMutationQueryParams;
|
|
21
20
|
body: OnboardingConfirmNetworkMapRequestBody;
|
|
22
21
|
}
|
|
23
|
-
export
|
|
22
|
+
export interface OnboardingConfirmNetworkMapResponseContainer {
|
|
23
|
+
body: OnboardingConfirmNetworkMapOkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function onboardingConfirmNetworkMap(props: OnboardingConfirmNetworkMapProps): Promise<OnboardingConfirmNetworkMapResponseContainer>;
|
|
27
|
+
export type OnboardingConfirmNetworkMapMutationProps<T extends keyof OnboardingConfirmNetworkMapProps> = Omit<OnboardingConfirmNetworkMapProps, T> & Partial<Pick<OnboardingConfirmNetworkMapProps, T>>;
|
|
24
28
|
/**
|
|
25
29
|
* confirm network map creation step in manual onboarding
|
|
26
30
|
*/
|
|
27
|
-
export declare function useOnboardingConfirmNetworkMapMutation(options?: Omit<UseMutationOptions<
|
|
31
|
+
export declare function useOnboardingConfirmNetworkMapMutation<T extends keyof OnboardingConfirmNetworkMapProps>(props: Pick<Partial<OnboardingConfirmNetworkMapProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmNetworkMapResponseContainer, OnboardingConfirmNetworkMapErrorResponse, OnboardingConfirmNetworkMapMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmNetworkMapResponseContainer, ApiRestError, OnboardingConfirmNetworkMapMutationProps<T>, unknown>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function onboardingConfirmNetworkMap(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-networkmap/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* confirm network map creation step in manual onboarding
|
|
11
11
|
*/
|
|
12
|
-
export function useOnboardingConfirmNetworkMapMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => onboardingConfirmNetworkMap(mutateProps), options);
|
|
12
|
+
export function useOnboardingConfirmNetworkMapMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => onboardingConfirmNetworkMap(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
|
@@ -2,8 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { InfraV2RegisterInfrastructureV2Response } from '../schemas/InfraV2RegisterInfrastructureV2Response';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { InfraV2RegisterInfrastructureV2Request } from '../schemas/InfraV2RegisterInfrastructureV2Request';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface RegisterInfraV2MutationQueryParams {
|
|
8
7
|
correlationID?: string;
|
|
9
8
|
accountIdentifier: string;
|
|
@@ -11,14 +10,19 @@ export interface RegisterInfraV2MutationQueryParams {
|
|
|
11
10
|
projectIdentifier: string;
|
|
12
11
|
}
|
|
13
12
|
export type RegisterInfraV2RequestBody = InfraV2RegisterInfrastructureV2Request;
|
|
14
|
-
export type RegisterInfraV2OkResponse =
|
|
13
|
+
export type RegisterInfraV2OkResponse = InfraV2RegisterInfrastructureV2Response;
|
|
15
14
|
export type RegisterInfraV2ErrorResponse = ApiRestError;
|
|
16
15
|
export interface RegisterInfraV2Props extends Omit<FetcherOptions<RegisterInfraV2MutationQueryParams, RegisterInfraV2RequestBody>, 'url'> {
|
|
17
16
|
queryParams: RegisterInfraV2MutationQueryParams;
|
|
18
17
|
body: RegisterInfraV2RequestBody;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface RegisterInfraV2ResponseContainer {
|
|
20
|
+
body: RegisterInfraV2OkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function registerInfraV2(props: RegisterInfraV2Props): Promise<RegisterInfraV2ResponseContainer>;
|
|
24
|
+
export type RegisterInfraV2MutationProps<T extends keyof RegisterInfraV2Props> = Omit<RegisterInfraV2Props, T> & Partial<Pick<RegisterInfraV2Props, T>>;
|
|
21
25
|
/**
|
|
22
26
|
* Register a new v2 infra
|
|
23
27
|
*/
|
|
24
|
-
export declare function useRegisterInfraV2Mutation(options?: Omit<UseMutationOptions<
|
|
28
|
+
export declare function useRegisterInfraV2Mutation<T extends keyof RegisterInfraV2Props>(props: Pick<Partial<RegisterInfraV2Props>, T>, options?: Omit<UseMutationOptions<RegisterInfraV2ResponseContainer, RegisterInfraV2ErrorResponse, RegisterInfraV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RegisterInfraV2ResponseContainer, ApiRestError, RegisterInfraV2MutationProps<T>, unknown>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function registerInfraV2(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/infrastructure`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Register a new v2 infra
|
|
11
11
|
*/
|
|
12
|
-
export function useRegisterInfraV2Mutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => registerInfraV2(mutateProps), options);
|
|
12
|
+
export function useRegisterInfraV2Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => registerInfraV2(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
|
@@ -2,8 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { NetworkmapRetryExperimentCreationResponse } from '../schemas/NetworkmapRetryExperimentCreationResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { NetworkmapRetryExperimentCreationRequest } from '../schemas/NetworkmapRetryExperimentCreationRequest';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface RetryExperimentCreationMutationPathParams {
|
|
8
7
|
applicationmapid: string;
|
|
9
8
|
}
|
|
@@ -15,14 +14,19 @@ export interface RetryExperimentCreationMutationQueryParams {
|
|
|
15
14
|
infraId: string;
|
|
16
15
|
}
|
|
17
16
|
export type RetryExperimentCreationRequestBody = NetworkmapRetryExperimentCreationRequest;
|
|
18
|
-
export type RetryExperimentCreationOkResponse =
|
|
17
|
+
export type RetryExperimentCreationOkResponse = NetworkmapRetryExperimentCreationResponse;
|
|
19
18
|
export type RetryExperimentCreationErrorResponse = ApiRestError;
|
|
20
19
|
export interface RetryExperimentCreationProps extends RetryExperimentCreationMutationPathParams, Omit<FetcherOptions<RetryExperimentCreationMutationQueryParams, RetryExperimentCreationRequestBody>, 'url'> {
|
|
21
20
|
queryParams: RetryExperimentCreationMutationQueryParams;
|
|
22
21
|
body: RetryExperimentCreationRequestBody;
|
|
23
22
|
}
|
|
24
|
-
export
|
|
23
|
+
export interface RetryExperimentCreationResponseContainer {
|
|
24
|
+
body: RetryExperimentCreationOkResponse;
|
|
25
|
+
headers: Headers;
|
|
26
|
+
}
|
|
27
|
+
export declare function retryExperimentCreation(props: RetryExperimentCreationProps): Promise<RetryExperimentCreationResponseContainer>;
|
|
28
|
+
export type RetryExperimentCreationMutationProps<T extends keyof RetryExperimentCreationProps> = Omit<RetryExperimentCreationProps, T> & Partial<Pick<RetryExperimentCreationProps, T>>;
|
|
25
29
|
/**
|
|
26
30
|
* retry chaos experiment creation for the given target network map
|
|
27
31
|
*/
|
|
28
|
-
export declare function useRetryExperimentCreationMutation(options?: Omit<UseMutationOptions<
|
|
32
|
+
export declare function useRetryExperimentCreationMutation<T extends keyof RetryExperimentCreationProps>(props: Pick<Partial<RetryExperimentCreationProps>, T>, options?: Omit<UseMutationOptions<RetryExperimentCreationResponseContainer, RetryExperimentCreationErrorResponse, RetryExperimentCreationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RetryExperimentCreationResponseContainer, ApiRestError, RetryExperimentCreationMutationProps<T>, unknown>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function retryExperimentCreation(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/applicationmaps/${props.applicationmapid}/retry`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* retry chaos experiment creation for the given target network map
|
|
11
11
|
*/
|
|
12
|
-
export function useRetryExperimentCreationMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => retryExperimentCreation(mutateProps), options);
|
|
12
|
+
export function useRetryExperimentCreationMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => retryExperimentCreation(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
|
@@ -2,8 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ModelReRunChaosWorkflowResponse } from '../schemas/ModelReRunChaosWorkflowResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { TypesExperimentRunRequest } from '../schemas/TypesExperimentRunRequest';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface RunChaosV2ExperimentMutationPathParams {
|
|
8
7
|
experimentId: string;
|
|
9
8
|
}
|
|
@@ -14,14 +13,19 @@ export interface RunChaosV2ExperimentMutationQueryParams {
|
|
|
14
13
|
isOnboardingRun: boolean;
|
|
15
14
|
}
|
|
16
15
|
export type RunChaosV2ExperimentRequestBody = TypesExperimentRunRequest;
|
|
17
|
-
export type RunChaosV2ExperimentOkResponse =
|
|
16
|
+
export type RunChaosV2ExperimentOkResponse = ModelReRunChaosWorkflowResponse;
|
|
18
17
|
export type RunChaosV2ExperimentErrorResponse = ApiRestError;
|
|
19
18
|
export interface RunChaosV2ExperimentProps extends RunChaosV2ExperimentMutationPathParams, Omit<FetcherOptions<RunChaosV2ExperimentMutationQueryParams, RunChaosV2ExperimentRequestBody>, 'url'> {
|
|
20
19
|
queryParams: RunChaosV2ExperimentMutationQueryParams;
|
|
21
20
|
body: RunChaosV2ExperimentRequestBody;
|
|
22
21
|
}
|
|
23
|
-
export
|
|
22
|
+
export interface RunChaosV2ExperimentResponseContainer {
|
|
23
|
+
body: RunChaosV2ExperimentOkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function runChaosV2Experiment(props: RunChaosV2ExperimentProps): Promise<RunChaosV2ExperimentResponseContainer>;
|
|
27
|
+
export type RunChaosV2ExperimentMutationProps<T extends keyof RunChaosV2ExperimentProps> = Omit<RunChaosV2ExperimentProps, T> & Partial<Pick<RunChaosV2ExperimentProps, T>>;
|
|
24
28
|
/**
|
|
25
29
|
* Run a chaos v2 experiment
|
|
26
30
|
*/
|
|
27
|
-
export declare function useRunChaosV2ExperimentMutation(options?: Omit<UseMutationOptions<
|
|
31
|
+
export declare function useRunChaosV2ExperimentMutation<T extends keyof RunChaosV2ExperimentProps>(props: Pick<Partial<RunChaosV2ExperimentProps>, T>, options?: Omit<UseMutationOptions<RunChaosV2ExperimentResponseContainer, RunChaosV2ExperimentErrorResponse, RunChaosV2ExperimentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RunChaosV2ExperimentResponseContainer, ApiRestError, RunChaosV2ExperimentMutationProps<T>, unknown>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function runChaosV2Experiment(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/experiments/${props.experimentId}/run`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Run a chaos v2 experiment
|
|
11
11
|
*/
|
|
12
|
-
export function useRunChaosV2ExperimentMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => runChaosV2Experiment(mutateProps), options);
|
|
12
|
+
export function useRunChaosV2ExperimentMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => runChaosV2Experiment(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
|
@@ -2,22 +2,26 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { TypesExperimentCreationResponse } from '../schemas/TypesExperimentCreationResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { TypesExperimentCreationRequest } from '../schemas/TypesExperimentCreationRequest';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface SaveChaosV2ExperimentMutationQueryParams {
|
|
8
7
|
accountIdentifier: string;
|
|
9
8
|
organizationIdentifier: string;
|
|
10
9
|
projectIdentifier: string;
|
|
11
10
|
}
|
|
12
11
|
export type SaveChaosV2ExperimentRequestBody = TypesExperimentCreationRequest;
|
|
13
|
-
export type SaveChaosV2ExperimentOkResponse =
|
|
12
|
+
export type SaveChaosV2ExperimentOkResponse = TypesExperimentCreationResponse;
|
|
14
13
|
export type SaveChaosV2ExperimentErrorResponse = ApiRestError;
|
|
15
14
|
export interface SaveChaosV2ExperimentProps extends Omit<FetcherOptions<SaveChaosV2ExperimentMutationQueryParams, SaveChaosV2ExperimentRequestBody>, 'url'> {
|
|
16
15
|
queryParams: SaveChaosV2ExperimentMutationQueryParams;
|
|
17
16
|
body: SaveChaosV2ExperimentRequestBody;
|
|
18
17
|
}
|
|
19
|
-
export
|
|
18
|
+
export interface SaveChaosV2ExperimentResponseContainer {
|
|
19
|
+
body: SaveChaosV2ExperimentOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function saveChaosV2Experiment(props: SaveChaosV2ExperimentProps): Promise<SaveChaosV2ExperimentResponseContainer>;
|
|
23
|
+
export type SaveChaosV2ExperimentMutationProps<T extends keyof SaveChaosV2ExperimentProps> = Omit<SaveChaosV2ExperimentProps, T> & Partial<Pick<SaveChaosV2ExperimentProps, T>>;
|
|
20
24
|
/**
|
|
21
25
|
* Save a chaos v2 experiment
|
|
22
26
|
*/
|
|
23
|
-
export declare function useSaveChaosV2ExperimentMutation(options?: Omit<UseMutationOptions<
|
|
27
|
+
export declare function useSaveChaosV2ExperimentMutation<T extends keyof SaveChaosV2ExperimentProps>(props: Pick<Partial<SaveChaosV2ExperimentProps>, T>, options?: Omit<UseMutationOptions<SaveChaosV2ExperimentResponseContainer, SaveChaosV2ExperimentErrorResponse, SaveChaosV2ExperimentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveChaosV2ExperimentResponseContainer, ApiRestError, SaveChaosV2ExperimentMutationProps<T>, unknown>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function saveChaosV2Experiment(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/experiment`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Save a chaos v2 experiment
|
|
11
11
|
*/
|
|
12
|
-
export function useSaveChaosV2ExperimentMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => saveChaosV2Experiment(mutateProps), options);
|
|
12
|
+
export function useSaveChaosV2ExperimentMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => saveChaosV2Experiment(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { TypesStopChaosV2ExperimentResponse } from '../schemas/TypesStopChaosV2ExperimentResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
5
|
export interface StopChaosV2ExperimentMutationPathParams {
|
|
7
6
|
experimentId: string;
|
|
8
7
|
}
|
|
@@ -13,13 +12,18 @@ export interface StopChaosV2ExperimentMutationQueryParams {
|
|
|
13
12
|
experimentRunId: string;
|
|
14
13
|
notifyId: string;
|
|
15
14
|
}
|
|
16
|
-
export type StopChaosV2ExperimentOkResponse =
|
|
15
|
+
export type StopChaosV2ExperimentOkResponse = TypesStopChaosV2ExperimentResponse;
|
|
17
16
|
export type StopChaosV2ExperimentErrorResponse = ApiRestError;
|
|
18
17
|
export interface StopChaosV2ExperimentProps extends StopChaosV2ExperimentMutationPathParams, Omit<FetcherOptions<StopChaosV2ExperimentMutationQueryParams, unknown>, 'url'> {
|
|
19
18
|
queryParams: StopChaosV2ExperimentMutationQueryParams;
|
|
20
19
|
}
|
|
21
|
-
export
|
|
20
|
+
export interface StopChaosV2ExperimentResponseContainer {
|
|
21
|
+
body: StopChaosV2ExperimentOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function stopChaosV2Experiment(props: StopChaosV2ExperimentProps): Promise<StopChaosV2ExperimentResponseContainer>;
|
|
25
|
+
export type StopChaosV2ExperimentMutationProps<T extends keyof StopChaosV2ExperimentProps> = Omit<StopChaosV2ExperimentProps, T> & Partial<Pick<StopChaosV2ExperimentProps, T>>;
|
|
22
26
|
/**
|
|
23
27
|
* Stop Chaos V2 experiment
|
|
24
28
|
*/
|
|
25
|
-
export declare function useStopChaosV2ExperimentMutation(options?: Omit<UseMutationOptions<
|
|
29
|
+
export declare function useStopChaosV2ExperimentMutation<T extends keyof StopChaosV2ExperimentProps>(props: Pick<Partial<StopChaosV2ExperimentProps>, T>, options?: Omit<UseMutationOptions<StopChaosV2ExperimentResponseContainer, StopChaosV2ExperimentErrorResponse, StopChaosV2ExperimentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<StopChaosV2ExperimentResponseContainer, ApiRestError, StopChaosV2ExperimentMutationProps<T>, unknown>;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function stopChaosV2Experiment(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/experiment/${props.experimentId}/stop`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Stop Chaos V2 experiment
|
|
11
11
|
*/
|
|
12
|
-
export function useStopChaosV2ExperimentMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => stopChaosV2Experiment(mutateProps), options);
|
|
12
|
+
export function useStopChaosV2ExperimentMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => stopChaosV2Experiment(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
-
import
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
4
|
export interface StopOnboardingExperimentsMutationPathParams {
|
|
6
5
|
onboardingid: string;
|
|
7
6
|
}
|
|
@@ -11,13 +10,18 @@ export interface StopOnboardingExperimentsMutationQueryParams {
|
|
|
11
10
|
organizationIdentifier?: string;
|
|
12
11
|
projectIdentifier?: string;
|
|
13
12
|
}
|
|
14
|
-
export type StopOnboardingExperimentsOkResponse =
|
|
13
|
+
export type StopOnboardingExperimentsOkResponse = boolean;
|
|
15
14
|
export type StopOnboardingExperimentsErrorResponse = ApiRestError;
|
|
16
15
|
export interface StopOnboardingExperimentsProps extends StopOnboardingExperimentsMutationPathParams, Omit<FetcherOptions<StopOnboardingExperimentsMutationQueryParams, unknown>, 'url'> {
|
|
17
16
|
queryParams: StopOnboardingExperimentsMutationQueryParams;
|
|
18
17
|
}
|
|
19
|
-
export
|
|
18
|
+
export interface StopOnboardingExperimentsResponseContainer {
|
|
19
|
+
body: StopOnboardingExperimentsOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function stopOnboardingExperiments(props: StopOnboardingExperimentsProps): Promise<StopOnboardingExperimentsResponseContainer>;
|
|
23
|
+
export type StopOnboardingExperimentsMutationProps<T extends keyof StopOnboardingExperimentsProps> = Omit<StopOnboardingExperimentsProps, T> & Partial<Pick<StopOnboardingExperimentsProps, T>>;
|
|
20
24
|
/**
|
|
21
25
|
* Stop V2 Onboarding experiments
|
|
22
26
|
*/
|
|
23
|
-
export declare function useStopOnboardingExperimentsMutation(options?: Omit<UseMutationOptions<
|
|
27
|
+
export declare function useStopOnboardingExperimentsMutation<T extends keyof StopOnboardingExperimentsProps>(props: Pick<Partial<StopOnboardingExperimentsProps>, T>, options?: Omit<UseMutationOptions<StopOnboardingExperimentsResponseContainer, StopOnboardingExperimentsErrorResponse, StopOnboardingExperimentsMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<StopOnboardingExperimentsResponseContainer, ApiRestError, StopOnboardingExperimentsMutationProps<T>, unknown>;
|