@harnessio/react-chaos-manager-client 1.46.0 → 1.48.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/useCreateRiskMutation.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRiskMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsCsvMutation.d.ts +3 -12
- package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsCsvMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRiskQuery.d.ts +27 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListProbeExecutionsQuery.d.ts +43 -0
- package/dist/chaos-manager/src/services/hooks/useListProbeExecutionsQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListRisksQuery.d.ts +40 -0
- package/dist/chaos-manager/src/services/hooks/useListRisksQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskMutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +24 -1
- package/dist/chaos-manager/src/services/index.js +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelInfraFilterInput.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RisksActiveExecutionResponse.d.ts +15 -0
- package/dist/chaos-manager/src/services/schemas/RisksActiveExecutionResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RisksActiveRiskCounter.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RisksActiveRiskCounter.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RisksCreateRequest.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/RisksCreateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RisksInfrastructure.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RisksInfrastructure.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RisksListExecutionResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RisksListExecutionResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RisksListRiskResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RisksListRiskResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RisksRisk.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/RisksRisk.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RisksRiskResponse.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/RisksRiskResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RisksUpdateRequest.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/RisksUpdateRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesExperimentCreationRequest.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/TypesTemplateResourceDetails.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/TypesTemplateResourceDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesTemplateResources.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/TypesTemplateResources.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RisksRisk } from '../schemas/RisksRisk';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { RisksCreateRequest } from '../schemas/RisksCreateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateRiskMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
organizationIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateRiskRequestBody = RisksCreateRequest;
|
|
13
|
+
export type CreateRiskOkResponse = RisksRisk;
|
|
14
|
+
export type CreateRiskErrorResponse = ApiRestError;
|
|
15
|
+
export interface CreateRiskProps extends Omit<FetcherOptions<CreateRiskMutationQueryParams, CreateRiskRequestBody>, 'url'> {
|
|
16
|
+
queryParams: CreateRiskMutationQueryParams;
|
|
17
|
+
body: CreateRiskRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export interface CreateRiskResponseContainer {
|
|
20
|
+
body: CreateRiskOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function createRisk(props: CreateRiskProps): Promise<CreateRiskResponseContainer>;
|
|
24
|
+
export type CreateRiskMutationProps<T extends keyof CreateRiskProps> = Omit<CreateRiskProps, T> & Partial<Pick<CreateRiskProps, T>>;
|
|
25
|
+
/**
|
|
26
|
+
* creates a risk
|
|
27
|
+
*/
|
|
28
|
+
export declare function useCreateRiskMutation<T extends keyof CreateRiskProps>(props: Pick<Partial<CreateRiskProps>, T>, options?: Omit<UseMutationOptions<CreateRiskResponseContainer, CreateRiskErrorResponse, CreateRiskMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRiskResponseContainer, ApiRestError, CreateRiskMutationProps<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 createRisk(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risks`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* creates a risk
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateRiskMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createRisk(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface DeleteRiskMutationPathParams {
|
|
5
|
+
identity: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteRiskMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
correlationID?: string;
|
|
10
|
+
organizationIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export type DeleteRiskOkResponse = {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
export type DeleteRiskErrorResponse = ApiRestError;
|
|
17
|
+
export interface DeleteRiskProps extends DeleteRiskMutationPathParams, Omit<FetcherOptions<DeleteRiskMutationQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: DeleteRiskMutationQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface DeleteRiskResponseContainer {
|
|
21
|
+
body: DeleteRiskOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function deleteRisk(props: DeleteRiskProps): Promise<DeleteRiskResponseContainer>;
|
|
25
|
+
export type DeleteRiskMutationProps<T extends keyof DeleteRiskProps> = Omit<DeleteRiskProps, T> & Partial<Pick<DeleteRiskProps, T>>;
|
|
26
|
+
/**
|
|
27
|
+
* deletes a risk
|
|
28
|
+
*/
|
|
29
|
+
export declare function useDeleteRiskMutation<T extends keyof DeleteRiskProps>(props: Pick<Partial<DeleteRiskProps>, T>, options?: Omit<UseMutationOptions<DeleteRiskResponseContainer, DeleteRiskErrorResponse, DeleteRiskMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRiskResponseContainer, ApiRestError, DeleteRiskMutationProps<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 deleteRisk(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* deletes a risk
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteRiskMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteRisk(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
3
|
-
export interface GetExperimentRunsCsvMutationPathParams {
|
|
4
|
-
experimentId: string;
|
|
5
|
-
}
|
|
6
3
|
export interface GetExperimentRunsCsvMutationQueryParams {
|
|
7
4
|
accountIdentifier: string;
|
|
8
5
|
correlationID?: string;
|
|
9
|
-
|
|
10
|
-
* @default 15
|
|
11
|
-
*/
|
|
12
|
-
limit?: number;
|
|
6
|
+
endTime?: number;
|
|
13
7
|
organizationIdentifier?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @default 0
|
|
16
|
-
*/
|
|
17
|
-
page?: number;
|
|
18
8
|
projectIdentifier?: string;
|
|
19
9
|
search?: string;
|
|
20
10
|
sortAscending?: boolean;
|
|
21
11
|
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
12
|
+
startTime?: number;
|
|
22
13
|
}
|
|
23
14
|
export type GetExperimentRunsCsvOkResponse = unknown;
|
|
24
15
|
export type GetExperimentRunsCsvErrorResponse = unknown;
|
|
25
|
-
export interface GetExperimentRunsCsvProps extends
|
|
16
|
+
export interface GetExperimentRunsCsvProps extends Omit<FetcherOptions<GetExperimentRunsCsvMutationQueryParams, unknown>, 'url'> {
|
|
26
17
|
queryParams: GetExperimentRunsCsvMutationQueryParams;
|
|
27
18
|
}
|
|
28
19
|
export interface GetExperimentRunsCsvResponseContainer {
|
|
@@ -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 getExperimentRunsCsv(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/v2/experiment-runs/csv`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* download experiment runs as CSV (no request body; only path + query params)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RisksRiskResponse } from '../schemas/RisksRiskResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetRiskQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetRiskQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export type GetRiskOkResponse = RisksRiskResponse;
|
|
15
|
+
export type GetRiskErrorResponse = ApiRestError;
|
|
16
|
+
export interface GetRiskProps extends GetRiskQueryPathParams, Omit<FetcherOptions<GetRiskQueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: GetRiskQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export interface GetRiskResponseContainer {
|
|
20
|
+
body: GetRiskOkResponse;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}
|
|
23
|
+
export declare function getRisk(props: GetRiskProps): Promise<GetRiskResponseContainer>;
|
|
24
|
+
/**
|
|
25
|
+
* gets a risk by identity
|
|
26
|
+
*/
|
|
27
|
+
export declare function useGetRiskQuery(props: GetRiskProps, options?: Omit<UseQueryOptions<GetRiskResponseContainer, GetRiskErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRiskResponseContainer, 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 getRisk(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* gets a risk by identity
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRiskQuery(props, options) {
|
|
13
|
+
return useQuery(['getRisk', props.identity, props.queryParams], ({ signal }) => getRisk(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RisksListExecutionResponse } from '../schemas/RisksListExecutionResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListProbeExecutionsQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListProbeExecutionsQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
endTime?: number;
|
|
12
|
+
includeAllScope?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @default 15
|
|
15
|
+
*/
|
|
16
|
+
limit?: number;
|
|
17
|
+
organizationIdentifier?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
page?: number;
|
|
22
|
+
projectIdentifier?: string;
|
|
23
|
+
search?: string;
|
|
24
|
+
sortAscending?: boolean;
|
|
25
|
+
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
26
|
+
startTime?: number;
|
|
27
|
+
status?: 'Failed' | 'Passed';
|
|
28
|
+
tags?: string;
|
|
29
|
+
}
|
|
30
|
+
export type ListProbeExecutionsOkResponse = RisksListExecutionResponse;
|
|
31
|
+
export type ListProbeExecutionsErrorResponse = ApiRestError;
|
|
32
|
+
export interface ListProbeExecutionsProps extends ListProbeExecutionsQueryPathParams, Omit<FetcherOptions<ListProbeExecutionsQueryQueryParams, unknown>, 'url'> {
|
|
33
|
+
queryParams: ListProbeExecutionsQueryQueryParams;
|
|
34
|
+
}
|
|
35
|
+
export interface ListProbeExecutionsResponseContainer {
|
|
36
|
+
body: ListProbeExecutionsOkResponse;
|
|
37
|
+
headers: Headers;
|
|
38
|
+
}
|
|
39
|
+
export declare function listProbeExecutions(props: ListProbeExecutionsProps): Promise<ListProbeExecutionsResponseContainer>;
|
|
40
|
+
/**
|
|
41
|
+
* lists probe executions for a given risk identity
|
|
42
|
+
*/
|
|
43
|
+
export declare function useListProbeExecutionsQuery(props: ListProbeExecutionsProps, options?: Omit<UseQueryOptions<ListProbeExecutionsResponseContainer, ListProbeExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeExecutionsResponseContainer, 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 listProbeExecutions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risks/active-risks/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* lists probe executions for a given risk identity
|
|
11
|
+
*/
|
|
12
|
+
export function useListProbeExecutionsQuery(props, options) {
|
|
13
|
+
return useQuery(['listProbeExecutions', props.identity, props.queryParams], ({ signal }) => listProbeExecutions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RisksListRiskResponse } from '../schemas/RisksListRiskResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListRisksQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
category?: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
includeAllScope?: boolean;
|
|
10
|
+
infrastructure?: 'Kubernetes' | 'Linux' | 'Windows';
|
|
11
|
+
/**
|
|
12
|
+
* @default 15
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
organizationIdentifier?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
page?: number;
|
|
20
|
+
projectIdentifier?: string;
|
|
21
|
+
resourceIdentifiers?: string[];
|
|
22
|
+
search?: string;
|
|
23
|
+
sortAscending?: boolean;
|
|
24
|
+
sortField?: 'experimentName' | 'lastUpdated' | 'name';
|
|
25
|
+
tags?: string;
|
|
26
|
+
}
|
|
27
|
+
export type ListRisksOkResponse = RisksListRiskResponse;
|
|
28
|
+
export type ListRisksErrorResponse = ApiRestError;
|
|
29
|
+
export interface ListRisksProps extends Omit<FetcherOptions<ListRisksQueryQueryParams, unknown>, 'url'> {
|
|
30
|
+
queryParams: ListRisksQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export interface ListRisksResponseContainer {
|
|
33
|
+
body: ListRisksOkResponse;
|
|
34
|
+
headers: Headers;
|
|
35
|
+
}
|
|
36
|
+
export declare function listRisks(props: ListRisksProps): Promise<ListRisksResponseContainer>;
|
|
37
|
+
/**
|
|
38
|
+
* lists risks
|
|
39
|
+
*/
|
|
40
|
+
export declare function useListRisksQuery(props: ListRisksProps, options?: Omit<UseQueryOptions<ListRisksResponseContainer, ListRisksErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRisksResponseContainer, 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 listRisks(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risks`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* lists risks
|
|
11
|
+
*/
|
|
12
|
+
export function useListRisksQuery(props, options) {
|
|
13
|
+
return useQuery(['listRisks', props.queryParams], ({ signal }) => listRisks(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RisksRisk } from '../schemas/RisksRisk';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { RisksUpdateRequest } from '../schemas/RisksUpdateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateRiskMutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateRiskMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateRiskRequestBody = RisksUpdateRequest;
|
|
16
|
+
export type UpdateRiskOkResponse = RisksRisk;
|
|
17
|
+
export type UpdateRiskErrorResponse = ApiRestError;
|
|
18
|
+
export interface UpdateRiskProps extends UpdateRiskMutationPathParams, Omit<FetcherOptions<UpdateRiskMutationQueryParams, UpdateRiskRequestBody>, 'url'> {
|
|
19
|
+
queryParams: UpdateRiskMutationQueryParams;
|
|
20
|
+
body: UpdateRiskRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export interface UpdateRiskResponseContainer {
|
|
23
|
+
body: UpdateRiskOkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function updateRisk(props: UpdateRiskProps): Promise<UpdateRiskResponseContainer>;
|
|
27
|
+
export type UpdateRiskMutationProps<T extends keyof UpdateRiskProps> = Omit<UpdateRiskProps, T> & Partial<Pick<UpdateRiskProps, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* updates a risk
|
|
30
|
+
*/
|
|
31
|
+
export declare function useUpdateRiskMutation<T extends keyof UpdateRiskProps>(props: Pick<Partial<UpdateRiskProps>, T>, options?: Omit<UseMutationOptions<UpdateRiskResponseContainer, UpdateRiskErrorResponse, UpdateRiskMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRiskResponseContainer, ApiRestError, UpdateRiskMutationProps<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 updateRisk(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risks/${props.identity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* updates a risk
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateRiskMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateRisk(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -44,6 +44,8 @@ export type { CreateProbeTemplateErrorResponse, CreateProbeTemplateMutationProps
|
|
|
44
44
|
export { createProbeTemplate, useCreateProbeTemplateMutation, } from './hooks/useCreateProbeTemplateMutation';
|
|
45
45
|
export type { CreateRecommendationErrorResponse, CreateRecommendationMutationProps, CreateRecommendationMutationQueryParams, CreateRecommendationOkResponse, CreateRecommendationProps, } from './hooks/useCreateRecommendationMutation';
|
|
46
46
|
export { createRecommendation, useCreateRecommendationMutation, } from './hooks/useCreateRecommendationMutation';
|
|
47
|
+
export type { CreateRiskErrorResponse, CreateRiskMutationProps, CreateRiskMutationQueryParams, CreateRiskOkResponse, CreateRiskProps, CreateRiskRequestBody, } from './hooks/useCreateRiskMutation';
|
|
48
|
+
export { createRisk, useCreateRiskMutation } from './hooks/useCreateRiskMutation';
|
|
47
49
|
export type { CreateRuleErrorResponse, CreateRuleMutationProps, CreateRuleMutationQueryParams, CreateRuleOkResponse, CreateRuleProps, CreateRuleRequestBody, } from './hooks/useCreateRuleMutation';
|
|
48
50
|
export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
|
|
49
51
|
export type { CreateV2OnboardingErrorResponse, CreateV2OnboardingMutationProps, CreateV2OnboardingMutationQueryParams, CreateV2OnboardingOkResponse, CreateV2OnboardingProps, CreateV2OnboardingRequestBody, } from './hooks/useCreateV2OnboardingMutation';
|
|
@@ -82,6 +84,8 @@ export type { DeleteProbeTemplateErrorResponse, DeleteProbeTemplateMutationPathP
|
|
|
82
84
|
export { deleteProbeTemplate, useDeleteProbeTemplateMutation, } from './hooks/useDeleteProbeTemplateMutation';
|
|
83
85
|
export type { DeleteRecommendationErrorResponse, DeleteRecommendationMutationProps, DeleteRecommendationMutationQueryParams, DeleteRecommendationOkResponse, DeleteRecommendationProps, } from './hooks/useDeleteRecommendationMutation';
|
|
84
86
|
export { deleteRecommendation, useDeleteRecommendationMutation, } from './hooks/useDeleteRecommendationMutation';
|
|
87
|
+
export type { DeleteRiskErrorResponse, DeleteRiskMutationPathParams, DeleteRiskMutationProps, DeleteRiskMutationQueryParams, DeleteRiskOkResponse, DeleteRiskProps, } from './hooks/useDeleteRiskMutation';
|
|
88
|
+
export { deleteRisk, useDeleteRiskMutation } from './hooks/useDeleteRiskMutation';
|
|
85
89
|
export type { DeleteRuleErrorResponse, DeleteRuleMutationPathParams, DeleteRuleMutationProps, DeleteRuleMutationQueryParams, DeleteRuleOkResponse, DeleteRuleProps, } from './hooks/useDeleteRuleMutation';
|
|
86
90
|
export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
|
|
87
91
|
export type { DeleteTargetNetworkMapErrorResponse, DeleteTargetNetworkMapMutationPathParams, DeleteTargetNetworkMapMutationProps, DeleteTargetNetworkMapMutationQueryParams, DeleteTargetNetworkMapOkResponse, DeleteTargetNetworkMapProps, } from './hooks/useDeleteTargetNetworkMapMutation';
|
|
@@ -136,7 +140,7 @@ export type { GetExperimentOrTemplateVariableErrorResponse, GetExperimentOrTempl
|
|
|
136
140
|
export { getExperimentOrTemplateVariable, useGetExperimentOrTemplateVariableQuery, } from './hooks/useGetExperimentOrTemplateVariableQuery';
|
|
137
141
|
export type { GetExperimentRunTimelineViewErrorResponse, GetExperimentRunTimelineViewOkResponse, GetExperimentRunTimelineViewProps, GetExperimentRunTimelineViewQueryPathParams, GetExperimentRunTimelineViewQueryQueryParams, } from './hooks/useGetExperimentRunTimelineViewQuery';
|
|
138
142
|
export { getExperimentRunTimelineView, useGetExperimentRunTimelineViewQuery, } from './hooks/useGetExperimentRunTimelineViewQuery';
|
|
139
|
-
export type { GetExperimentRunsCsvErrorResponse,
|
|
143
|
+
export type { GetExperimentRunsCsvErrorResponse, GetExperimentRunsCsvMutationProps, GetExperimentRunsCsvMutationQueryParams, GetExperimentRunsCsvOkResponse, GetExperimentRunsCsvProps, } from './hooks/useGetExperimentRunsCsvMutation';
|
|
140
144
|
export { getExperimentRunsCsv, useGetExperimentRunsCsvMutation, } from './hooks/useGetExperimentRunsCsvMutation';
|
|
141
145
|
export type { GetExperimentRunsOverviewStatsErrorResponse, GetExperimentRunsOverviewStatsOkResponse, GetExperimentRunsOverviewStatsProps, GetExperimentRunsOverviewStatsQueryQueryParams, } from './hooks/useGetExperimentRunsOverviewStatsQuery';
|
|
142
146
|
export { getExperimentRunsOverviewStats, useGetExperimentRunsOverviewStatsQuery, } from './hooks/useGetExperimentRunsOverviewStatsQuery';
|
|
@@ -208,6 +212,8 @@ export type { GetRecommendationErrorResponse, GetRecommendationOkResponse, GetRe
|
|
|
208
212
|
export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
|
|
209
213
|
export type { GetResourceUsageErrorResponse, GetResourceUsageOkResponse, GetResourceUsageProps, } from './hooks/useGetResourceUsageQuery';
|
|
210
214
|
export { getResourceUsage, useGetResourceUsageQuery } from './hooks/useGetResourceUsageQuery';
|
|
215
|
+
export type { GetRiskErrorResponse, GetRiskOkResponse, GetRiskProps, GetRiskQueryPathParams, GetRiskQueryQueryParams, } from './hooks/useGetRiskQuery';
|
|
216
|
+
export { getRisk, useGetRiskQuery } from './hooks/useGetRiskQuery';
|
|
211
217
|
export type { GetRuleErrorResponse, GetRuleOkResponse, GetRuleProps, GetRuleQueryPathParams, GetRuleQueryQueryParams, } from './hooks/useGetRuleQuery';
|
|
212
218
|
export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
|
|
213
219
|
export type { GetServiceResponseErrorResponse, GetServiceResponseOkResponse, GetServiceResponseProps, GetServiceResponseQueryPathParams, GetServiceResponseQueryQueryParams, } from './hooks/useGetServiceResponseQuery';
|
|
@@ -290,6 +296,8 @@ export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkRespons
|
|
|
290
296
|
export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
|
|
291
297
|
export type { ListPipelineOnboardingErrorResponse, ListPipelineOnboardingOkResponse, ListPipelineOnboardingProps, ListPipelineOnboardingQueryQueryParams, } from './hooks/useListPipelineOnboardingQuery';
|
|
292
298
|
export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
|
|
299
|
+
export type { ListProbeExecutionsErrorResponse, ListProbeExecutionsOkResponse, ListProbeExecutionsProps, ListProbeExecutionsQueryPathParams, ListProbeExecutionsQueryQueryParams, } from './hooks/useListProbeExecutionsQuery';
|
|
300
|
+
export { listProbeExecutions, useListProbeExecutionsQuery, } from './hooks/useListProbeExecutionsQuery';
|
|
293
301
|
export type { ListProbeMetadataErrorResponse, ListProbeMetadataOkResponse, ListProbeMetadataProps, ListProbeMetadataQueryQueryParams, ListProbeMetadataRequestBody, } from './hooks/useListProbeMetadataQuery';
|
|
294
302
|
export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListProbeMetadataQuery';
|
|
295
303
|
export type { ListProbeTemplateErrorResponse, ListProbeTemplateOkResponse, ListProbeTemplateProps, ListProbeTemplateQueryQueryParams, } from './hooks/useListProbeTemplateQuery';
|
|
@@ -298,6 +306,8 @@ export type { ListProbesErrorResponse, ListProbesOkResponse, ListProbesProps, Li
|
|
|
298
306
|
export { listProbes, useListProbesQuery } from './hooks/useListProbesQuery';
|
|
299
307
|
export type { ListRecommendationsErrorResponse, ListRecommendationsOkResponse, ListRecommendationsProps, ListRecommendationsQueryQueryParams, ListRecommendationsRequestBody, } from './hooks/useListRecommendationsQuery';
|
|
300
308
|
export { listRecommendations, useListRecommendationsQuery, } from './hooks/useListRecommendationsQuery';
|
|
309
|
+
export type { ListRisksErrorResponse, ListRisksOkResponse, ListRisksProps, ListRisksQueryQueryParams, } from './hooks/useListRisksQuery';
|
|
310
|
+
export { listRisks, useListRisksQuery } from './hooks/useListRisksQuery';
|
|
301
311
|
export type { ListRuleErrorResponse, ListRuleOkResponse, ListRuleProps, ListRuleQueryQueryParams, } from './hooks/useListRuleQuery';
|
|
302
312
|
export { listRule, useListRuleQuery } from './hooks/useListRuleQuery';
|
|
303
313
|
export type { ListServiceErrorResponse, ListServiceOkResponse, ListServiceProps, ListServiceQueryPathParams, ListServiceQueryQueryParams, } from './hooks/useListServiceQuery';
|
|
@@ -394,6 +404,8 @@ export type { UpdateProbeTemplateErrorResponse, UpdateProbeTemplateMutationPathP
|
|
|
394
404
|
export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
|
|
395
405
|
export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatusMutationProps, UpdateRecommendationStatusMutationQueryParams, UpdateRecommendationStatusOkResponse, UpdateRecommendationStatusProps, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
396
406
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
407
|
+
export type { UpdateRiskErrorResponse, UpdateRiskMutationPathParams, UpdateRiskMutationProps, UpdateRiskMutationQueryParams, UpdateRiskOkResponse, UpdateRiskProps, UpdateRiskRequestBody, } from './hooks/useUpdateRiskMutation';
|
|
408
|
+
export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation';
|
|
397
409
|
export type { UpdateRuleErrorResponse, UpdateRuleMutationPathParams, UpdateRuleMutationProps, UpdateRuleMutationQueryParams, UpdateRuleOkResponse, UpdateRuleProps, UpdateRuleRequestBody, } from './hooks/useUpdateRuleMutation';
|
|
398
410
|
export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
|
|
399
411
|
export type { UpgradeLegacyKubernetesChaosInfraErrorResponse, UpgradeLegacyKubernetesChaosInfraMutationPathParams, UpgradeLegacyKubernetesChaosInfraMutationProps, UpgradeLegacyKubernetesChaosInfraMutationQueryParams, UpgradeLegacyKubernetesChaosInfraOkResponse, UpgradeLegacyKubernetesChaosInfraProps, } from './hooks/useUpgradeLegacyKubernetesChaosInfraMutation';
|
|
@@ -954,6 +966,15 @@ export type { RecommendationsListRecommendationsResponse } from './schemas/Recom
|
|
|
954
966
|
export type { RecommendationsPipelineAddExperimentResponse } from './schemas/RecommendationsPipelineAddExperimentResponse';
|
|
955
967
|
export type { RecommendationsRunActionResponse } from './schemas/RecommendationsRunActionResponse';
|
|
956
968
|
export type { ResourceQuantity } from './schemas/ResourceQuantity';
|
|
969
|
+
export type { RisksActiveExecutionResponse } from './schemas/RisksActiveExecutionResponse';
|
|
970
|
+
export type { RisksActiveRiskCounter } from './schemas/RisksActiveRiskCounter';
|
|
971
|
+
export type { RisksCreateRequest } from './schemas/RisksCreateRequest';
|
|
972
|
+
export type { RisksInfrastructure } from './schemas/RisksInfrastructure';
|
|
973
|
+
export type { RisksListExecutionResponse } from './schemas/RisksListExecutionResponse';
|
|
974
|
+
export type { RisksListRiskResponse } from './schemas/RisksListRiskResponse';
|
|
975
|
+
export type { RisksRisk } from './schemas/RisksRisk';
|
|
976
|
+
export type { RisksRiskResponse } from './schemas/RisksRiskResponse';
|
|
977
|
+
export type { RisksUpdateRequest } from './schemas/RisksUpdateRequest';
|
|
957
978
|
export type { SecurityGovernanceAccessControl } from './schemas/SecurityGovernanceAccessControl';
|
|
958
979
|
export type { SecurityGovernanceApplicationSpec } from './schemas/SecurityGovernanceApplicationSpec';
|
|
959
980
|
export type { SecurityGovernanceChaosServiceAccountSpec } from './schemas/SecurityGovernanceChaosServiceAccountSpec';
|
|
@@ -1048,6 +1069,8 @@ export type { TypesStakeHolderRole } from './schemas/TypesStakeHolderRole';
|
|
|
1048
1069
|
export type { TypesStatus } from './schemas/TypesStatus';
|
|
1049
1070
|
export type { TypesStopChaosV2ExperimentResponse } from './schemas/TypesStopChaosV2ExperimentResponse';
|
|
1050
1071
|
export type { TypesSummary } from './schemas/TypesSummary';
|
|
1072
|
+
export type { TypesTemplateResourceDetails } from './schemas/TypesTemplateResourceDetails';
|
|
1073
|
+
export type { TypesTemplateResources } from './schemas/TypesTemplateResources';
|
|
1051
1074
|
export type { TypesUpdateCronExperimentAction } from './schemas/TypesUpdateCronExperimentAction';
|
|
1052
1075
|
export type { TypesUpdateCronExperimentStateRequest } from './schemas/TypesUpdateCronExperimentStateRequest';
|
|
1053
1076
|
export type { TypesUpdateCronExperimentStateResponse } from './schemas/TypesUpdateCronExperimentStateResponse';
|
|
@@ -21,6 +21,7 @@ export { createInputSet, useCreateInputSetMutation } from './hooks/useCreateInpu
|
|
|
21
21
|
export { createProbe, useCreateProbeMutation } from './hooks/useCreateProbeMutation';
|
|
22
22
|
export { createProbeTemplate, useCreateProbeTemplateMutation, } from './hooks/useCreateProbeTemplateMutation';
|
|
23
23
|
export { createRecommendation, useCreateRecommendationMutation, } from './hooks/useCreateRecommendationMutation';
|
|
24
|
+
export { createRisk, useCreateRiskMutation } from './hooks/useCreateRiskMutation';
|
|
24
25
|
export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
|
|
25
26
|
export { createV2Onboarding, useCreateV2OnboardingMutation, } from './hooks/useCreateV2OnboardingMutation';
|
|
26
27
|
export { deleteAction, useDeleteActionMutation } from './hooks/useDeleteActionMutation';
|
|
@@ -40,6 +41,7 @@ export { deletePipelineOnboarding, useDeletePipelineOnboardingMutation, } from '
|
|
|
40
41
|
export { deleteProbe, useDeleteProbeMutation } from './hooks/useDeleteProbeMutation';
|
|
41
42
|
export { deleteProbeTemplate, useDeleteProbeTemplateMutation, } from './hooks/useDeleteProbeTemplateMutation';
|
|
42
43
|
export { deleteRecommendation, useDeleteRecommendationMutation, } from './hooks/useDeleteRecommendationMutation';
|
|
44
|
+
export { deleteRisk, useDeleteRiskMutation } from './hooks/useDeleteRiskMutation';
|
|
43
45
|
export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
|
|
44
46
|
export { deleteTargetNetworkMap, useDeleteTargetNetworkMapMutation, } from './hooks/useDeleteTargetNetworkMapMutation';
|
|
45
47
|
export { enableProbe, useEnableProbeMutation } from './hooks/useEnableProbeMutation';
|
|
@@ -103,6 +105,7 @@ export { getProbeTemplate, useGetProbeTemplateQuery } from './hooks/useGetProbeT
|
|
|
103
105
|
export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/useGetProbesInExperimentQuery';
|
|
104
106
|
export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
|
|
105
107
|
export { getResourceUsage, useGetResourceUsageQuery } from './hooks/useGetResourceUsageQuery';
|
|
108
|
+
export { getRisk, useGetRiskQuery } from './hooks/useGetRiskQuery';
|
|
106
109
|
export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
|
|
107
110
|
export { getServiceResponse, useGetServiceResponseQuery } from './hooks/useGetServiceResponseQuery';
|
|
108
111
|
export { getServiceUsageReport, useGetServiceUsageReportQuery, } from './hooks/useGetServiceUsageReportQuery';
|
|
@@ -144,10 +147,12 @@ export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sI
|
|
|
144
147
|
export { listLegacyKubernetesChaosInfra, useListLegacyKubernetesChaosInfraMutation, } from './hooks/useListLegacyKubernetesChaosInfraMutation';
|
|
145
148
|
export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
|
|
146
149
|
export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
|
|
150
|
+
export { listProbeExecutions, useListProbeExecutionsQuery, } from './hooks/useListProbeExecutionsQuery';
|
|
147
151
|
export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListProbeMetadataQuery';
|
|
148
152
|
export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
|
|
149
153
|
export { listProbes, useListProbesQuery } from './hooks/useListProbesQuery';
|
|
150
154
|
export { listRecommendations, useListRecommendationsQuery, } from './hooks/useListRecommendationsQuery';
|
|
155
|
+
export { listRisks, useListRisksQuery } from './hooks/useListRisksQuery';
|
|
151
156
|
export { listRule, useListRuleQuery } from './hooks/useListRuleQuery';
|
|
152
157
|
export { listService, useListServiceQuery } from './hooks/useListServiceQuery';
|
|
153
158
|
export { listTargetNetworkMaps, useListTargetNetworkMapsQuery, } from './hooks/useListTargetNetworkMapsQuery';
|
|
@@ -196,6 +201,7 @@ export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation
|
|
|
196
201
|
export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
|
|
197
202
|
export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
|
|
198
203
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
204
|
+
export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation';
|
|
199
205
|
export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
|
|
200
206
|
export { upgradeLegacyKubernetesChaosInfra, useUpgradeLegacyKubernetesChaosInfraMutation, } from './hooks/useUpgradeLegacyKubernetesChaosInfraMutation';
|
|
201
207
|
export { useVerifyChaosStageInPipelineRunQuery, verifyChaosStageInPipelineRun, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
|
|
@@ -14,8 +14,10 @@ export interface ChaosExperimentRunChaosExperimentRun {
|
|
|
14
14
|
errorResponse?: string;
|
|
15
15
|
executionData?: string;
|
|
16
16
|
experimentID?: string;
|
|
17
|
+
experimentIdentifier?: string;
|
|
17
18
|
experimentName?: string;
|
|
18
19
|
experimentRunID?: string;
|
|
20
|
+
experimentTags?: string[];
|
|
19
21
|
experimentType?: ChaosExperimentRunExperimentType;
|
|
20
22
|
experimentYaml?: string;
|
|
21
23
|
faultIDs?: string[];
|
|
@@ -8,6 +8,10 @@ export interface GithubComHarnessHceSaasGraphqlServerGraphModelInfraFilterInput
|
|
|
8
8
|
* ID of the infra
|
|
9
9
|
*/
|
|
10
10
|
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Environment IDs to filter infras by environment
|
|
13
|
+
*/
|
|
14
|
+
environmentIDs?: string[];
|
|
11
15
|
/**
|
|
12
16
|
* ID of the infra
|
|
13
17
|
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
2
|
+
import type { ExecutionChaosStepStatus } from '../schemas/ExecutionChaosStepStatus';
|
|
3
|
+
export interface RisksActiveExecutionResponse {
|
|
4
|
+
duration?: string;
|
|
5
|
+
executedBy?: HcesdkUserDetails;
|
|
6
|
+
executionID?: number;
|
|
7
|
+
experimentID?: string;
|
|
8
|
+
experimentName?: string;
|
|
9
|
+
experimentRunID?: string;
|
|
10
|
+
lastUpdatedAt?: number;
|
|
11
|
+
probeID?: string;
|
|
12
|
+
probeName?: string;
|
|
13
|
+
startedAt?: number;
|
|
14
|
+
status?: ExecutionChaosStepStatus;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RisksInfrastructure } from '../schemas/RisksInfrastructure';
|
|
2
|
+
export interface RisksCreateRequest {
|
|
3
|
+
category?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
identity?: string;
|
|
6
|
+
isDefault?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
supportedInfra?: RisksInfrastructure[];
|
|
9
|
+
tags?: string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RisksInfrastructure = 'Kubernetes' | 'Linux' | 'Windows';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RisksActiveExecutionResponse } from '../schemas/RisksActiveExecutionResponse';
|
|
2
|
+
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
3
|
+
export interface RisksListExecutionResponse {
|
|
4
|
+
correlationID?: string;
|
|
5
|
+
data?: RisksActiveExecutionResponse[];
|
|
6
|
+
pagination?: SharedPaginationResponse;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RisksRiskResponse } from '../schemas/RisksRiskResponse';
|
|
2
|
+
import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
|
|
3
|
+
export interface RisksListRiskResponse {
|
|
4
|
+
correlationID?: string;
|
|
5
|
+
data?: RisksRiskResponse[];
|
|
6
|
+
pagination?: SharedPaginationResponse;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RisksActiveRiskCounter } from '../schemas/RisksActiveRiskCounter';
|
|
2
|
+
import type { RisksInfrastructure } from '../schemas/RisksInfrastructure';
|
|
3
|
+
export interface RisksRisk {
|
|
4
|
+
accountID: string;
|
|
5
|
+
activeRisk?: RisksActiveRiskCounter;
|
|
6
|
+
category?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
identity?: string;
|
|
9
|
+
isDefault?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* PassiveRiskCounter PassiveRiskCounter `bson:"passiveRisk" json:"passiveRisk"` //TODO: To be added later
|
|
12
|
+
*/
|
|
13
|
+
lastDetectedAt?: number;
|
|
14
|
+
name: string;
|
|
15
|
+
orgID?: string;
|
|
16
|
+
projectID?: string;
|
|
17
|
+
supportedInfra?: RisksInfrastructure[];
|
|
18
|
+
tags?: string[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { RisksActiveRiskCounter } from '../schemas/RisksActiveRiskCounter';
|
|
2
|
+
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
3
|
+
import type { RisksInfrastructure } from '../schemas/RisksInfrastructure';
|
|
4
|
+
export interface RisksRiskResponse {
|
|
5
|
+
accountID: string;
|
|
6
|
+
activeRisk?: RisksActiveRiskCounter;
|
|
7
|
+
category?: string;
|
|
8
|
+
createdBy?: HcesdkUserDetails;
|
|
9
|
+
description?: string;
|
|
10
|
+
identity?: string;
|
|
11
|
+
isDefault?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* PassiveRiskCounter PassiveRiskCounter `bson:"passiveRisk" json:"passiveRisk"` //TODO: To be added later
|
|
14
|
+
*/
|
|
15
|
+
lastDetectedAt?: number;
|
|
16
|
+
name: string;
|
|
17
|
+
orgID?: string;
|
|
18
|
+
projectID?: string;
|
|
19
|
+
supportedInfra?: RisksInfrastructure[];
|
|
20
|
+
tags?: string[];
|
|
21
|
+
updatedBy?: HcesdkUserDetails;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import type { ModelWorkflowType } from '../schemas/ModelWorkflowType';
|
|
|
3
3
|
import type { ExperimentInfraType } from '../schemas/ExperimentInfraType';
|
|
4
4
|
import type { ChaosExperimentRecommendation } from '../schemas/ChaosExperimentRecommendation';
|
|
5
5
|
import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
|
|
6
|
+
import type { TypesTemplateResources } from '../schemas/TypesTemplateResources';
|
|
6
7
|
export interface TypesExperimentCreationRequest {
|
|
7
8
|
cronSyntax?: string;
|
|
8
9
|
description?: string;
|
|
@@ -18,5 +19,6 @@ export interface TypesExperimentCreationRequest {
|
|
|
18
19
|
recommendation?: ChaosExperimentRecommendation;
|
|
19
20
|
tags?: string[];
|
|
20
21
|
templateDetails?: ChaosExperimentRunTemplateDetails;
|
|
22
|
+
templateResources?: TypesTemplateResources;
|
|
21
23
|
validateManifest?: boolean;
|
|
22
24
|
}
|
|
@@ -25,6 +25,7 @@ export interface TypesGetProbeResponse {
|
|
|
25
25
|
probeReferenceCount?: number;
|
|
26
26
|
probeTemplateRef?: string;
|
|
27
27
|
recentProbeRuns?: TypesProbeRecentExecutions[];
|
|
28
|
+
risks?: string[];
|
|
28
29
|
runProperties?: ProbeProbeTemplateRunProperties;
|
|
29
30
|
tags?: string[];
|
|
30
31
|
type?: TypesProbeType;
|
|
@@ -22,6 +22,7 @@ export interface TypesProbeRequest {
|
|
|
22
22
|
probeReferenceCount?: number;
|
|
23
23
|
probeTemplateRef?: string;
|
|
24
24
|
recentProbeRuns?: TypesProbeRecentExecutions[];
|
|
25
|
+
risks?: string[];
|
|
25
26
|
runProperties?: ProbeProbeTemplateRunProperties;
|
|
26
27
|
tags?: string[];
|
|
27
28
|
type?: TypesProbeType;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TypesTemplateResourceDetails } from '../schemas/TypesTemplateResourceDetails';
|
|
2
|
+
export interface TypesTemplateResources {
|
|
3
|
+
actions?: TypesTemplateResourceDetails[];
|
|
4
|
+
faults?: TypesTemplateResourceDetails[];
|
|
5
|
+
probes?: TypesTemplateResourceDetails[];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED