@harnessio/react-chaos-manager-client 1.74.0 → 1.75.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/useGetProbesInStepExecutionQuery.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useGetProbesInStepExecutionQuery.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +2 -14
- package/dist/chaos-manager/src/services/index.js +1 -4
- package/dist/chaos-manager/src/services/schemas/V2OnboardingV2Onboarding.d.ts +0 -2
- package/dist/chaos-manager/src/services/schemas/V2OnboardingV2OnboardingStatus.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetServiceRiskScanQuery.d.ts +0 -27
- package/dist/chaos-manager/src/services/hooks/useGetServiceRiskScanQuery.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmServiceRiskScanMutation.d.ts +0 -28
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmServiceRiskScanMutation.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useSkipOnboardingMutation.d.ts +0 -28
- package/dist/chaos-manager/src/services/hooks/useSkipOnboardingMutation.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useTriggerServiceRiskScanMutation.d.ts +0 -28
- package/dist/chaos-manager/src/services/hooks/useTriggerServiceRiskScanMutation.js +0 -14
- package/dist/chaos-manager/src/services/schemas/V2OnboardingConfirmServiceRiskScanResponse.d.ts +0 -3
- package/dist/chaos-manager/src/services/schemas/V2OnboardingConfirmServiceRiskScanResponse.js +0 -4
- package/dist/chaos-manager/src/services/schemas/V2OnboardingGetServiceRiskScanResponse.d.ts +0 -11
- package/dist/chaos-manager/src/services/schemas/V2OnboardingGetServiceRiskScanResponse.js +0 -1
- package/dist/chaos-manager/src/services/schemas/V2OnboardingRiskScanStatus.d.ts +0 -10
- package/dist/chaos-manager/src/services/schemas/V2OnboardingRiskScanStatus.js +0 -1
- package/dist/chaos-manager/src/services/schemas/V2OnboardingRiskScanSummary.d.ts +0 -10
- package/dist/chaos-manager/src/services/schemas/V2OnboardingRiskScanSummary.js +0 -4
- package/dist/chaos-manager/src/services/schemas/V2OnboardingSkipOnboardingResponse.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/V2OnboardingSkipOnboardingResponse.js +0 -4
- package/dist/chaos-manager/src/services/schemas/V2OnboardingTriggerServiceRiskScanResponse.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/V2OnboardingTriggerServiceRiskScanResponse.js +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesProbeDetailsInExperimentResponse } from '../schemas/TypesProbeDetailsInExperimentResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { TypesProbeDetailsInExperimentRequest } from '../schemas/TypesProbeDetailsInExperimentRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface GetProbesInStepExecutionQueryQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
organizationIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetProbesInStepExecutionRequestBody = TypesProbeDetailsInExperimentRequest;
|
|
12
|
+
export type GetProbesInStepExecutionOkResponse = TypesProbeDetailsInExperimentResponse;
|
|
13
|
+
export type GetProbesInStepExecutionErrorResponse = ApiRestError;
|
|
14
|
+
export interface GetProbesInStepExecutionProps extends Omit<FetcherOptions<GetProbesInStepExecutionQueryQueryParams, GetProbesInStepExecutionRequestBody>, 'url'> {
|
|
15
|
+
queryParams: GetProbesInStepExecutionQueryQueryParams;
|
|
16
|
+
body: GetProbesInStepExecutionRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export interface GetProbesInStepExecutionResponseContainer {
|
|
19
|
+
body: GetProbesInStepExecutionOkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function getProbesInStepExecution(props: GetProbesInStepExecutionProps): Promise<GetProbesInStepExecutionResponseContainer>;
|
|
23
|
+
/**
|
|
24
|
+
* Get probe results for probes executed as independent pipeline steps within a composite-load stage, grouped by notify ids
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetProbesInStepExecutionQuery(props: GetProbesInStepExecutionProps, options?: Omit<UseQueryOptions<GetProbesInStepExecutionResponseContainer, GetProbesInStepExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProbesInStepExecutionResponseContainer, ApiRestError>;
|
|
@@ -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 getProbesInStepExecution(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/probes/step-execution`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get probe results for probes executed as independent pipeline steps within a composite-load stage, grouped by notify ids
|
|
11
|
+
*/
|
|
12
|
+
export function useGetProbesInStepExecutionQuery(props, options) {
|
|
13
|
+
return useQuery(['getProbesInStepExecution', props.queryParams, props.body], ({ signal }) => getProbesInStepExecution(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -256,6 +256,8 @@ export type { GetProbeTemplateErrorResponse, GetProbeTemplateOkResponse, GetProb
|
|
|
256
256
|
export { getProbeTemplate, useGetProbeTemplateQuery } from './hooks/useGetProbeTemplateQuery';
|
|
257
257
|
export type { GetProbesInExperimentErrorResponse, GetProbesInExperimentOkResponse, GetProbesInExperimentProps, GetProbesInExperimentQueryQueryParams, GetProbesInExperimentRequestBody, } from './hooks/useGetProbesInExperimentQuery';
|
|
258
258
|
export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/useGetProbesInExperimentQuery';
|
|
259
|
+
export type { GetProbesInStepExecutionErrorResponse, GetProbesInStepExecutionOkResponse, GetProbesInStepExecutionProps, GetProbesInStepExecutionQueryQueryParams, GetProbesInStepExecutionRequestBody, } from './hooks/useGetProbesInStepExecutionQuery';
|
|
260
|
+
export { getProbesInStepExecution, useGetProbesInStepExecutionQuery, } from './hooks/useGetProbesInStepExecutionQuery';
|
|
259
261
|
export type { GetRecommendationErrorResponse, GetRecommendationOkResponse, GetRecommendationProps, GetRecommendationQueryQueryParams, } from './hooks/useGetRecommendationQuery';
|
|
260
262
|
export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
|
|
261
263
|
export type { GetResourceUsageErrorResponse, GetResourceUsageOkResponse, GetResourceUsageProps, } from './hooks/useGetResourceUsageQuery';
|
|
@@ -278,8 +280,6 @@ export type { GetScannedRiskErrorResponse, GetScannedRiskOkResponse, GetScannedR
|
|
|
278
280
|
export { getScannedRisk, useGetScannedRiskQuery } from './hooks/useGetScannedRiskQuery';
|
|
279
281
|
export type { GetServiceResponseErrorResponse, GetServiceResponseOkResponse, GetServiceResponseProps, GetServiceResponseQueryPathParams, GetServiceResponseQueryQueryParams, } from './hooks/useGetServiceResponseQuery';
|
|
280
282
|
export { getServiceResponse, useGetServiceResponseQuery } from './hooks/useGetServiceResponseQuery';
|
|
281
|
-
export type { GetServiceRiskScanErrorResponse, GetServiceRiskScanOkResponse, GetServiceRiskScanProps, GetServiceRiskScanQueryPathParams, GetServiceRiskScanQueryQueryParams, } from './hooks/useGetServiceRiskScanQuery';
|
|
282
|
-
export { getServiceRiskScan, useGetServiceRiskScanQuery } from './hooks/useGetServiceRiskScanQuery';
|
|
283
283
|
export type { GetServiceUsageReportErrorResponse, GetServiceUsageReportOkResponse, GetServiceUsageReportProps, GetServiceUsageReportQueryPathParams, GetServiceUsageReportQueryQueryParams, } from './hooks/useGetServiceUsageReportQuery';
|
|
284
284
|
export { getServiceUsageReport, useGetServiceUsageReportQuery, } from './hooks/useGetServiceUsageReportQuery';
|
|
285
285
|
export type { GetSgpTemplateByGenAiErrorResponse, GetSgpTemplateByGenAiMutationProps, GetSgpTemplateByGenAiOkResponse, GetSgpTemplateByGenAiProps, } from './hooks/useGetSgpTemplateByGenAiMutation';
|
|
@@ -416,8 +416,6 @@ export type { OnboardingConfirmNetworkMapErrorResponse, OnboardingConfirmNetwork
|
|
|
416
416
|
export { onboardingConfirmNetworkMap, useOnboardingConfirmNetworkMapMutation, } from './hooks/useOnboardingConfirmNetworkMapMutation';
|
|
417
417
|
export type { OnboardingConfirmServiceOnboardingErrorResponse, OnboardingConfirmServiceOnboardingMutationPathParams, OnboardingConfirmServiceOnboardingMutationProps, OnboardingConfirmServiceOnboardingMutationQueryParams, OnboardingConfirmServiceOnboardingOkResponse, OnboardingConfirmServiceOnboardingProps, } from './hooks/useOnboardingConfirmServiceOnboardingMutation';
|
|
418
418
|
export { onboardingConfirmServiceOnboarding, useOnboardingConfirmServiceOnboardingMutation, } from './hooks/useOnboardingConfirmServiceOnboardingMutation';
|
|
419
|
-
export type { OnboardingConfirmServiceRiskScanErrorResponse, OnboardingConfirmServiceRiskScanMutationPathParams, OnboardingConfirmServiceRiskScanMutationProps, OnboardingConfirmServiceRiskScanMutationQueryParams, OnboardingConfirmServiceRiskScanOkResponse, OnboardingConfirmServiceRiskScanProps, } from './hooks/useOnboardingConfirmServiceRiskScanMutation';
|
|
420
|
-
export { onboardingConfirmServiceRiskScan, useOnboardingConfirmServiceRiskScanMutation, } from './hooks/useOnboardingConfirmServiceRiskScanMutation';
|
|
421
419
|
export type { PipelineAddExperimentRecommendationErrorResponse, PipelineAddExperimentRecommendationMutationProps, PipelineAddExperimentRecommendationMutationQueryParams, PipelineAddExperimentRecommendationOkResponse, PipelineAddExperimentRecommendationProps, } from './hooks/usePipelineAddExperimentRecommendationMutation';
|
|
422
420
|
export { pipelineAddExperimentRecommendation, usePipelineAddExperimentRecommendationMutation, } from './hooks/usePipelineAddExperimentRecommendationMutation';
|
|
423
421
|
export type { PipelineCanOnboardChaosErrorResponse, PipelineCanOnboardChaosOkResponse, PipelineCanOnboardChaosProps, PipelineCanOnboardChaosQueryPathParams, PipelineCanOnboardChaosQueryQueryParams, } from './hooks/usePipelineCanOnboardChaosQuery';
|
|
@@ -458,8 +456,6 @@ export type { RunRecommendationErrorResponse, RunRecommendationMutationProps, Ru
|
|
|
458
456
|
export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRunRecommendationMutation';
|
|
459
457
|
export type { SaveChaosV2ExperimentErrorResponse, SaveChaosV2ExperimentMutationProps, SaveChaosV2ExperimentMutationQueryParams, SaveChaosV2ExperimentOkResponse, SaveChaosV2ExperimentProps, SaveChaosV2ExperimentRequestBody, } from './hooks/useSaveChaosV2ExperimentMutation';
|
|
460
458
|
export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
|
|
461
|
-
export type { SkipOnboardingErrorResponse, SkipOnboardingMutationPathParams, SkipOnboardingMutationProps, SkipOnboardingMutationQueryParams, SkipOnboardingOkResponse, SkipOnboardingProps, } from './hooks/useSkipOnboardingMutation';
|
|
462
|
-
export { skipOnboarding, useSkipOnboardingMutation } from './hooks/useSkipOnboardingMutation';
|
|
463
459
|
export type { StopChaosExperimentV3ErrorResponse, StopChaosExperimentV3MutationPathParams, StopChaosExperimentV3MutationProps, StopChaosExperimentV3MutationQueryParams, StopChaosExperimentV3OkResponse, StopChaosExperimentV3Props, StopChaosExperimentV3RequestBody, } from './hooks/useStopChaosExperimentV3Mutation';
|
|
464
460
|
export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hooks/useStopChaosExperimentV3Mutation';
|
|
465
461
|
export type { StopChaosV2ExperimentErrorResponse, StopChaosV2ExperimentMutationPathParams, StopChaosV2ExperimentMutationProps, StopChaosV2ExperimentMutationQueryParams, StopChaosV2ExperimentOkResponse, StopChaosV2ExperimentProps, } from './hooks/useStopChaosV2ExperimentMutation';
|
|
@@ -472,8 +468,6 @@ export type { SummarizeScannedRisksByServiceErrorResponse, SummarizeScannedRisks
|
|
|
472
468
|
export { summarizeScannedRisksByService, useSummarizeScannedRisksByServiceMutation, } from './hooks/useSummarizeScannedRisksByServiceMutation';
|
|
473
469
|
export type { TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionOkResponse, TestLegacyKubernetesChaosInfraConnectionProps, TestLegacyKubernetesChaosInfraConnectionQueryPathParams, TestLegacyKubernetesChaosInfraConnectionQueryQueryParams, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
|
|
474
470
|
export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
|
|
475
|
-
export type { TriggerServiceRiskScanErrorResponse, TriggerServiceRiskScanMutationPathParams, TriggerServiceRiskScanMutationProps, TriggerServiceRiskScanMutationQueryParams, TriggerServiceRiskScanOkResponse, TriggerServiceRiskScanProps, } from './hooks/useTriggerServiceRiskScanMutation';
|
|
476
|
-
export { triggerServiceRiskScan, useTriggerServiceRiskScanMutation, } from './hooks/useTriggerServiceRiskScanMutation';
|
|
477
471
|
export type { UpdateActionErrorResponse, UpdateActionMutationPathParams, UpdateActionMutationProps, UpdateActionMutationQueryParams, UpdateActionOkResponse, UpdateActionProps, UpdateActionRequestBody, } from './hooks/useUpdateActionMutation';
|
|
478
472
|
export { updateAction, useUpdateActionMutation } from './hooks/useUpdateActionMutation';
|
|
479
473
|
export type { UpdateActionTemplateErrorResponse, UpdateActionTemplateMutationPathParams, UpdateActionTemplateMutationProps, UpdateActionTemplateMutationQueryParams, UpdateActionTemplateOkResponse, UpdateActionTemplateProps, UpdateActionTemplateRequestBody, } from './hooks/useUpdateActionTemplateMutation';
|
|
@@ -1560,10 +1554,8 @@ export type { V2OnboardingConfirmExperimentRunResponse } from './schemas/V2Onboa
|
|
|
1560
1554
|
export type { V2OnboardingConfirmNetworkMapRequest } from './schemas/V2OnboardingConfirmNetworkMapRequest';
|
|
1561
1555
|
export type { V2OnboardingConfirmNetworkMapResponse } from './schemas/V2OnboardingConfirmNetworkMapResponse';
|
|
1562
1556
|
export type { V2OnboardingConfirmServiceOnboardingResponse } from './schemas/V2OnboardingConfirmServiceOnboardingResponse';
|
|
1563
|
-
export type { V2OnboardingConfirmServiceRiskScanResponse } from './schemas/V2OnboardingConfirmServiceRiskScanResponse';
|
|
1564
1557
|
export type { V2OnboardingDiscoveredService } from './schemas/V2OnboardingDiscoveredService';
|
|
1565
1558
|
export type { V2OnboardingExperiments } from './schemas/V2OnboardingExperiments';
|
|
1566
|
-
export type { V2OnboardingGetServiceRiskScanResponse } from './schemas/V2OnboardingGetServiceRiskScanResponse';
|
|
1567
1559
|
export type { V2OnboardingListOnboardedServicesResponse } from './schemas/V2OnboardingListOnboardedServicesResponse';
|
|
1568
1560
|
export type { V2OnboardingManualMethod } from './schemas/V2OnboardingManualMethod';
|
|
1569
1561
|
export type { V2OnboardingNetworkMapCreationMode } from './schemas/V2OnboardingNetworkMapCreationMode';
|
|
@@ -1573,13 +1565,9 @@ export type { V2OnboardingOnboardingExperimentResponse } from './schemas/V2Onboa
|
|
|
1573
1565
|
export type { V2OnboardingOnboardingMode } from './schemas/V2OnboardingOnboardingMode';
|
|
1574
1566
|
export type { V2OnboardingOnboardingTargetExperiment } from './schemas/V2OnboardingOnboardingTargetExperiment';
|
|
1575
1567
|
export type { V2OnboardingProbeDetail } from './schemas/V2OnboardingProbeDetail';
|
|
1576
|
-
export type { V2OnboardingRiskScanStatus } from './schemas/V2OnboardingRiskScanStatus';
|
|
1577
|
-
export type { V2OnboardingRiskScanSummary } from './schemas/V2OnboardingRiskScanSummary';
|
|
1578
1568
|
export type { V2OnboardingRunSafeExperimentStatus } from './schemas/V2OnboardingRunSafeExperimentStatus';
|
|
1579
|
-
export type { V2OnboardingSkipOnboardingResponse } from './schemas/V2OnboardingSkipOnboardingResponse';
|
|
1580
1569
|
export type { V2OnboardingTargetNetworkMapStatus } from './schemas/V2OnboardingTargetNetworkMapStatus';
|
|
1581
1570
|
export type { V2OnboardingTargetServiceDetails } from './schemas/V2OnboardingTargetServiceDetails';
|
|
1582
|
-
export type { V2OnboardingTriggerServiceRiskScanResponse } from './schemas/V2OnboardingTriggerServiceRiskScanResponse';
|
|
1583
1571
|
export type { V2OnboardingV2Onboarding } from './schemas/V2OnboardingV2Onboarding';
|
|
1584
1572
|
export type { V2OnboardingV2OnboardingList } from './schemas/V2OnboardingV2OnboardingList';
|
|
1585
1573
|
export type { V2OnboardingV2OnboardingRequest } from './schemas/V2OnboardingV2OnboardingRequest';
|
|
@@ -127,6 +127,7 @@ export { getProbeManifest, useGetProbeManifestQuery } from './hooks/useGetProbeM
|
|
|
127
127
|
export { getProbe, useGetProbeQuery } from './hooks/useGetProbeQuery';
|
|
128
128
|
export { getProbeTemplate, useGetProbeTemplateQuery } from './hooks/useGetProbeTemplateQuery';
|
|
129
129
|
export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/useGetProbesInExperimentQuery';
|
|
130
|
+
export { getProbesInStepExecution, useGetProbesInStepExecutionQuery, } from './hooks/useGetProbesInStepExecutionQuery';
|
|
130
131
|
export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
|
|
131
132
|
export { getResourceUsage, useGetResourceUsageQuery } from './hooks/useGetResourceUsageQuery';
|
|
132
133
|
export { getRisk, useGetRiskQuery } from './hooks/useGetRiskQuery';
|
|
@@ -138,7 +139,6 @@ export { getRiskScanReport, useGetRiskScanReportQuery } from './hooks/useGetRisk
|
|
|
138
139
|
export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
|
|
139
140
|
export { getScannedRisk, useGetScannedRiskQuery } from './hooks/useGetScannedRiskQuery';
|
|
140
141
|
export { getServiceResponse, useGetServiceResponseQuery } from './hooks/useGetServiceResponseQuery';
|
|
141
|
-
export { getServiceRiskScan, useGetServiceRiskScanQuery } from './hooks/useGetServiceRiskScanQuery';
|
|
142
142
|
export { getServiceUsageReport, useGetServiceUsageReportQuery, } from './hooks/useGetServiceUsageReportQuery';
|
|
143
143
|
export { getSgpTemplateByGenAi, useGetSgpTemplateByGenAiMutation, } from './hooks/useGetSgpTemplateByGenAiMutation';
|
|
144
144
|
export { getTargetNetworkMap, useGetTargetNetworkMapQuery, } from './hooks/useGetTargetNetworkMapQuery';
|
|
@@ -207,7 +207,6 @@ export { onboardingConfirmExperimentCreation, useOnboardingConfirmExperimentCrea
|
|
|
207
207
|
export { onboardingConfirmExperimentRun, useOnboardingConfirmExperimentRunMutation, } from './hooks/useOnboardingConfirmExperimentRunMutation';
|
|
208
208
|
export { onboardingConfirmNetworkMap, useOnboardingConfirmNetworkMapMutation, } from './hooks/useOnboardingConfirmNetworkMapMutation';
|
|
209
209
|
export { onboardingConfirmServiceOnboarding, useOnboardingConfirmServiceOnboardingMutation, } from './hooks/useOnboardingConfirmServiceOnboardingMutation';
|
|
210
|
-
export { onboardingConfirmServiceRiskScan, useOnboardingConfirmServiceRiskScanMutation, } from './hooks/useOnboardingConfirmServiceRiskScanMutation';
|
|
211
210
|
export { pipelineAddExperimentRecommendation, usePipelineAddExperimentRecommendationMutation, } from './hooks/usePipelineAddExperimentRecommendationMutation';
|
|
212
211
|
export { pipelineCanOnboardChaos, usePipelineCanOnboardChaosQuery, } from './hooks/usePipelineCanOnboardChaosQuery';
|
|
213
212
|
export { pipelineOnboardChaos, usePipelineOnboardChaosMutation, } from './hooks/usePipelineOnboardChaosMutation';
|
|
@@ -228,14 +227,12 @@ export { runChaosV2Experiment, useRunChaosV2ExperimentMutation, } from './hooks/
|
|
|
228
227
|
export { runChaosV2InternalApi, useRunChaosV2InternalApiMutation, } from './hooks/useRunChaosV2InternalApiMutation';
|
|
229
228
|
export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRunRecommendationMutation';
|
|
230
229
|
export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
|
|
231
|
-
export { skipOnboarding, useSkipOnboardingMutation } from './hooks/useSkipOnboardingMutation';
|
|
232
230
|
export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hooks/useStopChaosExperimentV3Mutation';
|
|
233
231
|
export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
|
|
234
232
|
export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
|
|
235
233
|
export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
|
|
236
234
|
export { summarizeScannedRisksByService, useSummarizeScannedRisksByServiceMutation, } from './hooks/useSummarizeScannedRisksByServiceMutation';
|
|
237
235
|
export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
|
|
238
|
-
export { triggerServiceRiskScan, useTriggerServiceRiskScanMutation, } from './hooks/useTriggerServiceRiskScanMutation';
|
|
239
236
|
export { updateAction, useUpdateActionMutation } from './hooks/useUpdateActionMutation';
|
|
240
237
|
export { updateActionTemplate, useUpdateActionTemplateMutation, } from './hooks/useUpdateActionTemplateMutation';
|
|
241
238
|
export { updateChaosComponent, useUpdateChaosComponentMutation, } from './hooks/useUpdateChaosComponentMutation';
|
|
@@ -5,7 +5,6 @@ import type { DatabaseAgentConfiguration } from '../schemas/DatabaseAgentConfigu
|
|
|
5
5
|
import type { V2OnboardingManualMethod } from '../schemas/V2OnboardingManualMethod';
|
|
6
6
|
import type { V2OnboardingOnboardingMode } from '../schemas/V2OnboardingOnboardingMode';
|
|
7
7
|
import type { V2OnboardingChaosServiceStatus } from '../schemas/V2OnboardingChaosServiceStatus';
|
|
8
|
-
import type { V2OnboardingRiskScanStatus } from '../schemas/V2OnboardingRiskScanStatus';
|
|
9
8
|
import type { V2OnboardingRunSafeExperimentStatus } from '../schemas/V2OnboardingRunSafeExperimentStatus';
|
|
10
9
|
import type { V2OnboardingV2OnboardingStatus } from '../schemas/V2OnboardingV2OnboardingStatus';
|
|
11
10
|
import type { V2OnboardingTargetNetworkMapStatus } from '../schemas/V2OnboardingTargetNetworkMapStatus';
|
|
@@ -26,7 +25,6 @@ export interface V2OnboardingV2Onboarding {
|
|
|
26
25
|
namespace?: string;
|
|
27
26
|
onboardingChaosServiceStatus?: V2OnboardingChaosServiceStatus;
|
|
28
27
|
onboardingID?: string;
|
|
29
|
-
onboardingRiskScanStatus?: V2OnboardingRiskScanStatus;
|
|
30
28
|
orgID?: string;
|
|
31
29
|
parentUniqueId?: string;
|
|
32
30
|
projectID?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type V2OnboardingV2OnboardingStatus = 'COMPLETED' | 'ERRORED' | 'NA' | 'PENDING' | 'QUEUED' | 'RUNNING'
|
|
1
|
+
export type V2OnboardingV2OnboardingStatus = 'COMPLETED' | 'ERRORED' | 'NA' | 'PENDING' | 'QUEUED' | 'RUNNING';
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { V2OnboardingGetServiceRiskScanResponse } from '../schemas/V2OnboardingGetServiceRiskScanResponse';
|
|
3
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
-
export interface GetServiceRiskScanQueryPathParams {
|
|
6
|
-
onboardingid: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetServiceRiskScanQueryQueryParams {
|
|
9
|
-
correlationID?: string;
|
|
10
|
-
accountIdentifier: string;
|
|
11
|
-
organizationIdentifier: string;
|
|
12
|
-
projectIdentifier: string;
|
|
13
|
-
}
|
|
14
|
-
export type GetServiceRiskScanOkResponse = V2OnboardingGetServiceRiskScanResponse;
|
|
15
|
-
export type GetServiceRiskScanErrorResponse = ApiRestError;
|
|
16
|
-
export interface GetServiceRiskScanProps extends GetServiceRiskScanQueryPathParams, Omit<FetcherOptions<GetServiceRiskScanQueryQueryParams, unknown>, 'url'> {
|
|
17
|
-
queryParams: GetServiceRiskScanQueryQueryParams;
|
|
18
|
-
}
|
|
19
|
-
export interface GetServiceRiskScanResponseContainer {
|
|
20
|
-
body: GetServiceRiskScanOkResponse;
|
|
21
|
-
headers: Headers;
|
|
22
|
-
}
|
|
23
|
-
export declare function getServiceRiskScan(props: GetServiceRiskScanProps): Promise<GetServiceRiskScanResponseContainer>;
|
|
24
|
-
/**
|
|
25
|
-
* Get the status of the onboarding risk scan along with its risk summary once the scan has completed
|
|
26
|
-
*/
|
|
27
|
-
export declare function useGetServiceRiskScanQuery(props: GetServiceRiskScanProps, options?: Omit<UseQueryOptions<GetServiceRiskScanResponseContainer, GetServiceRiskScanErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceRiskScanResponseContainer, ApiRestError>;
|
|
@@ -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 { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
-
export function getServiceRiskScan(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/onboarding/${props.onboardingid}/risk-scan`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get the status of the onboarding risk scan along with its risk summary once the scan has completed
|
|
11
|
-
*/
|
|
12
|
-
export function useGetServiceRiskScanQuery(props, options) {
|
|
13
|
-
return useQuery(['getServiceRiskScan', props.onboardingid, props.queryParams], ({ signal }) => getServiceRiskScan(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmServiceRiskScanMutation.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { V2OnboardingConfirmServiceRiskScanResponse } from '../schemas/V2OnboardingConfirmServiceRiskScanResponse';
|
|
3
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
-
export interface OnboardingConfirmServiceRiskScanMutationPathParams {
|
|
6
|
-
onboardingid: string;
|
|
7
|
-
}
|
|
8
|
-
export interface OnboardingConfirmServiceRiskScanMutationQueryParams {
|
|
9
|
-
correlationID?: string;
|
|
10
|
-
accountIdentifier: string;
|
|
11
|
-
organizationIdentifier: string;
|
|
12
|
-
projectIdentifier: string;
|
|
13
|
-
}
|
|
14
|
-
export type OnboardingConfirmServiceRiskScanOkResponse = V2OnboardingConfirmServiceRiskScanResponse;
|
|
15
|
-
export type OnboardingConfirmServiceRiskScanErrorResponse = ApiRestError;
|
|
16
|
-
export interface OnboardingConfirmServiceRiskScanProps extends OnboardingConfirmServiceRiskScanMutationPathParams, Omit<FetcherOptions<OnboardingConfirmServiceRiskScanMutationQueryParams, unknown>, 'url'> {
|
|
17
|
-
queryParams: OnboardingConfirmServiceRiskScanMutationQueryParams;
|
|
18
|
-
}
|
|
19
|
-
export interface OnboardingConfirmServiceRiskScanResponseContainer {
|
|
20
|
-
body: OnboardingConfirmServiceRiskScanOkResponse;
|
|
21
|
-
headers: Headers;
|
|
22
|
-
}
|
|
23
|
-
export declare function onboardingConfirmServiceRiskScan(props: OnboardingConfirmServiceRiskScanProps): Promise<OnboardingConfirmServiceRiskScanResponseContainer>;
|
|
24
|
-
export type OnboardingConfirmServiceRiskScanMutationProps<T extends keyof OnboardingConfirmServiceRiskScanProps> = Omit<OnboardingConfirmServiceRiskScanProps, T> & Partial<Pick<OnboardingConfirmServiceRiskScanProps, T>>;
|
|
25
|
-
/**
|
|
26
|
-
* Mark the onboarding risk scan step as completed once the scan has finished successfully
|
|
27
|
-
*/
|
|
28
|
-
export declare function useOnboardingConfirmServiceRiskScanMutation<T extends keyof OnboardingConfirmServiceRiskScanProps>(props: Pick<Partial<OnboardingConfirmServiceRiskScanProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmServiceRiskScanResponseContainer, OnboardingConfirmServiceRiskScanErrorResponse, OnboardingConfirmServiceRiskScanMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmServiceRiskScanResponseContainer, ApiRestError, OnboardingConfirmServiceRiskScanMutationProps<T>, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmServiceRiskScanMutation.js
DELETED
|
@@ -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 onboardingConfirmServiceRiskScan(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-risk-scan/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Mark the onboarding risk scan step as completed once the scan has finished successfully
|
|
11
|
-
*/
|
|
12
|
-
export function useOnboardingConfirmServiceRiskScanMutation(props, options) {
|
|
13
|
-
return useMutation((mutateProps) => onboardingConfirmServiceRiskScan(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { V2OnboardingSkipOnboardingResponse } from '../schemas/V2OnboardingSkipOnboardingResponse';
|
|
3
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
-
export interface SkipOnboardingMutationPathParams {
|
|
6
|
-
onboardingid: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SkipOnboardingMutationQueryParams {
|
|
9
|
-
correlationID?: string;
|
|
10
|
-
accountIdentifier: string;
|
|
11
|
-
organizationIdentifier: string;
|
|
12
|
-
projectIdentifier: string;
|
|
13
|
-
}
|
|
14
|
-
export type SkipOnboardingOkResponse = V2OnboardingSkipOnboardingResponse;
|
|
15
|
-
export type SkipOnboardingErrorResponse = ApiRestError;
|
|
16
|
-
export interface SkipOnboardingProps extends SkipOnboardingMutationPathParams, Omit<FetcherOptions<SkipOnboardingMutationQueryParams, unknown>, 'url'> {
|
|
17
|
-
queryParams: SkipOnboardingMutationQueryParams;
|
|
18
|
-
}
|
|
19
|
-
export interface SkipOnboardingResponseContainer {
|
|
20
|
-
body: SkipOnboardingOkResponse;
|
|
21
|
-
headers: Headers;
|
|
22
|
-
}
|
|
23
|
-
export declare function skipOnboarding(props: SkipOnboardingProps): Promise<SkipOnboardingResponseContainer>;
|
|
24
|
-
export type SkipOnboardingMutationProps<T extends keyof SkipOnboardingProps> = Omit<SkipOnboardingProps, T> & Partial<Pick<SkipOnboardingProps, T>>;
|
|
25
|
-
/**
|
|
26
|
-
* Mark every step that has not completed as SKIPPED and take the onboarding session to its terminal completed state
|
|
27
|
-
*/
|
|
28
|
-
export declare function useSkipOnboardingMutation<T extends keyof SkipOnboardingProps>(props: Pick<Partial<SkipOnboardingProps>, T>, options?: Omit<UseMutationOptions<SkipOnboardingResponseContainer, SkipOnboardingErrorResponse, SkipOnboardingMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SkipOnboardingResponseContainer, ApiRestError, SkipOnboardingMutationProps<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 skipOnboarding(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/onboarding/${props.onboardingid}/skip`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Mark every step that has not completed as SKIPPED and take the onboarding session to its terminal completed state
|
|
11
|
-
*/
|
|
12
|
-
export function useSkipOnboardingMutation(props, options) {
|
|
13
|
-
return useMutation((mutateProps) => skipOnboarding(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { V2OnboardingTriggerServiceRiskScanResponse } from '../schemas/V2OnboardingTriggerServiceRiskScanResponse';
|
|
3
|
-
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
-
export interface TriggerServiceRiskScanMutationPathParams {
|
|
6
|
-
onboardingid: string;
|
|
7
|
-
}
|
|
8
|
-
export interface TriggerServiceRiskScanMutationQueryParams {
|
|
9
|
-
correlationID?: string;
|
|
10
|
-
accountIdentifier: string;
|
|
11
|
-
organizationIdentifier: string;
|
|
12
|
-
projectIdentifier: string;
|
|
13
|
-
}
|
|
14
|
-
export type TriggerServiceRiskScanOkResponse = V2OnboardingTriggerServiceRiskScanResponse;
|
|
15
|
-
export type TriggerServiceRiskScanErrorResponse = ApiRestError;
|
|
16
|
-
export interface TriggerServiceRiskScanProps extends TriggerServiceRiskScanMutationPathParams, Omit<FetcherOptions<TriggerServiceRiskScanMutationQueryParams, unknown>, 'url'> {
|
|
17
|
-
queryParams: TriggerServiceRiskScanMutationQueryParams;
|
|
18
|
-
}
|
|
19
|
-
export interface TriggerServiceRiskScanResponseContainer {
|
|
20
|
-
body: TriggerServiceRiskScanOkResponse;
|
|
21
|
-
headers: Headers;
|
|
22
|
-
}
|
|
23
|
-
export declare function triggerServiceRiskScan(props: TriggerServiceRiskScanProps): Promise<TriggerServiceRiskScanResponseContainer>;
|
|
24
|
-
export type TriggerServiceRiskScanMutationProps<T extends keyof TriggerServiceRiskScanProps> = Omit<TriggerServiceRiskScanProps, T> & Partial<Pick<TriggerServiceRiskScanProps, T>>;
|
|
25
|
-
/**
|
|
26
|
-
* Start a risk scan over the services onboarded in the guided onboarding session
|
|
27
|
-
*/
|
|
28
|
-
export declare function useTriggerServiceRiskScanMutation<T extends keyof TriggerServiceRiskScanProps>(props: Pick<Partial<TriggerServiceRiskScanProps>, T>, options?: Omit<UseMutationOptions<TriggerServiceRiskScanResponseContainer, TriggerServiceRiskScanErrorResponse, TriggerServiceRiskScanMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerServiceRiskScanResponseContainer, ApiRestError, TriggerServiceRiskScanMutationProps<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 triggerServiceRiskScan(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/v2/onboarding-trigger-risk-scan/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Start a risk scan over the services onboarded in the guided onboarding session
|
|
11
|
-
*/
|
|
12
|
-
export function useTriggerServiceRiskScanMutation(props, options) {
|
|
13
|
-
return useMutation((mutateProps) => triggerServiceRiskScan(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { RiskScanStatus } from '../schemas/RiskScanStatus';
|
|
2
|
-
import type { V2OnboardingV2OnboardingStatus } from '../schemas/V2OnboardingV2OnboardingStatus';
|
|
3
|
-
import type { V2OnboardingRiskScanSummary } from '../schemas/V2OnboardingRiskScanSummary';
|
|
4
|
-
export interface V2OnboardingGetServiceRiskScanResponse {
|
|
5
|
-
errorMessage?: string;
|
|
6
|
-
scanCompleted?: boolean;
|
|
7
|
-
scanIdentity?: string;
|
|
8
|
-
scanStatus?: RiskScanStatus;
|
|
9
|
-
status?: V2OnboardingV2OnboardingStatus;
|
|
10
|
-
summary?: V2OnboardingRiskScanSummary;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { RiskScanStatus } from '../schemas/RiskScanStatus';
|
|
2
|
-
import type { V2OnboardingV2OnboardingStatus } from '../schemas/V2OnboardingV2OnboardingStatus';
|
|
3
|
-
import type { V2OnboardingRiskScanSummary } from '../schemas/V2OnboardingRiskScanSummary';
|
|
4
|
-
export interface V2OnboardingRiskScanStatus {
|
|
5
|
-
errorMessage?: string;
|
|
6
|
-
scanIdentity?: string;
|
|
7
|
-
scanStatus?: RiskScanStatus;
|
|
8
|
-
status?: V2OnboardingV2OnboardingStatus;
|
|
9
|
-
summary?: V2OnboardingRiskScanSummary;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/chaos-manager/src/services/schemas/V2OnboardingTriggerServiceRiskScanResponse.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|