@harnessio/react-chaos-manager-client 1.65.1 → 1.66.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/useGetChaosComponentVariableQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useGetDashboardV3Query.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useGetDashboardV3Query.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListDashboardsV3Query.d.ts +40 -0
- package/dist/chaos-manager/src/services/hooks/useListDashboardsV3Query.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListOnboardedServicesQuery.d.ts +36 -0
- package/dist/chaos-manager/src/services/hooks/useListOnboardedServicesQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useOnboardServicesMutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useOnboardServicesMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmServiceOnboardingMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmServiceOnboardingMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateDashboardV3Mutation.d.ts +33 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateDashboardV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +24 -0
- package/dist/chaos-manager/src/services/index.js +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsChaosComponentKind.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsChaosComponentKind.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaoscomponentsRunChaosComponentRequest.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesChaosServiceResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesCreateRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/DashboardCategoryCount.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/DashboardCategoryCount.js +4 -0
- package/dist/chaos-manager/src/services/schemas/DashboardDashboardCounts.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/DashboardDashboardCounts.js +1 -0
- package/dist/chaos-manager/src/services/schemas/DashboardDashboardResponse.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/DashboardDashboardResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/DashboardListDashboardResponse.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/DashboardListDashboardResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/DashboardUpdateRequest.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/DashboardUpdateRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetExperimentRunResponse.d.ts +41 -4
- package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosServiceStatus.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosServiceStatus.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingConfirmServiceOnboardingResponse.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingConfirmServiceOnboardingResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingListOnboardedServicesResponse.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingListOnboardedServicesResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingOnboardServicesRequest.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingOnboardServicesRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingOnboardServicesResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingOnboardServicesResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingProbeDetail.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingProbeDetail.js +1 -0
- package/dist/chaos-manager/src/services/schemas/V2OnboardingV2Onboarding.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DashboardDashboardResponse } from '../schemas/DashboardDashboardResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetDashboardV3QueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetDashboardV3QueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
useParentUniqueID?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type GetDashboardV3OkResponse = DashboardDashboardResponse;
|
|
17
|
+
export type GetDashboardV3ErrorResponse = ApiRestError;
|
|
18
|
+
export interface GetDashboardV3Props extends GetDashboardV3QueryPathParams, Omit<FetcherOptions<GetDashboardV3QueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetDashboardV3QueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface GetDashboardV3ResponseContainer {
|
|
22
|
+
body: GetDashboardV3OkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function getDashboardV3(props: GetDashboardV3Props): Promise<GetDashboardV3ResponseContainer>;
|
|
26
|
+
/**
|
|
27
|
+
* gets a dashboard by identity for the given project
|
|
28
|
+
*/
|
|
29
|
+
export declare function useGetDashboardV3Query(props: GetDashboardV3Props, options?: Omit<UseQueryOptions<GetDashboardV3ResponseContainer, GetDashboardV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDashboardV3ResponseContainer, 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 getDashboardV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/dashboards/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* gets a dashboard by identity for the given project
|
|
11
|
+
*/
|
|
12
|
+
export function useGetDashboardV3Query(props, options) {
|
|
13
|
+
return useQuery(['GetDashboardV3', props.identity, props.queryParams], ({ signal }) => getDashboardV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DashboardListDashboardResponse } from '../schemas/DashboardListDashboardResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListDashboardsV3QueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
category?: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
favourite?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @default 15
|
|
12
|
+
*/
|
|
13
|
+
limit?: number;
|
|
14
|
+
organizationIdentifier?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
parentUniqueId?: string;
|
|
20
|
+
projectIdentifier?: string;
|
|
21
|
+
search?: string;
|
|
22
|
+
sortAscending?: boolean;
|
|
23
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
24
|
+
tags?: string;
|
|
25
|
+
useParentUniqueID?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export type ListDashboardsV3OkResponse = DashboardListDashboardResponse;
|
|
28
|
+
export type ListDashboardsV3ErrorResponse = ApiRestError;
|
|
29
|
+
export interface ListDashboardsV3Props extends Omit<FetcherOptions<ListDashboardsV3QueryQueryParams, unknown>, 'url'> {
|
|
30
|
+
queryParams: ListDashboardsV3QueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export interface ListDashboardsV3ResponseContainer {
|
|
33
|
+
body: ListDashboardsV3OkResponse;
|
|
34
|
+
headers: Headers;
|
|
35
|
+
}
|
|
36
|
+
export declare function listDashboardsV3(props: ListDashboardsV3Props): Promise<ListDashboardsV3ResponseContainer>;
|
|
37
|
+
/**
|
|
38
|
+
* lists out-of-the-box dashboards for the given project with search, tag/category/favourite filters, sort and pagination
|
|
39
|
+
*/
|
|
40
|
+
export declare function useListDashboardsV3Query(props: ListDashboardsV3Props, options?: Omit<UseQueryOptions<ListDashboardsV3ResponseContainer, ListDashboardsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDashboardsV3ResponseContainer, 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 listDashboardsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/dashboards`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* lists out-of-the-box dashboards for the given project with search, tag/category/favourite filters, sort and pagination
|
|
11
|
+
*/
|
|
12
|
+
export function useListDashboardsV3Query(props, options) {
|
|
13
|
+
return useQuery(['ListDashboardsV3', props.queryParams], ({ signal }) => listDashboardsV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { V2OnboardingListOnboardedServicesResponse } from '../schemas/V2OnboardingListOnboardedServicesResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListOnboardedServicesQueryPathParams {
|
|
6
|
+
onboardingid: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListOnboardedServicesQueryQueryParams {
|
|
9
|
+
correlationID?: string;
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
/**
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
page?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @default 15
|
|
19
|
+
*/
|
|
20
|
+
limit?: number;
|
|
21
|
+
search?: string;
|
|
22
|
+
}
|
|
23
|
+
export type ListOnboardedServicesOkResponse = V2OnboardingListOnboardedServicesResponse;
|
|
24
|
+
export type ListOnboardedServicesErrorResponse = ApiRestError;
|
|
25
|
+
export interface ListOnboardedServicesProps extends ListOnboardedServicesQueryPathParams, Omit<FetcherOptions<ListOnboardedServicesQueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: ListOnboardedServicesQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export interface ListOnboardedServicesResponseContainer {
|
|
29
|
+
body: ListOnboardedServicesOkResponse;
|
|
30
|
+
headers: Headers;
|
|
31
|
+
}
|
|
32
|
+
export declare function listOnboardedServices(props: ListOnboardedServicesProps): Promise<ListOnboardedServicesResponseContainer>;
|
|
33
|
+
/**
|
|
34
|
+
* List the chaos services created during the onboarding session and the default probes attached to them
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListOnboardedServicesQuery(props: ListOnboardedServicesProps, options?: Omit<UseQueryOptions<ListOnboardedServicesResponseContainer, ListOnboardedServicesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListOnboardedServicesResponseContainer, 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 listOnboardedServices(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/onboarding/${props.onboardingid}/services`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List the chaos services created during the onboarding session and the default probes attached to them
|
|
11
|
+
*/
|
|
12
|
+
export function useListOnboardedServicesQuery(props, options) {
|
|
13
|
+
return useQuery(['listOnboardedServices', props.onboardingid, props.queryParams], ({ signal }) => listOnboardedServices(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { V2OnboardingOnboardServicesResponse } from '../schemas/V2OnboardingOnboardServicesResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { V2OnboardingOnboardServicesRequest } from '../schemas/V2OnboardingOnboardServicesRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface OnboardServicesMutationPathParams {
|
|
7
|
+
onboardingid: string;
|
|
8
|
+
}
|
|
9
|
+
export interface OnboardServicesMutationQueryParams {
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
organizationIdentifier: string;
|
|
13
|
+
projectIdentifier: string;
|
|
14
|
+
}
|
|
15
|
+
export type OnboardServicesRequestBody = V2OnboardingOnboardServicesRequest;
|
|
16
|
+
export type OnboardServicesOkResponse = V2OnboardingOnboardServicesResponse;
|
|
17
|
+
export type OnboardServicesErrorResponse = ApiRestError;
|
|
18
|
+
export interface OnboardServicesProps extends OnboardServicesMutationPathParams, Omit<FetcherOptions<OnboardServicesMutationQueryParams, OnboardServicesRequestBody>, 'url'> {
|
|
19
|
+
queryParams: OnboardServicesMutationQueryParams;
|
|
20
|
+
body: OnboardServicesRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export interface OnboardServicesResponseContainer {
|
|
23
|
+
body: OnboardServicesOkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function onboardServices(props: OnboardServicesProps): Promise<OnboardServicesResponseContainer>;
|
|
27
|
+
export type OnboardServicesMutationProps<T extends keyof OnboardServicesProps> = Omit<OnboardServicesProps, T> & Partial<Pick<OnboardServicesProps, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* Onboard the user-selected discovered services as chaos services with default probes attached
|
|
30
|
+
*/
|
|
31
|
+
export declare function useOnboardServicesMutation<T extends keyof OnboardServicesProps>(props: Pick<Partial<OnboardServicesProps>, T>, options?: Omit<UseMutationOptions<OnboardServicesResponseContainer, OnboardServicesErrorResponse, OnboardServicesMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardServicesResponseContainer, ApiRestError, OnboardServicesMutationProps<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 onboardServices(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/onboarding-onboard-services/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Onboard the user-selected discovered services as chaos services with default probes attached
|
|
11
|
+
*/
|
|
12
|
+
export function useOnboardServicesMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => onboardServices(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmServiceOnboardingMutation.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { V2OnboardingConfirmServiceOnboardingResponse } from '../schemas/V2OnboardingConfirmServiceOnboardingResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface OnboardingConfirmServiceOnboardingMutationPathParams {
|
|
6
|
+
onboardingid: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OnboardingConfirmServiceOnboardingMutationQueryParams {
|
|
9
|
+
correlationID?: string;
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
organizationIdentifier: string;
|
|
12
|
+
projectIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type OnboardingConfirmServiceOnboardingOkResponse = V2OnboardingConfirmServiceOnboardingResponse;
|
|
15
|
+
export type OnboardingConfirmServiceOnboardingErrorResponse = ApiRestError;
|
|
16
|
+
export interface OnboardingConfirmServiceOnboardingProps extends OnboardingConfirmServiceOnboardingMutationPathParams, Omit<FetcherOptions<OnboardingConfirmServiceOnboardingMutationQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: OnboardingConfirmServiceOnboardingMutationQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface OnboardingConfirmServiceOnboardingResponseContainer {
|
|
20
|
+
body: OnboardingConfirmServiceOnboardingOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function onboardingConfirmServiceOnboarding(props: OnboardingConfirmServiceOnboardingProps): Promise<OnboardingConfirmServiceOnboardingResponseContainer>;
|
|
24
|
+
export type OnboardingConfirmServiceOnboardingMutationProps<T extends keyof OnboardingConfirmServiceOnboardingProps> = Omit<OnboardingConfirmServiceOnboardingProps, T> & Partial<Pick<OnboardingConfirmServiceOnboardingProps, T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Confirm the service onboarding step (mark it completed) after services have been onboarded
|
|
27
|
+
*/
|
|
28
|
+
export declare function useOnboardingConfirmServiceOnboardingMutation<T extends keyof OnboardingConfirmServiceOnboardingProps>(props: Pick<Partial<OnboardingConfirmServiceOnboardingProps>, T>, options?: Omit<UseMutationOptions<OnboardingConfirmServiceOnboardingResponseContainer, OnboardingConfirmServiceOnboardingErrorResponse, OnboardingConfirmServiceOnboardingMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<OnboardingConfirmServiceOnboardingResponseContainer, ApiRestError, OnboardingConfirmServiceOnboardingMutationProps<T>, unknown>;
|
package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmServiceOnboardingMutation.js
ADDED
|
@@ -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 onboardingConfirmServiceOnboarding(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/onboarding-confirm-service-onboarding/${props.onboardingid}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Confirm the service onboarding step (mark it completed) after services have been onboarded
|
|
11
|
+
*/
|
|
12
|
+
export function useOnboardingConfirmServiceOnboardingMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => onboardingConfirmServiceOnboarding(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DashboardDashboardResponse } from '../schemas/DashboardDashboardResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { DashboardUpdateRequest } from '../schemas/DashboardUpdateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateDashboardV3MutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateDashboardV3MutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
parentUniqueId?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
useParentUniqueID?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type UpdateDashboardV3RequestBody = DashboardUpdateRequest;
|
|
18
|
+
export type UpdateDashboardV3OkResponse = DashboardDashboardResponse;
|
|
19
|
+
export type UpdateDashboardV3ErrorResponse = ApiRestError;
|
|
20
|
+
export interface UpdateDashboardV3Props extends UpdateDashboardV3MutationPathParams, Omit<FetcherOptions<UpdateDashboardV3MutationQueryParams, UpdateDashboardV3RequestBody>, 'url'> {
|
|
21
|
+
queryParams: UpdateDashboardV3MutationQueryParams;
|
|
22
|
+
body: UpdateDashboardV3RequestBody;
|
|
23
|
+
}
|
|
24
|
+
export interface UpdateDashboardV3ResponseContainer {
|
|
25
|
+
body: UpdateDashboardV3OkResponse;
|
|
26
|
+
headers: Headers;
|
|
27
|
+
}
|
|
28
|
+
export declare function updateDashboardV3(props: UpdateDashboardV3Props): Promise<UpdateDashboardV3ResponseContainer>;
|
|
29
|
+
export type UpdateDashboardV3MutationProps<T extends keyof UpdateDashboardV3Props> = Omit<UpdateDashboardV3Props, T> & Partial<Pick<UpdateDashboardV3Props, T>>;
|
|
30
|
+
/**
|
|
31
|
+
* updates the tags and favourite flag of a dashboard for the given project
|
|
32
|
+
*/
|
|
33
|
+
export declare function useUpdateDashboardV3Mutation<T extends keyof UpdateDashboardV3Props>(props: Pick<Partial<UpdateDashboardV3Props>, T>, options?: Omit<UseMutationOptions<UpdateDashboardV3ResponseContainer, UpdateDashboardV3ErrorResponse, UpdateDashboardV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateDashboardV3ResponseContainer, ApiRestError, UpdateDashboardV3MutationProps<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 updateDashboardV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/dashboards/${props.identity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* updates the tags and favourite flag of a dashboard for the given project
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateDashboardV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateDashboardV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -164,6 +164,8 @@ export type { GetConditionErrorResponse, GetConditionOkResponse, GetConditionPro
|
|
|
164
164
|
export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
|
|
165
165
|
export type { GetConnectorForInfraErrorResponse, GetConnectorForInfraOkResponse, GetConnectorForInfraProps, GetConnectorForInfraQueryPathParams, GetConnectorForInfraQueryQueryParams, } from './hooks/useGetConnectorForInfraQuery';
|
|
166
166
|
export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
|
|
167
|
+
export type { GetDashboardV3ErrorResponse, GetDashboardV3OkResponse, GetDashboardV3Props, GetDashboardV3QueryPathParams, GetDashboardV3QueryQueryParams, } from './hooks/useGetDashboardV3Query';
|
|
168
|
+
export { getDashboardV3, useGetDashboardV3Query } from './hooks/useGetDashboardV3Query';
|
|
167
169
|
export type { GetExperimentHelperImageVersionErrorResponse, GetExperimentHelperImageVersionOkResponse, GetExperimentHelperImageVersionProps, } from './hooks/useGetExperimentHelperImageVersionQuery';
|
|
168
170
|
export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
|
|
169
171
|
export type { GetExperimentOrTemplateVariableErrorResponse, GetExperimentOrTemplateVariableOkResponse, GetExperimentOrTemplateVariableProps, GetExperimentOrTemplateVariableQueryQueryParams, } from './hooks/useGetExperimentOrTemplateVariableQuery';
|
|
@@ -290,6 +292,8 @@ export type { ListChaosV2ExperimentErrorResponse, ListChaosV2ExperimentOkRespons
|
|
|
290
292
|
export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
|
|
291
293
|
export type { ListConditionErrorResponse, ListConditionOkResponse, ListConditionProps, ListConditionQueryQueryParams, } from './hooks/useListConditionQuery';
|
|
292
294
|
export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
|
|
295
|
+
export type { ListDashboardsV3ErrorResponse, ListDashboardsV3OkResponse, ListDashboardsV3Props, ListDashboardsV3QueryQueryParams, } from './hooks/useListDashboardsV3Query';
|
|
296
|
+
export { listDashboardsV3, useListDashboardsV3Query } from './hooks/useListDashboardsV3Query';
|
|
293
297
|
export type { ListDrTestsErrorResponse, ListDrTestsOkResponse, ListDrTestsProps, ListDrTestsQueryQueryParams, } from './hooks/useListDrTestsQuery';
|
|
294
298
|
export { listDrTests, useListDrTestsQuery } from './hooks/useListDrTestsQuery';
|
|
295
299
|
export type { ListExperimentMetadataErrorResponse, ListExperimentMetadataOkResponse, ListExperimentMetadataProps, ListExperimentMetadataQueryQueryParams, ListExperimentMetadataRequestBody, } from './hooks/useListExperimentMetadataQuery';
|
|
@@ -332,6 +336,8 @@ export type { ListLegacyKubernetesChaosInfraErrorResponse, ListLegacyKubernetesC
|
|
|
332
336
|
export { listLegacyKubernetesChaosInfra, useListLegacyKubernetesChaosInfraMutation, } from './hooks/useListLegacyKubernetesChaosInfraMutation';
|
|
333
337
|
export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkResponse, ListMachineChaosInfraProps, ListMachineChaosInfraQueryQueryParams, ListMachineChaosInfraRequestBody, } from './hooks/useListMachineChaosInfraQuery';
|
|
334
338
|
export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
|
|
339
|
+
export type { ListOnboardedServicesErrorResponse, ListOnboardedServicesOkResponse, ListOnboardedServicesProps, ListOnboardedServicesQueryPathParams, ListOnboardedServicesQueryQueryParams, } from './hooks/useListOnboardedServicesQuery';
|
|
340
|
+
export { listOnboardedServices, useListOnboardedServicesQuery, } from './hooks/useListOnboardedServicesQuery';
|
|
335
341
|
export type { ListPipelineOnboardingErrorResponse, ListPipelineOnboardingOkResponse, ListPipelineOnboardingProps, ListPipelineOnboardingQueryQueryParams, } from './hooks/useListPipelineOnboardingQuery';
|
|
336
342
|
export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
|
|
337
343
|
export type { ListProbeExecutionsErrorResponse, ListProbeExecutionsOkResponse, ListProbeExecutionsProps, ListProbeExecutionsQueryPathParams, ListProbeExecutionsQueryQueryParams, } from './hooks/useListProbeExecutionsQuery';
|
|
@@ -358,6 +364,8 @@ export type { ListVariablesInActionTemplateErrorResponse, ListVariablesInActionT
|
|
|
358
364
|
export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
|
|
359
365
|
export type { ListVariablesInProbeTemplateErrorResponse, ListVariablesInProbeTemplateOkResponse, ListVariablesInProbeTemplateProps, ListVariablesInProbeTemplateQueryPathParams, ListVariablesInProbeTemplateQueryQueryParams, } from './hooks/useListVariablesInProbeTemplateQuery';
|
|
360
366
|
export { listVariablesInProbeTemplate, useListVariablesInProbeTemplateQuery, } from './hooks/useListVariablesInProbeTemplateQuery';
|
|
367
|
+
export type { OnboardServicesErrorResponse, OnboardServicesMutationPathParams, OnboardServicesMutationProps, OnboardServicesMutationQueryParams, OnboardServicesOkResponse, OnboardServicesProps, OnboardServicesRequestBody, } from './hooks/useOnboardServicesMutation';
|
|
368
|
+
export { onboardServices, useOnboardServicesMutation } from './hooks/useOnboardServicesMutation';
|
|
361
369
|
export type { OnboardingConfirmDiscoveryErrorResponse, OnboardingConfirmDiscoveryMutationPathParams, OnboardingConfirmDiscoveryMutationProps, OnboardingConfirmDiscoveryMutationQueryParams, OnboardingConfirmDiscoveryOkResponse, OnboardingConfirmDiscoveryProps, } from './hooks/useOnboardingConfirmDiscoveryMutation';
|
|
362
370
|
export { onboardingConfirmDiscovery, useOnboardingConfirmDiscoveryMutation, } from './hooks/useOnboardingConfirmDiscoveryMutation';
|
|
363
371
|
export type { OnboardingConfirmExperimentCreationErrorResponse, OnboardingConfirmExperimentCreationMutationPathParams, OnboardingConfirmExperimentCreationMutationProps, OnboardingConfirmExperimentCreationMutationQueryParams, OnboardingConfirmExperimentCreationOkResponse, OnboardingConfirmExperimentCreationProps, OnboardingConfirmExperimentCreationRequestBody, } from './hooks/useOnboardingConfirmExperimentCreationMutation';
|
|
@@ -366,6 +374,8 @@ export type { OnboardingConfirmExperimentRunErrorResponse, OnboardingConfirmExpe
|
|
|
366
374
|
export { onboardingConfirmExperimentRun, useOnboardingConfirmExperimentRunMutation, } from './hooks/useOnboardingConfirmExperimentRunMutation';
|
|
367
375
|
export type { OnboardingConfirmNetworkMapErrorResponse, OnboardingConfirmNetworkMapMutationPathParams, OnboardingConfirmNetworkMapMutationProps, OnboardingConfirmNetworkMapMutationQueryParams, OnboardingConfirmNetworkMapOkResponse, OnboardingConfirmNetworkMapProps, OnboardingConfirmNetworkMapRequestBody, } from './hooks/useOnboardingConfirmNetworkMapMutation';
|
|
368
376
|
export { onboardingConfirmNetworkMap, useOnboardingConfirmNetworkMapMutation, } from './hooks/useOnboardingConfirmNetworkMapMutation';
|
|
377
|
+
export type { OnboardingConfirmServiceOnboardingErrorResponse, OnboardingConfirmServiceOnboardingMutationPathParams, OnboardingConfirmServiceOnboardingMutationProps, OnboardingConfirmServiceOnboardingMutationQueryParams, OnboardingConfirmServiceOnboardingOkResponse, OnboardingConfirmServiceOnboardingProps, } from './hooks/useOnboardingConfirmServiceOnboardingMutation';
|
|
378
|
+
export { onboardingConfirmServiceOnboarding, useOnboardingConfirmServiceOnboardingMutation, } from './hooks/useOnboardingConfirmServiceOnboardingMutation';
|
|
369
379
|
export type { PipelineAddExperimentRecommendationErrorResponse, PipelineAddExperimentRecommendationMutationProps, PipelineAddExperimentRecommendationMutationQueryParams, PipelineAddExperimentRecommendationOkResponse, PipelineAddExperimentRecommendationProps, } from './hooks/usePipelineAddExperimentRecommendationMutation';
|
|
370
380
|
export { pipelineAddExperimentRecommendation, usePipelineAddExperimentRecommendationMutation, } from './hooks/usePipelineAddExperimentRecommendationMutation';
|
|
371
381
|
export type { PipelineCanOnboardChaosErrorResponse, PipelineCanOnboardChaosOkResponse, PipelineCanOnboardChaosProps, PipelineCanOnboardChaosQueryPathParams, PipelineCanOnboardChaosQueryQueryParams, } from './hooks/usePipelineCanOnboardChaosQuery';
|
|
@@ -432,6 +442,8 @@ export type { UpdateConditionErrorResponse, UpdateConditionMutationPathParams, U
|
|
|
432
442
|
export { updateCondition, useUpdateConditionMutation } from './hooks/useUpdateConditionMutation';
|
|
433
443
|
export type { UpdateCronStateV3ErrorResponse, UpdateCronStateV3MutationProps, UpdateCronStateV3MutationQueryParams, UpdateCronStateV3OkResponse, UpdateCronStateV3Props, UpdateCronStateV3RequestBody, } from './hooks/useUpdateCronStateV3Mutation';
|
|
434
444
|
export { updateCronStateV3, useUpdateCronStateV3Mutation, } from './hooks/useUpdateCronStateV3Mutation';
|
|
445
|
+
export type { UpdateDashboardV3ErrorResponse, UpdateDashboardV3MutationPathParams, UpdateDashboardV3MutationProps, UpdateDashboardV3MutationQueryParams, UpdateDashboardV3OkResponse, UpdateDashboardV3Props, UpdateDashboardV3RequestBody, } from './hooks/useUpdateDashboardV3Mutation';
|
|
446
|
+
export { updateDashboardV3, useUpdateDashboardV3Mutation, } from './hooks/useUpdateDashboardV3Mutation';
|
|
435
447
|
export type { UpdateEmissaryErrorResponse, UpdateEmissaryMutationPathParams, UpdateEmissaryMutationProps, UpdateEmissaryMutationQueryParams, UpdateEmissaryOkResponse, UpdateEmissaryProps, UpdateEmissaryRequestBody, } from './hooks/useUpdateEmissaryMutation';
|
|
436
448
|
export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
|
|
437
449
|
export type { UpdateExperimentTemplateErrorResponse, UpdateExperimentTemplateMutationPathParams, UpdateExperimentTemplateMutationProps, UpdateExperimentTemplateMutationQueryParams, UpdateExperimentTemplateOkResponse, UpdateExperimentTemplateProps, UpdateExperimentTemplateRequestBody, } from './hooks/useUpdateExperimentTemplateMutation';
|
|
@@ -563,6 +575,7 @@ export type { ChaoscomponentType } from './schemas/ChaoscomponentType';
|
|
|
563
575
|
export type { ChaoscomponentsAbortChaosComponentRequest } from './schemas/ChaoscomponentsAbortChaosComponentRequest';
|
|
564
576
|
export type { ChaoscomponentsAbortChaosComponentResponse } from './schemas/ChaoscomponentsAbortChaosComponentResponse';
|
|
565
577
|
export type { ChaoscomponentsAbortChaosComponentResponseData } from './schemas/ChaoscomponentsAbortChaosComponentResponseData';
|
|
578
|
+
export type { ChaoscomponentsChaosComponentKind } from './schemas/ChaoscomponentsChaosComponentKind';
|
|
566
579
|
export type { ChaoscomponentsCreateDrTestPipelineRequest } from './schemas/ChaoscomponentsCreateDrTestPipelineRequest';
|
|
567
580
|
export type { ChaoscomponentsCreateDrTestPipelineResponse } from './schemas/ChaoscomponentsCreateDrTestPipelineResponse';
|
|
568
581
|
export type { ChaoscomponentsCreateDrTestPipelineResponseData } from './schemas/ChaoscomponentsCreateDrTestPipelineResponseData';
|
|
@@ -676,6 +689,11 @@ export type { CommonTypesExperimentRunsData } from './schemas/CommonTypesExperim
|
|
|
676
689
|
export type { CommonVolume } from './schemas/CommonVolume';
|
|
677
690
|
export type { CommonVolumeInputTemplate } from './schemas/CommonVolumeInputTemplate';
|
|
678
691
|
export type { CommonVolumeType } from './schemas/CommonVolumeType';
|
|
692
|
+
export type { DashboardCategoryCount } from './schemas/DashboardCategoryCount';
|
|
693
|
+
export type { DashboardDashboardCounts } from './schemas/DashboardDashboardCounts';
|
|
694
|
+
export type { DashboardDashboardResponse } from './schemas/DashboardDashboardResponse';
|
|
695
|
+
export type { DashboardListDashboardResponse } from './schemas/DashboardListDashboardResponse';
|
|
696
|
+
export type { DashboardUpdateRequest } from './schemas/DashboardUpdateRequest';
|
|
679
697
|
export type { DatabaseAgentConfiguration } from './schemas/DatabaseAgentConfiguration';
|
|
680
698
|
export type { DatabaseConnection } from './schemas/DatabaseConnection';
|
|
681
699
|
export type { DatabaseConnectionType } from './schemas/DatabaseConnectionType';
|
|
@@ -1411,18 +1429,24 @@ export type { V2OnboardingAgentData } from './schemas/V2OnboardingAgentData';
|
|
|
1411
1429
|
export type { V2OnboardingAgentDetails } from './schemas/V2OnboardingAgentDetails';
|
|
1412
1430
|
export type { V2OnboardingAutoCreatedNetworkMapStatus } from './schemas/V2OnboardingAutoCreatedNetworkMapStatus';
|
|
1413
1431
|
export type { V2OnboardingChaosInfraAdvanceConfiguration } from './schemas/V2OnboardingChaosInfraAdvanceConfiguration';
|
|
1432
|
+
export type { V2OnboardingChaosServiceStatus } from './schemas/V2OnboardingChaosServiceStatus';
|
|
1414
1433
|
export type { V2OnboardingConfirmDiscoveryResponse } from './schemas/V2OnboardingConfirmDiscoveryResponse';
|
|
1415
1434
|
export type { V2OnboardingConfirmExperimentCreationRequest } from './schemas/V2OnboardingConfirmExperimentCreationRequest';
|
|
1416
1435
|
export type { V2OnboardingConfirmExperimentCreationResponse } from './schemas/V2OnboardingConfirmExperimentCreationResponse';
|
|
1417
1436
|
export type { V2OnboardingConfirmExperimentRunResponse } from './schemas/V2OnboardingConfirmExperimentRunResponse';
|
|
1418
1437
|
export type { V2OnboardingConfirmNetworkMapRequest } from './schemas/V2OnboardingConfirmNetworkMapRequest';
|
|
1419
1438
|
export type { V2OnboardingConfirmNetworkMapResponse } from './schemas/V2OnboardingConfirmNetworkMapResponse';
|
|
1439
|
+
export type { V2OnboardingConfirmServiceOnboardingResponse } from './schemas/V2OnboardingConfirmServiceOnboardingResponse';
|
|
1420
1440
|
export type { V2OnboardingDiscoveredService } from './schemas/V2OnboardingDiscoveredService';
|
|
1421
1441
|
export type { V2OnboardingExperiments } from './schemas/V2OnboardingExperiments';
|
|
1442
|
+
export type { V2OnboardingListOnboardedServicesResponse } from './schemas/V2OnboardingListOnboardedServicesResponse';
|
|
1422
1443
|
export type { V2OnboardingNetworkMapCreationMode } from './schemas/V2OnboardingNetworkMapCreationMode';
|
|
1444
|
+
export type { V2OnboardingOnboardServicesRequest } from './schemas/V2OnboardingOnboardServicesRequest';
|
|
1445
|
+
export type { V2OnboardingOnboardServicesResponse } from './schemas/V2OnboardingOnboardServicesResponse';
|
|
1423
1446
|
export type { V2OnboardingOnboardingExperimentResponse } from './schemas/V2OnboardingOnboardingExperimentResponse';
|
|
1424
1447
|
export type { V2OnboardingOnboardingMode } from './schemas/V2OnboardingOnboardingMode';
|
|
1425
1448
|
export type { V2OnboardingOnboardingTargetExperiment } from './schemas/V2OnboardingOnboardingTargetExperiment';
|
|
1449
|
+
export type { V2OnboardingProbeDetail } from './schemas/V2OnboardingProbeDetail';
|
|
1426
1450
|
export type { V2OnboardingRunSafeExperimentStatus } from './schemas/V2OnboardingRunSafeExperimentStatus';
|
|
1427
1451
|
export type { V2OnboardingTargetNetworkMapStatus } from './schemas/V2OnboardingTargetNetworkMapStatus';
|
|
1428
1452
|
export type { V2OnboardingTargetServiceDetails } from './schemas/V2OnboardingTargetServiceDetails';
|
|
@@ -81,6 +81,7 @@ export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, }
|
|
|
81
81
|
export { getCommandUnitStatuses, useGetCommandUnitStatusesQuery, } from './hooks/useGetCommandUnitStatusesQuery';
|
|
82
82
|
export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
|
|
83
83
|
export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
|
|
84
|
+
export { getDashboardV3, useGetDashboardV3Query } from './hooks/useGetDashboardV3Query';
|
|
84
85
|
export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
|
|
85
86
|
export { getExperimentOrTemplateVariable, useGetExperimentOrTemplateVariableQuery, } from './hooks/useGetExperimentOrTemplateVariableQuery';
|
|
86
87
|
export { getExperimentRunTimelineView, useGetExperimentRunTimelineViewQuery, } from './hooks/useGetExperimentRunTimelineViewQuery';
|
|
@@ -144,6 +145,7 @@ export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery
|
|
|
144
145
|
export { listChaosServices, useListChaosServicesQuery } from './hooks/useListChaosServicesQuery';
|
|
145
146
|
export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
|
|
146
147
|
export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
|
|
148
|
+
export { listDashboardsV3, useListDashboardsV3Query } from './hooks/useListDashboardsV3Query';
|
|
147
149
|
export { listDrTests, useListDrTestsQuery } from './hooks/useListDrTestsQuery';
|
|
148
150
|
export { listExperimentMetadata, useListExperimentMetadataQuery, } from './hooks/useListExperimentMetadataQuery';
|
|
149
151
|
export { listExperimentOrTemplate, useListExperimentOrTemplateQuery, } from './hooks/useListExperimentOrTemplateQuery';
|
|
@@ -165,6 +167,7 @@ export { listInputSet, useListInputSetQuery } from './hooks/useListInputSetQuery
|
|
|
165
167
|
export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sInfrasV2Mutation';
|
|
166
168
|
export { listLegacyKubernetesChaosInfra, useListLegacyKubernetesChaosInfraMutation, } from './hooks/useListLegacyKubernetesChaosInfraMutation';
|
|
167
169
|
export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
|
|
170
|
+
export { listOnboardedServices, useListOnboardedServicesQuery, } from './hooks/useListOnboardedServicesQuery';
|
|
168
171
|
export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
|
|
169
172
|
export { listProbeExecutions, useListProbeExecutionsQuery, } from './hooks/useListProbeExecutionsQuery';
|
|
170
173
|
export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListProbeMetadataQuery';
|
|
@@ -178,10 +181,12 @@ export { listTargetNetworkMaps, useListTargetNetworkMapsQuery, } from './hooks/u
|
|
|
178
181
|
export { listV2Onboarding, useListV2OnboardingQuery } from './hooks/useListV2OnboardingQuery';
|
|
179
182
|
export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
|
|
180
183
|
export { listVariablesInProbeTemplate, useListVariablesInProbeTemplateQuery, } from './hooks/useListVariablesInProbeTemplateQuery';
|
|
184
|
+
export { onboardServices, useOnboardServicesMutation } from './hooks/useOnboardServicesMutation';
|
|
181
185
|
export { onboardingConfirmDiscovery, useOnboardingConfirmDiscoveryMutation, } from './hooks/useOnboardingConfirmDiscoveryMutation';
|
|
182
186
|
export { onboardingConfirmExperimentCreation, useOnboardingConfirmExperimentCreationMutation, } from './hooks/useOnboardingConfirmExperimentCreationMutation';
|
|
183
187
|
export { onboardingConfirmExperimentRun, useOnboardingConfirmExperimentRunMutation, } from './hooks/useOnboardingConfirmExperimentRunMutation';
|
|
184
188
|
export { onboardingConfirmNetworkMap, useOnboardingConfirmNetworkMapMutation, } from './hooks/useOnboardingConfirmNetworkMapMutation';
|
|
189
|
+
export { onboardingConfirmServiceOnboarding, useOnboardingConfirmServiceOnboardingMutation, } from './hooks/useOnboardingConfirmServiceOnboardingMutation';
|
|
185
190
|
export { pipelineAddExperimentRecommendation, usePipelineAddExperimentRecommendationMutation, } from './hooks/usePipelineAddExperimentRecommendationMutation';
|
|
186
191
|
export { pipelineCanOnboardChaos, usePipelineCanOnboardChaosQuery, } from './hooks/usePipelineCanOnboardChaosQuery';
|
|
187
192
|
export { pipelineOnboardChaos, usePipelineOnboardChaosMutation, } from './hooks/usePipelineOnboardChaosMutation';
|
|
@@ -215,6 +220,7 @@ export { updateChaosService, useUpdateChaosServiceMutation, } from './hooks/useU
|
|
|
215
220
|
export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
|
|
216
221
|
export { updateCondition, useUpdateConditionMutation } from './hooks/useUpdateConditionMutation';
|
|
217
222
|
export { updateCronStateV3, useUpdateCronStateV3Mutation, } from './hooks/useUpdateCronStateV3Mutation';
|
|
223
|
+
export { updateDashboardV3, useUpdateDashboardV3Mutation, } from './hooks/useUpdateDashboardV3Mutation';
|
|
218
224
|
export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
|
|
219
225
|
export { updateExperimentTemplate, useUpdateExperimentTemplateMutation, } from './hooks/useUpdateExperimentTemplateMutation';
|
|
220
226
|
export { updateExperimentV3, useUpdateExperimentV3Mutation, } from './hooks/useUpdateExperimentV3Mutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ChaoscomponentsChaosComponentKind = 'resource' | 'template';
|
package/dist/chaos-manager/src/services/schemas/ChaoscomponentsRunChaosComponentRequest.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ChaoscomponentsChaosComponentKind } from '../schemas/ChaoscomponentsChaosComponentKind';
|
|
1
2
|
import type { TemplateChaosComponentInputsetSpec } from '../schemas/TemplateChaosComponentInputsetSpec';
|
|
2
3
|
import type { ChaoscomponentChaosComponentType } from '../schemas/ChaoscomponentChaosComponentType';
|
|
3
4
|
import type { ChaoscomponentsUserMetaData } from '../schemas/ChaoscomponentsUserMetaData';
|
|
@@ -5,6 +6,7 @@ export interface ChaoscomponentsRunChaosComponentRequest {
|
|
|
5
6
|
duration?: string;
|
|
6
7
|
identity?: string;
|
|
7
8
|
infraReference?: string;
|
|
9
|
+
kind?: ChaoscomponentsChaosComponentKind;
|
|
8
10
|
runtimeInputs?: TemplateChaosComponentInputsetSpec;
|
|
9
11
|
type?: ChaoscomponentChaosComponentType;
|
|
10
12
|
userMetaData?: ChaoscomponentsUserMetaData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
2
|
+
export interface DashboardDashboardResponse {
|
|
3
|
+
accountID: string;
|
|
4
|
+
category?: string;
|
|
5
|
+
createdBy?: HcesdkUserDetails;
|
|
6
|
+
dashboardID?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
identity?: string;
|
|
9
|
+
isFavourite?: boolean;
|
|
10
|
+
isOOTB?: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
orgID?: string;
|
|
13
|
+
parentUniqueId?: string;
|
|
14
|
+
projectID?: string;
|
|
15
|
+
seedVersion?: number;
|
|
16
|
+
tags?: string[];
|
|
17
|
+
uniqueId?: string;
|
|
18
|
+
updatedBy?: HcesdkUserDetails;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DashboardDashboardCounts } from '../schemas/DashboardDashboardCounts';
|
|
2
|
+
import type { DashboardDashboardResponse } from '../schemas/DashboardDashboardResponse';
|
|
3
|
+
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
4
|
+
export interface DashboardListDashboardResponse {
|
|
5
|
+
correlationID?: string;
|
|
6
|
+
counts?: DashboardDashboardCounts;
|
|
7
|
+
data?: DashboardDashboardResponse[];
|
|
8
|
+
pagination?: SharedPaginationResponse;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import type { ChaosExperimentRunAction } from '../schemas/ChaosExperimentRunAction';
|
|
1
2
|
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
3
|
+
import type { ChaosExperimentRunFaults } from '../schemas/ChaosExperimentRunFaults';
|
|
4
|
+
import type { ChaosExperimentRunProbe } from '../schemas/ChaosExperimentRunProbe';
|
|
5
|
+
import type { ChaosExperimentRunSecurityGovernanceNode } from '../schemas/ChaosExperimentRunSecurityGovernanceNode';
|
|
6
|
+
import type { TargetserviceServiceMetadata } from '../schemas/TargetserviceServiceMetadata';
|
|
7
|
+
import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
|
|
2
8
|
export interface ExperimentrunsGetExperimentRunResponse {
|
|
9
|
+
accountID: string;
|
|
10
|
+
actions?: ChaosExperimentRunAction[];
|
|
3
11
|
completed?: boolean;
|
|
4
12
|
/**
|
|
5
13
|
* correlation id is used to debug micro svc communication
|
|
@@ -7,17 +15,46 @@ export interface ExperimentrunsGetExperimentRunResponse {
|
|
|
7
15
|
correlationID?: string;
|
|
8
16
|
createdAt?: number;
|
|
9
17
|
createdBy?: HcesdkUserDetails;
|
|
18
|
+
errorResponse?: string;
|
|
10
19
|
executionData?: string;
|
|
11
|
-
|
|
20
|
+
experimentID?: string;
|
|
21
|
+
experimentIdentifier?: string;
|
|
12
22
|
experimentName?: string;
|
|
13
|
-
|
|
23
|
+
experimentRunID?: string;
|
|
24
|
+
experimentTags?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* Type overrides: DB has different types
|
|
27
|
+
*/
|
|
14
28
|
experimentType?: string;
|
|
15
29
|
experimentYaml?: string;
|
|
16
|
-
|
|
30
|
+
faultIDs?: string[];
|
|
31
|
+
faultsAwaited?: number;
|
|
32
|
+
faultsFailed?: number;
|
|
33
|
+
faultsNA?: number;
|
|
34
|
+
faultsPassed?: number;
|
|
35
|
+
faultsStopped?: number;
|
|
36
|
+
faultsWithProbes?: ChaosExperimentRunFaults[];
|
|
37
|
+
infraID?: string;
|
|
38
|
+
isRemoved: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Computed field: extracted from manifest YAML
|
|
41
|
+
*/
|
|
17
42
|
manifestVersion?: string;
|
|
18
|
-
|
|
43
|
+
networkMapID?: string;
|
|
44
|
+
notifyID?: string;
|
|
45
|
+
orgID?: string;
|
|
46
|
+
parentUniqueId?: string;
|
|
19
47
|
phase?: string;
|
|
48
|
+
probes?: ChaosExperimentRunProbe[];
|
|
49
|
+
projectID?: string;
|
|
50
|
+
resiliencyScore?: number;
|
|
51
|
+
revisionID?: string;
|
|
20
52
|
runSequence?: number;
|
|
53
|
+
securityGovernance?: ChaosExperimentRunSecurityGovernanceNode;
|
|
54
|
+
targetedServices?: TargetserviceServiceMetadata[];
|
|
55
|
+
templateDetails?: ChaosExperimentRunTemplateDetails;
|
|
56
|
+
totalFaults?: number;
|
|
57
|
+
uniqueId?: string;
|
|
21
58
|
updatedAt?: number;
|
|
22
59
|
updatedBy?: HcesdkUserDetails;
|
|
23
60
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { V2OnboardingProbeDetail } from '../schemas/V2OnboardingProbeDetail';
|
|
2
|
+
import type { V2OnboardingV2OnboardingStatus } from '../schemas/V2OnboardingV2OnboardingStatus';
|
|
3
|
+
export interface V2OnboardingChaosServiceStatus {
|
|
4
|
+
chaosServiceCount?: number;
|
|
5
|
+
probes?: V2OnboardingProbeDetail[];
|
|
6
|
+
status?: V2OnboardingV2OnboardingStatus;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/chaos-manager/src/services/schemas/V2OnboardingListOnboardedServicesResponse.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
2
|
+
import type { V2OnboardingProbeDetail } from '../schemas/V2OnboardingProbeDetail';
|
|
3
|
+
import type { ChaosservicesChaosServiceResponse } from '../schemas/ChaosservicesChaosServiceResponse';
|
|
4
|
+
export interface V2OnboardingListOnboardedServicesResponse {
|
|
5
|
+
pagination?: SharedPaginationResponse;
|
|
6
|
+
probes?: V2OnboardingProbeDetail[];
|
|
7
|
+
services?: ChaosservicesChaosServiceResponse[];
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import type { V2OnboardingChaosInfraAdvanceConfiguration } from '../schemas/V2On
|
|
|
3
3
|
import type { V2OnboardingDiscoveredService } from '../schemas/V2OnboardingDiscoveredService';
|
|
4
4
|
import type { DatabaseAgentConfiguration } from '../schemas/DatabaseAgentConfiguration';
|
|
5
5
|
import type { V2OnboardingOnboardingMode } from '../schemas/V2OnboardingOnboardingMode';
|
|
6
|
+
import type { V2OnboardingChaosServiceStatus } from '../schemas/V2OnboardingChaosServiceStatus';
|
|
6
7
|
import type { V2OnboardingRunSafeExperimentStatus } from '../schemas/V2OnboardingRunSafeExperimentStatus';
|
|
7
8
|
import type { V2OnboardingV2OnboardingStatus } from '../schemas/V2OnboardingV2OnboardingStatus';
|
|
8
9
|
import type { V2OnboardingTargetNetworkMapStatus } from '../schemas/V2OnboardingTargetNetworkMapStatus';
|
|
@@ -20,6 +21,7 @@ export interface V2OnboardingV2Onboarding {
|
|
|
20
21
|
isRemoved: boolean;
|
|
21
22
|
mode?: V2OnboardingOnboardingMode;
|
|
22
23
|
namespace?: string;
|
|
24
|
+
onboardingChaosServiceStatus?: V2OnboardingChaosServiceStatus;
|
|
23
25
|
onboardingID?: string;
|
|
24
26
|
orgID?: string;
|
|
25
27
|
parentUniqueId?: string;
|
package/package.json
CHANGED