@harnessio/react-chaos-manager-client 1.9.0 → 1.10.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.
@@ -17,7 +17,7 @@ export interface ListActionsQueryQueryParams {
17
17
  */
18
18
  limit: number;
19
19
  infraType?: string;
20
- actionType?: string;
20
+ entityType?: string;
21
21
  includeAllScope?: string;
22
22
  }
23
23
  export type ListActionsOkResponse = ActionsListActionTemplateResponse;
@@ -1,16 +1,19 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { InfraListInfraResponse } from '../schemas/InfraListInfraResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { InfraListInfraRequest } from '../schemas/InfraListInfraRequest';
4
5
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
6
  export interface ListMachineChaosInfraQueryQueryParams {
6
7
  accountIdentifier: string;
7
8
  organizationIdentifier: string;
8
9
  projectIdentifier: string;
9
10
  }
11
+ export type ListMachineChaosInfraRequestBody = InfraListInfraRequest;
10
12
  export type ListMachineChaosInfraOkResponse = InfraListInfraResponse;
11
13
  export type ListMachineChaosInfraErrorResponse = ApiRestError;
12
- export interface ListMachineChaosInfraProps extends Omit<FetcherOptions<ListMachineChaosInfraQueryQueryParams, unknown>, 'url'> {
14
+ export interface ListMachineChaosInfraProps extends Omit<FetcherOptions<ListMachineChaosInfraQueryQueryParams, ListMachineChaosInfraRequestBody>, 'url'> {
13
15
  queryParams: ListMachineChaosInfraQueryQueryParams;
16
+ body: ListMachineChaosInfraRequestBody;
14
17
  }
15
18
  export interface ListMachineChaosInfraResponseContainer {
16
19
  body: ListMachineChaosInfraOkResponse;
@@ -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 listMachineChaosInfra(props) {
7
- return fetcher(Object.assign({ url: `/rest/machine/infras`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/rest/machine/infras`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * List machine chaos infras
11
11
  */
12
12
  export function useListMachineChaosInfraQuery(props, options) {
13
- return useQuery(['listMachineChaosInfra', props.queryParams], ({ signal }) => listMachineChaosInfra(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['listMachineChaosInfra', props.queryParams, props.body], ({ signal }) => listMachineChaosInfra(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -6,12 +6,12 @@ export interface ListProbesQueryQueryParams {
6
6
  accountIdentifier: string;
7
7
  organizationIdentifier: string;
8
8
  projectIdentifier: string;
9
- name?: string;
9
+ search?: string;
10
10
  tags?: string;
11
11
  startDate?: string;
12
12
  endDate?: string;
13
13
  probeIDs?: string;
14
- infrastructureType?: string;
14
+ infraType?: string;
15
15
  /**
16
16
  * @default 1
17
17
  */
@@ -22,7 +22,7 @@ export interface ListProbesQueryQueryParams {
22
22
  limit?: number;
23
23
  sortField?: 'ENABLED' | 'NAME' | 'TIME';
24
24
  sortAscending?: boolean;
25
- probeType?: string;
25
+ entityType?: string;
26
26
  }
27
27
  export type ListProbesOkResponse = TypesListProbeResponse;
28
28
  export type ListProbesErrorResponse = ApiRestError;
@@ -190,7 +190,7 @@ export type { ListInputSetErrorResponse, ListInputSetOkResponse, ListInputSetPro
190
190
  export { listInputSet, useListInputSetQuery } from './hooks/useListInputSetQuery';
191
191
  export type { ListK8sInfrasV2ErrorResponse, ListK8sInfrasV2MutationProps, ListK8sInfrasV2MutationQueryParams, ListK8sInfrasV2OkResponse, ListK8sInfrasV2Props, ListK8sInfrasV2RequestBody, } from './hooks/useListK8sInfrasV2Mutation';
192
192
  export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sInfrasV2Mutation';
193
- export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkResponse, ListMachineChaosInfraProps, ListMachineChaosInfraQueryQueryParams, } from './hooks/useListMachineChaosInfraQuery';
193
+ export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkResponse, ListMachineChaosInfraProps, ListMachineChaosInfraQueryQueryParams, ListMachineChaosInfraRequestBody, } from './hooks/useListMachineChaosInfraQuery';
194
194
  export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
195
195
  export type { ListProbeTemplateErrorResponse, ListProbeTemplateOkResponse, ListProbeTemplateProps, ListProbeTemplateQueryQueryParams, } from './hooks/useListProbeTemplateQuery';
196
196
  export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
@@ -507,11 +507,14 @@ export type { InfraContainerInfraUserInputs } from './schemas/InfraContainerInfr
507
507
  export type { InfraDeploymentType } from './schemas/InfraDeploymentType';
508
508
  export type { InfraEcsInstallationManifest } from './schemas/InfraEcsInstallationManifest';
509
509
  export type { InfraIdentifiers } from './schemas/InfraIdentifiers';
510
+ export type { InfraInfraFilterInput } from './schemas/InfraInfraFilterInput';
510
511
  export type { InfraInfraSpecificUserInputs } from './schemas/InfraInfraSpecificUserInputs';
511
512
  export type { InfraInfraType } from './schemas/InfraInfraType';
512
513
  export type { InfraInfraVersionDetails } from './schemas/InfraInfraVersionDetails';
513
514
  export type { InfraInstallationManifest } from './schemas/InfraInstallationManifest';
515
+ export type { InfraListInfraRequest } from './schemas/InfraListInfraRequest';
514
516
  export type { InfraListInfraResponse } from './schemas/InfraListInfraResponse';
517
+ export type { InfraPagination } from './schemas/InfraPagination';
515
518
  export type { InfraPlatformType } from './schemas/InfraPlatformType';
516
519
  export type { InfraRegisterInfraRequest } from './schemas/InfraRegisterInfraRequest';
517
520
  export type { InfraRegisterInfraResponse } from './schemas/InfraRegisterInfraResponse';
@@ -16,10 +16,6 @@ export interface ExperimentFaultRef {
16
16
  * Name of the fault reference
17
17
  */
18
18
  name?: string;
19
- /**
20
- * Revision of the fault reference
21
- */
22
- revision?: string;
23
19
  /**
24
20
  * Variables to store the variables
25
21
  */
@@ -1,4 +1,5 @@
1
1
  export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics {
2
+ applicationName?: string;
2
3
  durationInMin?: {};
3
4
  metricsFullPath?: string;
4
5
  }
@@ -0,0 +1,22 @@
1
+ export interface InfraInfraFilterInput {
2
+ /**
3
+ * ID of the infra
4
+ */
5
+ description?: string;
6
+ /**
7
+ * ID of the infra
8
+ */
9
+ infraID?: string;
10
+ /**
11
+ * Status of infra
12
+ */
13
+ isActive?: boolean;
14
+ /**
15
+ * Name of the infra
16
+ */
17
+ name?: string;
18
+ /**
19
+ * Tags of an infra
20
+ */
21
+ tags?: string[];
22
+ }
@@ -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 {};
@@ -0,0 +1,34 @@
1
+ import type { InfraInfraFilterInput } from '../schemas/InfraInfraFilterInput';
2
+ import type { InfraIdentifiers } from '../schemas/InfraIdentifiers';
3
+ import type { InfraInfraType } from '../schemas/InfraInfraType';
4
+ import type { InfraPagination } from '../schemas/InfraPagination';
5
+ export interface InfraListInfraRequest {
6
+ /**
7
+ * CorrelationId for the request
8
+ */
9
+ correlationId?: string;
10
+ /**
11
+ * Environment ID
12
+ */
13
+ environmentIDs?: string[];
14
+ /**
15
+ * Details for fetching filtered data
16
+ */
17
+ filter?: InfraInfraFilterInput;
18
+ /**
19
+ * Identifiers for the infra
20
+ */
21
+ identifiers?: InfraIdentifiers;
22
+ /**
23
+ * Array of infra IDs for which details will be fetched
24
+ */
25
+ infraIDs?: string[];
26
+ /**
27
+ * InfraType of the infra
28
+ */
29
+ infraType?: InfraInfraType;
30
+ /**
31
+ * Details for fetching paginated data
32
+ */
33
+ pagination?: InfraPagination;
34
+ }
@@ -0,0 +1,10 @@
1
+ export interface InfraPagination {
2
+ /**
3
+ * Number of data to be fetched
4
+ */
5
+ limit?: number;
6
+ /**
7
+ * Page number for which data will be fetched
8
+ */
9
+ page?: number;
10
+ }
@@ -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,3 +1,3 @@
1
1
  export interface ResourceQuantity {
2
- Format?: 'BinarySI' | 'DecimalExponent' | 'DecimalSI';
2
+ Format?: string;
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",