@harnessio/react-chaos-manager-client 1.78.0 → 1.79.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.
@@ -0,0 +1,43 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosservicesListDrExecutionsResponse } from '../schemas/ChaosservicesListDrExecutionsResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListChaosServiceDrRunsQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface ListChaosServiceDrRunsQueryQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ includeAllScope?: boolean;
12
+ infraIds?: string;
13
+ /**
14
+ * @default 15
15
+ */
16
+ limit?: number;
17
+ organizationIdentifier?: string;
18
+ /**
19
+ * @default 0
20
+ */
21
+ page?: number;
22
+ parentUniqueId?: string;
23
+ projectIdentifier?: string;
24
+ search?: string;
25
+ sortAscending?: boolean;
26
+ sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
27
+ statuses?: string;
28
+ useParentUniqueID?: boolean;
29
+ }
30
+ export type ListChaosServiceDrRunsOkResponse = ChaosservicesListDrExecutionsResponse;
31
+ export type ListChaosServiceDrRunsErrorResponse = ApiRestError;
32
+ export interface ListChaosServiceDrRunsProps extends ListChaosServiceDrRunsQueryPathParams, Omit<FetcherOptions<ListChaosServiceDrRunsQueryQueryParams, unknown>, 'url'> {
33
+ queryParams: ListChaosServiceDrRunsQueryQueryParams;
34
+ }
35
+ export interface ListChaosServiceDrRunsResponseContainer {
36
+ body: ListChaosServiceDrRunsOkResponse;
37
+ headers: Headers;
38
+ }
39
+ export declare function listChaosServiceDrRuns(props: ListChaosServiceDrRunsProps): Promise<ListChaosServiceDrRunsResponseContainer>;
40
+ /**
41
+ * List the DR runs in which a chaos service was exercised, along with the pipeline execution context of each run.
42
+ */
43
+ export declare function useListChaosServiceDrRunsQuery(props: ListChaosServiceDrRunsProps, options?: Omit<UseQueryOptions<ListChaosServiceDrRunsResponseContainer, ListChaosServiceDrRunsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosServiceDrRunsResponseContainer, 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 listChaosServiceDrRuns(props) {
7
+ return fetcher(Object.assign({ url: `/v3/chaos-services/${props.identity}/dr-runs`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List the DR runs in which a chaos service was exercised, along with the pipeline execution context of each run.
11
+ */
12
+ export function useListChaosServiceDrRunsQuery(props, options) {
13
+ return useQuery(['listChaosServiceDRRuns', props.identity, props.queryParams], ({ signal }) => listChaosServiceDrRuns(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -318,6 +318,8 @@ export type { ListChaosExperimentRunsV3ErrorResponse, ListChaosExperimentRunsV3O
318
318
  export { listChaosExperimentRunsV3, useListChaosExperimentRunsV3Query, } from './hooks/useListChaosExperimentRunsV3Query';
319
319
  export type { ListChaosHubErrorResponse, ListChaosHubOkResponse, ListChaosHubProps, ListChaosHubQueryQueryParams, } from './hooks/useListChaosHubQuery';
320
320
  export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
321
+ export type { ListChaosServiceDrRunsErrorResponse, ListChaosServiceDrRunsOkResponse, ListChaosServiceDrRunsProps, ListChaosServiceDrRunsQueryPathParams, ListChaosServiceDrRunsQueryQueryParams, } from './hooks/useListChaosServiceDrRunsQuery';
322
+ export { listChaosServiceDrRuns, useListChaosServiceDrRunsQuery, } from './hooks/useListChaosServiceDrRunsQuery';
321
323
  export type { ListChaosServiceExecutionsErrorResponse, ListChaosServiceExecutionsOkResponse, ListChaosServiceExecutionsProps, ListChaosServiceExecutionsQueryPathParams, ListChaosServiceExecutionsQueryQueryParams, } from './hooks/useListChaosServiceExecutionsQuery';
322
324
  export { listChaosServiceExecutions, useListChaosServiceExecutionsQuery, } from './hooks/useListChaosServiceExecutionsQuery';
323
325
  export type { ListChaosServiceLoadTestsErrorResponse, ListChaosServiceLoadTestsOkResponse, ListChaosServiceLoadTestsProps, ListChaosServiceLoadTestsQueryPathParams, ListChaosServiceLoadTestsQueryQueryParams, } from './hooks/useListChaosServiceLoadTestsQuery';
@@ -726,8 +728,10 @@ export type { ChaosresourcenotesNoteType } from './schemas/ChaosresourcenotesNot
726
728
  export type { ChaosservicesChaosServiceResponse } from './schemas/ChaosservicesChaosServiceResponse';
727
729
  export type { ChaosservicesCreateRequest } from './schemas/ChaosservicesCreateRequest';
728
730
  export type { ChaosservicesDeleteResponse } from './schemas/ChaosservicesDeleteResponse';
731
+ export type { ChaosservicesDrExecutionResponse } from './schemas/ChaosservicesDrExecutionResponse';
729
732
  export type { ChaosservicesExperimentExecutionResponse } from './schemas/ChaosservicesExperimentExecutionResponse';
730
733
  export type { ChaosservicesListChaosServiceResponse } from './schemas/ChaosservicesListChaosServiceResponse';
734
+ export type { ChaosservicesListDrExecutionsResponse } from './schemas/ChaosservicesListDrExecutionsResponse';
731
735
  export type { ChaosservicesListExperimentExecutionsResponse } from './schemas/ChaosservicesListExperimentExecutionsResponse';
732
736
  export type { ChaosservicesListLoadTestsResponse } from './schemas/ChaosservicesListLoadTestsResponse';
733
737
  export type { ChaosservicesLoadTestSummaryResponse } from './schemas/ChaosservicesLoadTestSummaryResponse';
@@ -158,6 +158,7 @@ export { listChaosComponent, useListChaosComponentQuery } from './hooks/useListC
158
158
  export { listChaosEnabledInfraV2, useListChaosEnabledInfraV2Query, } from './hooks/useListChaosEnabledInfraV2Query';
159
159
  export { listChaosExperimentRunsV3, useListChaosExperimentRunsV3Query, } from './hooks/useListChaosExperimentRunsV3Query';
160
160
  export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
161
+ export { listChaosServiceDrRuns, useListChaosServiceDrRunsQuery, } from './hooks/useListChaosServiceDrRunsQuery';
161
162
  export { listChaosServiceExecutions, useListChaosServiceExecutionsQuery, } from './hooks/useListChaosServiceExecutionsQuery';
162
163
  export { listChaosServiceLoadTests, useListChaosServiceLoadTestsQuery, } from './hooks/useListChaosServiceLoadTestsQuery';
163
164
  export { listChaosServices, useListChaosServicesQuery } from './hooks/useListChaosServicesQuery';
@@ -7,6 +7,7 @@ import type { ChaoscomponentType } from '../schemas/ChaoscomponentType';
7
7
  export interface ChaoscomponentChaosComponentExecutionNode {
8
8
  accountID?: string;
9
9
  chaosData?: ChaoscomponentChaosData;
10
+ createdBy?: string;
10
11
  errorData?: ChaoscomponentErrorData;
11
12
  finishedAt?: number;
12
13
  identity?: string;
@@ -25,4 +26,5 @@ export interface ChaoscomponentChaosComponentExecutionNode {
25
26
  status?: ChaoscomponentStatus;
26
27
  streamID?: string;
27
28
  type?: ChaoscomponentType;
29
+ updatedBy?: string;
28
30
  }
@@ -0,0 +1,35 @@
1
+ import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
2
+ import type { ChaoscomponentPipelineDetails } from '../schemas/ChaoscomponentPipelineDetails';
3
+ export interface ChaosservicesDrExecutionResponse {
4
+ /**
5
+ * account id to access the resource
6
+ */
7
+ accountIdentifier: string;
8
+ createdBy?: HcesdkUserDetails;
9
+ finishedAt?: number;
10
+ identity?: string;
11
+ infraID?: string;
12
+ infraType?: string;
13
+ lastUpdatedAt?: number;
14
+ name?: string;
15
+ notifyID?: string;
16
+ /**
17
+ * organization id to access the resource
18
+ */
19
+ organizationIdentifier?: string;
20
+ /**
21
+ * resolved parent scope unique ID (from scope-info API or query param)
22
+ */
23
+ parentUniqueId?: string;
24
+ pipelineDetails?: ChaoscomponentPipelineDetails;
25
+ probeName?: string;
26
+ /**
27
+ * project id to access the resource
28
+ */
29
+ projectIdentifier?: string;
30
+ runID?: string;
31
+ startedAt?: number;
32
+ status?: string;
33
+ type?: string;
34
+ updatedBy?: HcesdkUserDetails;
35
+ }
@@ -0,0 +1,7 @@
1
+ import type { ChaosservicesDrExecutionResponse } from '../schemas/ChaosservicesDrExecutionResponse';
2
+ import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
3
+ export interface ChaosservicesListDrExecutionsResponse {
4
+ correlationID?: string;
5
+ data?: ChaosservicesDrExecutionResponse[];
6
+ pagination?: SharedPaginationResponse;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.78.0",
3
+ "version": "1.79.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",