@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.
- package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListMachineChaosInfraQuery.d.ts +4 -1
- package/dist/chaos-manager/src/services/hooks/useListMachineChaosInfraQuery.js +2 -2
- package/dist/chaos-manager/src/services/hooks/useListProbesQuery.d.ts +3 -3
- package/dist/chaos-manager/src/services/index.d.ts +4 -1
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraInfraFilterInput.d.ts +22 -0
- package/dist/chaos-manager/src/services/schemas/InfraInfraFilterInput.js +4 -0
- package/dist/chaos-manager/src/services/schemas/InfraListInfraRequest.d.ts +34 -0
- package/dist/chaos-manager/src/services/schemas/InfraListInfraRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraPagination.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/InfraPagination.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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: '
|
|
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
|
-
|
|
9
|
+
search?: string;
|
|
10
10
|
tags?: string;
|
|
11
11
|
startDate?: string;
|
|
12
12
|
endDate?: string;
|
|
13
13
|
probeIDs?: string;
|
|
14
|
-
|
|
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
|
-
|
|
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';
|
|
@@ -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,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 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED