@harnessio/react-chaos-manager-client 1.19.1-beta.0 → 1.20.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/useDeleteHubMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteHubMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListTargetNetworkMapsQuery.d.ts +0 -4
- package/dist/chaos-manager/src/services/index.d.ts +2 -4
- package/dist/chaos-manager/src/services/index.js +1 -1
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/SecurityGovernanceK8sSpec.d.ts +0 -2
- package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +0 -1
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.d.ts +0 -29
- package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.js +0 -14
- package/dist/chaos-manager/src/services/schemas/SecurityGovernanceAccessControl.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/SecurityGovernanceAccessControl.js +0 -4
- package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.d.ts +0 -3
- package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.js +0 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface DeleteHubMutationPathParams {
|
|
6
|
+
hubIdentity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteHubMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export type DeleteHubOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
|
|
15
|
+
export type DeleteHubErrorResponse = ApiRestError;
|
|
16
|
+
export interface DeleteHubProps extends DeleteHubMutationPathParams, Omit<FetcherOptions<DeleteHubMutationQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: DeleteHubMutationQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface DeleteHubResponseContainer {
|
|
20
|
+
body: DeleteHubOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function deleteHub(props: DeleteHubProps): Promise<DeleteHubResponseContainer>;
|
|
24
|
+
export type DeleteHubMutationProps<T extends keyof DeleteHubProps> = Omit<DeleteHubProps, T> & Partial<Pick<DeleteHubProps, T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Delete a chaos hub in a scope
|
|
27
|
+
*/
|
|
28
|
+
export declare function useDeleteHubMutation<T extends keyof DeleteHubProps>(props: Pick<Partial<DeleteHubProps>, T>, options?: Omit<UseMutationOptions<DeleteHubResponseContainer, DeleteHubErrorResponse, DeleteHubMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteHubResponseContainer, ApiRestError, DeleteHubMutationProps<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 deleteHub(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hubs/${props.hubIdentity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete a chaos hub in a scope
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteHubMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteHub(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -15,10 +15,6 @@ export interface ListTargetNetworkMapsQueryQueryParams {
|
|
|
15
15
|
* @default 10
|
|
16
16
|
*/
|
|
17
17
|
limit: number;
|
|
18
|
-
environmentIdentifier?: string;
|
|
19
|
-
infraId?: string;
|
|
20
|
-
all?: boolean;
|
|
21
|
-
minimal?: boolean;
|
|
22
18
|
search?: string;
|
|
23
19
|
}
|
|
24
20
|
export type ListTargetNetworkMapsRequestBody = NetworkmapListTargetNetworkMapRequest;
|
|
@@ -48,6 +48,8 @@ export type { DeleteFaultTemplateErrorResponse, DeleteFaultTemplateMutationPathP
|
|
|
48
48
|
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
49
49
|
export type { DeleteGamedayV2ErrorResponse, DeleteGamedayV2MutationPathParams, DeleteGamedayV2MutationProps, DeleteGamedayV2MutationQueryParams, DeleteGamedayV2OkResponse, DeleteGamedayV2Props, } from './hooks/useDeleteGamedayV2Mutation';
|
|
50
50
|
export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGamedayV2Mutation';
|
|
51
|
+
export type { DeleteHubErrorResponse, DeleteHubMutationPathParams, DeleteHubMutationProps, DeleteHubMutationQueryParams, DeleteHubOkResponse, DeleteHubProps, } from './hooks/useDeleteHubMutation';
|
|
52
|
+
export { deleteHub, useDeleteHubMutation } from './hooks/useDeleteHubMutation';
|
|
51
53
|
export type { DeleteInfraV2ErrorResponse, DeleteInfraV2MutationPathParams, DeleteInfraV2MutationProps, DeleteInfraV2MutationQueryParams, DeleteInfraV2OkResponse, DeleteInfraV2Props, } from './hooks/useDeleteInfraV2Mutation';
|
|
52
54
|
export { deleteInfraV2, useDeleteInfraV2Mutation } from './hooks/useDeleteInfraV2Mutation';
|
|
53
55
|
export type { DeleteInputSetErrorResponse, DeleteInputSetMutationPathParams, DeleteInputSetMutationProps, DeleteInputSetMutationQueryParams, DeleteInputSetOkResponse, DeleteInputSetProps, } from './hooks/useDeleteInputSetMutation';
|
|
@@ -304,8 +306,6 @@ export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatu
|
|
|
304
306
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
305
307
|
export type { VerifyChaosStageInPipelineRunErrorResponse, VerifyChaosStageInPipelineRunOkResponse, VerifyChaosStageInPipelineRunProps, VerifyChaosStageInPipelineRunQueryQueryParams, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
|
|
306
308
|
export { useVerifyChaosStageInPipelineRunQuery, verifyChaosStageInPipelineRun, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
|
|
307
|
-
export type { VerifyProbeErrorResponse, VerifyProbeMutationPathParams, VerifyProbeMutationProps, VerifyProbeMutationQueryParams, VerifyProbeOkResponse, VerifyProbeProps, VerifyProbeRequestBody, } from './hooks/useVerifyProbeMutation';
|
|
308
|
-
export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
|
|
309
309
|
export type { ChaosfaulttemplateActionTemplateRequestBody } from './requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
|
|
310
310
|
export type { InfraV2ListKubernetesInfraV2RequestRequestBody } from './requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
|
|
311
311
|
export type { TypesProbeRequestRequestBody } from './requestBodies/TypesProbeRequestRequestBody';
|
|
@@ -747,7 +747,6 @@ export type { RecommendationsListRecommendationsResponse } from './schemas/Recom
|
|
|
747
747
|
export type { RecommendationsPipelineAddExperimentResponse } from './schemas/RecommendationsPipelineAddExperimentResponse';
|
|
748
748
|
export type { RecommendationsRunActionResponse } from './schemas/RecommendationsRunActionResponse';
|
|
749
749
|
export type { ResourceQuantity } from './schemas/ResourceQuantity';
|
|
750
|
-
export type { SecurityGovernanceAccessControl } from './schemas/SecurityGovernanceAccessControl';
|
|
751
750
|
export type { SecurityGovernanceApplicationSpec } from './schemas/SecurityGovernanceApplicationSpec';
|
|
752
751
|
export type { SecurityGovernanceChaosServiceAccountSpec } from './schemas/SecurityGovernanceChaosServiceAccountSpec';
|
|
753
752
|
export type { SecurityGovernanceCondition } from './schemas/SecurityGovernanceCondition';
|
|
@@ -823,7 +822,6 @@ export type { TypesProbeDetailsMinimal } from './schemas/TypesProbeDetailsMinima
|
|
|
823
822
|
export type { TypesProbeRecentExecutions } from './schemas/TypesProbeRecentExecutions';
|
|
824
823
|
export type { TypesProbeRequest } from './schemas/TypesProbeRequest';
|
|
825
824
|
export type { TypesProbeType } from './schemas/TypesProbeType';
|
|
826
|
-
export type { TypesProbeVerifyRequest } from './schemas/TypesProbeVerifyRequest';
|
|
827
825
|
export type { TypesRecentGamedayRun } from './schemas/TypesRecentGamedayRun';
|
|
828
826
|
export type { TypesRun } from './schemas/TypesRun';
|
|
829
827
|
export type { TypesScenarioType } from './schemas/TypesScenarioType';
|
|
@@ -23,6 +23,7 @@ export { deleteChaosV2Experiment, useDeleteChaosV2ExperimentMutation, } from './
|
|
|
23
23
|
export { deleteFault, useDeleteFaultMutation } from './hooks/useDeleteFaultMutation';
|
|
24
24
|
export { deleteFaultTemplate, useDeleteFaultTemplateMutation, } from './hooks/useDeleteFaultTemplateMutation';
|
|
25
25
|
export { deleteGamedayV2, useDeleteGamedayV2Mutation } from './hooks/useDeleteGamedayV2Mutation';
|
|
26
|
+
export { deleteHub, useDeleteHubMutation } from './hooks/useDeleteHubMutation';
|
|
26
27
|
export { deleteInfraV2, useDeleteInfraV2Mutation } from './hooks/useDeleteInfraV2Mutation';
|
|
27
28
|
export { deleteInputSet, useDeleteInputSetMutation } from './hooks/useDeleteInputSetMutation';
|
|
28
29
|
export { deleteMachineChaosInfra, useDeleteMachineChaosInfraMutation, } from './hooks/useDeleteMachineChaosInfraMutation';
|
|
@@ -151,4 +152,3 @@ export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutat
|
|
|
151
152
|
export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
|
|
152
153
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
153
154
|
export { useVerifyChaosStageInPipelineRunQuery, verifyChaosStageInPipelineRun, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
|
|
154
|
-
export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
|
package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.d.ts
CHANGED
|
@@ -38,10 +38,6 @@ export interface GithubComHarnessHceSaasHceSdkCommonProbeV1Probe {
|
|
|
38
38
|
* ID is the unique identifier for the probe
|
|
39
39
|
*/
|
|
40
40
|
id?: string;
|
|
41
|
-
/**
|
|
42
|
-
* IsVerified indicates whether the probe is verified or not
|
|
43
|
-
*/
|
|
44
|
-
isVerified?: boolean;
|
|
45
41
|
/**
|
|
46
42
|
* inputs needed for the k8s probe
|
|
47
43
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { SecurityGovernanceApplicationSpec } from '../schemas/SecurityGovernanceApplicationSpec';
|
|
2
2
|
import type { SecurityGovernanceChaosServiceAccountSpec } from '../schemas/SecurityGovernanceChaosServiceAccountSpec';
|
|
3
3
|
import type { SecurityGovernanceInfraSpec } from '../schemas/SecurityGovernanceInfraSpec';
|
|
4
|
-
import type { SecurityGovernanceAccessControl } from '../schemas/SecurityGovernanceAccessControl';
|
|
5
4
|
export interface SecurityGovernanceK8sSpec {
|
|
6
5
|
applicationSpec?: SecurityGovernanceApplicationSpec;
|
|
7
6
|
chaosServiceAccountSpec?: SecurityGovernanceChaosServiceAccountSpec;
|
|
8
7
|
infraSpec?: SecurityGovernanceInfraSpec;
|
|
9
|
-
unverifiedProbe?: SecurityGovernanceAccessControl;
|
|
10
8
|
}
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
-
import type { TypesProbeVerifyRequest } from '../schemas/TypesProbeVerifyRequest';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
-
export interface VerifyProbeMutationPathParams {
|
|
6
|
-
probeId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface VerifyProbeMutationQueryParams {
|
|
9
|
-
accountIdentifier: string;
|
|
10
|
-
organizationIdentifier: string;
|
|
11
|
-
projectIdentifier: string;
|
|
12
|
-
}
|
|
13
|
-
export type VerifyProbeRequestBody = TypesProbeVerifyRequest;
|
|
14
|
-
export type VerifyProbeOkResponse = string;
|
|
15
|
-
export type VerifyProbeErrorResponse = ApiRestError;
|
|
16
|
-
export interface VerifyProbeProps extends VerifyProbeMutationPathParams, Omit<FetcherOptions<VerifyProbeMutationQueryParams, VerifyProbeRequestBody>, 'url'> {
|
|
17
|
-
queryParams: VerifyProbeMutationQueryParams;
|
|
18
|
-
body: VerifyProbeRequestBody;
|
|
19
|
-
}
|
|
20
|
-
export interface VerifyProbeResponseContainer {
|
|
21
|
-
body: VerifyProbeOkResponse;
|
|
22
|
-
headers: Headers;
|
|
23
|
-
}
|
|
24
|
-
export declare function verifyProbe(props: VerifyProbeProps): Promise<VerifyProbeResponseContainer>;
|
|
25
|
-
export type VerifyProbeMutationProps<T extends keyof VerifyProbeProps> = Omit<VerifyProbeProps, T> & Partial<Pick<VerifyProbeProps, T>>;
|
|
26
|
-
/**
|
|
27
|
-
* Verify a probe
|
|
28
|
-
*/
|
|
29
|
-
export declare function useVerifyProbeMutation<T extends keyof VerifyProbeProps>(props: Pick<Partial<VerifyProbeProps>, T>, options?: Omit<UseMutationOptions<VerifyProbeResponseContainer, VerifyProbeErrorResponse, VerifyProbeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<VerifyProbeResponseContainer, ApiRestError, VerifyProbeMutationProps<T>, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 verifyProbe(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/probes/${props.probeId}/verify`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Verify a probe
|
|
11
|
-
*/
|
|
12
|
-
export function useVerifyProbeMutation(props, options) {
|
|
13
|
-
return useMutation((mutateProps) => verifyProbe(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type SecurityGovernanceAccessControl = 'ALLOWED' | 'BLOCKED';
|