@harnessio/react-chaos-manager-client 1.65.1-beta.0 → 1.65.1

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 (43) hide show
  1. package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunV3Query.d.ts +29 -0
  2. package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunV3Query.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useListChaosExperimentRunsV3Query.d.ts +47 -0
  4. package/dist/chaos-manager/src/services/hooks/useListChaosExperimentRunsV3Query.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +2 -2
  6. package/dist/chaos-manager/src/services/hooks/useRunChaosExperimentV3Mutation.d.ts +34 -0
  7. package/dist/chaos-manager/src/services/hooks/useRunChaosExperimentV3Mutation.js +14 -0
  8. package/dist/chaos-manager/src/services/hooks/useStopChaosExperimentV3Mutation.d.ts +32 -0
  9. package/dist/chaos-manager/src/services/hooks/useStopChaosExperimentV3Mutation.js +14 -0
  10. package/dist/chaos-manager/src/services/index.d.ts +15 -11
  11. package/dist/chaos-manager/src/services/index.js +4 -3
  12. package/dist/chaos-manager/src/services/schemas/ChaosservicesChaosServiceResponse.d.ts +19 -7
  13. package/dist/chaos-manager/src/services/schemas/ChaosservicesCreateRequest.d.ts +4 -4
  14. package/dist/chaos-manager/src/services/schemas/ChaosservicesServiceProbeAssociation.d.ts +2 -2
  15. package/dist/chaos-manager/src/services/schemas/ChaosservicesUpdateRequest.d.ts +4 -4
  16. package/dist/chaos-manager/src/services/schemas/ExecutionChaosStepStatus.d.ts +1 -1
  17. package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetExperimentRunResponse.d.ts +23 -0
  18. package/dist/chaos-manager/src/services/schemas/ExperimentrunsListExperimentRunItem.d.ts +16 -0
  19. package/dist/chaos-manager/src/services/schemas/ExperimentrunsListExperimentRunsResponse.d.ts +11 -0
  20. package/dist/chaos-manager/src/services/schemas/ExperimentrunsRunBody.d.ts +5 -0
  21. package/dist/chaos-manager/src/services/schemas/ExperimentrunsRunBody.js +1 -0
  22. package/dist/chaos-manager/src/services/schemas/ExperimentrunsRunExperimentResponse.d.ts +11 -0
  23. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopExperimentBody.d.ts +5 -0
  24. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopExperimentResponse.d.ts +9 -0
  25. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopExperimentResponse.js +4 -0
  26. package/dist/chaos-manager/src/services/schemas/V3GetExperimentOrTemplateVariableResponse.d.ts +2 -0
  27. package/package.json +1 -1
  28. package/dist/chaos-manager/src/services/hooks/useGetDashboardV3Query.d.ts +0 -29
  29. package/dist/chaos-manager/src/services/hooks/useGetDashboardV3Query.js +0 -14
  30. package/dist/chaos-manager/src/services/hooks/useListDashboardsV3Query.d.ts +0 -40
  31. package/dist/chaos-manager/src/services/hooks/useListDashboardsV3Query.js +0 -14
  32. package/dist/chaos-manager/src/services/hooks/useUpdateDashboardV3Mutation.d.ts +0 -33
  33. package/dist/chaos-manager/src/services/hooks/useUpdateDashboardV3Mutation.js +0 -14
  34. package/dist/chaos-manager/src/services/schemas/DashboardCategoryCount.d.ts +0 -4
  35. package/dist/chaos-manager/src/services/schemas/DashboardDashboardCounts.d.ts +0 -7
  36. package/dist/chaos-manager/src/services/schemas/DashboardDashboardResponse.d.ts +0 -19
  37. package/dist/chaos-manager/src/services/schemas/DashboardListDashboardResponse.d.ts +0 -9
  38. package/dist/chaos-manager/src/services/schemas/DashboardUpdateRequest.d.ts +0 -4
  39. /package/dist/chaos-manager/src/services/schemas/{DashboardDashboardCounts.js → ExperimentrunsGetExperimentRunResponse.js} +0 -0
  40. /package/dist/chaos-manager/src/services/schemas/{DashboardDashboardResponse.js → ExperimentrunsListExperimentRunItem.js} +0 -0
  41. /package/dist/chaos-manager/src/services/schemas/{DashboardListDashboardResponse.js → ExperimentrunsListExperimentRunsResponse.js} +0 -0
  42. /package/dist/chaos-manager/src/services/schemas/{DashboardCategoryCount.js → ExperimentrunsRunExperimentResponse.js} +0 -0
  43. /package/dist/chaos-manager/src/services/schemas/{DashboardUpdateRequest.js → ExperimentrunsStopExperimentBody.js} +0 -0
@@ -0,0 +1,29 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExperimentrunsGetExperimentRunResponse } from '../schemas/ExperimentrunsGetExperimentRunResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetChaosExperimentRunV3QueryPathParams {
6
+ identity: string;
7
+ experimentRunId: string;
8
+ }
9
+ export interface GetChaosExperimentRunV3QueryQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ organizationIdentifier?: string;
13
+ parentUniqueId?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export type GetChaosExperimentRunV3OkResponse = ExperimentrunsGetExperimentRunResponse;
17
+ export type GetChaosExperimentRunV3ErrorResponse = ApiRestError;
18
+ export interface GetChaosExperimentRunV3Props extends GetChaosExperimentRunV3QueryPathParams, Omit<FetcherOptions<GetChaosExperimentRunV3QueryQueryParams, unknown>, 'url'> {
19
+ queryParams: GetChaosExperimentRunV3QueryQueryParams;
20
+ }
21
+ export interface GetChaosExperimentRunV3ResponseContainer {
22
+ body: GetChaosExperimentRunV3OkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function getChaosExperimentRunV3(props: GetChaosExperimentRunV3Props): Promise<GetChaosExperimentRunV3ResponseContainer>;
26
+ /**
27
+ * Fetches one run scoped to an experiment, by experimentRunId path slot or by notifyId in the query (with experimentRunId set to '_').
28
+ */
29
+ export declare function useGetChaosExperimentRunV3Query(props: GetChaosExperimentRunV3Props, options?: Omit<UseQueryOptions<GetChaosExperimentRunV3ResponseContainer, GetChaosExperimentRunV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosExperimentRunV3ResponseContainer, 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 getChaosExperimentRunV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiments/${props.identity}/runs/${props.experimentRunId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Fetches one run scoped to an experiment, by experimentRunId path slot or by notifyId in the query (with experimentRunId set to '_').
11
+ */
12
+ export function useGetChaosExperimentRunV3Query(props, options) {
13
+ return useQuery(['getChaosExperimentRunV3', props.identity, props.experimentRunId, props.queryParams], ({ signal }) => getChaosExperimentRunV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,47 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExperimentrunsListExperimentRunsResponse } from '../schemas/ExperimentrunsListExperimentRunsResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListChaosExperimentRunsV3QueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface ListChaosExperimentRunsV3QueryQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ endTime?: number;
12
+ experimentIDs?: string;
13
+ experimentRunIDs?: string;
14
+ infraIDs?: string;
15
+ /**
16
+ * @default 15
17
+ */
18
+ limit?: number;
19
+ notifyIDs?: string;
20
+ organizationIdentifier?: string;
21
+ /**
22
+ * @default 0
23
+ */
24
+ page?: number;
25
+ parentUniqueId?: string;
26
+ phases?: string;
27
+ projectIdentifier?: string;
28
+ runSequence?: number;
29
+ search?: string;
30
+ sortAscending?: boolean;
31
+ sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
32
+ startTime?: number;
33
+ }
34
+ export type ListChaosExperimentRunsV3OkResponse = ExperimentrunsListExperimentRunsResponse;
35
+ export type ListChaosExperimentRunsV3ErrorResponse = ApiRestError;
36
+ export interface ListChaosExperimentRunsV3Props extends ListChaosExperimentRunsV3QueryPathParams, Omit<FetcherOptions<ListChaosExperimentRunsV3QueryQueryParams, unknown>, 'url'> {
37
+ queryParams: ListChaosExperimentRunsV3QueryQueryParams;
38
+ }
39
+ export interface ListChaosExperimentRunsV3ResponseContainer {
40
+ body: ListChaosExperimentRunsV3OkResponse;
41
+ headers: Headers;
42
+ }
43
+ export declare function listChaosExperimentRunsV3(props: ListChaosExperimentRunsV3Props): Promise<ListChaosExperimentRunsV3ResponseContainer>;
44
+ /**
45
+ * Lists runs of one experiment with the V3 filter+pagination conventions. Use this for dashboards and run history views.
46
+ */
47
+ export declare function useListChaosExperimentRunsV3Query(props: ListChaosExperimentRunsV3Props, options?: Omit<UseQueryOptions<ListChaosExperimentRunsV3ResponseContainer, ListChaosExperimentRunsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosExperimentRunsV3ResponseContainer, 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 listChaosExperimentRunsV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiments/${props.identity}/runs`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists runs of one experiment with the V3 filter+pagination conventions. Use this for dashboards and run history views.
11
+ */
12
+ export function useListChaosExperimentRunsV3Query(props, options) {
13
+ return useQuery(['listChaosExperimentRunsV3', props.identity, props.queryParams], ({ signal }) => listChaosExperimentRunsV3(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -5,9 +5,9 @@ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
5
  export interface ListChaosServicesQueryQueryParams {
6
6
  accountIdentifier: string;
7
7
  correlationID?: string;
8
- environmentIdentity?: string;
8
+ environmentIds?: string;
9
9
  includeAllScope?: boolean;
10
- infrastructureIdentity?: string;
10
+ infrastructureIds?: string;
11
11
  /**
12
12
  * @default 15
13
13
  */
@@ -0,0 +1,34 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ExperimentrunsRunExperimentResponse } from '../schemas/ExperimentrunsRunExperimentResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ExperimentrunsRunBody } from '../schemas/ExperimentrunsRunBody';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface RunChaosExperimentV3MutationPathParams {
7
+ identity: string;
8
+ }
9
+ export interface RunChaosExperimentV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ isIdentity?: boolean;
13
+ isOnboardingRun?: boolean;
14
+ organizationIdentifier?: string;
15
+ parentUniqueId?: string;
16
+ projectIdentifier?: string;
17
+ }
18
+ export type RunChaosExperimentV3RequestBody = ExperimentrunsRunBody;
19
+ export type RunChaosExperimentV3OkResponse = ExperimentrunsRunExperimentResponse;
20
+ export type RunChaosExperimentV3ErrorResponse = ApiRestError;
21
+ export interface RunChaosExperimentV3Props extends RunChaosExperimentV3MutationPathParams, Omit<FetcherOptions<RunChaosExperimentV3MutationQueryParams, RunChaosExperimentV3RequestBody>, 'url'> {
22
+ queryParams: RunChaosExperimentV3MutationQueryParams;
23
+ body: RunChaosExperimentV3RequestBody;
24
+ }
25
+ export interface RunChaosExperimentV3ResponseContainer {
26
+ body: RunChaosExperimentV3OkResponse;
27
+ headers: Headers;
28
+ }
29
+ export declare function runChaosExperimentV3(props: RunChaosExperimentV3Props): Promise<RunChaosExperimentV3ResponseContainer>;
30
+ export type RunChaosExperimentV3MutationProps<T extends keyof RunChaosExperimentV3Props> = Omit<RunChaosExperimentV3Props, T> & Partial<Pick<RunChaosExperimentV3Props, T>>;
31
+ /**
32
+ * Triggers an experiment run on its configured infra. Returns a notify ID and (if not blocked) a delegate task ID.
33
+ */
34
+ export declare function useRunChaosExperimentV3Mutation<T extends keyof RunChaosExperimentV3Props>(props: Pick<Partial<RunChaosExperimentV3Props>, T>, options?: Omit<UseMutationOptions<RunChaosExperimentV3ResponseContainer, RunChaosExperimentV3ErrorResponse, RunChaosExperimentV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RunChaosExperimentV3ResponseContainer, ApiRestError, RunChaosExperimentV3MutationProps<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 runChaosExperimentV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiments/${props.identity}/run`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Triggers an experiment run on its configured infra. Returns a notify ID and (if not blocked) a delegate task ID.
11
+ */
12
+ export function useRunChaosExperimentV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => runChaosExperimentV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ExperimentrunsStopExperimentResponse } from '../schemas/ExperimentrunsStopExperimentResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ExperimentrunsStopExperimentBody } from '../schemas/ExperimentrunsStopExperimentBody';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface StopChaosExperimentV3MutationPathParams {
7
+ identity: string;
8
+ }
9
+ export interface StopChaosExperimentV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ organizationIdentifier?: string;
13
+ parentUniqueId?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export type StopChaosExperimentV3RequestBody = ExperimentrunsStopExperimentBody;
17
+ export type StopChaosExperimentV3OkResponse = ExperimentrunsStopExperimentResponse;
18
+ export type StopChaosExperimentV3ErrorResponse = ApiRestError;
19
+ export interface StopChaosExperimentV3Props extends StopChaosExperimentV3MutationPathParams, Omit<FetcherOptions<StopChaosExperimentV3MutationQueryParams, StopChaosExperimentV3RequestBody>, 'url'> {
20
+ queryParams: StopChaosExperimentV3MutationQueryParams;
21
+ body: StopChaosExperimentV3RequestBody;
22
+ }
23
+ export interface StopChaosExperimentV3ResponseContainer {
24
+ body: StopChaosExperimentV3OkResponse;
25
+ headers: Headers;
26
+ }
27
+ export declare function stopChaosExperimentV3(props: StopChaosExperimentV3Props): Promise<StopChaosExperimentV3ResponseContainer>;
28
+ export type StopChaosExperimentV3MutationProps<T extends keyof StopChaosExperimentV3Props> = Omit<StopChaosExperimentV3Props, T> & Partial<Pick<StopChaosExperimentV3Props, T>>;
29
+ /**
30
+ * Stops a single run (by experimentRunId or notifyId) or every Running run for the experiment when both are empty.
31
+ */
32
+ export declare function useStopChaosExperimentV3Mutation<T extends keyof StopChaosExperimentV3Props>(props: Pick<Partial<StopChaosExperimentV3Props>, T>, options?: Omit<UseMutationOptions<StopChaosExperimentV3ResponseContainer, StopChaosExperimentV3ErrorResponse, StopChaosExperimentV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<StopChaosExperimentV3ResponseContainer, ApiRestError, StopChaosExperimentV3MutationProps<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 stopChaosExperimentV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiments/${props.identity}/stop`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Stops a single run (by experimentRunId or notifyId) or every Running run for the experiment when both are empty.
11
+ */
12
+ export function useStopChaosExperimentV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => stopChaosExperimentV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -138,6 +138,8 @@ export type { GetChaosExperimentRunReportPdfErrorResponse, GetChaosExperimentRun
138
138
  export { getChaosExperimentRunReportPdf, useGetChaosExperimentRunReportPdfQuery, } from './hooks/useGetChaosExperimentRunReportPdfQuery';
139
139
  export type { GetChaosExperimentRunReportErrorResponse, GetChaosExperimentRunReportOkResponse, GetChaosExperimentRunReportProps, GetChaosExperimentRunReportQueryPathParams, GetChaosExperimentRunReportQueryQueryParams, } from './hooks/useGetChaosExperimentRunReportQuery';
140
140
  export { getChaosExperimentRunReport, useGetChaosExperimentRunReportQuery, } from './hooks/useGetChaosExperimentRunReportQuery';
141
+ export type { GetChaosExperimentRunV3ErrorResponse, GetChaosExperimentRunV3OkResponse, GetChaosExperimentRunV3Props, GetChaosExperimentRunV3QueryPathParams, GetChaosExperimentRunV3QueryQueryParams, } from './hooks/useGetChaosExperimentRunV3Query';
142
+ export { getChaosExperimentRunV3, useGetChaosExperimentRunV3Query, } from './hooks/useGetChaosExperimentRunV3Query';
141
143
  export type { GetChaosExperimentRunsForPipelineErrorResponse, GetChaosExperimentRunsForPipelineOkResponse, GetChaosExperimentRunsForPipelineProps, GetChaosExperimentRunsForPipelineQueryQueryParams, GetChaosExperimentRunsForPipelineRequestBody, } from './hooks/useGetChaosExperimentRunsForPipelineQuery';
142
144
  export { getChaosExperimentRunsForPipeline, useGetChaosExperimentRunsForPipelineQuery, } from './hooks/useGetChaosExperimentRunsForPipelineQuery';
143
145
  export type { GetChaosHubErrorResponse, GetChaosHubOkResponse, GetChaosHubProps, GetChaosHubQueryPathParams, GetChaosHubQueryQueryParams, } from './hooks/useGetChaosHubQuery';
@@ -162,8 +164,6 @@ export type { GetConditionErrorResponse, GetConditionOkResponse, GetConditionPro
162
164
  export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
163
165
  export type { GetConnectorForInfraErrorResponse, GetConnectorForInfraOkResponse, GetConnectorForInfraProps, GetConnectorForInfraQueryPathParams, GetConnectorForInfraQueryQueryParams, } from './hooks/useGetConnectorForInfraQuery';
164
166
  export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
165
- export type { GetDashboardV3ErrorResponse, GetDashboardV3OkResponse, GetDashboardV3Props, GetDashboardV3QueryPathParams, GetDashboardV3QueryQueryParams, } from './hooks/useGetDashboardV3Query';
166
- export { getDashboardV3, useGetDashboardV3Query } from './hooks/useGetDashboardV3Query';
167
167
  export type { GetExperimentHelperImageVersionErrorResponse, GetExperimentHelperImageVersionOkResponse, GetExperimentHelperImageVersionProps, } from './hooks/useGetExperimentHelperImageVersionQuery';
168
168
  export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
169
169
  export type { GetExperimentOrTemplateVariableErrorResponse, GetExperimentOrTemplateVariableOkResponse, GetExperimentOrTemplateVariableProps, GetExperimentOrTemplateVariableQueryQueryParams, } from './hooks/useGetExperimentOrTemplateVariableQuery';
@@ -280,6 +280,8 @@ export type { ListChaosComponentErrorResponse, ListChaosComponentOkResponse, Lis
280
280
  export { listChaosComponent, useListChaosComponentQuery } from './hooks/useListChaosComponentQuery';
281
281
  export type { ListChaosEnabledInfraV2ErrorResponse, ListChaosEnabledInfraV2OkResponse, ListChaosEnabledInfraV2Props, ListChaosEnabledInfraV2QueryQueryParams, ListChaosEnabledInfraV2RequestBody, } from './hooks/useListChaosEnabledInfraV2Query';
282
282
  export { listChaosEnabledInfraV2, useListChaosEnabledInfraV2Query, } from './hooks/useListChaosEnabledInfraV2Query';
283
+ export type { ListChaosExperimentRunsV3ErrorResponse, ListChaosExperimentRunsV3OkResponse, ListChaosExperimentRunsV3Props, ListChaosExperimentRunsV3QueryPathParams, ListChaosExperimentRunsV3QueryQueryParams, } from './hooks/useListChaosExperimentRunsV3Query';
284
+ export { listChaosExperimentRunsV3, useListChaosExperimentRunsV3Query, } from './hooks/useListChaosExperimentRunsV3Query';
283
285
  export type { ListChaosHubErrorResponse, ListChaosHubOkResponse, ListChaosHubProps, ListChaosHubQueryQueryParams, } from './hooks/useListChaosHubQuery';
284
286
  export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
285
287
  export type { ListChaosServicesErrorResponse, ListChaosServicesOkResponse, ListChaosServicesProps, ListChaosServicesQueryQueryParams, } from './hooks/useListChaosServicesQuery';
@@ -288,8 +290,6 @@ export type { ListChaosV2ExperimentErrorResponse, ListChaosV2ExperimentOkRespons
288
290
  export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
289
291
  export type { ListConditionErrorResponse, ListConditionOkResponse, ListConditionProps, ListConditionQueryQueryParams, } from './hooks/useListConditionQuery';
290
292
  export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
291
- export type { ListDashboardsV3ErrorResponse, ListDashboardsV3OkResponse, ListDashboardsV3Props, ListDashboardsV3QueryQueryParams, } from './hooks/useListDashboardsV3Query';
292
- export { listDashboardsV3, useListDashboardsV3Query } from './hooks/useListDashboardsV3Query';
293
293
  export type { ListDrTestsErrorResponse, ListDrTestsOkResponse, ListDrTestsProps, ListDrTestsQueryQueryParams, } from './hooks/useListDrTestsQuery';
294
294
  export { listDrTests, useListDrTestsQuery } from './hooks/useListDrTestsQuery';
295
295
  export type { ListExperimentMetadataErrorResponse, ListExperimentMetadataOkResponse, ListExperimentMetadataProps, ListExperimentMetadataQueryQueryParams, ListExperimentMetadataRequestBody, } from './hooks/useListExperimentMetadataQuery';
@@ -394,6 +394,8 @@ export type { RunChaosComponentForMachineErrorResponse, RunChaosComponentForMach
394
394
  export { runChaosComponentForMachine, useRunChaosComponentForMachineMutation, } from './hooks/useRunChaosComponentForMachineMutation';
395
395
  export type { RunChaosComponentErrorResponse, RunChaosComponentMutationProps, RunChaosComponentMutationQueryParams, RunChaosComponentOkResponse, RunChaosComponentProps, RunChaosComponentRequestBody, } from './hooks/useRunChaosComponentMutation';
396
396
  export { runChaosComponent, useRunChaosComponentMutation, } from './hooks/useRunChaosComponentMutation';
397
+ export type { RunChaosExperimentV3ErrorResponse, RunChaosExperimentV3MutationPathParams, RunChaosExperimentV3MutationProps, RunChaosExperimentV3MutationQueryParams, RunChaosExperimentV3OkResponse, RunChaosExperimentV3Props, RunChaosExperimentV3RequestBody, } from './hooks/useRunChaosExperimentV3Mutation';
398
+ export { runChaosExperimentV3, useRunChaosExperimentV3Mutation, } from './hooks/useRunChaosExperimentV3Mutation';
397
399
  export type { RunChaosV2ExperimentErrorResponse, RunChaosV2ExperimentMutationPathParams, RunChaosV2ExperimentMutationProps, RunChaosV2ExperimentMutationQueryParams, RunChaosV2ExperimentOkResponse, RunChaosV2ExperimentProps, RunChaosV2ExperimentRequestBody, } from './hooks/useRunChaosV2ExperimentMutation';
398
400
  export { runChaosV2Experiment, useRunChaosV2ExperimentMutation, } from './hooks/useRunChaosV2ExperimentMutation';
399
401
  export type { RunChaosV2InternalApiErrorResponse, RunChaosV2InternalApiMutationPathParams, RunChaosV2InternalApiMutationProps, RunChaosV2InternalApiMutationQueryParams, RunChaosV2InternalApiOkResponse, RunChaosV2InternalApiProps, RunChaosV2InternalApiRequestBody, } from './hooks/useRunChaosV2InternalApiMutation';
@@ -402,6 +404,8 @@ export type { RunRecommendationErrorResponse, RunRecommendationMutationProps, Ru
402
404
  export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRunRecommendationMutation';
403
405
  export type { SaveChaosV2ExperimentErrorResponse, SaveChaosV2ExperimentMutationProps, SaveChaosV2ExperimentMutationQueryParams, SaveChaosV2ExperimentOkResponse, SaveChaosV2ExperimentProps, SaveChaosV2ExperimentRequestBody, } from './hooks/useSaveChaosV2ExperimentMutation';
404
406
  export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
407
+ export type { StopChaosExperimentV3ErrorResponse, StopChaosExperimentV3MutationPathParams, StopChaosExperimentV3MutationProps, StopChaosExperimentV3MutationQueryParams, StopChaosExperimentV3OkResponse, StopChaosExperimentV3Props, StopChaosExperimentV3RequestBody, } from './hooks/useStopChaosExperimentV3Mutation';
408
+ export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hooks/useStopChaosExperimentV3Mutation';
405
409
  export type { StopChaosV2ExperimentErrorResponse, StopChaosV2ExperimentMutationPathParams, StopChaosV2ExperimentMutationProps, StopChaosV2ExperimentMutationQueryParams, StopChaosV2ExperimentOkResponse, StopChaosV2ExperimentProps, } from './hooks/useStopChaosV2ExperimentMutation';
406
410
  export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
407
411
  export type { StopDrTestErrorResponse, StopDrTestMutationPathParams, StopDrTestMutationProps, StopDrTestMutationQueryParams, StopDrTestOkResponse, StopDrTestProps, } from './hooks/useStopDrTestMutation';
@@ -428,8 +432,6 @@ export type { UpdateConditionErrorResponse, UpdateConditionMutationPathParams, U
428
432
  export { updateCondition, useUpdateConditionMutation } from './hooks/useUpdateConditionMutation';
429
433
  export type { UpdateCronStateV3ErrorResponse, UpdateCronStateV3MutationProps, UpdateCronStateV3MutationQueryParams, UpdateCronStateV3OkResponse, UpdateCronStateV3Props, UpdateCronStateV3RequestBody, } from './hooks/useUpdateCronStateV3Mutation';
430
434
  export { updateCronStateV3, useUpdateCronStateV3Mutation, } from './hooks/useUpdateCronStateV3Mutation';
431
- export type { UpdateDashboardV3ErrorResponse, UpdateDashboardV3MutationPathParams, UpdateDashboardV3MutationProps, UpdateDashboardV3MutationQueryParams, UpdateDashboardV3OkResponse, UpdateDashboardV3Props, UpdateDashboardV3RequestBody, } from './hooks/useUpdateDashboardV3Mutation';
432
- export { updateDashboardV3, useUpdateDashboardV3Mutation, } from './hooks/useUpdateDashboardV3Mutation';
433
435
  export type { UpdateEmissaryErrorResponse, UpdateEmissaryMutationPathParams, UpdateEmissaryMutationProps, UpdateEmissaryMutationQueryParams, UpdateEmissaryOkResponse, UpdateEmissaryProps, UpdateEmissaryRequestBody, } from './hooks/useUpdateEmissaryMutation';
434
436
  export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
435
437
  export type { UpdateExperimentTemplateErrorResponse, UpdateExperimentTemplateMutationPathParams, UpdateExperimentTemplateMutationProps, UpdateExperimentTemplateMutationQueryParams, UpdateExperimentTemplateOkResponse, UpdateExperimentTemplateProps, UpdateExperimentTemplateRequestBody, } from './hooks/useUpdateExperimentTemplateMutation';
@@ -674,11 +676,6 @@ export type { CommonTypesExperimentRunsData } from './schemas/CommonTypesExperim
674
676
  export type { CommonVolume } from './schemas/CommonVolume';
675
677
  export type { CommonVolumeInputTemplate } from './schemas/CommonVolumeInputTemplate';
676
678
  export type { CommonVolumeType } from './schemas/CommonVolumeType';
677
- export type { DashboardCategoryCount } from './schemas/DashboardCategoryCount';
678
- export type { DashboardDashboardCounts } from './schemas/DashboardDashboardCounts';
679
- export type { DashboardDashboardResponse } from './schemas/DashboardDashboardResponse';
680
- export type { DashboardListDashboardResponse } from './schemas/DashboardListDashboardResponse';
681
- export type { DashboardUpdateRequest } from './schemas/DashboardUpdateRequest';
682
679
  export type { DatabaseAgentConfiguration } from './schemas/DatabaseAgentConfiguration';
683
680
  export type { DatabaseConnection } from './schemas/DatabaseConnection';
684
681
  export type { DatabaseConnectionType } from './schemas/DatabaseConnectionType';
@@ -767,6 +764,13 @@ export type { ExperimentTargets } from './schemas/ExperimentTargets';
767
764
  export type { ExperimentVmWareAuth } from './schemas/ExperimentVmWareAuth';
768
765
  export type { ExperimentWorkload } from './schemas/ExperimentWorkload';
769
766
  export type { ExperimentWorkloadKind } from './schemas/ExperimentWorkloadKind';
767
+ export type { ExperimentrunsGetExperimentRunResponse } from './schemas/ExperimentrunsGetExperimentRunResponse';
768
+ export type { ExperimentrunsListExperimentRunItem } from './schemas/ExperimentrunsListExperimentRunItem';
769
+ export type { ExperimentrunsListExperimentRunsResponse } from './schemas/ExperimentrunsListExperimentRunsResponse';
770
+ export type { ExperimentrunsRunBody } from './schemas/ExperimentrunsRunBody';
771
+ export type { ExperimentrunsRunExperimentResponse } from './schemas/ExperimentrunsRunExperimentResponse';
772
+ export type { ExperimentrunsStopExperimentBody } from './schemas/ExperimentrunsStopExperimentBody';
773
+ export type { ExperimentrunsStopExperimentResponse } from './schemas/ExperimentrunsStopExperimentResponse';
770
774
  export type { ExperimentsAuditInfo } from './schemas/ExperimentsAuditInfo';
771
775
  export type { ExperimentsCreateRequest } from './schemas/ExperimentsCreateRequest';
772
776
  export type { ExperimentsCreateResponse } from './schemas/ExperimentsCreateResponse';
@@ -68,6 +68,7 @@ export { getChaosExperimentRunReportJson, useGetChaosExperimentRunReportJsonQuer
68
68
  export { getChaosExperimentRunReportPdfLegacy, useGetChaosExperimentRunReportPdfLegacyQuery, } from './hooks/useGetChaosExperimentRunReportPdfLegacyQuery';
69
69
  export { getChaosExperimentRunReportPdf, useGetChaosExperimentRunReportPdfQuery, } from './hooks/useGetChaosExperimentRunReportPdfQuery';
70
70
  export { getChaosExperimentRunReport, useGetChaosExperimentRunReportQuery, } from './hooks/useGetChaosExperimentRunReportQuery';
71
+ export { getChaosExperimentRunV3, useGetChaosExperimentRunV3Query, } from './hooks/useGetChaosExperimentRunV3Query';
71
72
  export { getChaosExperimentRunsForPipeline, useGetChaosExperimentRunsForPipelineQuery, } from './hooks/useGetChaosExperimentRunsForPipelineQuery';
72
73
  export { getChaosHub, useGetChaosHubQuery } from './hooks/useGetChaosHubQuery';
73
74
  export { getChaosPipelineExecution, useGetChaosPipelineExecutionQuery, } from './hooks/useGetChaosPipelineExecutionQuery';
@@ -80,7 +81,6 @@ export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, }
80
81
  export { getCommandUnitStatuses, useGetCommandUnitStatusesQuery, } from './hooks/useGetCommandUnitStatusesQuery';
81
82
  export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
82
83
  export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
83
- export { getDashboardV3, useGetDashboardV3Query } from './hooks/useGetDashboardV3Query';
84
84
  export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
85
85
  export { getExperimentOrTemplateVariable, useGetExperimentOrTemplateVariableQuery, } from './hooks/useGetExperimentOrTemplateVariableQuery';
86
86
  export { getExperimentRunTimelineView, useGetExperimentRunTimelineViewQuery, } from './hooks/useGetExperimentRunTimelineViewQuery';
@@ -139,11 +139,11 @@ export { listActions, useListActionsQuery } from './hooks/useListActionsQuery';
139
139
  export { listApplication, useListApplicationQuery } from './hooks/useListApplicationQuery';
140
140
  export { listChaosComponent, useListChaosComponentQuery } from './hooks/useListChaosComponentQuery';
141
141
  export { listChaosEnabledInfraV2, useListChaosEnabledInfraV2Query, } from './hooks/useListChaosEnabledInfraV2Query';
142
+ export { listChaosExperimentRunsV3, useListChaosExperimentRunsV3Query, } from './hooks/useListChaosExperimentRunsV3Query';
142
143
  export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
143
144
  export { listChaosServices, useListChaosServicesQuery } from './hooks/useListChaosServicesQuery';
144
145
  export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
145
146
  export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
146
- export { listDashboardsV3, useListDashboardsV3Query } from './hooks/useListDashboardsV3Query';
147
147
  export { listDrTests, useListDrTestsQuery } from './hooks/useListDrTestsQuery';
148
148
  export { listExperimentMetadata, useListExperimentMetadataQuery, } from './hooks/useListExperimentMetadataQuery';
149
149
  export { listExperimentOrTemplate, useListExperimentOrTemplateQuery, } from './hooks/useListExperimentOrTemplateQuery';
@@ -196,10 +196,12 @@ export { resolveImageRegistryV3, useResolveImageRegistryV3Query, } from './hooks
196
196
  export { retryExperimentCreation, useRetryExperimentCreationMutation, } from './hooks/useRetryExperimentCreationMutation';
197
197
  export { runChaosComponentForMachine, useRunChaosComponentForMachineMutation, } from './hooks/useRunChaosComponentForMachineMutation';
198
198
  export { runChaosComponent, useRunChaosComponentMutation, } from './hooks/useRunChaosComponentMutation';
199
+ export { runChaosExperimentV3, useRunChaosExperimentV3Mutation, } from './hooks/useRunChaosExperimentV3Mutation';
199
200
  export { runChaosV2Experiment, useRunChaosV2ExperimentMutation, } from './hooks/useRunChaosV2ExperimentMutation';
200
201
  export { runChaosV2InternalApi, useRunChaosV2InternalApiMutation, } from './hooks/useRunChaosV2InternalApiMutation';
201
202
  export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRunRecommendationMutation';
202
203
  export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
204
+ export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hooks/useStopChaosExperimentV3Mutation';
203
205
  export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
204
206
  export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
205
207
  export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
@@ -213,7 +215,6 @@ export { updateChaosService, useUpdateChaosServiceMutation, } from './hooks/useU
213
215
  export { updateChaosV2CronExperiment, useUpdateChaosV2CronExperimentMutation, } from './hooks/useUpdateChaosV2CronExperimentMutation';
214
216
  export { updateCondition, useUpdateConditionMutation } from './hooks/useUpdateConditionMutation';
215
217
  export { updateCronStateV3, useUpdateCronStateV3Mutation, } from './hooks/useUpdateCronStateV3Mutation';
216
- export { updateDashboardV3, useUpdateDashboardV3Mutation, } from './hooks/useUpdateDashboardV3Mutation';
217
218
  export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
218
219
  export { updateExperimentTemplate, useUpdateExperimentTemplateMutation, } from './hooks/useUpdateExperimentTemplateMutation';
219
220
  export { updateExperimentV3, useUpdateExperimentV3Mutation, } from './hooks/useUpdateExperimentV3Mutation';
@@ -2,21 +2,33 @@ import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
2
2
  import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
3
3
  import type { DatabaseDiscoveredServiceSpec } from '../schemas/DatabaseDiscoveredServiceSpec';
4
4
  export interface ChaosservicesChaosServiceResponse {
5
- accountID: string;
6
- agentIdentity?: string;
5
+ /**
6
+ * account id to access the resource
7
+ */
8
+ accountIdentifier: string;
9
+ agentId?: string;
7
10
  createdAt?: number;
8
11
  createdBy?: HcesdkUserDetails;
9
12
  description?: string;
10
- environmentIdentity?: string;
11
- externalIdentity?: string;
13
+ environmentId?: string;
14
+ externalServiceId?: string;
12
15
  identity?: string;
13
- infrastructureIdentity?: string;
16
+ infrastructureId?: string;
14
17
  isRemoved: boolean;
15
18
  name: string;
16
- orgID?: string;
19
+ /**
20
+ * organization id to access the resource
21
+ */
22
+ organizationIdentifier?: string;
23
+ /**
24
+ * resolved parent scope unique ID (from scope-info API or query param)
25
+ */
17
26
  parentUniqueId?: string;
18
27
  probes?: ChaosservicesServiceProbeAssociation[];
19
- projectID?: string;
28
+ /**
29
+ * project id to access the resource
30
+ */
31
+ projectIdentifier?: string;
20
32
  serviceType?: string;
21
33
  spec?: DatabaseDiscoveredServiceSpec;
22
34
  tags?: string[];
@@ -1,11 +1,11 @@
1
1
  import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
2
2
  export interface ChaosservicesCreateRequest {
3
- agentIdentity?: string;
3
+ agentId?: string;
4
4
  description?: string;
5
- environmentIdentity?: string;
6
- externalIdentity?: string;
5
+ environmentId?: string;
6
+ externalServiceId?: string;
7
7
  identity?: string;
8
- infrastructureIdentity?: string;
8
+ infrastructureId?: string;
9
9
  name?: string;
10
10
  probes?: ChaosservicesServiceProbeAssociation[];
11
11
  tags?: string[];
@@ -1,5 +1,5 @@
1
1
  import type { TemplateInput } from '../schemas/TemplateInput';
2
2
  export interface ChaosservicesServiceProbeAssociation {
3
- probeIdentity?: string;
4
- variables?: TemplateInput[];
3
+ inputs?: TemplateInput[];
4
+ probeId?: string;
5
5
  }
@@ -1,11 +1,11 @@
1
1
  import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
2
2
  export interface ChaosservicesUpdateRequest {
3
- agentIdentity?: string;
3
+ agentId?: string;
4
4
  description?: string;
5
- environmentIdentity?: string;
6
- externalIdentity?: string;
5
+ environmentId?: string;
6
+ externalServiceId?: string;
7
7
  identity?: string;
8
- infrastructureIdentity?: string;
8
+ infrastructureId?: string;
9
9
  name?: string;
10
10
  probes?: ChaosservicesServiceProbeAssociation[];
11
11
  tags?: string[];
@@ -1 +1 @@
1
- export type ExecutionChaosStepStatus = 'Completed' | 'Completed_With_Probe_Absent' | 'Completed_With_Probe_Failure' | 'Error' | 'Failed' | 'Interrupted' | 'Passed' | 'Pending' | 'Queued' | 'Running' | 'Skipped' | 'Stopped';
1
+ export type ExecutionChaosStepStatus = 'Completed' | 'Completed_With_Probe_Absent' | 'Completed_With_Probe_Failure' | 'Error' | 'Failed' | 'Interrupted' | 'Passed' | 'Pending' | 'Queued' | 'Running' | 'Skipped' | 'Stopped' | 'Timeout';
@@ -0,0 +1,23 @@
1
+ import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
2
+ export interface ExperimentrunsGetExperimentRunResponse {
3
+ completed?: boolean;
4
+ /**
5
+ * correlation id is used to debug micro svc communication
6
+ */
7
+ correlationID?: string;
8
+ createdAt?: number;
9
+ createdBy?: HcesdkUserDetails;
10
+ executionData?: string;
11
+ experimentId?: string;
12
+ experimentName?: string;
13
+ experimentRunId?: string;
14
+ experimentType?: string;
15
+ experimentYaml?: string;
16
+ infraId?: string;
17
+ manifestVersion?: string;
18
+ notifyId?: string;
19
+ phase?: string;
20
+ runSequence?: number;
21
+ updatedAt?: number;
22
+ updatedBy?: HcesdkUserDetails;
23
+ }
@@ -0,0 +1,16 @@
1
+ import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
2
+ export interface ExperimentrunsListExperimentRunItem {
3
+ createdBy?: HcesdkUserDetails;
4
+ experimentId?: string;
5
+ experimentName?: string;
6
+ experimentRunId?: string;
7
+ infraId?: string;
8
+ infraType?: string;
9
+ notifyId?: string;
10
+ phase?: string;
11
+ resiliencyScore?: number;
12
+ runSequence?: number;
13
+ startedAt?: number;
14
+ updatedAt?: number;
15
+ updatedBy?: HcesdkUserDetails;
16
+ }
@@ -0,0 +1,11 @@
1
+ import type { ExperimentrunsListExperimentRunItem } from '../schemas/ExperimentrunsListExperimentRunItem';
2
+ import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
3
+ export interface ExperimentrunsListExperimentRunsResponse {
4
+ /**
5
+ * correlation id is used to debug micro svc communication
6
+ */
7
+ correlationID?: string;
8
+ data?: ExperimentrunsListExperimentRunItem[];
9
+ pagination?: SharedPaginationResponse;
10
+ totalItems?: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ import type { TemplateChaosExperimentInputsetSpec } from '../schemas/TemplateChaosExperimentInputsetSpec';
2
+ export interface ExperimentrunsRunBody {
3
+ inputsetIdentity?: string;
4
+ runtimeInputs?: TemplateChaosExperimentInputsetSpec;
5
+ }
@@ -0,0 +1,11 @@
1
+ export interface ExperimentrunsRunExperimentResponse {
2
+ /**
3
+ * correlation id is used to debug micro svc communication
4
+ */
5
+ correlationID?: string;
6
+ delegateTaskId?: string;
7
+ experimentId?: string;
8
+ experimentName?: string;
9
+ experimentRunId?: string;
10
+ notifyId?: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ export interface ExperimentrunsStopExperimentBody {
2
+ experimentRunId?: string;
3
+ forceStop?: boolean;
4
+ notifyId?: string;
5
+ }
@@ -0,0 +1,9 @@
1
+ export interface ExperimentrunsStopExperimentResponse {
2
+ /**
3
+ * correlation id is used to debug micro svc communication
4
+ */
5
+ correlationID?: string;
6
+ experimentId?: string;
7
+ experimentName?: string;
8
+ isStopped?: boolean;
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,4 +1,6 @@
1
+ import type { TemplateInput } from '../schemas/TemplateInput';
1
2
  import type { V3GetExperimentOrTemplateVariableData } from '../schemas/V3GetExperimentOrTemplateVariableData';
2
3
  export interface V3GetExperimentOrTemplateVariableResponse {
4
+ experimentInputs?: TemplateInput[];
3
5
  items?: V3GetExperimentOrTemplateVariableData[];
4
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.65.1-beta.0",
3
+ "version": "1.65.1",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,29 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { DashboardDashboardResponse } from '../schemas/DashboardDashboardResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface GetDashboardV3QueryPathParams {
6
- identity: string;
7
- }
8
- export interface GetDashboardV3QueryQueryParams {
9
- accountIdentifier: string;
10
- correlationID?: string;
11
- organizationIdentifier?: string;
12
- parentUniqueId?: string;
13
- projectIdentifier?: string;
14
- useParentUniqueID?: boolean;
15
- }
16
- export type GetDashboardV3OkResponse = DashboardDashboardResponse;
17
- export type GetDashboardV3ErrorResponse = ApiRestError;
18
- export interface GetDashboardV3Props extends GetDashboardV3QueryPathParams, Omit<FetcherOptions<GetDashboardV3QueryQueryParams, unknown>, 'url'> {
19
- queryParams: GetDashboardV3QueryQueryParams;
20
- }
21
- export interface GetDashboardV3ResponseContainer {
22
- body: GetDashboardV3OkResponse;
23
- headers: Headers;
24
- }
25
- export declare function getDashboardV3(props: GetDashboardV3Props): Promise<GetDashboardV3ResponseContainer>;
26
- /**
27
- * gets a dashboard by identity for the given project
28
- */
29
- export declare function useGetDashboardV3Query(props: GetDashboardV3Props, options?: Omit<UseQueryOptions<GetDashboardV3ResponseContainer, GetDashboardV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDashboardV3ResponseContainer, ApiRestError>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function getDashboardV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/dashboards/${props.identity}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * gets a dashboard by identity for the given project
11
- */
12
- export function useGetDashboardV3Query(props, options) {
13
- return useQuery(['GetDashboardV3', props.identity, props.queryParams], ({ signal }) => getDashboardV3(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,40 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { DashboardListDashboardResponse } from '../schemas/DashboardListDashboardResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface ListDashboardsV3QueryQueryParams {
6
- accountIdentifier: string;
7
- category?: string;
8
- correlationID?: string;
9
- favourite?: boolean;
10
- /**
11
- * @default 15
12
- */
13
- limit?: number;
14
- organizationIdentifier?: string;
15
- /**
16
- * @default 0
17
- */
18
- page?: number;
19
- parentUniqueId?: string;
20
- projectIdentifier?: string;
21
- search?: string;
22
- sortAscending?: boolean;
23
- sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
24
- tags?: string;
25
- useParentUniqueID?: boolean;
26
- }
27
- export type ListDashboardsV3OkResponse = DashboardListDashboardResponse;
28
- export type ListDashboardsV3ErrorResponse = ApiRestError;
29
- export interface ListDashboardsV3Props extends Omit<FetcherOptions<ListDashboardsV3QueryQueryParams, unknown>, 'url'> {
30
- queryParams: ListDashboardsV3QueryQueryParams;
31
- }
32
- export interface ListDashboardsV3ResponseContainer {
33
- body: ListDashboardsV3OkResponse;
34
- headers: Headers;
35
- }
36
- export declare function listDashboardsV3(props: ListDashboardsV3Props): Promise<ListDashboardsV3ResponseContainer>;
37
- /**
38
- * lists out-of-the-box dashboards for the given project with search, tag/category/favourite filters, sort and pagination
39
- */
40
- export declare function useListDashboardsV3Query(props: ListDashboardsV3Props, options?: Omit<UseQueryOptions<ListDashboardsV3ResponseContainer, ListDashboardsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDashboardsV3ResponseContainer, ApiRestError>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function listDashboardsV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/dashboards`, method: 'GET' }, props));
8
- }
9
- /**
10
- * lists out-of-the-box dashboards for the given project with search, tag/category/favourite filters, sort and pagination
11
- */
12
- export function useListDashboardsV3Query(props, options) {
13
- return useQuery(['ListDashboardsV3', props.queryParams], ({ signal }) => listDashboardsV3(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,33 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { DashboardDashboardResponse } from '../schemas/DashboardDashboardResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { DashboardUpdateRequest } from '../schemas/DashboardUpdateRequest';
5
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
- export interface UpdateDashboardV3MutationPathParams {
7
- identity: string;
8
- }
9
- export interface UpdateDashboardV3MutationQueryParams {
10
- accountIdentifier: string;
11
- correlationID?: string;
12
- organizationIdentifier?: string;
13
- parentUniqueId?: string;
14
- projectIdentifier?: string;
15
- useParentUniqueID?: boolean;
16
- }
17
- export type UpdateDashboardV3RequestBody = DashboardUpdateRequest;
18
- export type UpdateDashboardV3OkResponse = DashboardDashboardResponse;
19
- export type UpdateDashboardV3ErrorResponse = ApiRestError;
20
- export interface UpdateDashboardV3Props extends UpdateDashboardV3MutationPathParams, Omit<FetcherOptions<UpdateDashboardV3MutationQueryParams, UpdateDashboardV3RequestBody>, 'url'> {
21
- queryParams: UpdateDashboardV3MutationQueryParams;
22
- body: UpdateDashboardV3RequestBody;
23
- }
24
- export interface UpdateDashboardV3ResponseContainer {
25
- body: UpdateDashboardV3OkResponse;
26
- headers: Headers;
27
- }
28
- export declare function updateDashboardV3(props: UpdateDashboardV3Props): Promise<UpdateDashboardV3ResponseContainer>;
29
- export type UpdateDashboardV3MutationProps<T extends keyof UpdateDashboardV3Props> = Omit<UpdateDashboardV3Props, T> & Partial<Pick<UpdateDashboardV3Props, T>>;
30
- /**
31
- * updates the tags and favourite flag of a dashboard for the given project
32
- */
33
- export declare function useUpdateDashboardV3Mutation<T extends keyof UpdateDashboardV3Props>(props: Pick<Partial<UpdateDashboardV3Props>, T>, options?: Omit<UseMutationOptions<UpdateDashboardV3ResponseContainer, UpdateDashboardV3ErrorResponse, UpdateDashboardV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateDashboardV3ResponseContainer, ApiRestError, UpdateDashboardV3MutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function updateDashboardV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/dashboards/${props.identity}`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * updates the tags and favourite flag of a dashboard for the given project
11
- */
12
- export function useUpdateDashboardV3Mutation(props, options) {
13
- return useMutation((mutateProps) => updateDashboardV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,4 +0,0 @@
1
- export interface DashboardCategoryCount {
2
- category?: string;
3
- count?: number;
4
- }
@@ -1,7 +0,0 @@
1
- import type { DashboardCategoryCount } from '../schemas/DashboardCategoryCount';
2
- export interface DashboardDashboardCounts {
3
- all?: number;
4
- categories?: DashboardCategoryCount[];
5
- favourites?: number;
6
- tags?: string[];
7
- }
@@ -1,19 +0,0 @@
1
- import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
2
- export interface DashboardDashboardResponse {
3
- accountID: string;
4
- category?: string;
5
- createdBy?: HcesdkUserDetails;
6
- dashboardID?: string;
7
- description?: string;
8
- identity?: string;
9
- isFavourite?: boolean;
10
- isOOTB?: boolean;
11
- name: string;
12
- orgID?: string;
13
- parentUniqueId?: string;
14
- projectID?: string;
15
- seedVersion?: number;
16
- tags?: string[];
17
- uniqueId?: string;
18
- updatedBy?: HcesdkUserDetails;
19
- }
@@ -1,9 +0,0 @@
1
- import type { DashboardDashboardCounts } from '../schemas/DashboardDashboardCounts';
2
- import type { DashboardDashboardResponse } from '../schemas/DashboardDashboardResponse';
3
- import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
4
- export interface DashboardListDashboardResponse {
5
- correlationID?: string;
6
- counts?: DashboardDashboardCounts;
7
- data?: DashboardDashboardResponse[];
8
- pagination?: SharedPaginationResponse;
9
- }
@@ -1,4 +0,0 @@
1
- export interface DashboardUpdateRequest {
2
- isFavourite?: boolean;
3
- tags?: string[];
4
- }