@harnessio/react-chaos-manager-client 1.48.1-beta.0 → 1.49.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.
Files changed (85) hide show
  1. package/dist/chaos-manager/src/services/hooks/useAbortDrComponentMutation.d.ts +30 -0
  2. package/dist/chaos-manager/src/services/hooks/useAbortDrComponentMutation.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useCreateDrPipelineMutation.d.ts +28 -0
  4. package/dist/chaos-manager/src/services/hooks/useCreateDrPipelineMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useCreateRiskMutation.d.ts +28 -0
  6. package/dist/chaos-manager/src/services/hooks/useCreateRiskMutation.js +14 -0
  7. package/dist/chaos-manager/src/services/hooks/useDeleteRiskMutation.d.ts +28 -0
  8. package/dist/chaos-manager/src/services/hooks/useDeleteRiskMutation.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useGetDrComponentVariableQuery.d.ts +1 -1
  10. package/dist/chaos-manager/src/services/hooks/useGetRiskQuery.d.ts +27 -0
  11. package/dist/chaos-manager/src/services/hooks/useGetRiskQuery.js +14 -0
  12. package/dist/chaos-manager/src/services/hooks/useListDrComponentNodesQuery.d.ts +1 -0
  13. package/dist/chaos-manager/src/services/hooks/useListDrComponentNodesQuery.js +2 -2
  14. package/dist/chaos-manager/src/services/hooks/useListDrTestsQuery.d.ts +27 -0
  15. package/dist/chaos-manager/src/services/hooks/useListDrTestsQuery.js +14 -0
  16. package/dist/chaos-manager/src/services/hooks/useListProbeExecutionsQuery.d.ts +43 -0
  17. package/dist/chaos-manager/src/services/hooks/useListProbeExecutionsQuery.js +14 -0
  18. package/dist/chaos-manager/src/services/hooks/useListRisksQuery.d.ts +40 -0
  19. package/dist/chaos-manager/src/services/hooks/useListRisksQuery.js +14 -0
  20. package/dist/chaos-manager/src/services/hooks/useUpdateDrComponentNodeMutation.d.ts +3 -2
  21. package/dist/chaos-manager/src/services/hooks/useUpdateDrComponentNodeMutation.js +1 -1
  22. package/dist/chaos-manager/src/services/hooks/useUpdateRiskMutation.d.ts +31 -0
  23. package/dist/chaos-manager/src/services/hooks/useUpdateRiskMutation.js +14 -0
  24. package/dist/chaos-manager/src/services/index.d.ts +42 -3
  25. package/dist/chaos-manager/src/services/index.js +9 -1
  26. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.d.ts +1 -0
  27. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +2 -0
  28. package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultResponse.d.ts +1 -0
  29. package/dist/chaos-manager/src/services/schemas/DrComponentStatus.d.ts +1 -1
  30. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentRequest.d.ts +4 -0
  31. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentRequest.js +4 -0
  32. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentResponse.d.ts +5 -0
  33. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentResponseData.d.ts +4 -0
  34. package/dist/chaos-manager/src/services/schemas/DrcomponentsAbortDrComponentResponseData.js +4 -0
  35. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineRequest.d.ts +9 -0
  36. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineRequest.js +4 -0
  37. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineResponse.d.ts +5 -0
  38. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineResponse.js +1 -0
  39. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineResponseData.d.ts +4 -0
  40. package/dist/chaos-manager/src/services/schemas/DrcomponentsCreateDrPipelineResponseData.js +4 -0
  41. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTest.d.ts +11 -0
  42. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTest.js +1 -0
  43. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestPipelineInfo.d.ts +7 -0
  44. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestPipelineInfo.js +1 -0
  45. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestRunInfo.d.ts +8 -0
  46. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestRunInfo.js +1 -0
  47. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestSpec.d.ts +4 -0
  48. package/dist/chaos-manager/src/services/schemas/DrcomponentsDrTestSpec.js +1 -0
  49. package/dist/chaos-manager/src/services/schemas/DrcomponentsListDrTestsResponse.d.ts +4 -0
  50. package/dist/chaos-manager/src/services/schemas/DrcomponentsListDrTestsResponse.js +1 -0
  51. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelInfraFilterInput.d.ts +4 -0
  52. package/dist/chaos-manager/src/services/schemas/PipelinesExecutorInfo.d.ts +5 -0
  53. package/dist/chaos-manager/src/services/schemas/PipelinesExecutorInfo.js +4 -0
  54. package/dist/chaos-manager/src/services/schemas/RisksActiveExecutionResponse.d.ts +15 -0
  55. package/dist/chaos-manager/src/services/schemas/RisksActiveExecutionResponse.js +1 -0
  56. package/dist/chaos-manager/src/services/schemas/RisksActiveRiskCounter.d.ts +4 -0
  57. package/dist/chaos-manager/src/services/schemas/RisksActiveRiskCounter.js +4 -0
  58. package/dist/chaos-manager/src/services/schemas/RisksCreateRequest.d.ts +10 -0
  59. package/dist/chaos-manager/src/services/schemas/RisksCreateRequest.js +1 -0
  60. package/dist/chaos-manager/src/services/schemas/RisksDeleteResponse.d.ts +4 -0
  61. package/dist/chaos-manager/src/services/schemas/RisksDeleteResponse.js +4 -0
  62. package/dist/chaos-manager/src/services/schemas/RisksInfrastructure.d.ts +1 -0
  63. package/dist/chaos-manager/src/services/schemas/RisksInfrastructure.js +4 -0
  64. package/dist/chaos-manager/src/services/schemas/RisksListExecutionResponse.d.ts +7 -0
  65. package/dist/chaos-manager/src/services/schemas/RisksListExecutionResponse.js +1 -0
  66. package/dist/chaos-manager/src/services/schemas/RisksListRiskResponse.d.ts +7 -0
  67. package/dist/chaos-manager/src/services/schemas/RisksListRiskResponse.js +1 -0
  68. package/dist/chaos-manager/src/services/schemas/RisksRisk.d.ts +19 -0
  69. package/dist/chaos-manager/src/services/schemas/RisksRisk.js +1 -0
  70. package/dist/chaos-manager/src/services/schemas/RisksRiskResponse.d.ts +22 -0
  71. package/dist/chaos-manager/src/services/schemas/RisksRiskResponse.js +1 -0
  72. package/dist/chaos-manager/src/services/schemas/RisksUpdateRequest.d.ts +9 -0
  73. package/dist/chaos-manager/src/services/schemas/RisksUpdateRequest.js +4 -0
  74. package/dist/chaos-manager/src/services/schemas/TypesExperimentCreationRequest.d.ts +2 -0
  75. package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +1 -0
  76. package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +1 -0
  77. package/dist/chaos-manager/src/services/schemas/TypesTemplateResourceDetails.d.ts +5 -0
  78. package/dist/chaos-manager/src/services/schemas/TypesTemplateResourceDetails.js +4 -0
  79. package/dist/chaos-manager/src/services/schemas/TypesTemplateResources.d.ts +6 -0
  80. package/dist/chaos-manager/src/services/schemas/TypesTemplateResources.js +1 -0
  81. package/package.json +1 -1
  82. package/dist/chaos-manager/src/services/hooks/useUpdateDrComponentPhaseMutation.d.ts +0 -32
  83. package/dist/chaos-manager/src/services/hooks/useUpdateDrComponentPhaseMutation.js +0 -14
  84. package/dist/chaos-manager/src/services/requestBodies/DrComponentDrComponentExecutionNodeRequestBody.d.ts +0 -2
  85. /package/dist/chaos-manager/src/services/{requestBodies/DrComponentDrComponentExecutionNodeRequestBody.js → schemas/DrcomponentsAbortDrComponentResponse.js} +0 -0
@@ -0,0 +1,30 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { DrcomponentsAbortDrComponentResponse } from '../schemas/DrcomponentsAbortDrComponentResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { DrcomponentsAbortDrComponentRequest } from '../schemas/DrcomponentsAbortDrComponentRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface AbortDrComponentMutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ organizationIdentifier?: string;
10
+ pipelineExecutionId?: string;
11
+ pipelineIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export type AbortDrComponentRequestBody = DrcomponentsAbortDrComponentRequest;
15
+ export type AbortDrComponentOkResponse = DrcomponentsAbortDrComponentResponse;
16
+ export type AbortDrComponentErrorResponse = ApiRestError;
17
+ export interface AbortDrComponentProps extends Omit<FetcherOptions<AbortDrComponentMutationQueryParams, AbortDrComponentRequestBody>, 'url'> {
18
+ queryParams: AbortDrComponentMutationQueryParams;
19
+ body: AbortDrComponentRequestBody;
20
+ }
21
+ export interface AbortDrComponentResponseContainer {
22
+ body: AbortDrComponentOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function abortDrComponent(props: AbortDrComponentProps): Promise<AbortDrComponentResponseContainer>;
26
+ export type AbortDrComponentMutationProps<T extends keyof AbortDrComponentProps> = Omit<AbortDrComponentProps, T> & Partial<Pick<AbortDrComponentProps, T>>;
27
+ /**
28
+ * aborts a running DR component execution
29
+ */
30
+ export declare function useAbortDrComponentMutation<T extends keyof AbortDrComponentProps>(props: Pick<Partial<AbortDrComponentProps>, T>, options?: Omit<UseMutationOptions<AbortDrComponentResponseContainer, AbortDrComponentErrorResponse, AbortDrComponentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AbortDrComponentResponseContainer, ApiRestError, AbortDrComponentMutationProps<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 abortDrComponent(props) {
7
+ return fetcher(Object.assign({ url: `/internalv3/integrations/abort-dr-component`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * aborts a running DR component execution
11
+ */
12
+ export function useAbortDrComponentMutation(props, options) {
13
+ return useMutation((mutateProps) => abortDrComponent(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { DrcomponentsCreateDrPipelineResponse } from '../schemas/DrcomponentsCreateDrPipelineResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { DrcomponentsCreateDrPipelineRequest } from '../schemas/DrcomponentsCreateDrPipelineRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface CreateDrPipelineMutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ organizationIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export type CreateDrPipelineRequestBody = DrcomponentsCreateDrPipelineRequest;
13
+ export type CreateDrPipelineOkResponse = DrcomponentsCreateDrPipelineResponse;
14
+ export type CreateDrPipelineErrorResponse = ApiRestError;
15
+ export interface CreateDrPipelineProps extends Omit<FetcherOptions<CreateDrPipelineMutationQueryParams, CreateDrPipelineRequestBody>, 'url'> {
16
+ queryParams: CreateDrPipelineMutationQueryParams;
17
+ body: CreateDrPipelineRequestBody;
18
+ }
19
+ export interface CreateDrPipelineResponseContainer {
20
+ body: CreateDrPipelineOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function createDrPipeline(props: CreateDrPipelineProps): Promise<CreateDrPipelineResponseContainer>;
24
+ export type CreateDrPipelineMutationProps<T extends keyof CreateDrPipelineProps> = Omit<CreateDrPipelineProps, T> & Partial<Pick<CreateDrPipelineProps, T>>;
25
+ /**
26
+ * creates a pipeline with DR stage for disaster recovery testing
27
+ */
28
+ export declare function useCreateDrPipelineMutation<T extends keyof CreateDrPipelineProps>(props: Pick<Partial<CreateDrPipelineProps>, T>, options?: Omit<UseMutationOptions<CreateDrPipelineResponseContainer, CreateDrPipelineErrorResponse, CreateDrPipelineMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateDrPipelineResponseContainer, ApiRestError, CreateDrPipelineMutationProps<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 createDrPipeline(props) {
7
+ return fetcher(Object.assign({ url: `/v3/dr-components/create-dr-pipeline`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * creates a pipeline with DR stage for disaster recovery testing
11
+ */
12
+ export function useCreateDrPipelineMutation(props, options) {
13
+ return useMutation((mutateProps) => createDrPipeline(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -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,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { RisksDeleteResponse } from '../schemas/RisksDeleteResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface DeleteRiskMutationPathParams {
6
+ identity: string;
7
+ }
8
+ export interface DeleteRiskMutationQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ organizationIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export type DeleteRiskOkResponse = RisksDeleteResponse;
15
+ export type DeleteRiskErrorResponse = ApiRestError;
16
+ export interface DeleteRiskProps extends DeleteRiskMutationPathParams, Omit<FetcherOptions<DeleteRiskMutationQueryParams, unknown>, 'url'> {
17
+ queryParams: DeleteRiskMutationQueryParams;
18
+ }
19
+ export interface DeleteRiskResponseContainer {
20
+ body: DeleteRiskOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function deleteRisk(props: DeleteRiskProps): Promise<DeleteRiskResponseContainer>;
24
+ export type DeleteRiskMutationProps<T extends keyof DeleteRiskProps> = Omit<DeleteRiskProps, T> & Partial<Pick<DeleteRiskProps, T>>;
25
+ /**
26
+ * deletes a risk
27
+ */
28
+ 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
+ }
@@ -9,7 +9,7 @@ export interface GetDrComponentVariableQueryQueryParams {
9
9
  identifier?: string;
10
10
  organizationIdentifier?: string;
11
11
  projectIdentifier?: string;
12
- type?: string;
12
+ type?: 'Action' | 'Fault' | 'Probe';
13
13
  }
14
14
  export type GetDrComponentVariableOkResponse = DrcomponentsGetDrComponentVariableResponse;
15
15
  export type GetDrComponentVariableErrorResponse = ApiRestError;
@@ -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
+ }
@@ -5,6 +5,7 @@ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
5
  export interface ListDrComponentNodesQueryPathParams {
6
6
  identity: string;
7
7
  runID: string;
8
+ notifyId: string;
8
9
  }
9
10
  export interface ListDrComponentNodesQueryQueryParams {
10
11
  accountIdentifier: string;
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function listDrComponentNodes(props) {
7
- return fetcher(Object.assign({ url: `/internalv3/dr-components/nodes/${props.identity}/${props.runID}`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/internalv3/dr-components/nodes/${props.identity}/${props.runID}/${props.notifyId}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * list the DR component nodes
11
11
  */
12
12
  export function useListDrComponentNodesQuery(props, options) {
13
- return useQuery(['listDRComponentNodes', props.identity, props.runID, props.queryParams], ({ signal }) => listDrComponentNodes(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['listDRComponentNodes', props.identity, props.runID, props.notifyId, props.queryParams], ({ signal }) => listDrComponentNodes(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DrcomponentsListDrTestsResponse } from '../schemas/DrcomponentsListDrTestsResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListDrTestsQueryQueryParams {
6
+ accountIdentifier: string;
7
+ correlationID?: string;
8
+ organizationIdentifier?: string;
9
+ page?: number;
10
+ projectIdentifier?: string;
11
+ size?: number;
12
+ sort?: string;
13
+ }
14
+ export type ListDrTestsOkResponse = DrcomponentsListDrTestsResponse;
15
+ export type ListDrTestsErrorResponse = ApiRestError;
16
+ export interface ListDrTestsProps extends Omit<FetcherOptions<ListDrTestsQueryQueryParams, unknown>, 'url'> {
17
+ queryParams: ListDrTestsQueryQueryParams;
18
+ }
19
+ export interface ListDrTestsResponseContainer {
20
+ body: ListDrTestsOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function listDrTests(props: ListDrTestsProps): Promise<ListDrTestsResponseContainer>;
24
+ /**
25
+ * lists all DR tests (DRTest stages) from pipelines
26
+ */
27
+ export declare function useListDrTestsQuery(props: ListDrTestsProps, options?: Omit<UseQueryOptions<ListDrTestsResponseContainer, ListDrTestsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDrTestsResponseContainer, 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 listDrTests(props) {
7
+ return fetcher(Object.assign({ url: `/v3/dr-components/list-dr-tests`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * lists all DR tests (DRTest stages) from pipelines
11
+ */
12
+ export function useListDrTestsQuery(props, options) {
13
+ return useQuery(['listDRTests', props.queryParams], ({ signal }) => listDrTests(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/${props.identity}/active-risks`, 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?: 'CloudFoundry' | 'Container' | 'Kubernetes' | 'KubernetesV2' | '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
+ }
@@ -1,11 +1,12 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { GithubComHarnessHceSaasGraphqlServerApiEmpty } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiEmpty';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { DrComponentDrComponentExecutionNodeRequestBody } from '../requestBodies/DrComponentDrComponentExecutionNodeRequestBody';
4
+ import type { DrComponentDrComponentExecutionNode } from '../schemas/DrComponentDrComponentExecutionNode';
5
5
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
6
  export interface UpdateDrComponentNodeMutationPathParams {
7
7
  identity: string;
8
8
  runID: string;
9
+ notifyId: string;
9
10
  name: string;
10
11
  }
11
12
  export interface UpdateDrComponentNodeMutationQueryParams {
@@ -14,7 +15,7 @@ export interface UpdateDrComponentNodeMutationQueryParams {
14
15
  organizationIdentifier?: string;
15
16
  projectIdentifier?: string;
16
17
  }
17
- export type UpdateDrComponentNodeRequestBody = DrComponentDrComponentExecutionNodeRequestBody;
18
+ export type UpdateDrComponentNodeRequestBody = DrComponentDrComponentExecutionNode;
18
19
  export type UpdateDrComponentNodeOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
19
20
  export type UpdateDrComponentNodeErrorResponse = ApiRestError;
20
21
  export interface UpdateDrComponentNodeProps extends UpdateDrComponentNodeMutationPathParams, Omit<FetcherOptions<UpdateDrComponentNodeMutationQueryParams, UpdateDrComponentNodeRequestBody>, 'url'> {
@@ -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 updateDrComponentNode(props) {
7
- return fetcher(Object.assign({ url: `/internalv3/dr-components/nodes/${props.identity}/${props.runID}/${props.name}`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/internalv3/dr-components/nodes/${props.identity}/${props.runID}/${props.notifyId}/${props.name}`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * updates the DR component node
@@ -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
+ }