@harnessio/react-chaos-manager-client 1.66.1 → 1.66.2
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/useGetChaosComponentVariableInternalQuery.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useGetChaosComponentVariableInternalQuery.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +3 -0
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingManualMethod.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingManualMethod.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingV2Onboarding.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingV2OnboardingRequest.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaoscomponentsGetChaosComponentVariableResponse } from '../schemas/ChaoscomponentsGetChaosComponentVariableResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetChaosComponentVariableInternalQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
hubReference?: string;
|
|
9
|
+
identifier?: string;
|
|
10
|
+
kind?: 'resource' | 'template';
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
type?: 'Action' | 'Fault' | 'Probe';
|
|
15
|
+
}
|
|
16
|
+
export type GetChaosComponentVariableInternalOkResponse = ChaoscomponentsGetChaosComponentVariableResponse;
|
|
17
|
+
export type GetChaosComponentVariableInternalErrorResponse = ApiRestError;
|
|
18
|
+
export interface GetChaosComponentVariableInternalProps extends Omit<FetcherOptions<GetChaosComponentVariableInternalQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetChaosComponentVariableInternalQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface GetChaosComponentVariableInternalResponseContainer {
|
|
22
|
+
body: GetChaosComponentVariableInternalOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function getChaosComponentVariableInternal(props: GetChaosComponentVariableInternalProps): Promise<GetChaosComponentVariableInternalResponseContainer>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets chaos component variables (faults, probes, actions) for internal service-to-service calls
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetChaosComponentVariableInternalQuery(props: GetChaosComponentVariableInternalProps, options?: Omit<UseQueryOptions<GetChaosComponentVariableInternalResponseContainer, GetChaosComponentVariableInternalErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosComponentVariableInternalResponseContainer, 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 getChaosComponentVariableInternal(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/internalv3/integrations/get-chaos-component-variable`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Gets chaos component variables (faults, probes, actions) for internal service-to-service calls
|
|
11
|
+
*/
|
|
12
|
+
export function useGetChaosComponentVariableInternalQuery(props, options) {
|
|
13
|
+
return useQuery(['getChaosComponentVariableInternal', props.queryParams], ({ signal }) => getChaosComponentVariableInternal(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -126,6 +126,8 @@ export type { GetActionTemplateErrorResponse, GetActionTemplateOkResponse, GetAc
|
|
|
126
126
|
export { getActionTemplate, useGetActionTemplateQuery } from './hooks/useGetActionTemplateQuery';
|
|
127
127
|
export type { GetActionTemplateRevisionDifferenceErrorResponse, GetActionTemplateRevisionDifferenceOkResponse, GetActionTemplateRevisionDifferenceProps, GetActionTemplateRevisionDifferenceQueryPathParams, GetActionTemplateRevisionDifferenceQueryQueryParams, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
|
|
128
128
|
export { getActionTemplateRevisionDifference, useGetActionTemplateRevisionDifferenceQuery, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
|
|
129
|
+
export type { GetChaosComponentVariableInternalErrorResponse, GetChaosComponentVariableInternalOkResponse, GetChaosComponentVariableInternalProps, GetChaosComponentVariableInternalQueryQueryParams, } from './hooks/useGetChaosComponentVariableInternalQuery';
|
|
130
|
+
export { getChaosComponentVariableInternal, useGetChaosComponentVariableInternalQuery, } from './hooks/useGetChaosComponentVariableInternalQuery';
|
|
129
131
|
export type { GetChaosComponentVariableErrorResponse, GetChaosComponentVariableOkResponse, GetChaosComponentVariableProps, GetChaosComponentVariableQueryQueryParams, } from './hooks/useGetChaosComponentVariableQuery';
|
|
130
132
|
export { getChaosComponentVariable, useGetChaosComponentVariableQuery, } from './hooks/useGetChaosComponentVariableQuery';
|
|
131
133
|
export type { GetChaosDashboardErrorResponse, GetChaosDashboardOkResponse, GetChaosDashboardProps, } from './hooks/useGetChaosDashboardQuery';
|
|
@@ -1443,6 +1445,7 @@ export type { V2OnboardingConfirmServiceOnboardingResponse } from './schemas/V2O
|
|
|
1443
1445
|
export type { V2OnboardingDiscoveredService } from './schemas/V2OnboardingDiscoveredService';
|
|
1444
1446
|
export type { V2OnboardingExperiments } from './schemas/V2OnboardingExperiments';
|
|
1445
1447
|
export type { V2OnboardingListOnboardedServicesResponse } from './schemas/V2OnboardingListOnboardedServicesResponse';
|
|
1448
|
+
export type { V2OnboardingManualMethod } from './schemas/V2OnboardingManualMethod';
|
|
1446
1449
|
export type { V2OnboardingNetworkMapCreationMode } from './schemas/V2OnboardingNetworkMapCreationMode';
|
|
1447
1450
|
export type { V2OnboardingOnboardServicesRequest } from './schemas/V2OnboardingOnboardServicesRequest';
|
|
1448
1451
|
export type { V2OnboardingOnboardServicesResponse } from './schemas/V2OnboardingOnboardServicesResponse';
|
|
@@ -62,6 +62,7 @@ export { getActionManifest, useGetActionManifestQuery } from './hooks/useGetActi
|
|
|
62
62
|
export { getAction, useGetActionQuery } from './hooks/useGetActionQuery';
|
|
63
63
|
export { getActionTemplate, useGetActionTemplateQuery } from './hooks/useGetActionTemplateQuery';
|
|
64
64
|
export { getActionTemplateRevisionDifference, useGetActionTemplateRevisionDifferenceQuery, } from './hooks/useGetActionTemplateRevisionDifferenceQuery';
|
|
65
|
+
export { getChaosComponentVariableInternal, useGetChaosComponentVariableInternalQuery, } from './hooks/useGetChaosComponentVariableInternalQuery';
|
|
65
66
|
export { getChaosComponentVariable, useGetChaosComponentVariableQuery, } from './hooks/useGetChaosComponentVariableQuery';
|
|
66
67
|
export { getChaosDashboard, useGetChaosDashboardQuery } from './hooks/useGetChaosDashboardQuery';
|
|
67
68
|
export { getChaosExperimentRunReportJson, useGetChaosExperimentRunReportJsonQuery, } from './hooks/useGetChaosExperimentRunReportJsonQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type V2OnboardingManualMethod = 'NetworkMap' | 'Service';
|
|
@@ -2,6 +2,7 @@ import type { V2OnboardingAutoCreatedNetworkMapStatus } from '../schemas/V2Onboa
|
|
|
2
2
|
import type { V2OnboardingChaosInfraAdvanceConfiguration } from '../schemas/V2OnboardingChaosInfraAdvanceConfiguration';
|
|
3
3
|
import type { V2OnboardingDiscoveredService } from '../schemas/V2OnboardingDiscoveredService';
|
|
4
4
|
import type { DatabaseAgentConfiguration } from '../schemas/DatabaseAgentConfiguration';
|
|
5
|
+
import type { V2OnboardingManualMethod } from '../schemas/V2OnboardingManualMethod';
|
|
5
6
|
import type { V2OnboardingOnboardingMode } from '../schemas/V2OnboardingOnboardingMode';
|
|
6
7
|
import type { V2OnboardingChaosServiceStatus } from '../schemas/V2OnboardingChaosServiceStatus';
|
|
7
8
|
import type { V2OnboardingRunSafeExperimentStatus } from '../schemas/V2OnboardingRunSafeExperimentStatus';
|
|
@@ -19,6 +20,7 @@ export interface V2OnboardingV2Onboarding {
|
|
|
19
20
|
environmentRef?: string;
|
|
20
21
|
infrastructureRef?: string;
|
|
21
22
|
isRemoved: boolean;
|
|
23
|
+
manualMethod?: V2OnboardingManualMethod;
|
|
22
24
|
mode?: V2OnboardingOnboardingMode;
|
|
23
25
|
namespace?: string;
|
|
24
26
|
onboardingChaosServiceStatus?: V2OnboardingChaosServiceStatus;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { V2OnboardingChaosInfraAdvanceConfiguration } from '../schemas/V2OnboardingChaosInfraAdvanceConfiguration';
|
|
2
2
|
import type { DatabaseAgentConfiguration } from '../schemas/DatabaseAgentConfiguration';
|
|
3
|
+
import type { V2OnboardingManualMethod } from '../schemas/V2OnboardingManualMethod';
|
|
3
4
|
import type { V2OnboardingOnboardingMode } from '../schemas/V2OnboardingOnboardingMode';
|
|
4
5
|
export interface V2OnboardingV2OnboardingRequest {
|
|
5
6
|
chaosAdvanceConfiguration?: V2OnboardingChaosInfraAdvanceConfiguration;
|
|
@@ -7,6 +8,7 @@ export interface V2OnboardingV2OnboardingRequest {
|
|
|
7
8
|
environmentRef: string;
|
|
8
9
|
infrastructureRef: string;
|
|
9
10
|
isAIEnabled?: boolean;
|
|
11
|
+
manualMethod?: V2OnboardingManualMethod;
|
|
10
12
|
mode: V2OnboardingOnboardingMode;
|
|
11
13
|
serviceAccount?: string;
|
|
12
14
|
}
|
package/package.json
CHANGED