@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 { TypesRun } from '../schemas/TypesRun';
|
|
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 GetGamedayRunV2QueryPathParams {
|
|
7
6
|
gamedayId: string;
|
|
8
7
|
gamedayRunId: string;
|
|
@@ -12,13 +11,17 @@ export interface GetGamedayRunV2QueryQueryParams {
|
|
|
12
11
|
organizationIdentifier: string;
|
|
13
12
|
projectIdentifier: string;
|
|
14
13
|
}
|
|
15
|
-
export type GetGamedayRunV2OkResponse =
|
|
14
|
+
export type GetGamedayRunV2OkResponse = TypesRun;
|
|
16
15
|
export type GetGamedayRunV2ErrorResponse = ApiRestError;
|
|
17
16
|
export interface GetGamedayRunV2Props extends GetGamedayRunV2QueryPathParams, Omit<FetcherOptions<GetGamedayRunV2QueryQueryParams, unknown>, 'url'> {
|
|
18
17
|
queryParams: GetGamedayRunV2QueryQueryParams;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface GetGamedayRunV2ResponseContainer {
|
|
20
|
+
body: GetGamedayRunV2OkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function getGamedayRunV2(props: GetGamedayRunV2Props): Promise<GetGamedayRunV2ResponseContainer>;
|
|
21
24
|
/**
|
|
22
25
|
* Fetch a chaos v2 gameday run
|
|
23
26
|
*/
|
|
24
|
-
export declare function useGetGamedayRunV2Query(props: GetGamedayRunV2Props, options?: Omit<UseQueryOptions<
|
|
27
|
+
export declare function useGetGamedayRunV2Query(props: GetGamedayRunV2Props, options?: Omit<UseQueryOptions<GetGamedayRunV2ResponseContainer, GetGamedayRunV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetGamedayRunV2ResponseContainer, 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 getGamedayRunV2(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/gameday/${props.gamedayId}/run/${props.gamedayRunId}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { TypesGetGamedayResponse } from '../schemas/TypesGetGamedayResponse';
|
|
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 GetGamedayV2QueryPathParams {
|
|
7
6
|
gamedayId: string;
|
|
8
7
|
}
|
|
@@ -11,13 +10,17 @@ export interface GetGamedayV2QueryQueryParams {
|
|
|
11
10
|
organizationIdentifier: string;
|
|
12
11
|
projectIdentifier: string;
|
|
13
12
|
}
|
|
14
|
-
export type GetGamedayV2OkResponse =
|
|
13
|
+
export type GetGamedayV2OkResponse = TypesGetGamedayResponse;
|
|
15
14
|
export type GetGamedayV2ErrorResponse = ApiRestError;
|
|
16
15
|
export interface GetGamedayV2Props extends GetGamedayV2QueryPathParams, Omit<FetcherOptions<GetGamedayV2QueryQueryParams, unknown>, 'url'> {
|
|
17
16
|
queryParams: GetGamedayV2QueryQueryParams;
|
|
18
17
|
}
|
|
19
|
-
export
|
|
18
|
+
export interface GetGamedayV2ResponseContainer {
|
|
19
|
+
body: GetGamedayV2OkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function getGamedayV2(props: GetGamedayV2Props): Promise<GetGamedayV2ResponseContainer>;
|
|
20
23
|
/**
|
|
21
24
|
* Get a chaos v2 Gameday
|
|
22
25
|
*/
|
|
23
|
-
export declare function useGetGamedayV2Query(props: GetGamedayV2Props, options?: Omit<UseQueryOptions<
|
|
26
|
+
export declare function useGetGamedayV2Query(props: GetGamedayV2Props, options?: Omit<UseQueryOptions<GetGamedayV2ResponseContainer, GetGamedayV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetGamedayV2ResponseContainer, 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 getGamedayV2(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/gameday/${props.gamedayId}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { HandlersImageRegistryDetails } from '../schemas/HandlersImageRegistryDetails';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export type GetImageRegistryOkResponse = ResponseWithPagination<HandlersImageRegistryDetails>;
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export type GetImageRegistryOkResponse = HandlersImageRegistryDetails;
|
|
6
5
|
export type GetImageRegistryErrorResponse = unknown;
|
|
7
6
|
export interface GetImageRegistryProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
8
7
|
}
|
|
9
|
-
export
|
|
8
|
+
export interface GetImageRegistryResponseContainer {
|
|
9
|
+
body: GetImageRegistryOkResponse;
|
|
10
|
+
headers: Headers;
|
|
11
|
+
}
|
|
12
|
+
export declare function getImageRegistry(props: GetImageRegistryProps): Promise<GetImageRegistryResponseContainer>;
|
|
10
13
|
/**
|
|
11
14
|
* Get image registry
|
|
12
15
|
*/
|
|
13
|
-
export declare function useGetImageRegistryQuery(props: GetImageRegistryProps, options?: Omit<UseQueryOptions<
|
|
16
|
+
export declare function useGetImageRegistryQuery(props: GetImageRegistryProps, options?: Omit<UseQueryOptions<GetImageRegistryResponseContainer, GetImageRegistryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetImageRegistryResponseContainer, 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 getImageRegistry(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/imageRegistry`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { InfraV2KubernetesInfrastructureV2Details } from '../schemas/InfraV2KubernetesInfrastructureV2Details';
|
|
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 GetInfraV2QueryPathParams {
|
|
7
6
|
identity: string;
|
|
8
7
|
}
|
|
@@ -12,13 +11,17 @@ export interface GetInfraV2QueryQueryParams {
|
|
|
12
11
|
projectIdentifier: string;
|
|
13
12
|
environmentIdentifier: string;
|
|
14
13
|
}
|
|
15
|
-
export type GetInfraV2OkResponse =
|
|
14
|
+
export type GetInfraV2OkResponse = InfraV2KubernetesInfrastructureV2Details;
|
|
16
15
|
export type GetInfraV2ErrorResponse = ApiRestError;
|
|
17
16
|
export interface GetInfraV2Props extends GetInfraV2QueryPathParams, Omit<FetcherOptions<GetInfraV2QueryQueryParams, unknown>, 'url'> {
|
|
18
17
|
queryParams: GetInfraV2QueryQueryParams;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface GetInfraV2ResponseContainer {
|
|
20
|
+
body: GetInfraV2OkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function getInfraV2(props: GetInfraV2Props): Promise<GetInfraV2ResponseContainer>;
|
|
21
24
|
/**
|
|
22
25
|
* Get a new v2 infra
|
|
23
26
|
*/
|
|
24
|
-
export declare function useGetInfraV2Query(props: GetInfraV2Props, options?: Omit<UseQueryOptions<
|
|
27
|
+
export declare function useGetInfraV2Query(props: GetInfraV2Props, options?: Omit<UseQueryOptions<GetInfraV2ResponseContainer, GetInfraV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetInfraV2ResponseContainer, 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 getInfraV2(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/infrastructure/${props.identity}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { InputsetsGetInputSetResponse } from '../schemas/InputsetsGetInputSetResponse';
|
|
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 GetInputSetQueryPathParams {
|
|
7
6
|
experimentId: string;
|
|
8
7
|
inputsetId: string;
|
|
@@ -12,13 +11,17 @@ export interface GetInputSetQueryQueryParams {
|
|
|
12
11
|
organizationIdentifier: string;
|
|
13
12
|
projectIdentifier: string;
|
|
14
13
|
}
|
|
15
|
-
export type GetInputSetOkResponse =
|
|
14
|
+
export type GetInputSetOkResponse = InputsetsGetInputSetResponse;
|
|
16
15
|
export type GetInputSetErrorResponse = ApiRestError;
|
|
17
16
|
export interface GetInputSetProps extends GetInputSetQueryPathParams, Omit<FetcherOptions<GetInputSetQueryQueryParams, unknown>, 'url'> {
|
|
18
17
|
queryParams: GetInputSetQueryQueryParams;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface GetInputSetResponseContainer {
|
|
20
|
+
body: GetInputSetOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function getInputSet(props: GetInputSetProps): Promise<GetInputSetResponseContainer>;
|
|
21
24
|
/**
|
|
22
25
|
* Get the input set in an experiment
|
|
23
26
|
*/
|
|
24
|
-
export declare function useGetInputSetQuery(props: GetInputSetProps, options?: Omit<UseQueryOptions<
|
|
27
|
+
export declare function useGetInputSetQuery(props: GetInputSetProps, options?: Omit<UseQueryOptions<GetInputSetResponseContainer, GetInputSetErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetInputSetResponseContainer, 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 getInputSet(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/experiments/${props.experimentId}/inputsets/${props.inputsetId}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { TypesNotes } from '../schemas/TypesNotes';
|
|
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 GetNoteQueryQueryParams {
|
|
7
6
|
accountIdentifier: string;
|
|
8
7
|
organizationIdentifier: string;
|
|
@@ -12,13 +11,17 @@ export interface GetNoteQueryQueryParams {
|
|
|
12
11
|
experimentId?: string;
|
|
13
12
|
noteType?: 'experiment-run' | 'gameday-run-experiment' | 'gameday-run-summary';
|
|
14
13
|
}
|
|
15
|
-
export type GetNoteOkResponse =
|
|
14
|
+
export type GetNoteOkResponse = TypesNotes;
|
|
16
15
|
export type GetNoteErrorResponse = ApiRestError;
|
|
17
16
|
export interface GetNoteProps extends Omit<FetcherOptions<GetNoteQueryQueryParams, unknown>, 'url'> {
|
|
18
17
|
queryParams: GetNoteQueryQueryParams;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface GetNoteResponseContainer {
|
|
20
|
+
body: GetNoteOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function getNote(props: GetNoteProps): Promise<GetNoteResponseContainer>;
|
|
21
24
|
/**
|
|
22
25
|
* Get a chaos resource Note
|
|
23
26
|
*/
|
|
24
|
-
export declare function useGetNoteQuery(props: GetNoteProps, options?: Omit<UseQueryOptions<
|
|
27
|
+
export declare function useGetNoteQuery(props: GetNoteProps, options?: Omit<UseQueryOptions<GetNoteResponseContainer, GetNoteErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetNoteResponseContainer, 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 getNote(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/notes`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { V2OnboardingOnboardingExperimentResponse } from '../schemas/V2OnboardingOnboardingExperimentResponse';
|
|
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 GetOnboardingExperimentsQueryPathParams {
|
|
7
6
|
onboardingid: string;
|
|
8
7
|
}
|
|
@@ -20,13 +19,17 @@ export interface GetOnboardingExperimentsQueryQueryParams {
|
|
|
20
19
|
*/
|
|
21
20
|
limit: number;
|
|
22
21
|
}
|
|
23
|
-
export type GetOnboardingExperimentsOkResponse =
|
|
22
|
+
export type GetOnboardingExperimentsOkResponse = V2OnboardingOnboardingExperimentResponse;
|
|
24
23
|
export type GetOnboardingExperimentsErrorResponse = ApiRestError;
|
|
25
24
|
export interface GetOnboardingExperimentsProps extends GetOnboardingExperimentsQueryPathParams, Omit<FetcherOptions<GetOnboardingExperimentsQueryQueryParams, unknown>, 'url'> {
|
|
26
25
|
queryParams: GetOnboardingExperimentsQueryQueryParams;
|
|
27
26
|
}
|
|
28
|
-
export
|
|
27
|
+
export interface GetOnboardingExperimentsResponseContainer {
|
|
28
|
+
body: GetOnboardingExperimentsOkResponse;
|
|
29
|
+
headers: Headers;
|
|
30
|
+
}
|
|
31
|
+
export declare function getOnboardingExperiments(props: GetOnboardingExperimentsProps): Promise<GetOnboardingExperimentsResponseContainer>;
|
|
29
32
|
/**
|
|
30
33
|
* Get V2 Onboarding experiments
|
|
31
34
|
*/
|
|
32
|
-
export declare function useGetOnboardingExperimentsQuery(props: GetOnboardingExperimentsProps, options?: Omit<UseQueryOptions<
|
|
35
|
+
export declare function useGetOnboardingExperimentsQuery(props: GetOnboardingExperimentsProps, options?: Omit<UseQueryOptions<GetOnboardingExperimentsResponseContainer, GetOnboardingExperimentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOnboardingExperimentsResponseContainer, 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 getOnboardingExperiments(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding/${props.onboardingid}/experiments`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ChaosserviceusageOverallServiceUsageStats } from '../schemas/ChaosserviceusageOverallServiceUsageStats';
|
|
3
|
-
import
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
4
|
export interface GetOverallServiceUsageStatsQueryPathParams {
|
|
6
5
|
accountID: string;
|
|
7
6
|
}
|
|
@@ -9,13 +8,17 @@ export interface GetOverallServiceUsageStatsQueryQueryParams {
|
|
|
9
8
|
startTime: number;
|
|
10
9
|
endTime: number;
|
|
11
10
|
}
|
|
12
|
-
export type GetOverallServiceUsageStatsOkResponse =
|
|
11
|
+
export type GetOverallServiceUsageStatsOkResponse = ChaosserviceusageOverallServiceUsageStats;
|
|
13
12
|
export type GetOverallServiceUsageStatsErrorResponse = unknown;
|
|
14
13
|
export interface GetOverallServiceUsageStatsProps extends GetOverallServiceUsageStatsQueryPathParams, Omit<FetcherOptions<GetOverallServiceUsageStatsQueryQueryParams, unknown>, 'url'> {
|
|
15
14
|
queryParams: GetOverallServiceUsageStatsQueryQueryParams;
|
|
16
15
|
}
|
|
17
|
-
export
|
|
16
|
+
export interface GetOverallServiceUsageStatsResponseContainer {
|
|
17
|
+
body: GetOverallServiceUsageStatsOkResponse;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
}
|
|
20
|
+
export declare function getOverallServiceUsageStats(props: GetOverallServiceUsageStatsProps): Promise<GetOverallServiceUsageStatsResponseContainer>;
|
|
18
21
|
/**
|
|
19
22
|
* Get overall service usage stats by type for account
|
|
20
23
|
*/
|
|
21
|
-
export declare function useGetOverallServiceUsageStatsQuery(props: GetOverallServiceUsageStatsProps, options?: Omit<UseQueryOptions<
|
|
24
|
+
export declare function useGetOverallServiceUsageStatsQuery(props: GetOverallServiceUsageStatsProps, options?: Omit<UseQueryOptions<GetOverallServiceUsageStatsResponseContainer, GetOverallServiceUsageStatsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOverallServiceUsageStatsResponseContainer, 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 getOverallServiceUsageStats(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/service/overall/stats/${props.accountID}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { HandlersChaosLicenseUsageDto } from '../schemas/HandlersChaosLicenseUsageDto';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export type GetResourceUsageOkResponse = ResponseWithPagination<HandlersChaosLicenseUsageDto>;
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export type GetResourceUsageOkResponse = HandlersChaosLicenseUsageDto;
|
|
6
5
|
export type GetResourceUsageErrorResponse = unknown;
|
|
7
6
|
export interface GetResourceUsageProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
8
7
|
}
|
|
9
|
-
export
|
|
8
|
+
export interface GetResourceUsageResponseContainer {
|
|
9
|
+
body: GetResourceUsageOkResponse;
|
|
10
|
+
headers: Headers;
|
|
11
|
+
}
|
|
12
|
+
export declare function getResourceUsage(props: GetResourceUsageProps): Promise<GetResourceUsageResponseContainer>;
|
|
10
13
|
/**
|
|
11
14
|
* Get resource usage
|
|
12
15
|
*/
|
|
13
|
-
export declare function useGetResourceUsageQuery(props: GetResourceUsageProps, options?: Omit<UseQueryOptions<
|
|
16
|
+
export declare function useGetResourceUsageQuery(props: GetResourceUsageProps, options?: Omit<UseQueryOptions<GetResourceUsageResponseContainer, GetResourceUsageErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetResourceUsageResponseContainer, 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 getResourceUsage(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/usage`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { NetworkmapGetTargetServiceResponse } from '../schemas/NetworkmapGetTargetServiceResponse';
|
|
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 GetServiceResponseQueryPathParams {
|
|
7
6
|
applicationmapid: string;
|
|
8
7
|
targetserviceid: string;
|
|
@@ -14,13 +13,17 @@ export interface GetServiceResponseQueryQueryParams {
|
|
|
14
13
|
environmentIdentifier: string;
|
|
15
14
|
infraId: string;
|
|
16
15
|
}
|
|
17
|
-
export type GetServiceResponseOkResponse =
|
|
16
|
+
export type GetServiceResponseOkResponse = NetworkmapGetTargetServiceResponse;
|
|
18
17
|
export type GetServiceResponseErrorResponse = ApiRestError;
|
|
19
18
|
export interface GetServiceResponseProps extends GetServiceResponseQueryPathParams, Omit<FetcherOptions<GetServiceResponseQueryQueryParams, unknown>, 'url'> {
|
|
20
19
|
queryParams: GetServiceResponseQueryQueryParams;
|
|
21
20
|
}
|
|
22
|
-
export
|
|
21
|
+
export interface GetServiceResponseResponseContainer {
|
|
22
|
+
body: GetServiceResponseOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function getServiceResponse(props: GetServiceResponseProps): Promise<GetServiceResponseResponseContainer>;
|
|
23
26
|
/**
|
|
24
27
|
* Get target discovered service with chaos context
|
|
25
28
|
*/
|
|
26
|
-
export declare function useGetServiceResponseQuery(props: GetServiceResponseProps, options?: Omit<UseQueryOptions<
|
|
29
|
+
export declare function useGetServiceResponseQuery(props: GetServiceResponseProps, options?: Omit<UseQueryOptions<GetServiceResponseResponseContainer, GetServiceResponseErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceResponseResponseContainer, 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 getServiceResponse(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/applicationmaps/${props.applicationmapid}/targetservices/${props.targetserviceid}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import
|
|
3
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
2
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
3
|
export interface GetServiceUsageReportQueryPathParams {
|
|
5
4
|
accountID: string;
|
|
6
5
|
}
|
|
@@ -8,13 +7,17 @@ export interface GetServiceUsageReportQueryQueryParams {
|
|
|
8
7
|
startTime: number;
|
|
9
8
|
endTime: number;
|
|
10
9
|
}
|
|
11
|
-
export type GetServiceUsageReportOkResponse =
|
|
10
|
+
export type GetServiceUsageReportOkResponse = Array<string[]>;
|
|
12
11
|
export type GetServiceUsageReportErrorResponse = unknown;
|
|
13
12
|
export interface GetServiceUsageReportProps extends GetServiceUsageReportQueryPathParams, Omit<FetcherOptions<GetServiceUsageReportQueryQueryParams, unknown>, 'url'> {
|
|
14
13
|
queryParams: GetServiceUsageReportQueryQueryParams;
|
|
15
14
|
}
|
|
16
|
-
export
|
|
15
|
+
export interface GetServiceUsageReportResponseContainer {
|
|
16
|
+
body: GetServiceUsageReportOkResponse;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
}
|
|
19
|
+
export declare function getServiceUsageReport(props: GetServiceUsageReportProps): Promise<GetServiceUsageReportResponseContainer>;
|
|
17
20
|
/**
|
|
18
21
|
* Generates service usage report for account in a given timeframe in csv format
|
|
19
22
|
*/
|
|
20
|
-
export declare function useGetServiceUsageReportQuery(props: GetServiceUsageReportProps, options?: Omit<UseQueryOptions<
|
|
23
|
+
export declare function useGetServiceUsageReportQuery(props: GetServiceUsageReportProps, options?: Omit<UseQueryOptions<GetServiceUsageReportResponseContainer, GetServiceUsageReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceUsageReportResponseContainer, 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 getServiceUsageReport(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/service/report/${props.accountID}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { SecurityGovernanceCondition } from '../schemas/SecurityGovernanceCondition';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export type GetSgpTemplateByGenAiOkResponse = ResponseWithPagination<SecurityGovernanceCondition>;
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export type GetSgpTemplateByGenAiOkResponse = SecurityGovernanceCondition;
|
|
6
5
|
export type GetSgpTemplateByGenAiErrorResponse = unknown;
|
|
7
6
|
export interface GetSgpTemplateByGenAiProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
8
7
|
}
|
|
9
|
-
export
|
|
8
|
+
export interface GetSgpTemplateByGenAiResponseContainer {
|
|
9
|
+
body: GetSgpTemplateByGenAiOkResponse;
|
|
10
|
+
headers: Headers;
|
|
11
|
+
}
|
|
12
|
+
export declare function getSgpTemplateByGenAi(props: GetSgpTemplateByGenAiProps): Promise<GetSgpTemplateByGenAiResponseContainer>;
|
|
13
|
+
export type GetSgpTemplateByGenAiMutationProps<T extends keyof GetSgpTemplateByGenAiProps> = Omit<GetSgpTemplateByGenAiProps, T> & Partial<Pick<GetSgpTemplateByGenAiProps, T>>;
|
|
10
14
|
/**
|
|
11
15
|
* Get security governance conditions template
|
|
12
16
|
*/
|
|
13
|
-
export declare function useGetSgpTemplateByGenAiMutation(options?: Omit<UseMutationOptions<
|
|
17
|
+
export declare function useGetSgpTemplateByGenAiMutation<T extends keyof GetSgpTemplateByGenAiProps>(props: Pick<Partial<GetSgpTemplateByGenAiProps>, T>, options?: Omit<UseMutationOptions<GetSgpTemplateByGenAiResponseContainer, GetSgpTemplateByGenAiErrorResponse, GetSgpTemplateByGenAiMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetSgpTemplateByGenAiResponseContainer, unknown, GetSgpTemplateByGenAiMutationProps<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 getSgpTemplateByGenAi(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/genai/sgp/generate`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get security governance conditions template
|
|
11
11
|
*/
|
|
12
|
-
export function useGetSgpTemplateByGenAiMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => getSgpTemplateByGenAi(mutateProps), options);
|
|
12
|
+
export function useGetSgpTemplateByGenAiMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => getSgpTemplateByGenAi(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { NetworkmapGetTargetNetworkMapResponse } from '../schemas/NetworkmapGetTargetNetworkMapResponse';
|
|
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 GetTargetNetworkMapQueryPathParams {
|
|
7
6
|
applicationmapid: string;
|
|
8
7
|
}
|
|
@@ -13,13 +12,17 @@ export interface GetTargetNetworkMapQueryQueryParams {
|
|
|
13
12
|
environmentIdentifier: string;
|
|
14
13
|
infraId: string;
|
|
15
14
|
}
|
|
16
|
-
export type GetTargetNetworkMapOkResponse =
|
|
15
|
+
export type GetTargetNetworkMapOkResponse = NetworkmapGetTargetNetworkMapResponse;
|
|
17
16
|
export type GetTargetNetworkMapErrorResponse = ApiRestError;
|
|
18
17
|
export interface GetTargetNetworkMapProps extends GetTargetNetworkMapQueryPathParams, Omit<FetcherOptions<GetTargetNetworkMapQueryQueryParams, unknown>, 'url'> {
|
|
19
18
|
queryParams: GetTargetNetworkMapQueryQueryParams;
|
|
20
19
|
}
|
|
21
|
-
export
|
|
20
|
+
export interface GetTargetNetworkMapResponseContainer {
|
|
21
|
+
body: GetTargetNetworkMapOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getTargetNetworkMap(props: GetTargetNetworkMapProps): Promise<GetTargetNetworkMapResponseContainer>;
|
|
22
25
|
/**
|
|
23
26
|
* Get target network map with chaos context
|
|
24
27
|
*/
|
|
25
|
-
export declare function useGetTargetNetworkMapQuery(props: GetTargetNetworkMapProps, options?: Omit<UseQueryOptions<
|
|
28
|
+
export declare function useGetTargetNetworkMapQuery(props: GetTargetNetworkMapProps, options?: Omit<UseQueryOptions<GetTargetNetworkMapResponseContainer, GetTargetNetworkMapErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTargetNetworkMapResponseContainer, 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 getTargetNetworkMap(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/applicationmaps/${props.applicationmapid}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -2,22 +2,26 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { InfraV2GetKubernetesInfrastructureV2YamlResponse } from '../schemas/InfraV2GetKubernetesInfrastructureV2YamlResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import type { InfraV2GetKubernetesInfrastructureV2YamlRequest } from '../schemas/InfraV2GetKubernetesInfrastructureV2YamlRequest';
|
|
5
|
-
import
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
7
6
|
export interface GetV2InfrastructureYamlMutationQueryParams {
|
|
8
7
|
accountIdentifier: string;
|
|
9
8
|
organizationIdentifier: string;
|
|
10
9
|
projectIdentifier: string;
|
|
11
10
|
}
|
|
12
11
|
export type GetV2InfrastructureYamlRequestBody = InfraV2GetKubernetesInfrastructureV2YamlRequest;
|
|
13
|
-
export type GetV2InfrastructureYamlOkResponse =
|
|
12
|
+
export type GetV2InfrastructureYamlOkResponse = InfraV2GetKubernetesInfrastructureV2YamlResponse;
|
|
14
13
|
export type GetV2InfrastructureYamlErrorResponse = ApiRestError;
|
|
15
14
|
export interface GetV2InfrastructureYamlProps extends Omit<FetcherOptions<GetV2InfrastructureYamlMutationQueryParams, GetV2InfrastructureYamlRequestBody>, 'url'> {
|
|
16
15
|
queryParams: GetV2InfrastructureYamlMutationQueryParams;
|
|
17
16
|
body: GetV2InfrastructureYamlRequestBody;
|
|
18
17
|
}
|
|
19
|
-
export
|
|
18
|
+
export interface GetV2InfrastructureYamlResponseContainer {
|
|
19
|
+
body: GetV2InfrastructureYamlOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function getV2InfrastructureYaml(props: GetV2InfrastructureYamlProps): Promise<GetV2InfrastructureYamlResponseContainer>;
|
|
23
|
+
export type GetV2InfrastructureYamlMutationProps<T extends keyof GetV2InfrastructureYamlProps> = Omit<GetV2InfrastructureYamlProps, T> & Partial<Pick<GetV2InfrastructureYamlProps, T>>;
|
|
20
24
|
/**
|
|
21
25
|
* Preview v2 infra Yaml
|
|
22
26
|
*/
|
|
23
|
-
export declare function useGetV2InfrastructureYamlMutation(options?: Omit<UseMutationOptions<
|
|
27
|
+
export declare function useGetV2InfrastructureYamlMutation<T extends keyof GetV2InfrastructureYamlProps>(props: Pick<Partial<GetV2InfrastructureYamlProps>, T>, options?: Omit<UseMutationOptions<GetV2InfrastructureYamlResponseContainer, GetV2InfrastructureYamlErrorResponse, GetV2InfrastructureYamlMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetV2InfrastructureYamlResponseContainer, ApiRestError, GetV2InfrastructureYamlMutationProps<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 getV2InfrastructureYaml(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/infrastructure/yaml`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Preview v2 infra Yaml
|
|
11
11
|
*/
|
|
12
|
-
export function useGetV2InfrastructureYamlMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => getV2InfrastructureYaml(mutateProps), options);
|
|
12
|
+
export function useGetV2InfrastructureYamlMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => getV2InfrastructureYaml(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
14
|
}
|