@harnessio/react-chaos-manager-client 1.76.1 → 1.77.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/useGetOnboardingStatsV3Query.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useGetOnboardingStatsV3Query.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +6 -0
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/dist/chaos-manager/src/services/schemas/OnboardingAvailableOnboardedCount.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/OnboardingAvailableOnboardedCount.js +4 -0
- package/dist/chaos-manager/src/services/schemas/OnboardingOnboardedCount.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/OnboardingOnboardedCount.js +4 -0
- package/dist/chaos-manager/src/services/schemas/OnboardingStats.d.ts +28 -0
- package/dist/chaos-manager/src/services/schemas/OnboardingStats.js +1 -0
- package/dist/chaos-manager/src/services/schemas/OnboardingStatsResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/OnboardingStatsResponse.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OnboardingStatsResponse } from '../schemas/OnboardingStatsResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetOnboardingStatsV3QueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
organizationIdentifier?: string;
|
|
9
|
+
parentUniqueId?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
useParentUniqueID?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type GetOnboardingStatsV3OkResponse = OnboardingStatsResponse;
|
|
14
|
+
export type GetOnboardingStatsV3ErrorResponse = SharedError;
|
|
15
|
+
export interface GetOnboardingStatsV3Props extends Omit<FetcherOptions<GetOnboardingStatsV3QueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: GetOnboardingStatsV3QueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export interface GetOnboardingStatsV3ResponseContainer {
|
|
19
|
+
body: GetOnboardingStatsV3OkResponse;
|
|
20
|
+
headers: Headers;
|
|
21
|
+
}
|
|
22
|
+
export declare function getOnboardingStatsV3(props: GetOnboardingStatsV3Props): Promise<GetOnboardingStatsV3ResponseContainer>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the counts that drive the resilience testing onboarding screen: connected chaos infrastructures and discovery agents, infrastructures and deployment pipelines available to scan for risks against the ones already scanned, plus the chaos experiment and load test totals for the project
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetOnboardingStatsV3Query(props: GetOnboardingStatsV3Props, options?: Omit<UseQueryOptions<GetOnboardingStatsV3ResponseContainer, GetOnboardingStatsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOnboardingStatsV3ResponseContainer, SharedError>;
|
|
@@ -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 getOnboardingStatsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/onboarding-stats`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the counts that drive the resilience testing onboarding screen: connected chaos infrastructures and discovery agents, infrastructures and deployment pipelines available to scan for risks against the ones already scanned, plus the chaos experiment and load test totals for the project
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOnboardingStatsV3Query(props, options) {
|
|
13
|
+
return useQuery(['getOnboardingStatsV3', props.queryParams], ({ signal }) => getOnboardingStatsV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -246,6 +246,8 @@ export type { GetNoteErrorResponse, GetNoteOkResponse, GetNoteProps, GetNoteQuer
|
|
|
246
246
|
export { getNote, useGetNoteQuery } from './hooks/useGetNoteQuery';
|
|
247
247
|
export type { GetOnboardingExperimentsErrorResponse, GetOnboardingExperimentsOkResponse, GetOnboardingExperimentsProps, GetOnboardingExperimentsQueryPathParams, GetOnboardingExperimentsQueryQueryParams, } from './hooks/useGetOnboardingExperimentsQuery';
|
|
248
248
|
export { getOnboardingExperiments, useGetOnboardingExperimentsQuery, } from './hooks/useGetOnboardingExperimentsQuery';
|
|
249
|
+
export type { GetOnboardingStatsV3ErrorResponse, GetOnboardingStatsV3OkResponse, GetOnboardingStatsV3Props, GetOnboardingStatsV3QueryQueryParams, } from './hooks/useGetOnboardingStatsV3Query';
|
|
250
|
+
export { getOnboardingStatsV3, useGetOnboardingStatsV3Query, } from './hooks/useGetOnboardingStatsV3Query';
|
|
249
251
|
export type { GetOverallServiceUsageStatsErrorResponse, GetOverallServiceUsageStatsOkResponse, GetOverallServiceUsageStatsProps, GetOverallServiceUsageStatsQueryPathParams, GetOverallServiceUsageStatsQueryQueryParams, } from './hooks/useGetOverallServiceUsageStatsQuery';
|
|
250
252
|
export { getOverallServiceUsageStats, useGetOverallServiceUsageStatsQuery, } from './hooks/useGetOverallServiceUsageStatsQuery';
|
|
251
253
|
export type { GetProbeManifestErrorResponse, GetProbeManifestOkResponse, GetProbeManifestProps, GetProbeManifestQueryPathParams, GetProbeManifestQueryQueryParams, } from './hooks/useGetProbeManifestQuery';
|
|
@@ -1133,6 +1135,10 @@ export type { NetworkmapListTargetServiceResponse } from './schemas/NetworkmapLi
|
|
|
1133
1135
|
export type { NetworkmapRetryExperimentCreationRequest } from './schemas/NetworkmapRetryExperimentCreationRequest';
|
|
1134
1136
|
export type { NetworkmapRetryExperimentCreationResponse } from './schemas/NetworkmapRetryExperimentCreationResponse';
|
|
1135
1137
|
export type { NetworkmapTargetServiceDetails } from './schemas/NetworkmapTargetServiceDetails';
|
|
1138
|
+
export type { OnboardingAvailableOnboardedCount } from './schemas/OnboardingAvailableOnboardedCount';
|
|
1139
|
+
export type { OnboardingOnboardedCount } from './schemas/OnboardingOnboardedCount';
|
|
1140
|
+
export type { OnboardingStats } from './schemas/OnboardingStats';
|
|
1141
|
+
export type { OnboardingStatsResponse } from './schemas/OnboardingStatsResponse';
|
|
1136
1142
|
export type { PipelineonboardingInfrastructureOnboardingMapping } from './schemas/PipelineonboardingInfrastructureOnboardingMapping';
|
|
1137
1143
|
export type { PipelineonboardingInfrastructuresStatus } from './schemas/PipelineonboardingInfrastructuresStatus';
|
|
1138
1144
|
export type { PipelineonboardingListPipelineOnboardingResponse } from './schemas/PipelineonboardingListPipelineOnboardingResponse';
|
|
@@ -122,6 +122,7 @@ export { getMachineChaosInfraDetails, useGetMachineChaosInfraDetailsQuery, } fro
|
|
|
122
122
|
export { getMachineChaosInfraVersionDetails, useGetMachineChaosInfraVersionDetailsQuery, } from './hooks/useGetMachineChaosInfraVersionDetailsQuery';
|
|
123
123
|
export { getNote, useGetNoteQuery } from './hooks/useGetNoteQuery';
|
|
124
124
|
export { getOnboardingExperiments, useGetOnboardingExperimentsQuery, } from './hooks/useGetOnboardingExperimentsQuery';
|
|
125
|
+
export { getOnboardingStatsV3, useGetOnboardingStatsV3Query, } from './hooks/useGetOnboardingStatsV3Query';
|
|
125
126
|
export { getOverallServiceUsageStats, useGetOverallServiceUsageStatsQuery, } from './hooks/useGetOverallServiceUsageStatsQuery';
|
|
126
127
|
export { getProbeManifest, useGetProbeManifestQuery } from './hooks/useGetProbeManifestQuery';
|
|
127
128
|
export { getProbe, useGetProbeQuery } from './hooks/useGetProbeQuery';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { OnboardingOnboardedCount } from '../schemas/OnboardingOnboardedCount';
|
|
2
|
+
import type { OnboardingAvailableOnboardedCount } from '../schemas/OnboardingAvailableOnboardedCount';
|
|
3
|
+
export interface OnboardingStats {
|
|
4
|
+
/**
|
|
5
|
+
* ChaosExperiments is the number of chaos experiments in the project.
|
|
6
|
+
*/
|
|
7
|
+
chaosExperiments?: OnboardingOnboardedCount;
|
|
8
|
+
/**
|
|
9
|
+
* InfrastructureScans compares the connected KUBERNETESV2 chaos
|
|
10
|
+
* infrastructures against the ones already covered by a discovery agent risk
|
|
11
|
+
* scan.
|
|
12
|
+
*/
|
|
13
|
+
infrastructureScans?: OnboardingAvailableOnboardedCount;
|
|
14
|
+
/**
|
|
15
|
+
* Infrastructures compares the connected KUBERNETESV2 chaos infrastructures
|
|
16
|
+
* against the discovery agents registered for the project.
|
|
17
|
+
*/
|
|
18
|
+
infrastructures?: OnboardingAvailableOnboardedCount;
|
|
19
|
+
/**
|
|
20
|
+
* LoadTests is the number of load tests in the project.
|
|
21
|
+
*/
|
|
22
|
+
loadTests?: OnboardingOnboardedCount;
|
|
23
|
+
/**
|
|
24
|
+
* PipelineScans compares the Harness deployment pipelines in the project
|
|
25
|
+
* against the ones already covered by a risk scan.
|
|
26
|
+
*/
|
|
27
|
+
pipelineScans?: OnboardingAvailableOnboardedCount;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED