@harnessio/react-chaos-manager-client 1.11.0 → 1.11.1-beta.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/useDeleteMachineChaosInfraMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useFetFaultVariablesQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useFetFaultVariablesQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetFaultQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetFaultQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetFaultYamlQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetFaultYamlQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetMachineChaosInfraDetailsQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListFaultInHubQuery.d.ts +36 -0
- package/dist/chaos-manager/src/services/hooks/useListFaultInHubQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListFaultQuery.d.ts +18 -14
- package/dist/chaos-manager/src/services/hooks/useListFaultQuery.js +2 -2
- package/dist/chaos-manager/src/services/index.d.ts +14 -0
- package/dist/chaos-manager/src/services/index.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ActionsExecutedByExperiment.d.ts +2 -2
- package/dist/chaos-manager/src/services/schemas/ActionsUserDetails.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ActionsUserDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultChaosFault.d.ts +28 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultChaosFault.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultFaultVariables.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultFaultVariables.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultFaultYaml.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultFaultYaml.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultGetFaultResponse.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultGetFaultResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultListFaultResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultListFaultResponse.js +1 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function deleteMachineChaosInfra(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/machine/infra
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/machine/infra/${props.id}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Deletes a machine chaos infra
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaultFaultVariables } from '../schemas/ChaosfaultFaultVariables';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface FetFaultVariablesQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FetFaultVariablesQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
isEnterprise?: boolean;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type FetFaultVariablesOkResponse = ChaosfaultFaultVariables;
|
|
16
|
+
export type FetFaultVariablesErrorResponse = ApiRestError;
|
|
17
|
+
export interface FetFaultVariablesProps extends FetFaultVariablesQueryPathParams, Omit<FetcherOptions<FetFaultVariablesQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: FetFaultVariablesQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface FetFaultVariablesResponseContainer {
|
|
21
|
+
body: FetFaultVariablesOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function fetFaultVariables(props: FetFaultVariablesProps): Promise<FetFaultVariablesResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the list of variables in a fault
|
|
27
|
+
*/
|
|
28
|
+
export declare function useFetFaultVariablesQuery(props: FetFaultVariablesProps, options?: Omit<UseQueryOptions<FetFaultVariablesResponseContainer, FetFaultVariablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FetFaultVariablesResponseContainer, 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 fetFaultVariables(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/faults/${props.identity}/variables`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the list of variables in a fault
|
|
11
|
+
*/
|
|
12
|
+
export function useFetFaultVariablesQuery(props, options) {
|
|
13
|
+
return useQuery(['fetFaultVariables', props.identity, props.queryParams], ({ signal }) => fetFaultVariables(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaultGetFaultResponse } from '../schemas/ChaosfaultGetFaultResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetFaultQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetFaultQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
isEnterprise?: boolean;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetFaultOkResponse = ChaosfaultGetFaultResponse;
|
|
16
|
+
export type GetFaultErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetFaultProps extends GetFaultQueryPathParams, Omit<FetcherOptions<GetFaultQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetFaultQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetFaultResponseContainer {
|
|
21
|
+
body: GetFaultOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getFault(props: GetFaultProps): Promise<GetFaultResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get fault from project
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetFaultQuery(props: GetFaultProps, options?: Omit<UseQueryOptions<GetFaultResponseContainer, GetFaultErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFaultResponseContainer, 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 getFault(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/faults/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get fault from project
|
|
11
|
+
*/
|
|
12
|
+
export function useGetFaultQuery(props, options) {
|
|
13
|
+
return useQuery(['getFault', props.identity, props.queryParams], ({ signal }) => getFault(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosfaultFaultYaml } from '../schemas/ChaosfaultFaultYaml';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetFaultYamlQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetFaultYamlQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
isEnterprise?: boolean;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetFaultYamlOkResponse = ChaosfaultFaultYaml;
|
|
16
|
+
export type GetFaultYamlErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetFaultYamlProps extends GetFaultYamlQueryPathParams, Omit<FetcherOptions<GetFaultYamlQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetFaultYamlQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetFaultYamlResponseContainer {
|
|
21
|
+
body: GetFaultYamlOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getFaultYaml(props: GetFaultYamlProps): Promise<GetFaultYamlResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the yaml of a fault
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetFaultYamlQuery(props: GetFaultYamlProps, options?: Omit<UseQueryOptions<GetFaultYamlResponseContainer, GetFaultYamlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFaultYamlResponseContainer, 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 getFaultYaml(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/faults/${props.identity}/yaml`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the yaml of a fault
|
|
11
|
+
*/
|
|
12
|
+
export function useGetFaultYamlQuery(props, options) {
|
|
13
|
+
return useQuery(['getFaultYaml', props.identity, props.queryParams], ({ signal }) => getFaultYaml(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function getMachineChaosInfraDetails(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/machine/infra
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/machine/infra/${props.id}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get machine chaos infrastructure details
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaoshubListFaultsResponse } from '../schemas/ChaoshubListFaultsResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListFaultInHubQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
organizationIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
hubIdentity?: string;
|
|
10
|
+
infraType?: string;
|
|
11
|
+
permissionsRequired?: string;
|
|
12
|
+
entityType?: string;
|
|
13
|
+
search: string;
|
|
14
|
+
/**
|
|
15
|
+
* @default 0
|
|
16
|
+
*/
|
|
17
|
+
page: number;
|
|
18
|
+
/**
|
|
19
|
+
* @default 15
|
|
20
|
+
*/
|
|
21
|
+
limit: number;
|
|
22
|
+
}
|
|
23
|
+
export type ListFaultInHubOkResponse = ChaoshubListFaultsResponse;
|
|
24
|
+
export type ListFaultInHubErrorResponse = ApiRestError;
|
|
25
|
+
export interface ListFaultInHubProps extends Omit<FetcherOptions<ListFaultInHubQueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: ListFaultInHubQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export interface ListFaultInHubResponseContainer {
|
|
29
|
+
body: ListFaultInHubOkResponse;
|
|
30
|
+
headers: Headers;
|
|
31
|
+
}
|
|
32
|
+
export declare function listFaultInHub(props: ListFaultInHubProps): Promise<ListFaultInHubResponseContainer>;
|
|
33
|
+
/**
|
|
34
|
+
* Lists faults in a chaos hub based on given filters
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListFaultInHubQuery(props: ListFaultInHubProps, options?: Omit<UseQueryOptions<ListFaultInHubResponseContainer, ListFaultInHubErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultInHubResponseContainer, 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 listFaultInHub(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/hubs/faults`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists faults in a chaos hub based on given filters
|
|
11
|
+
*/
|
|
12
|
+
export function useListFaultInHubQuery(props, options) {
|
|
13
|
+
return useQuery(['listFaultInHub', props.queryParams], ({ signal }) => listFaultInHub(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ChaosfaultListFaultResponse } from '../schemas/ChaosfaultListFaultResponse';
|
|
3
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
5
|
export interface ListFaultQueryQueryParams {
|
|
6
6
|
accountIdentifier: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
permissionsRequired?: string;
|
|
12
|
-
entityType?: string;
|
|
13
|
-
search: string;
|
|
7
|
+
category?: 'AWS' | 'Azure' | 'GCP' | 'Kubernetes' | 'Redis';
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
infrastructureType?: 'KubernetesV2';
|
|
10
|
+
isEnterprise?: boolean;
|
|
14
11
|
/**
|
|
15
|
-
* @default
|
|
12
|
+
* @default 10
|
|
16
13
|
*/
|
|
17
|
-
|
|
14
|
+
limit?: number;
|
|
15
|
+
organizationIdentifier?: string;
|
|
18
16
|
/**
|
|
19
|
-
* @default
|
|
17
|
+
* @default 0
|
|
20
18
|
*/
|
|
21
|
-
|
|
19
|
+
page?: number;
|
|
20
|
+
projectIdentifier?: string;
|
|
21
|
+
search?: string;
|
|
22
|
+
sortAscending?: boolean;
|
|
23
|
+
sortField?: 'lastUpdated' | 'name';
|
|
24
|
+
tags?: string;
|
|
25
|
+
type?: 'Resource';
|
|
22
26
|
}
|
|
23
|
-
export type ListFaultOkResponse =
|
|
27
|
+
export type ListFaultOkResponse = ChaosfaultListFaultResponse;
|
|
24
28
|
export type ListFaultErrorResponse = ApiRestError;
|
|
25
29
|
export interface ListFaultProps extends Omit<FetcherOptions<ListFaultQueryQueryParams, unknown>, 'url'> {
|
|
26
30
|
queryParams: ListFaultQueryQueryParams;
|
|
@@ -31,6 +35,6 @@ export interface ListFaultResponseContainer {
|
|
|
31
35
|
}
|
|
32
36
|
export declare function listFault(props: ListFaultProps): Promise<ListFaultResponseContainer>;
|
|
33
37
|
/**
|
|
34
|
-
* Lists faults in a
|
|
38
|
+
* Lists lists faults in a project
|
|
35
39
|
*/
|
|
36
40
|
export declare function useListFaultQuery(props: ListFaultProps, options?: Omit<UseQueryOptions<ListFaultResponseContainer, ListFaultErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultResponseContainer, ApiRestError>;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function listFault(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/faults`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Lists faults in a
|
|
10
|
+
* Lists lists faults in a project
|
|
11
11
|
*/
|
|
12
12
|
export function useListFaultQuery(props, options) {
|
|
13
13
|
return useQuery(['listFault', props.queryParams], ({ signal }) => listFault(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -62,6 +62,8 @@ export type { EnableProbeErrorResponse, EnableProbeMutationPathParams, EnablePro
|
|
|
62
62
|
export { enableProbe, useEnableProbeMutation } from './hooks/useEnableProbeMutation';
|
|
63
63
|
export type { ExperimentExecutionNodeDetailsErrorResponse, ExperimentExecutionNodeDetailsOkResponse, ExperimentExecutionNodeDetailsProps, ExperimentExecutionNodeDetailsQueryPathParams, ExperimentExecutionNodeDetailsQueryQueryParams, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
64
64
|
export { experimentExecutionNodeDetails, useExperimentExecutionNodeDetailsQuery, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
65
|
+
export type { FetFaultVariablesErrorResponse, FetFaultVariablesOkResponse, FetFaultVariablesProps, FetFaultVariablesQueryPathParams, FetFaultVariablesQueryQueryParams, } from './hooks/useFetFaultVariablesQuery';
|
|
66
|
+
export { fetFaultVariables, useFetFaultVariablesQuery } from './hooks/useFetFaultVariablesQuery';
|
|
65
67
|
export type { GetAccountServiceDetailsErrorResponse, GetAccountServiceDetailsOkResponse, GetAccountServiceDetailsProps, GetAccountServiceDetailsQueryPathParams, GetAccountServiceDetailsQueryQueryParams, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
66
68
|
export { getAccountServiceDetails, useGetAccountServiceDetailsQuery, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
67
69
|
export type { GetAccountServiceUsageStatsErrorResponse, GetAccountServiceUsageStatsOkResponse, GetAccountServiceUsageStatsProps, GetAccountServiceUsageStatsQueryPathParams, GetAccountServiceUsageStatsQueryQueryParams, } from './hooks/useGetAccountServiceUsageStatsQuery';
|
|
@@ -100,6 +102,8 @@ export type { GetExperimentRunTimelineViewErrorResponse, GetExperimentRunTimelin
|
|
|
100
102
|
export { getExperimentRunTimelineView, useGetExperimentRunTimelineViewQuery, } from './hooks/useGetExperimentRunTimelineViewQuery';
|
|
101
103
|
export type { GetExperimentRunsOverviewStatsErrorResponse, GetExperimentRunsOverviewStatsOkResponse, GetExperimentRunsOverviewStatsProps, GetExperimentRunsOverviewStatsQueryQueryParams, } from './hooks/useGetExperimentRunsOverviewStatsQuery';
|
|
102
104
|
export { getExperimentRunsOverviewStats, useGetExperimentRunsOverviewStatsQuery, } from './hooks/useGetExperimentRunsOverviewStatsQuery';
|
|
105
|
+
export type { GetFaultErrorResponse, GetFaultOkResponse, GetFaultProps, GetFaultQueryPathParams, GetFaultQueryQueryParams, } from './hooks/useGetFaultQuery';
|
|
106
|
+
export { getFault, useGetFaultQuery } from './hooks/useGetFaultQuery';
|
|
103
107
|
export type { GetFaultTemplateErrorResponse, GetFaultTemplateOkResponse, GetFaultTemplateProps, GetFaultTemplateQueryPathParams, GetFaultTemplateQueryQueryParams, } from './hooks/useGetFaultTemplateQuery';
|
|
104
108
|
export { getFaultTemplate, useGetFaultTemplateQuery } from './hooks/useGetFaultTemplateQuery';
|
|
105
109
|
export type { GetFaultTemplateRevisionsErrorResponse, GetFaultTemplateRevisionsOkResponse, GetFaultTemplateRevisionsProps, GetFaultTemplateRevisionsQueryPathParams, GetFaultTemplateRevisionsQueryQueryParams, } from './hooks/useGetFaultTemplateRevisionsQuery';
|
|
@@ -108,6 +112,8 @@ export type { GetFaultTemplateVariablesErrorResponse, GetFaultTemplateVariablesO
|
|
|
108
112
|
export { getFaultTemplateVariables, useGetFaultTemplateVariablesQuery, } from './hooks/useGetFaultTemplateVariablesQuery';
|
|
109
113
|
export type { GetFaultTemplateYamlErrorResponse, GetFaultTemplateYamlOkResponse, GetFaultTemplateYamlProps, GetFaultTemplateYamlQueryPathParams, GetFaultTemplateYamlQueryQueryParams, } from './hooks/useGetFaultTemplateYamlQuery';
|
|
110
114
|
export { getFaultTemplateYaml, useGetFaultTemplateYamlQuery, } from './hooks/useGetFaultTemplateYamlQuery';
|
|
115
|
+
export type { GetFaultYamlErrorResponse, GetFaultYamlOkResponse, GetFaultYamlProps, GetFaultYamlQueryPathParams, GetFaultYamlQueryQueryParams, } from './hooks/useGetFaultYamlQuery';
|
|
116
|
+
export { getFaultYaml, useGetFaultYamlQuery } from './hooks/useGetFaultYamlQuery';
|
|
111
117
|
export type { GetGamedayRunV2ErrorResponse, GetGamedayRunV2OkResponse, GetGamedayRunV2Props, GetGamedayRunV2QueryPathParams, GetGamedayRunV2QueryQueryParams, } from './hooks/useGetGamedayRunV2Query';
|
|
112
118
|
export { getGamedayRunV2, useGetGamedayRunV2Query } from './hooks/useGetGamedayRunV2Query';
|
|
113
119
|
export type { GetGamedayV2ErrorResponse, GetGamedayV2OkResponse, GetGamedayV2Props, GetGamedayV2QueryPathParams, GetGamedayV2QueryQueryParams, } from './hooks/useGetGamedayV2Query';
|
|
@@ -172,6 +178,8 @@ export type { ListChaosV2ExperimentErrorResponse, ListChaosV2ExperimentOkRespons
|
|
|
172
178
|
export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
|
|
173
179
|
export type { ListExperimentsWithActiveInfrasMinimalNotificationErrorResponse, ListExperimentsWithActiveInfrasMinimalNotificationOkResponse, ListExperimentsWithActiveInfrasMinimalNotificationProps, ListExperimentsWithActiveInfrasMinimalNotificationQueryQueryParams, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
|
|
174
180
|
export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
|
|
181
|
+
export type { ListFaultInHubErrorResponse, ListFaultInHubOkResponse, ListFaultInHubProps, ListFaultInHubQueryQueryParams, } from './hooks/useListFaultInHubQuery';
|
|
182
|
+
export { listFaultInHub, useListFaultInHubQuery } from './hooks/useListFaultInHubQuery';
|
|
175
183
|
export type { ListFaultErrorResponse, ListFaultOkResponse, ListFaultProps, ListFaultQueryQueryParams, } from './hooks/useListFaultQuery';
|
|
176
184
|
export { listFault, useListFaultQuery } from './hooks/useListFaultQuery';
|
|
177
185
|
export type { ListFaultTemplateErrorResponse, ListFaultTemplateOkResponse, ListFaultTemplateProps, ListFaultTemplateQueryQueryParams, } from './hooks/useListFaultTemplateQuery';
|
|
@@ -285,6 +293,7 @@ export type { ActionsImportActionTemplateRequest } from './schemas/ActionsImport
|
|
|
285
293
|
export type { ActionsInfrastructureType } from './schemas/ActionsInfrastructureType';
|
|
286
294
|
export type { ActionsListActionTemplateResponse } from './schemas/ActionsListActionTemplateResponse';
|
|
287
295
|
export type { ActionsRecentExecutions } from './schemas/ActionsRecentExecutions';
|
|
296
|
+
export type { ActionsUserDetails } from './schemas/ActionsUserDetails';
|
|
288
297
|
export type { ApiGetHarnessInfrastructureResponse } from './schemas/ApiGetHarnessInfrastructureResponse';
|
|
289
298
|
export type { ApiHarnessInfrastructure } from './schemas/ApiHarnessInfrastructure';
|
|
290
299
|
export type { ApiListHarnessInfrastructureResponse } from './schemas/ApiListHarnessInfrastructureResponse';
|
|
@@ -336,6 +345,11 @@ export type { ChaosactiontemplateActionsTemplateCount } from './schemas/Chaosact
|
|
|
336
345
|
export type { ChaosactiontemplateChaosActionTemplate } from './schemas/ChaosactiontemplateChaosActionTemplate';
|
|
337
346
|
export type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from './schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
|
|
338
347
|
export type { ChaosexperimentpipelineReferenceEntities } from './schemas/ChaosexperimentpipelineReferenceEntities';
|
|
348
|
+
export type { ChaosfaultChaosFault } from './schemas/ChaosfaultChaosFault';
|
|
349
|
+
export type { ChaosfaultFaultVariables } from './schemas/ChaosfaultFaultVariables';
|
|
350
|
+
export type { ChaosfaultFaultYaml } from './schemas/ChaosfaultFaultYaml';
|
|
351
|
+
export type { ChaosfaultGetFaultResponse } from './schemas/ChaosfaultGetFaultResponse';
|
|
352
|
+
export type { ChaosfaultListFaultResponse } from './schemas/ChaosfaultListFaultResponse';
|
|
339
353
|
export type { ChaosfaulttemplateActionTemplate } from './schemas/ChaosfaulttemplateActionTemplate';
|
|
340
354
|
export type { ChaosfaulttemplateActionTemplateVariables } from './schemas/ChaosfaulttemplateActionTemplateVariables';
|
|
341
355
|
export type { ChaosfaulttemplateChaosFaultTemplate } from './schemas/ChaosfaulttemplateChaosFaultTemplate';
|
|
@@ -30,6 +30,7 @@ export { deleteRecommendation, useDeleteRecommendationMutation, } from './hooks/
|
|
|
30
30
|
export { deleteTargetNetworkMap, useDeleteTargetNetworkMapMutation, } from './hooks/useDeleteTargetNetworkMapMutation';
|
|
31
31
|
export { enableProbe, useEnableProbeMutation } from './hooks/useEnableProbeMutation';
|
|
32
32
|
export { experimentExecutionNodeDetails, useExperimentExecutionNodeDetailsQuery, } from './hooks/useExperimentExecutionNodeDetailsQuery';
|
|
33
|
+
export { fetFaultVariables, useFetFaultVariablesQuery } from './hooks/useFetFaultVariablesQuery';
|
|
33
34
|
export { getAccountServiceDetails, useGetAccountServiceDetailsQuery, } from './hooks/useGetAccountServiceDetailsQuery';
|
|
34
35
|
export { getAccountServiceUsageStats, useGetAccountServiceUsageStatsQuery, } from './hooks/useGetAccountServiceUsageStatsQuery';
|
|
35
36
|
export { getActionManifest, useGetActionManifestQuery } from './hooks/useGetActionManifestQuery';
|
|
@@ -49,10 +50,12 @@ export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/use
|
|
|
49
50
|
export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
|
|
50
51
|
export { getExperimentRunTimelineView, useGetExperimentRunTimelineViewQuery, } from './hooks/useGetExperimentRunTimelineViewQuery';
|
|
51
52
|
export { getExperimentRunsOverviewStats, useGetExperimentRunsOverviewStatsQuery, } from './hooks/useGetExperimentRunsOverviewStatsQuery';
|
|
53
|
+
export { getFault, useGetFaultQuery } from './hooks/useGetFaultQuery';
|
|
52
54
|
export { getFaultTemplate, useGetFaultTemplateQuery } from './hooks/useGetFaultTemplateQuery';
|
|
53
55
|
export { getFaultTemplateRevisions, useGetFaultTemplateRevisionsQuery, } from './hooks/useGetFaultTemplateRevisionsQuery';
|
|
54
56
|
export { getFaultTemplateVariables, useGetFaultTemplateVariablesQuery, } from './hooks/useGetFaultTemplateVariablesQuery';
|
|
55
57
|
export { getFaultTemplateYaml, useGetFaultTemplateYamlQuery, } from './hooks/useGetFaultTemplateYamlQuery';
|
|
58
|
+
export { getFaultYaml, useGetFaultYamlQuery } from './hooks/useGetFaultYamlQuery';
|
|
56
59
|
export { getGamedayRunV2, useGetGamedayRunV2Query } from './hooks/useGetGamedayRunV2Query';
|
|
57
60
|
export { getGamedayV2, useGetGamedayV2Query } from './hooks/useGetGamedayV2Query';
|
|
58
61
|
export { getImageRegistry, useGetImageRegistryQuery } from './hooks/useGetImageRegistryQuery';
|
|
@@ -85,6 +88,7 @@ export { listChaosEnabledInfraV2, useListChaosEnabledInfraV2Query, } from './hoo
|
|
|
85
88
|
export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
|
|
86
89
|
export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
|
|
87
90
|
export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
|
|
91
|
+
export { listFaultInHub, useListFaultInHubQuery } from './hooks/useListFaultInHubQuery';
|
|
88
92
|
export { listFault, useListFaultQuery } from './hooks/useListFaultQuery';
|
|
89
93
|
export { listFaultTemplate, useListFaultTemplateQuery } from './hooks/useListFaultTemplateQuery';
|
|
90
94
|
export { listFunction, useListFunctionQuery } from './hooks/useListFunctionQuery';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActionsUserDetails } from '../schemas/ActionsUserDetails';
|
|
2
2
|
export interface ActionsExecutedByExperiment {
|
|
3
3
|
experimentID?: string;
|
|
4
4
|
experimentName?: string;
|
|
5
5
|
experimentRunID?: string;
|
|
6
6
|
notifyID?: string;
|
|
7
7
|
updatedAt?: number;
|
|
8
|
-
updatedBy?:
|
|
8
|
+
updatedBy?: ActionsUserDetails;
|
|
9
9
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
2
|
+
export interface ChaosfaultChaosFault {
|
|
3
|
+
accountID: string;
|
|
4
|
+
category?: string[];
|
|
5
|
+
createdAt?: number;
|
|
6
|
+
createdBy?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Mongo ID (primary key)
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier (human-readable) immutable
|
|
14
|
+
*/
|
|
15
|
+
identity?: string;
|
|
16
|
+
infrastructureType?: string;
|
|
17
|
+
isEnterprise?: boolean;
|
|
18
|
+
isRemoved: boolean;
|
|
19
|
+
name: string;
|
|
20
|
+
orgID?: string;
|
|
21
|
+
projectID?: string;
|
|
22
|
+
tags?: string[];
|
|
23
|
+
template?: string;
|
|
24
|
+
type?: string;
|
|
25
|
+
updatedAt?: number;
|
|
26
|
+
updatedBy?: string;
|
|
27
|
+
variables?: TemplateVariable[];
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
|
|
2
|
+
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
3
|
+
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
4
|
+
export interface ChaosfaultGetFaultResponse {
|
|
5
|
+
category?: string[];
|
|
6
|
+
correlationID?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
identity?: string;
|
|
9
|
+
infrastructureType?: string;
|
|
10
|
+
isEnterprise?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
spec?: FaulttemplateSpec;
|
|
13
|
+
tags?: string[];
|
|
14
|
+
templateReference?: string;
|
|
15
|
+
type?: string;
|
|
16
|
+
updatedAt?: number;
|
|
17
|
+
values?: TemplateVariableMinimum[];
|
|
18
|
+
variables?: TemplateVariable[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ChaosfaultChaosFault } from '../schemas/ChaosfaultChaosFault';
|
|
2
|
+
import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
|
|
3
|
+
export interface ChaosfaultListFaultResponse {
|
|
4
|
+
correlationID?: string;
|
|
5
|
+
data?: ChaosfaultChaosFault[];
|
|
6
|
+
pagination?: GithubComHarnessHceSaasGraphqlServerApiPagination;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED