@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
|
@@ -26,6 +26,6 @@ export interface AbortChaosComponentResponseContainer {
|
|
|
26
26
|
export declare function abortChaosComponent(props: AbortChaosComponentProps): Promise<AbortChaosComponentResponseContainer>;
|
|
27
27
|
export type AbortChaosComponentMutationProps<T extends keyof AbortChaosComponentProps> = Omit<AbortChaosComponentProps, T> & Partial<Pick<AbortChaosComponentProps, T>>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Aborts a running chaos component execution
|
|
30
30
|
*/
|
|
31
31
|
export declare function useAbortChaosComponentMutation<T extends keyof AbortChaosComponentProps>(props: Pick<Partial<AbortChaosComponentProps>, T>, options?: Omit<UseMutationOptions<AbortChaosComponentResponseContainer, AbortChaosComponentErrorResponse, AbortChaosComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AbortChaosComponentResponseContainer, ApiRestError, AbortChaosComponentMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function abortChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internalv3/integrations/abort-chaos-component`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Aborts a running chaos component execution
|
|
11
11
|
*/
|
|
12
12
|
export function useAbortChaosComponentMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => abortChaosComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -23,6 +23,6 @@ export interface CanRetryExperimentCreationResponseContainer {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function canRetryExperimentCreation(props: CanRetryExperimentCreationProps): Promise<CanRetryExperimentCreationResponseContainer>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Can retry or not chaos experiment creation for the given target network map
|
|
27
27
|
*/
|
|
28
28
|
export declare function useCanRetryExperimentCreationQuery(props: CanRetryExperimentCreationProps, options?: Omit<UseQueryOptions<CanRetryExperimentCreationResponseContainer, CanRetryExperimentCreationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CanRetryExperimentCreationResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function canRetryExperimentCreation(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/applicationmaps/${props.applicationmapid}/canretry`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Can retry or not chaos experiment creation for the given target network map
|
|
11
11
|
*/
|
|
12
12
|
export function useCanRetryExperimentCreationQuery(props, options) {
|
|
13
13
|
return useQuery(['canRetryExperimentCreation', props.applicationmapid, props.queryParams], ({ signal }) => canRetryExperimentCreation(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -28,6 +28,6 @@ export interface CreateChaosComponentResponseContainer {
|
|
|
28
28
|
export declare function createChaosComponent(props: CreateChaosComponentProps): Promise<CreateChaosComponentResponseContainer>;
|
|
29
29
|
export type CreateChaosComponentMutationProps<T extends keyof CreateChaosComponentProps> = Omit<CreateChaosComponentProps, T> & Partial<Pick<CreateChaosComponentProps, T>>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Creates the chaos component nodes
|
|
32
32
|
*/
|
|
33
33
|
export declare function useCreateChaosComponentMutation<T extends keyof CreateChaosComponentProps>(props: Pick<Partial<CreateChaosComponentProps>, T>, options?: Omit<UseMutationOptions<CreateChaosComponentResponseContainer, CreateChaosComponentErrorResponse, CreateChaosComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChaosComponentResponseContainer, ApiRestError, CreateChaosComponentMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createChaosComponent(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/internalv3/chaos-components/nodes/${props.identity}/${props.runID}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates the chaos component nodes
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateChaosComponentMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createChaosComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface CreateConditionResponseContainer {
|
|
|
24
24
|
export declare function createCondition(props: CreateConditionProps): Promise<CreateConditionResponseContainer>;
|
|
25
25
|
export type CreateConditionMutationProps<T extends keyof CreateConditionProps> = Omit<CreateConditionProps, T> & Partial<Pick<CreateConditionProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Creates a chaos guard condition
|
|
28
28
|
*/
|
|
29
29
|
export declare function useCreateConditionMutation<T extends keyof CreateConditionProps>(props: Pick<Partial<CreateConditionProps>, T>, options?: Omit<UseMutationOptions<CreateConditionResponseContainer, CreateConditionErrorResponse, CreateConditionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateConditionResponseContainer, ApiRestError, CreateConditionMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a chaos guard condition
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateConditionMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createCondition(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface CreateDrTestResponseContainer {
|
|
|
24
24
|
export declare function createDrTest(props: CreateDrTestProps): Promise<CreateDrTestResponseContainer>;
|
|
25
25
|
export type CreateDrTestMutationProps<T extends keyof CreateDrTestProps> = Omit<CreateDrTestProps, T> & Partial<Pick<CreateDrTestProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Creates a DR Test pipeline for disaster recovery testing
|
|
28
28
|
*/
|
|
29
29
|
export declare function useCreateDrTestMutation<T extends keyof CreateDrTestProps>(props: Pick<Partial<CreateDrTestProps>, T>, options?: Omit<UseMutationOptions<CreateDrTestResponseContainer, CreateDrTestErrorResponse, CreateDrTestMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateDrTestResponseContainer, ApiRestError, CreateDrTestMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createDrTest(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/dr-tests`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a DR Test pipeline for disaster recovery testing
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateDrTestMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createDrTest(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -23,5 +23,6 @@ export declare function createGamedayRunV2(props: CreateGamedayRunV2Props): Prom
|
|
|
23
23
|
export type CreateGamedayRunV2MutationProps<T extends keyof CreateGamedayRunV2Props> = Omit<CreateGamedayRunV2Props, T> & Partial<Pick<CreateGamedayRunV2Props, T>>;
|
|
24
24
|
/**
|
|
25
25
|
* Create a chaos v2 gameday run
|
|
26
|
+
* @deprecated
|
|
26
27
|
*/
|
|
27
28
|
export declare function useCreateGamedayRunV2Mutation<T extends keyof CreateGamedayRunV2Props>(props: Pick<Partial<CreateGamedayRunV2Props>, T>, options?: Omit<UseMutationOptions<CreateGamedayRunV2ResponseContainer, CreateGamedayRunV2ErrorResponse, CreateGamedayRunV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateGamedayRunV2ResponseContainer, ApiRestError, CreateGamedayRunV2MutationProps<T>, unknown>;
|
|
@@ -8,6 +8,7 @@ export function createGamedayRunV2(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Create a chaos v2 gameday run
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useCreateGamedayRunV2Mutation(props, options) {
|
|
13
14
|
return useMutation((mutateProps) => createGamedayRunV2(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -23,5 +23,6 @@ export declare function createGamedayV2(props: CreateGamedayV2Props): Promise<Cr
|
|
|
23
23
|
export type CreateGamedayV2MutationProps<T extends keyof CreateGamedayV2Props> = Omit<CreateGamedayV2Props, T> & Partial<Pick<CreateGamedayV2Props, T>>;
|
|
24
24
|
/**
|
|
25
25
|
* Create a chaos v2 gameday
|
|
26
|
+
* @deprecated
|
|
26
27
|
*/
|
|
27
28
|
export declare function useCreateGamedayV2Mutation<T extends keyof CreateGamedayV2Props>(props: Pick<Partial<CreateGamedayV2Props>, T>, options?: Omit<UseMutationOptions<CreateGamedayV2ResponseContainer, CreateGamedayV2ErrorResponse, CreateGamedayV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateGamedayV2ResponseContainer, ApiRestError, CreateGamedayV2MutationProps<T>, unknown>;
|
|
@@ -8,6 +8,7 @@ export function createGamedayV2(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Create a chaos v2 gameday
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useCreateGamedayV2Mutation(props, options) {
|
|
13
14
|
return useMutation((mutateProps) => createGamedayV2(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -25,6 +25,6 @@ export interface CreateRiskResponseContainer {
|
|
|
25
25
|
export declare function createRisk(props: CreateRiskProps): Promise<CreateRiskResponseContainer>;
|
|
26
26
|
export type CreateRiskMutationProps<T extends keyof CreateRiskProps> = Omit<CreateRiskProps, T> & Partial<Pick<CreateRiskProps, T>>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Creates a risk
|
|
29
29
|
*/
|
|
30
30
|
export declare function useCreateRiskMutation<T extends keyof CreateRiskProps>(props: Pick<Partial<CreateRiskProps>, T>, options?: Omit<UseMutationOptions<CreateRiskResponseContainer, CreateRiskErrorResponse, CreateRiskMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRiskResponseContainer, ApiRestError, CreateRiskMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createRisk(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a risk
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateRiskMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createRisk(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface CreateRuleResponseContainer {
|
|
|
24
24
|
export declare function createRule(props: CreateRuleProps): Promise<CreateRuleResponseContainer>;
|
|
25
25
|
export type CreateRuleMutationProps<T extends keyof CreateRuleProps> = Omit<CreateRuleProps, T> & Partial<Pick<CreateRuleProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Creates a chaos guard rule
|
|
28
28
|
*/
|
|
29
29
|
export declare function useCreateRuleMutation<T extends keyof CreateRuleProps>(props: Pick<Partial<CreateRuleProps>, T>, options?: Omit<UseMutationOptions<CreateRuleResponseContainer, CreateRuleErrorResponse, CreateRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRuleResponseContainer, ApiRestError, CreateRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Creates a chaos guard rule
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface DeleteConditionResponseContainer {
|
|
|
24
24
|
export declare function deleteCondition(props: DeleteConditionProps): Promise<DeleteConditionResponseContainer>;
|
|
25
25
|
export type DeleteConditionMutationProps<T extends keyof DeleteConditionProps> = Omit<DeleteConditionProps, T> & Partial<Pick<DeleteConditionProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Deletes a chaos guard condition
|
|
28
28
|
*/
|
|
29
29
|
export declare function useDeleteConditionMutation<T extends keyof DeleteConditionProps>(props: Pick<Partial<DeleteConditionProps>, T>, options?: Omit<UseMutationOptions<DeleteConditionResponseContainer, DeleteConditionErrorResponse, DeleteConditionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteConditionResponseContainer, ApiRestError, DeleteConditionMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deleteCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions/${props.identity}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Deletes a chaos guard condition
|
|
11
11
|
*/
|
|
12
12
|
export function useDeleteConditionMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => deleteCondition(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -22,5 +22,6 @@ export declare function deleteGamedayV2(props: DeleteGamedayV2Props): Promise<De
|
|
|
22
22
|
export type DeleteGamedayV2MutationProps<T extends keyof DeleteGamedayV2Props> = Omit<DeleteGamedayV2Props, T> & Partial<Pick<DeleteGamedayV2Props, T>>;
|
|
23
23
|
/**
|
|
24
24
|
* Get a chaos v2 Gameday
|
|
25
|
+
* @deprecated
|
|
25
26
|
*/
|
|
26
27
|
export declare function useDeleteGamedayV2Mutation<T extends keyof DeleteGamedayV2Props>(props: Pick<Partial<DeleteGamedayV2Props>, T>, options?: Omit<UseMutationOptions<DeleteGamedayV2ResponseContainer, DeleteGamedayV2ErrorResponse, DeleteGamedayV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteGamedayV2ResponseContainer, ApiRestError, DeleteGamedayV2MutationProps<T>, unknown>;
|
|
@@ -8,6 +8,7 @@ export function deleteGamedayV2(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get a chaos v2 Gameday
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useDeleteGamedayV2Mutation(props, options) {
|
|
13
14
|
return useMutation((mutateProps) => deleteGamedayV2(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -25,6 +25,6 @@ export interface DeleteRiskResponseContainer {
|
|
|
25
25
|
export declare function deleteRisk(props: DeleteRiskProps): Promise<DeleteRiskResponseContainer>;
|
|
26
26
|
export type DeleteRiskMutationProps<T extends keyof DeleteRiskProps> = Omit<DeleteRiskProps, T> & Partial<Pick<DeleteRiskProps, T>>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Deletes a risk
|
|
29
29
|
*/
|
|
30
30
|
export declare function useDeleteRiskMutation<T extends keyof DeleteRiskProps>(props: Pick<Partial<DeleteRiskProps>, T>, options?: Omit<UseMutationOptions<DeleteRiskResponseContainer, DeleteRiskErrorResponse, DeleteRiskMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRiskResponseContainer, ApiRestError, DeleteRiskMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deleteRisk(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Deletes a risk
|
|
11
11
|
*/
|
|
12
12
|
export function useDeleteRiskMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => deleteRisk(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface DeleteRuleResponseContainer {
|
|
|
24
24
|
export declare function deleteRule(props: DeleteRuleProps): Promise<DeleteRuleResponseContainer>;
|
|
25
25
|
export type DeleteRuleMutationProps<T extends keyof DeleteRuleProps> = Omit<DeleteRuleProps, T> & Partial<Pick<DeleteRuleProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Deletes a chaos guard rule
|
|
28
28
|
*/
|
|
29
29
|
export declare function useDeleteRuleMutation<T extends keyof DeleteRuleProps>(props: Pick<Partial<DeleteRuleProps>, T>, options?: Omit<UseMutationOptions<DeleteRuleResponseContainer, DeleteRuleErrorResponse, DeleteRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRuleResponseContainer, ApiRestError, DeleteRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deleteRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Deletes a chaos guard rule
|
|
11
11
|
*/
|
|
12
12
|
export function useDeleteRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => deleteRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -25,6 +25,6 @@ export interface EnableRuleResponseContainer {
|
|
|
25
25
|
export declare function enableRule(props: EnableRuleProps): Promise<EnableRuleResponseContainer>;
|
|
26
26
|
export type EnableRuleMutationProps<T extends keyof EnableRuleProps> = Omit<EnableRuleProps, T> & Partial<Pick<EnableRuleProps, T>>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Enables or disables a chaos guard rule
|
|
29
29
|
*/
|
|
30
30
|
export declare function useEnableRuleMutation<T extends keyof EnableRuleProps>(props: Pick<Partial<EnableRuleProps>, T>, options?: Omit<UseMutationOptions<EnableRuleResponseContainer, EnableRuleErrorResponse, EnableRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EnableRuleResponseContainer, EnableRuleErrorResponse, EnableRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function enableRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}/enable`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Enables or disables a chaos guard rule
|
|
11
11
|
*/
|
|
12
12
|
export function useEnableRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => enableRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -23,6 +23,6 @@ export interface GetChaosComponentVariableResponseContainer {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function getChaosComponentVariable(props: GetChaosComponentVariableProps): Promise<GetChaosComponentVariableResponseContainer>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Gets chaos component variables (faults, probes, actions)
|
|
27
27
|
*/
|
|
28
28
|
export declare function useGetChaosComponentVariableQuery(props: GetChaosComponentVariableProps, options?: Omit<UseQueryOptions<GetChaosComponentVariableResponseContainer, GetChaosComponentVariableErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosComponentVariableResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getChaosComponentVariable(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/integrations/get-chaos-component-variable`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets chaos component variables (faults, probes, actions)
|
|
11
11
|
*/
|
|
12
12
|
export function useGetChaosComponentVariableQuery(props, options) {
|
|
13
13
|
return useQuery(['getChaosComponentVariable', props.queryParams], ({ signal }) => getChaosComponentVariable(Object.assign(Object.assign({}, props), { signal })), options);
|
package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunReportPdfLegacyQuery.d.ts
CHANGED
|
@@ -21,5 +21,6 @@ export interface GetChaosExperimentRunReportPdfLegacyResponseContainer {
|
|
|
21
21
|
export declare function getChaosExperimentRunReportPdfLegacy(props: GetChaosExperimentRunReportPdfLegacyProps): Promise<GetChaosExperimentRunReportPdfLegacyResponseContainer>;
|
|
22
22
|
/**
|
|
23
23
|
* Deprecated – use /v3/experiment-runs/{experimentRunId}/report instead.
|
|
24
|
+
* @deprecated
|
|
24
25
|
*/
|
|
25
26
|
export declare function useGetChaosExperimentRunReportPdfLegacyQuery(props: GetChaosExperimentRunReportPdfLegacyProps, options?: Omit<UseQueryOptions<GetChaosExperimentRunReportPdfLegacyResponseContainer, GetChaosExperimentRunReportPdfLegacyErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosExperimentRunReportPdfLegacyResponseContainer, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunReportPdfLegacyQuery.js
CHANGED
|
@@ -8,6 +8,7 @@ export function getChaosExperimentRunReportPdfLegacy(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Deprecated – use /v3/experiment-runs/{experimentRunId}/report instead.
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useGetChaosExperimentRunReportPdfLegacyQuery(props, options) {
|
|
13
14
|
return useQuery([
|
|
@@ -23,6 +23,6 @@ export interface GetConditionResponseContainer {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function getCondition(props: GetConditionProps): Promise<GetConditionResponseContainer>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Gets a chaos guard condition by id
|
|
27
27
|
*/
|
|
28
28
|
export declare function useGetConditionQuery(props: GetConditionProps, options?: Omit<UseQueryOptions<GetConditionResponseContainer, GetConditionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetConditionResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getCondition(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-conditions/${props.identity}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets a chaos guard condition by id
|
|
11
11
|
*/
|
|
12
12
|
export function useGetConditionQuery(props, options) {
|
|
13
13
|
return useQuery(['getCondition', props.identity, props.queryParams], ({ signal }) => getCondition(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { HandlersExperimentHelperImageVersion } from '../schemas/HandlersExperimentHelperImageVersion';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
5
|
export type GetExperimentHelperImageVersionOkResponse = HandlersExperimentHelperImageVersion;
|
|
5
|
-
export type GetExperimentHelperImageVersionErrorResponse =
|
|
6
|
+
export type GetExperimentHelperImageVersionErrorResponse = ApiRestError;
|
|
6
7
|
export interface GetExperimentHelperImageVersionProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
7
8
|
}
|
|
8
9
|
export interface GetExperimentHelperImageVersionResponseContainer {
|
|
@@ -13,4 +14,4 @@ export declare function getExperimentHelperImageVersion(props: GetExperimentHelp
|
|
|
13
14
|
/**
|
|
14
15
|
* Get experiment helper image version
|
|
15
16
|
*/
|
|
16
|
-
export declare function useGetExperimentHelperImageVersionQuery(props: GetExperimentHelperImageVersionProps, options?: Omit<UseQueryOptions<GetExperimentHelperImageVersionResponseContainer, GetExperimentHelperImageVersionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentHelperImageVersionResponseContainer,
|
|
17
|
+
export declare function useGetExperimentHelperImageVersionQuery(props: GetExperimentHelperImageVersionProps, options?: Omit<UseQueryOptions<GetExperimentHelperImageVersionResponseContainer, GetExperimentHelperImageVersionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentHelperImageVersionResponseContainer, ApiRestError>;
|
|
@@ -24,6 +24,6 @@ export interface GetExperimentOrTemplateVariableResponseContainer {
|
|
|
24
24
|
}
|
|
25
25
|
export declare function getExperimentOrTemplateVariable(props: GetExperimentOrTemplateVariableProps): Promise<GetExperimentOrTemplateVariableResponseContainer>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Gets experiment or template inputs
|
|
28
28
|
*/
|
|
29
29
|
export declare function useGetExperimentOrTemplateVariableQuery(props: GetExperimentOrTemplateVariableProps, options?: Omit<UseQueryOptions<GetExperimentOrTemplateVariableResponseContainer, GetExperimentOrTemplateVariableErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentOrTemplateVariableResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getExperimentOrTemplateVariable(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/integrations/get-experiment-or-template-variable`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets experiment or template inputs
|
|
11
11
|
*/
|
|
12
12
|
export function useGetExperimentOrTemplateVariableQuery(props, options) {
|
|
13
13
|
return useQuery(['getExperimentOrTemplateVariable', props.queryParams], ({ signal }) => getExperimentOrTemplateVariable(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -24,6 +24,6 @@ export interface GetExperimentRunsCsvResponseContainer {
|
|
|
24
24
|
export declare function getExperimentRunsCsv(props: GetExperimentRunsCsvProps): Promise<GetExperimentRunsCsvResponseContainer>;
|
|
25
25
|
export type GetExperimentRunsCsvMutationProps<T extends keyof GetExperimentRunsCsvProps> = Omit<GetExperimentRunsCsvProps, T> & Partial<Pick<GetExperimentRunsCsvProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Download experiment runs as CSV (no request body; only path + query params)
|
|
28
28
|
*/
|
|
29
29
|
export declare function useGetExperimentRunsCsvMutation<T extends keyof GetExperimentRunsCsvProps>(props: Pick<Partial<GetExperimentRunsCsvProps>, T>, options?: Omit<UseMutationOptions<GetExperimentRunsCsvResponseContainer, GetExperimentRunsCsvErrorResponse, GetExperimentRunsCsvMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetExperimentRunsCsvResponseContainer, unknown, GetExperimentRunsCsvMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function getExperimentRunsCsv(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/rest/v2/experiment-runs/csv`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Download experiment runs as CSV (no request body; only path + query params)
|
|
11
11
|
*/
|
|
12
12
|
export function useGetExperimentRunsCsvMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => getExperimentRunsCsv(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
2
3
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
3
4
|
export interface GetExperimentationActivityReportQueryPathParams {
|
|
4
5
|
accountID: string;
|
|
@@ -9,7 +10,7 @@ export interface GetExperimentationActivityReportQueryQueryParams {
|
|
|
9
10
|
cumulate?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type GetExperimentationActivityReportOkResponse = Array<string[]>;
|
|
12
|
-
export type GetExperimentationActivityReportErrorResponse =
|
|
13
|
+
export type GetExperimentationActivityReportErrorResponse = ApiRestError;
|
|
13
14
|
export interface GetExperimentationActivityReportProps extends GetExperimentationActivityReportQueryPathParams, Omit<FetcherOptions<GetExperimentationActivityReportQueryQueryParams, unknown>, 'url'> {
|
|
14
15
|
queryParams: GetExperimentationActivityReportQueryQueryParams;
|
|
15
16
|
}
|
|
@@ -21,4 +22,4 @@ export declare function getExperimentationActivityReport(props: GetExperimentati
|
|
|
21
22
|
/**
|
|
22
23
|
* Generates experimentation activity report for account in a given timeframe
|
|
23
24
|
*/
|
|
24
|
-
export declare function useGetExperimentationActivityReportQuery(props: GetExperimentationActivityReportProps, options?: Omit<UseQueryOptions<GetExperimentationActivityReportResponseContainer, GetExperimentationActivityReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentationActivityReportResponseContainer,
|
|
25
|
+
export declare function useGetExperimentationActivityReportQuery(props: GetExperimentationActivityReportProps, options?: Omit<UseQueryOptions<GetExperimentationActivityReportResponseContainer, GetExperimentationActivityReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentationActivityReportResponseContainer, ApiRestError>;
|
|
@@ -23,5 +23,6 @@ export interface GetGamedayRunV2ResponseContainer {
|
|
|
23
23
|
export declare function getGamedayRunV2(props: GetGamedayRunV2Props): Promise<GetGamedayRunV2ResponseContainer>;
|
|
24
24
|
/**
|
|
25
25
|
* Fetch a chaos v2 gameday run
|
|
26
|
+
* @deprecated
|
|
26
27
|
*/
|
|
27
28
|
export declare function useGetGamedayRunV2Query(props: GetGamedayRunV2Props, options?: Omit<UseQueryOptions<GetGamedayRunV2ResponseContainer, GetGamedayRunV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetGamedayRunV2ResponseContainer, ApiRestError>;
|
|
@@ -8,6 +8,7 @@ export function getGamedayRunV2(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Fetch a chaos v2 gameday run
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useGetGamedayRunV2Query(props, options) {
|
|
13
14
|
return useQuery(['getGamedayRunV2', props.gamedayId, props.gamedayRunId, props.queryParams], ({ signal }) => getGamedayRunV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -22,5 +22,6 @@ export interface GetGamedayV2ResponseContainer {
|
|
|
22
22
|
export declare function getGamedayV2(props: GetGamedayV2Props): Promise<GetGamedayV2ResponseContainer>;
|
|
23
23
|
/**
|
|
24
24
|
* Get a chaos v2 Gameday
|
|
25
|
+
* @deprecated
|
|
25
26
|
*/
|
|
26
27
|
export declare function useGetGamedayV2Query(props: GetGamedayV2Props, options?: Omit<UseQueryOptions<GetGamedayV2ResponseContainer, GetGamedayV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetGamedayV2ResponseContainer, ApiRestError>;
|
|
@@ -8,6 +8,7 @@ export function getGamedayV2(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get a chaos v2 Gameday
|
|
11
|
+
* @deprecated
|
|
11
12
|
*/
|
|
12
13
|
export function useGetGamedayV2Query(props, options) {
|
|
13
14
|
return useQuery(['GetGamedayV2', props.gamedayId, props.queryParams], ({ signal }) => getGamedayV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { HandlersImageRegistryDetails } from '../schemas/HandlersImageRegistryDetails';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
5
|
export type GetImageRegistryOkResponse = HandlersImageRegistryDetails;
|
|
5
|
-
export type GetImageRegistryErrorResponse =
|
|
6
|
+
export type GetImageRegistryErrorResponse = ApiRestError;
|
|
6
7
|
export interface GetImageRegistryProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
7
8
|
}
|
|
8
9
|
export interface GetImageRegistryResponseContainer {
|
|
@@ -13,4 +14,4 @@ export declare function getImageRegistry(props: GetImageRegistryProps): Promise<
|
|
|
13
14
|
/**
|
|
14
15
|
* Get image registry
|
|
15
16
|
*/
|
|
16
|
-
export declare function useGetImageRegistryQuery(props: GetImageRegistryProps, options?: Omit<UseQueryOptions<GetImageRegistryResponseContainer, GetImageRegistryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetImageRegistryResponseContainer,
|
|
17
|
+
export declare function useGetImageRegistryQuery(props: GetImageRegistryProps, options?: Omit<UseQueryOptions<GetImageRegistryResponseContainer, GetImageRegistryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetImageRegistryResponseContainer, ApiRestError>;
|
package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraManifestQuery.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function getLegacyKubernetesChaosInfraManifest(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/kubernetes/infra
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/manifest`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get legacy kubernetes chaos infrastructure manifest
|
package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesHelmInfraCommandQuery.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function getLegacyKubernetesHelmInfraCommand(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/kubernetes/infra
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/helm-command`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Test legacy kubernetes helm infra command
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function getProbeManifest(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/probes
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/probes/${props.probeId}/manifest`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Retrieve probe manifest of a specific probe by its ID
|
|
@@ -24,6 +24,6 @@ export interface GetRiskResponseContainer {
|
|
|
24
24
|
}
|
|
25
25
|
export declare function getRisk(props: GetRiskProps): Promise<GetRiskResponseContainer>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Gets a risk by identity
|
|
28
28
|
*/
|
|
29
29
|
export declare function useGetRiskQuery(props: GetRiskProps, options?: Omit<UseQueryOptions<GetRiskResponseContainer, GetRiskErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRiskResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getRisk(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets a risk by identity
|
|
11
11
|
*/
|
|
12
12
|
export function useGetRiskQuery(props, options) {
|
|
13
13
|
return useQuery(['getRisk', props.identity, props.queryParams], ({ signal }) => getRisk(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -23,6 +23,6 @@ export interface GetRuleResponseContainer {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function getRule(props: GetRuleProps): Promise<GetRuleResponseContainer>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Gets a chaos guard rule by id
|
|
27
27
|
*/
|
|
28
28
|
export declare function useGetRuleQuery(props: GetRuleProps, options?: Omit<UseQueryOptions<GetRuleResponseContainer, GetRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRuleResponseContainer, ApiRestError>;
|
|
@@ -7,7 +7,7 @@ export function getRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets a chaos guard rule by id
|
|
11
11
|
*/
|
|
12
12
|
export function useGetRuleQuery(props, options) {
|
|
13
13
|
return useQuery(['getRule', props.identity, props.queryParams], ({ signal }) => getRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
2
3
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
3
4
|
export interface GetServiceUsageReportQueryPathParams {
|
|
4
5
|
accountID: string;
|
|
@@ -9,7 +10,7 @@ export interface GetServiceUsageReportQueryQueryParams {
|
|
|
9
10
|
cumulate?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type GetServiceUsageReportOkResponse = Array<string[]>;
|
|
12
|
-
export type GetServiceUsageReportErrorResponse =
|
|
13
|
+
export type GetServiceUsageReportErrorResponse = ApiRestError;
|
|
13
14
|
export interface GetServiceUsageReportProps extends GetServiceUsageReportQueryPathParams, Omit<FetcherOptions<GetServiceUsageReportQueryQueryParams, unknown>, 'url'> {
|
|
14
15
|
queryParams: GetServiceUsageReportQueryQueryParams;
|
|
15
16
|
}
|
|
@@ -21,4 +22,4 @@ export declare function getServiceUsageReport(props: GetServiceUsageReportProps)
|
|
|
21
22
|
/**
|
|
22
23
|
* Generates service usage report for account in a given timeframe
|
|
23
24
|
*/
|
|
24
|
-
export declare function useGetServiceUsageReportQuery(props: GetServiceUsageReportProps, options?: Omit<UseQueryOptions<GetServiceUsageReportResponseContainer, GetServiceUsageReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceUsageReportResponseContainer,
|
|
25
|
+
export declare function useGetServiceUsageReportQuery(props: GetServiceUsageReportProps, options?: Omit<UseQueryOptions<GetServiceUsageReportResponseContainer, GetServiceUsageReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceUsageReportResponseContainer, ApiRestError>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { SecurityGovernanceCondition } from '../schemas/SecurityGovernanceCondition';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
5
|
export type GetSgpTemplateByGenAiOkResponse = SecurityGovernanceCondition;
|
|
5
|
-
export type GetSgpTemplateByGenAiErrorResponse =
|
|
6
|
+
export type GetSgpTemplateByGenAiErrorResponse = ApiRestError;
|
|
6
7
|
export interface GetSgpTemplateByGenAiProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
7
8
|
}
|
|
8
9
|
export interface GetSgpTemplateByGenAiResponseContainer {
|
|
@@ -14,4 +15,4 @@ export type GetSgpTemplateByGenAiMutationProps<T extends keyof GetSgpTemplateByG
|
|
|
14
15
|
/**
|
|
15
16
|
* Get security governance conditions template
|
|
16
17
|
*/
|
|
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,
|
|
18
|
+
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, ApiRestError, GetSgpTemplateByGenAiMutationProps<T>, unknown>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function healthCheckV3(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/health`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Health check
|