@harnessio/react-chaos-manager-client 1.56.1 → 1.57.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/useAbortChaosComponentMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useAbortChaosComponentMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCanRetryExperimentCreationQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCanRetryExperimentCreationQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateChaosComponentMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateChaosComponentMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateConditionMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateConditionMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateDrTestMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateDrTestMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateGamedayRunV2Mutation.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useCreateGamedayRunV2Mutation.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useCreateGamedayV2Mutation.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useCreateGamedayV2Mutation.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRiskMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateRiskMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteConditionMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteConditionMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteGamedayV2Mutation.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteGamedayV2Mutation.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useEnableRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useEnableRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosComponentVariableQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosComponentVariableQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunReportPdfLegacyQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunReportPdfLegacyQuery.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useGetConditionQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetConditionQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentHelperImageVersionQuery.d.ts +3 -2
- package/dist/chaos-manager/src/services/hooks/useGetExperimentOrTemplateVariableQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentOrTemplateVariableQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsCsvMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsCsvMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetExperimentationActivityReportQuery.d.ts +3 -2
- package/dist/chaos-manager/src/services/hooks/useGetGamedayRunV2Query.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useGetGamedayRunV2Query.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useGetGamedayV2Query.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useGetGamedayV2Query.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useGetImageRegistryQuery.d.ts +3 -2
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraManifestQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesHelmInfraCommandQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetProbeManifestQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRiskQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRiskQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRuleQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRuleQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetServiceUsageReportQuery.d.ts +3 -2
- package/dist/chaos-manager/src/services/hooks/useGetSgpTemplateByGenAiMutation.d.ts +3 -2
- package/dist/chaos-manager/src/services/hooks/useHealthCheckV3Query.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListActionMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListActionMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListChaosComponentQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListChaosComponentQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListConditionQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListConditionQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListDrTestsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListDrTestsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentOrTemplateQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListExperimentOrTemplateQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListGamedayMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListGamedayMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListGamedayRunV2Query.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListGamedayRunV2Query.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useListGamedayV2Query.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListGamedayV2Query.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useListHubMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListHubMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeExecutionsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeExecutionsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeMetadataQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListProbeMetadataQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRisksQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRisksQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRuleQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRuleQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useProcessTemplateMutation.d.ts +21 -0
- package/dist/chaos-manager/src/services/hooks/useProcessTemplateMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useRecommendationEventMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useRecommendationEventMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useRenderTemplateFormQuery.d.ts +15 -0
- package/dist/chaos-manager/src/services/hooks/useRenderTemplateFormQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useRetryExperimentCreationMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useRetryExperimentCreationMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useRunChaosComponentMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useRunChaosComponentMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosComponentMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateChaosComponentMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateConditionMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateConditionMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunPrerequisitesV2Mutation.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunPrerequisitesV2Mutation.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunV2Mutation.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunV2Mutation.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayV2Mutation.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateGamedayV2Mutation.js +1 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.js +1 -1
- package/dist/chaos-manager/src/services/index.d.ts +7 -1
- package/dist/chaos-manager/src/services/index.js +2 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplate.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkEnterpriseProbeInputs.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra.d.ts +4 -1
- package/dist/chaos-manager/src/services/schemas/ProbeCmdProbeTemplate.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/SecurityGovernanceWorkload.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/SharedListMetadataResponse.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/{GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata.d.ts → SharedMetadata.d.ts} +1 -1
- package/dist/chaos-manager/src/services/schemas/V3ProcessTemplateRequest.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/V3ProcessTemplateRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V3ProcessTemplateResponse.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/V3ProcessTemplateResponse.js +4 -0
- package/package.json +1 -1
- /package/dist/chaos-manager/src/services/schemas/{GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata.js → SharedMetadata.js} +0 -0
|
@@ -36,6 +36,6 @@ export interface ListActionMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listActionMetadata(props: ListActionMetadataProps): Promise<ListActionMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists action metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListActionMetadataQuery(props: ListActionMetadataProps, options?: Omit<UseQueryOptions<ListActionMetadataResponseContainer, ListActionMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listActionMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/actions/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists action metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListActionMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listActionMetadata', props.queryParams, props.body], ({ signal }) => listActionMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -25,6 +25,6 @@ export interface ListChaosComponentResponseContainer {
|
|
|
25
25
|
}
|
|
26
26
|
export declare function listChaosComponent(props: ListChaosComponentProps): Promise<ListChaosComponentResponseContainer>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* List the chaos component nodes
|
|
29
29
|
*/
|
|
30
30
|
export declare function useListChaosComponentQuery(props: ListChaosComponentProps, options?: Omit<UseQueryOptions<ListChaosComponentResponseContainer, ListChaosComponentErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosComponentResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internalv3/chaos-components/nodes/${props.identity}/${props.runID}/${props.notifyId}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* List the chaos component nodes
|
|
11
11
|
*/
|
|
12
12
|
export function useListChaosComponentQuery(props, options) {
|
|
13
13
|
return useQuery(['listChaosComponent', props.identity, props.runID, props.notifyId, props.queryParams], ({ signal }) => listChaosComponent(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -33,6 +33,6 @@ export interface ListConditionResponseContainer {
|
|
|
33
33
|
}
|
|
34
34
|
export declare function listCondition(props: ListConditionProps): Promise<ListConditionResponseContainer>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Lists chaos guard conditions
|
|
37
37
|
*/
|
|
38
38
|
export declare function useListConditionQuery(props: ListConditionProps, options?: Omit<UseQueryOptions<ListConditionResponseContainer, ListConditionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListConditionResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists chaos guard conditions
|
|
11
11
|
*/
|
|
12
12
|
export function useListConditionQuery(props, options) {
|
|
13
13
|
return useQuery(['listCondition', props.queryParams], ({ signal }) => listCondition(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -30,6 +30,6 @@ export interface ListDrTestsResponseContainer {
|
|
|
30
30
|
}
|
|
31
31
|
export declare function listDrTests(props: ListDrTestsProps): Promise<ListDrTestsResponseContainer>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Lists all DR tests (DRTest stages) from pipelines
|
|
34
34
|
*/
|
|
35
35
|
export declare function useListDrTestsQuery(props: ListDrTestsProps, options?: Omit<UseQueryOptions<ListDrTestsResponseContainer, ListDrTestsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDrTestsResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listDrTests(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/dr-tests`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists all DR tests (DRTest stages) from pipelines
|
|
11
11
|
*/
|
|
12
12
|
export function useListDrTestsQuery(props, options) {
|
|
13
13
|
return useQuery(['listDRTests', props.queryParams], ({ signal }) => listDrTests(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListExperimentMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listExperimentMetadata(props: ListExperimentMetadataProps): Promise<ListExperimentMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists experiment metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListExperimentMetadataQuery(props: ListExperimentMetadataProps, options?: Omit<UseQueryOptions<ListExperimentMetadataResponseContainer, ListExperimentMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListExperimentMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listExperimentMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/experiments/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists experiment metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListExperimentMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listExperimentMetadata', props.queryParams, props.body], ({ signal }) => listExperimentMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -38,6 +38,6 @@ export interface ListExperimentOrTemplateResponseContainer {
|
|
|
38
38
|
}
|
|
39
39
|
export declare function listExperimentOrTemplate(props: ListExperimentOrTemplateProps): Promise<ListExperimentOrTemplateResponseContainer>;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Lists experiment or template metadata
|
|
42
42
|
*/
|
|
43
43
|
export declare function useListExperimentOrTemplateQuery(props: ListExperimentOrTemplateProps, options?: Omit<UseQueryOptions<ListExperimentOrTemplateResponseContainer, ListExperimentOrTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListExperimentOrTemplateResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listExperimentOrTemplate(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/integrations/list-experiment-or-template`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists experiment or template metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListExperimentOrTemplateQuery(props, options) {
|
|
13
13
|
return useQuery(['listExperimentOrTemplate', props.queryParams], ({ signal }) => listExperimentOrTemplate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListFaultMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listFaultMetadata(props: ListFaultMetadataProps): Promise<ListFaultMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists fault metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListFaultMetadataQuery(props: ListFaultMetadataProps, options?: Omit<UseQueryOptions<ListFaultMetadataResponseContainer, ListFaultMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listFaultMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/faults/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists fault metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListFaultMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listFaultMetadata', props.queryParams, props.body], ({ signal }) => listFaultMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListGamedayMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listGamedayMetadata(props: ListGamedayMetadataProps): Promise<ListGamedayMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists gameday metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListGamedayMetadataQuery(props: ListGamedayMetadataProps, options?: Omit<UseQueryOptions<ListGamedayMetadataResponseContainer, ListGamedayMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListGamedayMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listGamedayMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/gamedays/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists gameday metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListGamedayMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listGamedayMetadata', props.queryParams, props.body], ({ signal }) => listGamedayMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -22,5 +22,6 @@ export interface ListGamedayRunV2ResponseContainer {
|
|
|
22
22
|
export declare function listGamedayRunV2(props: ListGamedayRunV2Props): Promise<ListGamedayRunV2ResponseContainer>;
|
|
23
23
|
/**
|
|
24
24
|
* Fetch chaos v2 gameday runs
|
|
25
|
+
* @deprecated
|
|
25
26
|
*/
|
|
26
27
|
export declare function useListGamedayRunV2Query(props: ListGamedayRunV2Props, options?: Omit<UseQueryOptions<ListGamedayRunV2ResponseContainer, ListGamedayRunV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListGamedayRunV2ResponseContainer, ApiRestError>;
|
|
@@ -8,6 +8,7 @@ export function listGamedayRunV2(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Fetch chaos v2 gameday runs
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useListGamedayRunV2Query(props, options) {
|
|
13
14
|
return useQuery(['listGamedayRunV2', props.gamedayId, props.queryParams], ({ signal }) => listGamedayRunV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -33,5 +33,6 @@ export interface ListGamedayV2ResponseContainer {
|
|
|
33
33
|
export declare function listGamedayV2(props: ListGamedayV2Props): Promise<ListGamedayV2ResponseContainer>;
|
|
34
34
|
/**
|
|
35
35
|
* Get list of Chaos V2 Gamedays
|
|
36
|
+
* @deprecated
|
|
36
37
|
*/
|
|
37
38
|
export declare function useListGamedayV2Query(props: ListGamedayV2Props, options?: Omit<UseQueryOptions<ListGamedayV2ResponseContainer, ListGamedayV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListGamedayV2ResponseContainer, ApiRestError>;
|
|
@@ -8,6 +8,7 @@ export function listGamedayV2(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get list of Chaos V2 Gamedays
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useListGamedayV2Query(props, options) {
|
|
13
14
|
return useQuery(['listGamedayV2', props.queryParams], ({ signal }) => listGamedayV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListHubMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listHubMetadata(props: ListHubMetadataProps): Promise<ListHubMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists hub metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListHubMetadataQuery(props: ListHubMetadataProps, options?: Omit<UseQueryOptions<ListHubMetadataResponseContainer, ListHubMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListHubMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listHubMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/hubs/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists hub metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListHubMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listHubMetadata', props.queryParams, props.body], ({ signal }) => listHubMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -40,6 +40,6 @@ export interface ListProbeExecutionsResponseContainer {
|
|
|
40
40
|
}
|
|
41
41
|
export declare function listProbeExecutions(props: ListProbeExecutionsProps): Promise<ListProbeExecutionsResponseContainer>;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Lists probe executions for a given risk identity
|
|
44
44
|
*/
|
|
45
45
|
export declare function useListProbeExecutionsQuery(props: ListProbeExecutionsProps, options?: Omit<UseQueryOptions<ListProbeExecutionsResponseContainer, ListProbeExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeExecutionsResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listProbeExecutions(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}/active-risks`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists probe executions for a given risk identity
|
|
11
11
|
*/
|
|
12
12
|
export function useListProbeExecutionsQuery(props, options) {
|
|
13
13
|
return useQuery(['listProbeExecutions', props.identity, props.queryParams], ({ signal }) => listProbeExecutions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -36,6 +36,6 @@ export interface ListProbeMetadataResponseContainer {
|
|
|
36
36
|
}
|
|
37
37
|
export declare function listProbeMetadata(props: ListProbeMetadataProps): Promise<ListProbeMetadataResponseContainer>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Lists probe metadata
|
|
40
40
|
*/
|
|
41
41
|
export declare function useListProbeMetadataQuery(props: ListProbeMetadataProps, options?: Omit<UseQueryOptions<ListProbeMetadataResponseContainer, ListProbeMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeMetadataResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listProbeMetadata(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/probes/list-metadata`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists probe metadata
|
|
11
11
|
*/
|
|
12
12
|
export function useListProbeMetadataQuery(props, options) {
|
|
13
13
|
return useQuery(['listProbeMetadata', props.queryParams, props.body], ({ signal }) => listProbeMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -37,6 +37,6 @@ export interface ListRisksResponseContainer {
|
|
|
37
37
|
}
|
|
38
38
|
export declare function listRisks(props: ListRisksProps): Promise<ListRisksResponseContainer>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Lists risks
|
|
41
41
|
*/
|
|
42
42
|
export declare function useListRisksQuery(props: ListRisksProps, options?: Omit<UseQueryOptions<ListRisksResponseContainer, ListRisksErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRisksResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listRisks(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists risks
|
|
11
11
|
*/
|
|
12
12
|
export function useListRisksQuery(props, options) {
|
|
13
13
|
return useQuery(['listRisks', props.queryParams], ({ signal }) => listRisks(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -33,6 +33,6 @@ export interface ListRuleResponseContainer {
|
|
|
33
33
|
}
|
|
34
34
|
export declare function listRule(props: ListRuleProps): Promise<ListRuleResponseContainer>;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Lists chaos guard rules
|
|
37
37
|
*/
|
|
38
38
|
export declare function useListRuleQuery(props: ListRuleProps, options?: Omit<UseQueryOptions<ListRuleResponseContainer, ListRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRuleResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function listRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Lists chaos guard rules
|
|
11
11
|
*/
|
|
12
12
|
export function useListRuleQuery(props, options) {
|
|
13
13
|
return useQuery(['listRule', props.queryParams], ({ signal }) => listRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -23,6 +23,6 @@ export interface OnboardingConfirmDiscoveryResponseContainer {
|
|
|
23
23
|
export declare function onboardingConfirmDiscovery(props: OnboardingConfirmDiscoveryProps): Promise<OnboardingConfirmDiscoveryResponseContainer>;
|
|
24
24
|
export type OnboardingConfirmDiscoveryMutationProps<T extends keyof OnboardingConfirmDiscoveryProps> = Omit<OnboardingConfirmDiscoveryProps, T> & Partial<Pick<OnboardingConfirmDiscoveryProps, T>>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Confirm discovery step in manual onboarding
|
|
27
27
|
*/
|
|
28
28
|
export declare function useOnboardingConfirmDiscoveryMutation<T extends keyof OnboardingConfirmDiscoveryProps>(props: Pick<Partial<OnboardingConfirmDiscoveryProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmDiscoveryResponseContainer, OnboardingConfirmDiscoveryErrorResponse, OnboardingConfirmDiscoveryMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmDiscoveryResponseContainer, ApiRestError, OnboardingConfirmDiscoveryMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function onboardingConfirmDiscovery(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-discovery/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Confirm discovery step in manual onboarding
|
|
11
11
|
*/
|
|
12
12
|
export function useOnboardingConfirmDiscoveryMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => onboardingConfirmDiscovery(Object.assign(Object.assign({}, props), mutateProps)), options);
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.d.ts
CHANGED
|
@@ -26,6 +26,6 @@ export interface OnboardingConfirmExperimentCreationResponseContainer {
|
|
|
26
26
|
export declare function onboardingConfirmExperimentCreation(props: OnboardingConfirmExperimentCreationProps): Promise<OnboardingConfirmExperimentCreationResponseContainer>;
|
|
27
27
|
export type OnboardingConfirmExperimentCreationMutationProps<T extends keyof OnboardingConfirmExperimentCreationProps> = Omit<OnboardingConfirmExperimentCreationProps, T> & Partial<Pick<OnboardingConfirmExperimentCreationProps, T>>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Confirm experiment creation step in manual onboarding
|
|
30
30
|
*/
|
|
31
31
|
export declare function useOnboardingConfirmExperimentCreationMutation<T extends keyof OnboardingConfirmExperimentCreationProps>(props: Pick<Partial<OnboardingConfirmExperimentCreationProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmExperimentCreationResponseContainer, OnboardingConfirmExperimentCreationErrorResponse, OnboardingConfirmExperimentCreationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmExperimentCreationResponseContainer, ApiRestError, OnboardingConfirmExperimentCreationMutationProps<T>, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.js
CHANGED
|
@@ -7,7 +7,7 @@ export function onboardingConfirmExperimentCreation(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-experiment-creation/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Confirm experiment creation step in manual onboarding
|
|
11
11
|
*/
|
|
12
12
|
export function useOnboardingConfirmExperimentCreationMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => onboardingConfirmExperimentCreation(Object.assign(Object.assign({}, props), mutateProps)), options);
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.d.ts
CHANGED
|
@@ -23,6 +23,6 @@ export interface OnboardingConfirmExperimentRunResponseContainer {
|
|
|
23
23
|
export declare function onboardingConfirmExperimentRun(props: OnboardingConfirmExperimentRunProps): Promise<OnboardingConfirmExperimentRunResponseContainer>;
|
|
24
24
|
export type OnboardingConfirmExperimentRunMutationProps<T extends keyof OnboardingConfirmExperimentRunProps> = Omit<OnboardingConfirmExperimentRunProps, T> & Partial<Pick<OnboardingConfirmExperimentRunProps, T>>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Confirm experiment run step in manual onboarding
|
|
27
27
|
*/
|
|
28
28
|
export declare function useOnboardingConfirmExperimentRunMutation<T extends keyof OnboardingConfirmExperimentRunProps>(props: Pick<Partial<OnboardingConfirmExperimentRunProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmExperimentRunResponseContainer, OnboardingConfirmExperimentRunErrorResponse, OnboardingConfirmExperimentRunMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmExperimentRunResponseContainer, ApiRestError, OnboardingConfirmExperimentRunMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function onboardingConfirmExperimentRun(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-experiment-run/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Confirm experiment run step in manual onboarding
|
|
11
11
|
*/
|
|
12
12
|
export function useOnboardingConfirmExperimentRunMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => onboardingConfirmExperimentRun(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -26,6 +26,6 @@ export interface OnboardingConfirmNetworkMapResponseContainer {
|
|
|
26
26
|
export declare function onboardingConfirmNetworkMap(props: OnboardingConfirmNetworkMapProps): Promise<OnboardingConfirmNetworkMapResponseContainer>;
|
|
27
27
|
export type OnboardingConfirmNetworkMapMutationProps<T extends keyof OnboardingConfirmNetworkMapProps> = Omit<OnboardingConfirmNetworkMapProps, T> & Partial<Pick<OnboardingConfirmNetworkMapProps, T>>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Confirm network map creation step in manual onboarding
|
|
30
30
|
*/
|
|
31
31
|
export declare function useOnboardingConfirmNetworkMapMutation<T extends keyof OnboardingConfirmNetworkMapProps>(props: Pick<Partial<OnboardingConfirmNetworkMapProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmNetworkMapResponseContainer, OnboardingConfirmNetworkMapErrorResponse, OnboardingConfirmNetworkMapMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmNetworkMapResponseContainer, ApiRestError, OnboardingConfirmNetworkMapMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function onboardingConfirmNetworkMap(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-networkmap/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Confirm network map creation step in manual onboarding
|
|
11
11
|
*/
|
|
12
12
|
export function useOnboardingConfirmNetworkMapMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => onboardingConfirmNetworkMap(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { V3ProcessTemplateResponse } from '../schemas/V3ProcessTemplateResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { V3ProcessTemplateRequest } from '../schemas/V3ProcessTemplateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export type ProcessTemplateRequestBody = V3ProcessTemplateRequest;
|
|
7
|
+
export type ProcessTemplateOkResponse = V3ProcessTemplateResponse;
|
|
8
|
+
export type ProcessTemplateErrorResponse = ApiRestError;
|
|
9
|
+
export interface ProcessTemplateProps extends Omit<FetcherOptions<unknown, ProcessTemplateRequestBody>, 'url'> {
|
|
10
|
+
body: ProcessTemplateRequestBody;
|
|
11
|
+
}
|
|
12
|
+
export interface ProcessTemplateResponseContainer {
|
|
13
|
+
body: ProcessTemplateOkResponse;
|
|
14
|
+
headers: Headers;
|
|
15
|
+
}
|
|
16
|
+
export declare function processTemplate(props: ProcessTemplateProps): Promise<ProcessTemplateResponseContainer>;
|
|
17
|
+
export type ProcessTemplateMutationProps<T extends keyof ProcessTemplateProps> = Omit<ProcessTemplateProps, T> & Partial<Pick<ProcessTemplateProps, T>>;
|
|
18
|
+
/**
|
|
19
|
+
* Processes a Go template with provided YAML values and returns the rendered result. All query parameters from the URL are also available in the template context and will override values from YAML if there's a conflict.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useProcessTemplateMutation<T extends keyof ProcessTemplateProps>(props: Pick<Partial<ProcessTemplateProps>, T>, options?: Omit<UseMutationOptions<ProcessTemplateResponseContainer, ProcessTemplateErrorResponse, ProcessTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ProcessTemplateResponseContainer, ApiRestError, ProcessTemplateMutationProps<T>, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function processTemplate(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/tools/process-template`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Processes a Go template with provided YAML values and returns the rendered result. All query parameters from the URL are also available in the template context and will override values from YAML if there's a conflict.
|
|
11
|
+
*/
|
|
12
|
+
export function useProcessTemplateMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => processTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -14,6 +14,6 @@ export interface RecommendationEventResponseContainer {
|
|
|
14
14
|
export declare function recommendationEvent(props: RecommendationEventProps): Promise<RecommendationEventResponseContainer>;
|
|
15
15
|
export type RecommendationEventMutationProps<T extends keyof RecommendationEventProps> = Omit<RecommendationEventProps, T> & Partial<Pick<RecommendationEventProps, T>>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Process the recommendation event
|
|
18
18
|
*/
|
|
19
19
|
export declare function useRecommendationEventMutation<T extends keyof RecommendationEventProps>(props: Pick<Partial<RecommendationEventProps>, T>, options?: Omit<UseMutationOptions<RecommendationEventResponseContainer, RecommendationEventErrorResponse, RecommendationEventMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RecommendationEventResponseContainer, unknown, RecommendationEventMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function recommendationEvent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internal/recommendations/event`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Process the recommendation event
|
|
11
11
|
*/
|
|
12
12
|
export function useRecommendationEventMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => recommendationEvent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
3
|
+
export type RenderTemplateFormOkResponse = unknown;
|
|
4
|
+
export type RenderTemplateFormErrorResponse = unknown;
|
|
5
|
+
export interface RenderTemplateFormProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
6
|
+
}
|
|
7
|
+
export interface RenderTemplateFormResponseContainer {
|
|
8
|
+
body: RenderTemplateFormOkResponse;
|
|
9
|
+
headers: Headers;
|
|
10
|
+
}
|
|
11
|
+
export declare function renderTemplateForm(props: RenderTemplateFormProps): Promise<RenderTemplateFormResponseContainer>;
|
|
12
|
+
/**
|
|
13
|
+
* Displays an HTML form to input template and values YAML
|
|
14
|
+
*/
|
|
15
|
+
export declare function useRenderTemplateFormQuery(props: RenderTemplateFormProps, options?: Omit<UseQueryOptions<RenderTemplateFormResponseContainer, RenderTemplateFormErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<RenderTemplateFormResponseContainer, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function renderTemplateForm(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/tools/template-renderer`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Displays an HTML form to input template and values YAML
|
|
11
|
+
*/
|
|
12
|
+
export function useRenderTemplateFormQuery(props, options) {
|
|
13
|
+
return useQuery(['renderTemplateForm'], ({ signal }) => renderTemplateForm(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -27,6 +27,6 @@ export interface RetryExperimentCreationResponseContainer {
|
|
|
27
27
|
export declare function retryExperimentCreation(props: RetryExperimentCreationProps): Promise<RetryExperimentCreationResponseContainer>;
|
|
28
28
|
export type RetryExperimentCreationMutationProps<T extends keyof RetryExperimentCreationProps> = Omit<RetryExperimentCreationProps, T> & Partial<Pick<RetryExperimentCreationProps, T>>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Retry chaos experiment creation for the given target network map
|
|
31
31
|
*/
|
|
32
32
|
export declare function useRetryExperimentCreationMutation<T extends keyof RetryExperimentCreationProps>(props: Pick<Partial<RetryExperimentCreationProps>, T>, options?: Omit<UseMutationOptions<RetryExperimentCreationResponseContainer, RetryExperimentCreationErrorResponse, RetryExperimentCreationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RetryExperimentCreationResponseContainer, ApiRestError, RetryExperimentCreationMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function retryExperimentCreation(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/applicationmaps/${props.applicationmapid}/retry`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Retry chaos experiment creation for the given target network map
|
|
11
11
|
*/
|
|
12
12
|
export function useRetryExperimentCreationMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => retryExperimentCreation(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -27,6 +27,6 @@ export interface RunChaosComponentResponseContainer {
|
|
|
27
27
|
export declare function runChaosComponent(props: RunChaosComponentProps): Promise<RunChaosComponentResponseContainer>;
|
|
28
28
|
export type RunChaosComponentMutationProps<T extends keyof RunChaosComponentProps> = Omit<RunChaosComponentProps, T> & Partial<Pick<RunChaosComponentProps, T>>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Runs chaos component (faults, probes, actions)
|
|
31
31
|
*/
|
|
32
32
|
export declare function useRunChaosComponentMutation<T extends keyof RunChaosComponentProps>(props: Pick<Partial<RunChaosComponentProps>, T>, options?: Omit<UseMutationOptions<RunChaosComponentResponseContainer, RunChaosComponentErrorResponse, RunChaosComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RunChaosComponentResponseContainer, ApiRestError, RunChaosComponentMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function runChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/integrations/run-chaos-component`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Runs chaos component (faults, probes, actions)
|
|
11
11
|
*/
|
|
12
12
|
export function useRunChaosComponentMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => runChaosComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -30,6 +30,6 @@ export interface UpdateChaosComponentResponseContainer {
|
|
|
30
30
|
export declare function updateChaosComponent(props: UpdateChaosComponentProps): Promise<UpdateChaosComponentResponseContainer>;
|
|
31
31
|
export type UpdateChaosComponentMutationProps<T extends keyof UpdateChaosComponentProps> = Omit<UpdateChaosComponentProps, T> & Partial<Pick<UpdateChaosComponentProps, T>>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Updates the chaos component node
|
|
34
34
|
*/
|
|
35
35
|
export declare function useUpdateChaosComponentMutation<T extends keyof UpdateChaosComponentProps>(props: Pick<Partial<UpdateChaosComponentProps>, T>, options?: Omit<UseMutationOptions<UpdateChaosComponentResponseContainer, UpdateChaosComponentErrorResponse, UpdateChaosComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateChaosComponentResponseContainer, ApiRestError, UpdateChaosComponentMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function updateChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internalv3/chaos-components/nodes/${props.identity}/${props.runID}/${props.notifyId}/${props.name}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Updates the chaos component node
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateChaosComponentMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => updateChaosComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -27,6 +27,6 @@ export interface UpdateConditionResponseContainer {
|
|
|
27
27
|
export declare function updateCondition(props: UpdateConditionProps): Promise<UpdateConditionResponseContainer>;
|
|
28
28
|
export type UpdateConditionMutationProps<T extends keyof UpdateConditionProps> = Omit<UpdateConditionProps, T> & Partial<Pick<UpdateConditionProps, T>>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Updates a chaos guard condition
|
|
31
31
|
*/
|
|
32
32
|
export declare function useUpdateConditionMutation<T extends keyof UpdateConditionProps>(props: Pick<Partial<UpdateConditionProps>, T>, options?: Omit<UseMutationOptions<UpdateConditionResponseContainer, UpdateConditionErrorResponse, UpdateConditionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateConditionResponseContainer, ApiRestError, UpdateConditionMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function updateCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions/${props.identity}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Updates a chaos guard condition
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateConditionMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => updateCondition(Object.assign(Object.assign({}, props), mutateProps)), options);
|
package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunPrerequisitesV2Mutation.d.ts
CHANGED
|
@@ -26,5 +26,6 @@ export declare function updateGamedayRunPrerequisitesV2(props: UpdateGamedayRunP
|
|
|
26
26
|
export type UpdateGamedayRunPrerequisitesV2MutationProps<T extends keyof UpdateGamedayRunPrerequisitesV2Props> = Omit<UpdateGamedayRunPrerequisitesV2Props, T> & Partial<Pick<UpdateGamedayRunPrerequisitesV2Props, T>>;
|
|
27
27
|
/**
|
|
28
28
|
* Update a chaos v2 gameday run
|
|
29
|
+
* @deprecated
|
|
29
30
|
*/
|
|
30
31
|
export declare function useUpdateGamedayRunPrerequisitesV2Mutation<T extends keyof UpdateGamedayRunPrerequisitesV2Props>(props: Pick<Partial<UpdateGamedayRunPrerequisitesV2Props>, T>, options?: Omit<UseMutationOptions<UpdateGamedayRunPrerequisitesV2ResponseContainer, UpdateGamedayRunPrerequisitesV2ErrorResponse, UpdateGamedayRunPrerequisitesV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateGamedayRunPrerequisitesV2ResponseContainer, ApiRestError, UpdateGamedayRunPrerequisitesV2MutationProps<T>, unknown>;
|
|
@@ -8,6 +8,7 @@ export function updateGamedayRunPrerequisitesV2(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Update a chaos v2 gameday run
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useUpdateGamedayRunPrerequisitesV2Mutation(props, options) {
|
|
13
14
|
return useMutation((mutateProps) => updateGamedayRunPrerequisitesV2(Object.assign(Object.assign({}, props), mutateProps)), options);
|
package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation.d.ts
CHANGED
|
@@ -26,5 +26,6 @@ export declare function updateGamedayRunStakeHolderActionsV2(props: UpdateGameda
|
|
|
26
26
|
export type UpdateGamedayRunStakeHolderActionsV2MutationProps<T extends keyof UpdateGamedayRunStakeHolderActionsV2Props> = Omit<UpdateGamedayRunStakeHolderActionsV2Props, T> & Partial<Pick<UpdateGamedayRunStakeHolderActionsV2Props, T>>;
|
|
27
27
|
/**
|
|
28
28
|
* Update a chaos v2 gameday run
|
|
29
|
+
* @deprecated
|
|
29
30
|
*/
|
|
30
31
|
export declare function useUpdateGamedayRunStakeHolderActionsV2Mutation<T extends keyof UpdateGamedayRunStakeHolderActionsV2Props>(props: Pick<Partial<UpdateGamedayRunStakeHolderActionsV2Props>, T>, options?: Omit<UseMutationOptions<UpdateGamedayRunStakeHolderActionsV2ResponseContainer, UpdateGamedayRunStakeHolderActionsV2ErrorResponse, UpdateGamedayRunStakeHolderActionsV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateGamedayRunStakeHolderActionsV2ResponseContainer, ApiRestError, UpdateGamedayRunStakeHolderActionsV2MutationProps<T>, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation.js
CHANGED
|
@@ -8,6 +8,7 @@ export function updateGamedayRunStakeHolderActionsV2(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Update a chaos v2 gameday run
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useUpdateGamedayRunStakeHolderActionsV2Mutation(props, options) {
|
|
13
14
|
return useMutation((mutateProps) => updateGamedayRunStakeHolderActionsV2(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -26,5 +26,6 @@ export declare function updateGamedayRunV2(props: UpdateGamedayRunV2Props): Prom
|
|
|
26
26
|
export type UpdateGamedayRunV2MutationProps<T extends keyof UpdateGamedayRunV2Props> = Omit<UpdateGamedayRunV2Props, T> & Partial<Pick<UpdateGamedayRunV2Props, T>>;
|
|
27
27
|
/**
|
|
28
28
|
* Update a chaos v2 gameday run
|
|
29
|
+
* @deprecated
|
|
29
30
|
*/
|
|
30
31
|
export declare function useUpdateGamedayRunV2Mutation<T extends keyof UpdateGamedayRunV2Props>(props: Pick<Partial<UpdateGamedayRunV2Props>, T>, options?: Omit<UseMutationOptions<UpdateGamedayRunV2ResponseContainer, UpdateGamedayRunV2ErrorResponse, UpdateGamedayRunV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateGamedayRunV2ResponseContainer, ApiRestError, UpdateGamedayRunV2MutationProps<T>, unknown>;
|