@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 { V2OnboardingV2Onboarding } from '../schemas/V2OnboardingV2Onboarding';
|
|
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 GetV2OnboardingQueryPathParams {
|
|
7
6
|
onboardingid: string;
|
|
8
7
|
}
|
|
@@ -12,13 +11,17 @@ export interface GetV2OnboardingQueryQueryParams {
|
|
|
12
11
|
organizationIdentifier: string;
|
|
13
12
|
projectIdentifier: string;
|
|
14
13
|
}
|
|
15
|
-
export type GetV2OnboardingOkResponse =
|
|
14
|
+
export type GetV2OnboardingOkResponse = V2OnboardingV2Onboarding;
|
|
16
15
|
export type GetV2OnboardingErrorResponse = ApiRestError;
|
|
17
16
|
export interface GetV2OnboardingProps extends GetV2OnboardingQueryPathParams, Omit<FetcherOptions<GetV2OnboardingQueryQueryParams, unknown>, 'url'> {
|
|
18
17
|
queryParams: GetV2OnboardingQueryQueryParams;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface GetV2OnboardingResponseContainer {
|
|
20
|
+
body: GetV2OnboardingOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function getV2Onboarding(props: GetV2OnboardingProps): Promise<GetV2OnboardingResponseContainer>;
|
|
21
24
|
/**
|
|
22
25
|
* Get V2 Onboarding
|
|
23
26
|
*/
|
|
24
|
-
export declare function useGetV2OnboardingQuery(props: GetV2OnboardingProps, options?: Omit<UseQueryOptions<
|
|
27
|
+
export declare function useGetV2OnboardingQuery(props: GetV2OnboardingProps, options?: Omit<UseQueryOptions<GetV2OnboardingResponseContainer, GetV2OnboardingErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetV2OnboardingResponseContainer, 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 getV2Onboarding(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding/${props.onboardingid}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -2,8 +2,7 @@ import { UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { InfraV2ListKubernetesInfraV2Response } from '../schemas/InfraV2ListKubernetesInfraV2Response';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { InfraV2ListKubernetesInfraV2RequestRequestBody } from '../requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface ListChaosEnabledInfraV2QueryQueryParams {
|
|
8
7
|
accountIdentifier: string;
|
|
9
8
|
organizationIdentifier: string;
|
|
@@ -20,14 +19,18 @@ export interface ListChaosEnabledInfraV2QueryQueryParams {
|
|
|
20
19
|
search?: string;
|
|
21
20
|
}
|
|
22
21
|
export type ListChaosEnabledInfraV2RequestBody = InfraV2ListKubernetesInfraV2RequestRequestBody;
|
|
23
|
-
export type ListChaosEnabledInfraV2OkResponse =
|
|
22
|
+
export type ListChaosEnabledInfraV2OkResponse = InfraV2ListKubernetesInfraV2Response;
|
|
24
23
|
export type ListChaosEnabledInfraV2ErrorResponse = ApiRestError;
|
|
25
24
|
export interface ListChaosEnabledInfraV2Props extends Omit<FetcherOptions<ListChaosEnabledInfraV2QueryQueryParams, ListChaosEnabledInfraV2RequestBody>, 'url'> {
|
|
26
25
|
queryParams: ListChaosEnabledInfraV2QueryQueryParams;
|
|
27
26
|
body: ListChaosEnabledInfraV2RequestBody;
|
|
28
27
|
}
|
|
29
|
-
export
|
|
28
|
+
export interface ListChaosEnabledInfraV2ResponseContainer {
|
|
29
|
+
body: ListChaosEnabledInfraV2OkResponse;
|
|
30
|
+
headers: Headers;
|
|
31
|
+
}
|
|
32
|
+
export declare function listChaosEnabledInfraV2(props: ListChaosEnabledInfraV2Props): Promise<ListChaosEnabledInfraV2ResponseContainer>;
|
|
30
33
|
/**
|
|
31
34
|
* List a new v2 infra
|
|
32
35
|
*/
|
|
33
|
-
export declare function useListChaosEnabledInfraV2Query(props: ListChaosEnabledInfraV2Props, options?: Omit<UseQueryOptions<
|
|
36
|
+
export declare function useListChaosEnabledInfraV2Query(props: ListChaosEnabledInfraV2Props, options?: Omit<UseQueryOptions<ListChaosEnabledInfraV2ResponseContainer, ListChaosEnabledInfraV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosEnabledInfraV2ResponseContainer, 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 listChaosEnabledInfraV2(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/infrastructures/chaos-enabled`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { TypesListExperimentV2Response } from '../schemas/TypesListExperimentV2Response';
|
|
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 ListChaosV2ExperimentQueryQueryParams {
|
|
7
6
|
accountIdentifier: string;
|
|
8
7
|
organizationIdentifier: string;
|
|
@@ -27,13 +26,17 @@ export interface ListChaosV2ExperimentQueryQueryParams {
|
|
|
27
26
|
targetNetworkMapIds?: string;
|
|
28
27
|
status?: string;
|
|
29
28
|
}
|
|
30
|
-
export type ListChaosV2ExperimentOkResponse =
|
|
29
|
+
export type ListChaosV2ExperimentOkResponse = TypesListExperimentV2Response;
|
|
31
30
|
export type ListChaosV2ExperimentErrorResponse = ApiRestError;
|
|
32
31
|
export interface ListChaosV2ExperimentProps extends Omit<FetcherOptions<ListChaosV2ExperimentQueryQueryParams, unknown>, 'url'> {
|
|
33
32
|
queryParams: ListChaosV2ExperimentQueryQueryParams;
|
|
34
33
|
}
|
|
35
|
-
export
|
|
34
|
+
export interface ListChaosV2ExperimentResponseContainer {
|
|
35
|
+
body: ListChaosV2ExperimentOkResponse;
|
|
36
|
+
headers: Headers;
|
|
37
|
+
}
|
|
38
|
+
export declare function listChaosV2Experiment(props: ListChaosV2ExperimentProps): Promise<ListChaosV2ExperimentResponseContainer>;
|
|
36
39
|
/**
|
|
37
40
|
* Get list of Chaos V2 Experiments
|
|
38
41
|
*/
|
|
39
|
-
export declare function useListChaosV2ExperimentQuery(props: ListChaosV2ExperimentProps, options?: Omit<UseQueryOptions<
|
|
42
|
+
export declare function useListChaosV2ExperimentQuery(props: ListChaosV2ExperimentProps, options?: Omit<UseQueryOptions<ListChaosV2ExperimentResponseContainer, ListChaosV2ExperimentErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosV2ExperimentResponseContainer, 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 listChaosV2Experiment(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/experiment`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { HandlersListExperimentsWithActiveInfrasMinimalNotificationResponse } from '../schemas/HandlersListExperimentsWithActiveInfrasMinimalNotificationResponse';
|
|
3
|
-
import
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
4
|
export interface ListExperimentsWithActiveInfrasMinimalNotificationQueryQueryParams {
|
|
6
5
|
accountIdentifier: string;
|
|
7
6
|
orgIdentifier: string;
|
|
@@ -16,13 +15,17 @@ export interface ListExperimentsWithActiveInfrasMinimalNotificationQueryQueryPar
|
|
|
16
15
|
limit?: number;
|
|
17
16
|
experimentName?: string;
|
|
18
17
|
}
|
|
19
|
-
export type ListExperimentsWithActiveInfrasMinimalNotificationOkResponse =
|
|
18
|
+
export type ListExperimentsWithActiveInfrasMinimalNotificationOkResponse = HandlersListExperimentsWithActiveInfrasMinimalNotificationResponse;
|
|
20
19
|
export type ListExperimentsWithActiveInfrasMinimalNotificationErrorResponse = unknown;
|
|
21
20
|
export interface ListExperimentsWithActiveInfrasMinimalNotificationProps extends Omit<FetcherOptions<ListExperimentsWithActiveInfrasMinimalNotificationQueryQueryParams, unknown>, 'url'> {
|
|
22
21
|
queryParams: ListExperimentsWithActiveInfrasMinimalNotificationQueryQueryParams;
|
|
23
22
|
}
|
|
24
|
-
export
|
|
23
|
+
export interface ListExperimentsWithActiveInfrasMinimalNotificationResponseContainer {
|
|
24
|
+
body: ListExperimentsWithActiveInfrasMinimalNotificationOkResponse;
|
|
25
|
+
headers: Headers;
|
|
26
|
+
}
|
|
27
|
+
export declare function listExperimentsWithActiveInfrasMinimalNotification(props: ListExperimentsWithActiveInfrasMinimalNotificationProps): Promise<ListExperimentsWithActiveInfrasMinimalNotificationResponseContainer>;
|
|
25
28
|
/**
|
|
26
29
|
* List all experiments with active infrastructures in minimal format for notification service
|
|
27
30
|
*/
|
|
28
|
-
export declare function useListExperimentsWithActiveInfrasMinimalNotificationQuery(props: ListExperimentsWithActiveInfrasMinimalNotificationProps, options?: Omit<UseQueryOptions<
|
|
31
|
+
export declare function useListExperimentsWithActiveInfrasMinimalNotificationQuery(props: ListExperimentsWithActiveInfrasMinimalNotificationProps, options?: Omit<UseQueryOptions<ListExperimentsWithActiveInfrasMinimalNotificationResponseContainer, ListExperimentsWithActiveInfrasMinimalNotificationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListExperimentsWithActiveInfrasMinimalNotificationResponseContainer, 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 listExperimentsWithActiveInfrasMinimalNotification(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/notification-experiments`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ChaosfaulttemplateListFaultTemplateResponse } from '../schemas/ChaosfaulttemplateListFaultTemplateResponse';
|
|
3
|
-
import
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
4
|
export interface ListFaultTemplateQueryQueryParams {
|
|
6
5
|
accountIdentifier: string;
|
|
7
6
|
organizationIdentifier: string;
|
|
@@ -16,13 +15,17 @@ export interface ListFaultTemplateQueryQueryParams {
|
|
|
16
15
|
*/
|
|
17
16
|
limit: number;
|
|
18
17
|
}
|
|
19
|
-
export type ListFaultTemplateOkResponse =
|
|
18
|
+
export type ListFaultTemplateOkResponse = ChaosfaulttemplateListFaultTemplateResponse;
|
|
20
19
|
export type ListFaultTemplateErrorResponse = unknown;
|
|
21
20
|
export interface ListFaultTemplateProps extends Omit<FetcherOptions<ListFaultTemplateQueryQueryParams, unknown>, 'url'> {
|
|
22
21
|
queryParams: ListFaultTemplateQueryQueryParams;
|
|
23
22
|
}
|
|
24
|
-
export
|
|
23
|
+
export interface ListFaultTemplateResponseContainer {
|
|
24
|
+
body: ListFaultTemplateOkResponse;
|
|
25
|
+
headers: Headers;
|
|
26
|
+
}
|
|
27
|
+
export declare function listFaultTemplate(props: ListFaultTemplateProps): Promise<ListFaultTemplateResponseContainer>;
|
|
25
28
|
/**
|
|
26
29
|
* Lists all the fault templates in a hub based on tag
|
|
27
30
|
*/
|
|
28
|
-
export declare function useListFaultTemplateQuery(props: ListFaultTemplateProps, options?: Omit<UseQueryOptions<
|
|
31
|
+
export declare function useListFaultTemplateQuery(props: ListFaultTemplateProps, options?: Omit<UseQueryOptions<ListFaultTemplateResponseContainer, ListFaultTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultTemplateResponseContainer, 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 listFaultTemplate(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/templates/faults`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ChaosfaulttemplateListFaultTemplateResponse } from '../schemas/ChaosfaulttemplateListFaultTemplateResponse';
|
|
3
|
-
import
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
4
|
export interface ListFaultTemplateRevisionsQueryPathParams {
|
|
6
5
|
faultName: string;
|
|
7
6
|
}
|
|
@@ -19,13 +18,17 @@ export interface ListFaultTemplateRevisionsQueryQueryParams {
|
|
|
19
18
|
*/
|
|
20
19
|
limit: number;
|
|
21
20
|
}
|
|
22
|
-
export type ListFaultTemplateRevisionsOkResponse =
|
|
21
|
+
export type ListFaultTemplateRevisionsOkResponse = ChaosfaulttemplateListFaultTemplateResponse;
|
|
23
22
|
export type ListFaultTemplateRevisionsErrorResponse = unknown;
|
|
24
23
|
export interface ListFaultTemplateRevisionsProps extends ListFaultTemplateRevisionsQueryPathParams, Omit<FetcherOptions<ListFaultTemplateRevisionsQueryQueryParams, unknown>, 'url'> {
|
|
25
24
|
queryParams: ListFaultTemplateRevisionsQueryQueryParams;
|
|
26
25
|
}
|
|
27
|
-
export
|
|
26
|
+
export interface ListFaultTemplateRevisionsResponseContainer {
|
|
27
|
+
body: ListFaultTemplateRevisionsOkResponse;
|
|
28
|
+
headers: Headers;
|
|
29
|
+
}
|
|
30
|
+
export declare function listFaultTemplateRevisions(props: ListFaultTemplateRevisionsProps): Promise<ListFaultTemplateRevisionsResponseContainer>;
|
|
28
31
|
/**
|
|
29
32
|
* Lists all the revision of a fault template in a hub
|
|
30
33
|
*/
|
|
31
|
-
export declare function useListFaultTemplateRevisionsQuery(props: ListFaultTemplateRevisionsProps, options?: Omit<UseQueryOptions<
|
|
34
|
+
export declare function useListFaultTemplateRevisionsQuery(props: ListFaultTemplateRevisionsProps, options?: Omit<UseQueryOptions<ListFaultTemplateRevisionsResponseContainer, ListFaultTemplateRevisionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultTemplateRevisionsResponseContainer, 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 listFaultTemplateRevisions(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/templates/faults/${props.faultName}/revisions`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { TypesListGamedayRunV2Response } from '../schemas/TypesListGamedayRunV2Response';
|
|
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 ListGamedayRunV2QueryPathParams {
|
|
7
6
|
gamedayId: string;
|
|
8
7
|
}
|
|
@@ -11,13 +10,17 @@ export interface ListGamedayRunV2QueryQueryParams {
|
|
|
11
10
|
organizationIdentifier: string;
|
|
12
11
|
projectIdentifier: string;
|
|
13
12
|
}
|
|
14
|
-
export type ListGamedayRunV2OkResponse =
|
|
13
|
+
export type ListGamedayRunV2OkResponse = TypesListGamedayRunV2Response;
|
|
15
14
|
export type ListGamedayRunV2ErrorResponse = ApiRestError;
|
|
16
15
|
export interface ListGamedayRunV2Props extends ListGamedayRunV2QueryPathParams, Omit<FetcherOptions<ListGamedayRunV2QueryQueryParams, unknown>, 'url'> {
|
|
17
16
|
queryParams: ListGamedayRunV2QueryQueryParams;
|
|
18
17
|
}
|
|
19
|
-
export
|
|
18
|
+
export interface ListGamedayRunV2ResponseContainer {
|
|
19
|
+
body: ListGamedayRunV2OkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function listGamedayRunV2(props: ListGamedayRunV2Props): Promise<ListGamedayRunV2ResponseContainer>;
|
|
20
23
|
/**
|
|
21
24
|
* Fetch chaos v2 gameday runs
|
|
22
25
|
*/
|
|
23
|
-
export declare function useListGamedayRunV2Query(props: ListGamedayRunV2Props, options?: Omit<UseQueryOptions<
|
|
26
|
+
export declare function useListGamedayRunV2Query(props: ListGamedayRunV2Props, options?: Omit<UseQueryOptions<ListGamedayRunV2ResponseContainer, ListGamedayRunV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListGamedayRunV2ResponseContainer, 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 listGamedayRunV2(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/gameday/${props.gamedayId}/runs`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { TypesListGamedayV2Response } from '../schemas/TypesListGamedayV2Response';
|
|
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 ListGamedayV2QueryQueryParams {
|
|
7
6
|
accountIdentifier: string;
|
|
8
7
|
organizationIdentifier: string;
|
|
@@ -22,13 +21,17 @@ export interface ListGamedayV2QueryQueryParams {
|
|
|
22
21
|
*/
|
|
23
22
|
sortField?: 'CREATED_AT' | 'NAME' | 'UPDATED_AT';
|
|
24
23
|
}
|
|
25
|
-
export type ListGamedayV2OkResponse =
|
|
24
|
+
export type ListGamedayV2OkResponse = TypesListGamedayV2Response;
|
|
26
25
|
export type ListGamedayV2ErrorResponse = ApiRestError;
|
|
27
26
|
export interface ListGamedayV2Props extends Omit<FetcherOptions<ListGamedayV2QueryQueryParams, unknown>, 'url'> {
|
|
28
27
|
queryParams: ListGamedayV2QueryQueryParams;
|
|
29
28
|
}
|
|
30
|
-
export
|
|
29
|
+
export interface ListGamedayV2ResponseContainer {
|
|
30
|
+
body: ListGamedayV2OkResponse;
|
|
31
|
+
headers: Headers;
|
|
32
|
+
}
|
|
33
|
+
export declare function listGamedayV2(props: ListGamedayV2Props): Promise<ListGamedayV2ResponseContainer>;
|
|
31
34
|
/**
|
|
32
35
|
* Get list of Chaos V2 Gamedays
|
|
33
36
|
*/
|
|
34
|
-
export declare function useListGamedayV2Query(props: ListGamedayV2Props, options?: Omit<UseQueryOptions<
|
|
37
|
+
export declare function useListGamedayV2Query(props: ListGamedayV2Props, options?: Omit<UseQueryOptions<ListGamedayV2ResponseContainer, ListGamedayV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListGamedayV2ResponseContainer, 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 listGamedayV2(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/gamedays`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ApiListHarnessInfrastructureResponse } from '../schemas/ApiListHarnessInfrastructureResponse';
|
|
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 ListHarnessInfraQueryQueryParams {
|
|
7
6
|
accountIdentifier: string;
|
|
8
7
|
organizationIdentifier: string;
|
|
@@ -18,13 +17,17 @@ export interface ListHarnessInfraQueryQueryParams {
|
|
|
18
17
|
limit: number;
|
|
19
18
|
search?: string;
|
|
20
19
|
}
|
|
21
|
-
export type ListHarnessInfraOkResponse =
|
|
20
|
+
export type ListHarnessInfraOkResponse = ApiListHarnessInfrastructureResponse;
|
|
22
21
|
export type ListHarnessInfraErrorResponse = ApiRestError;
|
|
23
22
|
export interface ListHarnessInfraProps extends Omit<FetcherOptions<ListHarnessInfraQueryQueryParams, unknown>, 'url'> {
|
|
24
23
|
queryParams: ListHarnessInfraQueryQueryParams;
|
|
25
24
|
}
|
|
26
|
-
export
|
|
25
|
+
export interface ListHarnessInfraResponseContainer {
|
|
26
|
+
body: ListHarnessInfraOkResponse;
|
|
27
|
+
headers: Headers;
|
|
28
|
+
}
|
|
29
|
+
export declare function listHarnessInfra(props: ListHarnessInfraProps): Promise<ListHarnessInfraResponseContainer>;
|
|
27
30
|
/**
|
|
28
31
|
* List harness infras
|
|
29
32
|
*/
|
|
30
|
-
export declare function useListHarnessInfraQuery(props: ListHarnessInfraProps, options?: Omit<UseQueryOptions<
|
|
33
|
+
export declare function useListHarnessInfraQuery(props: ListHarnessInfraProps, options?: Omit<UseQueryOptions<ListHarnessInfraResponseContainer, ListHarnessInfraErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListHarnessInfraResponseContainer, 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 listHarnessInfra(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/harness-infrastructures`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -2,8 +2,7 @@ import { UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { InfraV2ListKubernetesInfraV2Response } from '../schemas/InfraV2ListKubernetesInfraV2Response';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { InfraV2ListKubernetesInfraV2RequestRequestBody } from '../requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface ListInfraV2QueryQueryParams {
|
|
8
7
|
accountIdentifier: string;
|
|
9
8
|
organizationIdentifier: string;
|
|
@@ -21,14 +20,18 @@ export interface ListInfraV2QueryQueryParams {
|
|
|
21
20
|
search?: string;
|
|
22
21
|
}
|
|
23
22
|
export type ListInfraV2RequestBody = InfraV2ListKubernetesInfraV2RequestRequestBody;
|
|
24
|
-
export type ListInfraV2OkResponse =
|
|
23
|
+
export type ListInfraV2OkResponse = InfraV2ListKubernetesInfraV2Response;
|
|
25
24
|
export type ListInfraV2ErrorResponse = ApiRestError;
|
|
26
25
|
export interface ListInfraV2Props extends Omit<FetcherOptions<ListInfraV2QueryQueryParams, ListInfraV2RequestBody>, 'url'> {
|
|
27
26
|
queryParams: ListInfraV2QueryQueryParams;
|
|
28
27
|
body: ListInfraV2RequestBody;
|
|
29
28
|
}
|
|
30
|
-
export
|
|
29
|
+
export interface ListInfraV2ResponseContainer {
|
|
30
|
+
body: ListInfraV2OkResponse;
|
|
31
|
+
headers: Headers;
|
|
32
|
+
}
|
|
33
|
+
export declare function listInfraV2(props: ListInfraV2Props): Promise<ListInfraV2ResponseContainer>;
|
|
31
34
|
/**
|
|
32
35
|
* List a new v2 infra
|
|
33
36
|
*/
|
|
34
|
-
export declare function useListInfraV2Query(props: ListInfraV2Props, options?: Omit<UseQueryOptions<
|
|
37
|
+
export declare function useListInfraV2Query(props: ListInfraV2Props, options?: Omit<UseQueryOptions<ListInfraV2ResponseContainer, ListInfraV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListInfraV2ResponseContainer, 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 listInfraV2(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/infrastructures`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { InputsetsListInputSetResponse } from '../schemas/InputsetsListInputSetResponse';
|
|
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 ListInputSetQueryPathParams {
|
|
7
6
|
experimentId: string;
|
|
8
7
|
}
|
|
@@ -19,13 +18,17 @@ export interface ListInputSetQueryQueryParams {
|
|
|
19
18
|
*/
|
|
20
19
|
limit: number;
|
|
21
20
|
}
|
|
22
|
-
export type ListInputSetOkResponse =
|
|
21
|
+
export type ListInputSetOkResponse = InputsetsListInputSetResponse;
|
|
23
22
|
export type ListInputSetErrorResponse = ApiRestError;
|
|
24
23
|
export interface ListInputSetProps extends ListInputSetQueryPathParams, Omit<FetcherOptions<ListInputSetQueryQueryParams, unknown>, 'url'> {
|
|
25
24
|
queryParams: ListInputSetQueryQueryParams;
|
|
26
25
|
}
|
|
27
|
-
export
|
|
26
|
+
export interface ListInputSetResponseContainer {
|
|
27
|
+
body: ListInputSetOkResponse;
|
|
28
|
+
headers: Headers;
|
|
29
|
+
}
|
|
30
|
+
export declare function listInputSet(props: ListInputSetProps): Promise<ListInputSetResponseContainer>;
|
|
28
31
|
/**
|
|
29
32
|
* Get the list of input sets in an experiment
|
|
30
33
|
*/
|
|
31
|
-
export declare function useListInputSetQuery(props: ListInputSetProps, options?: Omit<UseQueryOptions<
|
|
34
|
+
export declare function useListInputSetQuery(props: ListInputSetProps, options?: Omit<UseQueryOptions<ListInputSetResponseContainer, ListInputSetErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListInputSetResponseContainer, 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 listInputSet(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/experiments/${props.experimentId}/inputsets`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -2,8 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ModelListInfraResponse } from '../schemas/ModelListInfraResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { ModelListInfraRequest } from '../schemas/ModelListInfraRequest';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface ListK8sInfrasV2MutationQueryParams {
|
|
8
7
|
correlationID?: string;
|
|
9
8
|
accountIdentifier: string;
|
|
@@ -11,15 +10,20 @@ export interface ListK8sInfrasV2MutationQueryParams {
|
|
|
11
10
|
projectIdentifier: string;
|
|
12
11
|
}
|
|
13
12
|
export type ListK8sInfrasV2RequestBody = ModelListInfraRequest;
|
|
14
|
-
export type ListK8sInfrasV2OkResponse =
|
|
13
|
+
export type ListK8sInfrasV2OkResponse = ModelListInfraResponse;
|
|
15
14
|
export type ListK8sInfrasV2ErrorResponse = ApiRestError;
|
|
16
15
|
export interface ListK8sInfrasV2Props extends Omit<FetcherOptions<ListK8sInfrasV2MutationQueryParams, ListK8sInfrasV2RequestBody>, 'url'> {
|
|
17
16
|
queryParams: ListK8sInfrasV2MutationQueryParams;
|
|
18
17
|
body: ListK8sInfrasV2RequestBody;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface ListK8sInfrasV2ResponseContainer {
|
|
20
|
+
body: ListK8sInfrasV2OkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function listK8sInfrasV2(props: ListK8sInfrasV2Props): Promise<ListK8sInfrasV2ResponseContainer>;
|
|
24
|
+
export type ListK8sInfrasV2MutationProps<T extends keyof ListK8sInfrasV2Props> = Omit<ListK8sInfrasV2Props, T> & Partial<Pick<ListK8sInfrasV2Props, T>>;
|
|
21
25
|
/**
|
|
22
26
|
* Get list of active unused connector
|
|
23
27
|
* @deprecated
|
|
24
28
|
*/
|
|
25
|
-
export declare function useListK8sInfrasV2Mutation(options?: Omit<UseMutationOptions<
|
|
29
|
+
export declare function useListK8sInfrasV2Mutation<T extends keyof ListK8sInfrasV2Props>(props: Pick<Partial<ListK8sInfrasV2Props>, T>, options?: Omit<UseMutationOptions<ListK8sInfrasV2ResponseContainer, ListK8sInfrasV2ErrorResponse, ListK8sInfrasV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ListK8sInfrasV2ResponseContainer, ApiRestError, ListK8sInfrasV2MutationProps<T>, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function listK8sInfrasV2(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/list-infras`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
@@ -10,6 +10,6 @@ export function listK8sInfrasV2(props) {
|
|
|
10
10
|
* Get list of active unused connector
|
|
11
11
|
* @deprecated
|
|
12
12
|
*/
|
|
13
|
-
export function useListK8sInfrasV2Mutation(options) {
|
|
14
|
-
return useMutation((mutateProps) => listK8sInfrasV2(mutateProps), options);
|
|
13
|
+
export function useListK8sInfrasV2Mutation(props, options) {
|
|
14
|
+
return useMutation((mutateProps) => listK8sInfrasV2(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
15
15
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { NetworkmapListTargetServiceResponse } from '../schemas/NetworkmapListTargetServiceResponse';
|
|
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 ListServiceQueryPathParams {
|
|
7
6
|
applicationmapid: string;
|
|
8
7
|
}
|
|
@@ -22,13 +21,17 @@ export interface ListServiceQueryQueryParams {
|
|
|
22
21
|
limit: number;
|
|
23
22
|
search?: string;
|
|
24
23
|
}
|
|
25
|
-
export type ListServiceOkResponse =
|
|
24
|
+
export type ListServiceOkResponse = NetworkmapListTargetServiceResponse;
|
|
26
25
|
export type ListServiceErrorResponse = ApiRestError;
|
|
27
26
|
export interface ListServiceProps extends ListServiceQueryPathParams, Omit<FetcherOptions<ListServiceQueryQueryParams, unknown>, 'url'> {
|
|
28
27
|
queryParams: ListServiceQueryQueryParams;
|
|
29
28
|
}
|
|
30
|
-
export
|
|
29
|
+
export interface ListServiceResponseContainer {
|
|
30
|
+
body: ListServiceOkResponse;
|
|
31
|
+
headers: Headers;
|
|
32
|
+
}
|
|
33
|
+
export declare function listService(props: ListServiceProps): Promise<ListServiceResponseContainer>;
|
|
31
34
|
/**
|
|
32
35
|
* Get target discovered service with chaos context
|
|
33
36
|
*/
|
|
34
|
-
export declare function useListServiceQuery(props: ListServiceProps, options?: Omit<UseQueryOptions<
|
|
37
|
+
export declare function useListServiceQuery(props: ListServiceProps, options?: Omit<UseQueryOptions<ListServiceResponseContainer, ListServiceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListServiceResponseContainer, 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 listService(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/applicationmaps/${props.applicationmapid}/targetservices`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -2,8 +2,7 @@ import { UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { NetworkmapListTargetNetworkMapResponse } from '../schemas/NetworkmapListTargetNetworkMapResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { NetworkmapListTargetNetworkMapRequest } from '../schemas/NetworkmapListTargetNetworkMapRequest';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface ListTargetNetworkMapsQueryQueryParams {
|
|
8
7
|
accountIdentifier: string;
|
|
9
8
|
organizationIdentifier: string;
|
|
@@ -19,14 +18,18 @@ export interface ListTargetNetworkMapsQueryQueryParams {
|
|
|
19
18
|
search?: string;
|
|
20
19
|
}
|
|
21
20
|
export type ListTargetNetworkMapsRequestBody = NetworkmapListTargetNetworkMapRequest;
|
|
22
|
-
export type ListTargetNetworkMapsOkResponse =
|
|
21
|
+
export type ListTargetNetworkMapsOkResponse = NetworkmapListTargetNetworkMapResponse;
|
|
23
22
|
export type ListTargetNetworkMapsErrorResponse = ApiRestError;
|
|
24
23
|
export interface ListTargetNetworkMapsProps extends Omit<FetcherOptions<ListTargetNetworkMapsQueryQueryParams, ListTargetNetworkMapsRequestBody>, 'url'> {
|
|
25
24
|
queryParams: ListTargetNetworkMapsQueryQueryParams;
|
|
26
25
|
body: ListTargetNetworkMapsRequestBody;
|
|
27
26
|
}
|
|
28
|
-
export
|
|
27
|
+
export interface ListTargetNetworkMapsResponseContainer {
|
|
28
|
+
body: ListTargetNetworkMapsOkResponse;
|
|
29
|
+
headers: Headers;
|
|
30
|
+
}
|
|
31
|
+
export declare function listTargetNetworkMaps(props: ListTargetNetworkMapsProps): Promise<ListTargetNetworkMapsResponseContainer>;
|
|
29
32
|
/**
|
|
30
33
|
* List target network maps with chaos context
|
|
31
34
|
*/
|
|
32
|
-
export declare function useListTargetNetworkMapsQuery(props: ListTargetNetworkMapsProps, options?: Omit<UseQueryOptions<
|
|
35
|
+
export declare function useListTargetNetworkMapsQuery(props: ListTargetNetworkMapsProps, options?: Omit<UseQueryOptions<ListTargetNetworkMapsResponseContainer, ListTargetNetworkMapsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListTargetNetworkMapsResponseContainer, 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 listTargetNetworkMaps(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/applicationmaps`, method: 'POST' }, props));
|
|
8
8
|
}
|