@harnessio/react-chaos-manager-client 1.33.0 → 1.34.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 (25) hide show
  1. package/dist/chaos-manager/src/services/hooks/useDeleteMachineChaosInfraMutation.d.ts +2 -0
  2. package/dist/chaos-manager/src/services/hooks/useGetExperimentTemplateRevisionsQuery.d.ts +1 -0
  3. package/dist/chaos-manager/src/services/hooks/useListExperimentTemplateQuery.d.ts +1 -0
  4. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +1 -0
  5. package/dist/chaos-manager/src/services/hooks/useListMachineChaosInfraQuery.d.ts +10 -0
  6. package/dist/chaos-manager/src/services/hooks/useRegisterMachineInfraMutation.d.ts +1 -0
  7. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionQuery.d.ts +25 -0
  8. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionQuery.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useUpdateMachineInfraMutation.d.ts +1 -0
  10. package/dist/chaos-manager/src/services/index.d.ts +3 -4
  11. package/dist/chaos-manager/src/services/index.js +1 -1
  12. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateCreateExperimentFromTemplateRequest.d.ts +4 -0
  13. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra.d.ts +5 -0
  14. package/dist/chaos-manager/src/services/schemas/InfraInfraStatus.d.ts +1 -0
  15. package/dist/chaos-manager/src/services/schemas/InfraListInfraRequest.d.ts +0 -19
  16. package/dist/chaos-manager/src/services/schemas/InfraRegisterInfraRequest.d.ts +0 -14
  17. package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraRequest.d.ts +0 -7
  18. package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraRequest.js +3 -0
  19. package/package.json +1 -1
  20. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionMutation.d.ts +0 -26
  21. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionMutation.js +0 -14
  22. package/dist/chaos-manager/src/services/schemas/InfraIdentifiers.d.ts +0 -5
  23. package/dist/chaos-manager/src/services/schemas/InfraPagination.d.ts +0 -10
  24. package/dist/chaos-manager/src/services/schemas/InfraPagination.js +0 -4
  25. /package/dist/chaos-manager/src/services/schemas/{InfraIdentifiers.js → InfraInfraStatus.js} +0 -0
@@ -8,6 +8,8 @@ export interface DeleteMachineChaosInfraMutationQueryParams {
8
8
  accountIdentifier: string;
9
9
  organizationIdentifier: string;
10
10
  projectIdentifier: string;
11
+ infraType: string;
12
+ forceDelete?: boolean;
11
13
  }
12
14
  export type DeleteMachineChaosInfraOkResponse = string;
13
15
  export type DeleteMachineChaosInfraErrorResponse = ApiRestError;
@@ -9,6 +9,7 @@ export interface GetExperimentTemplateRevisionsQueryQueryParams {
9
9
  accountIdentifier: string;
10
10
  correlationID?: string;
11
11
  hubIdentity?: string;
12
+ includeAllScope?: boolean;
12
13
  infrastructure?: 'KubernetesV2';
13
14
  infrastructureType?: 'Kubernetes';
14
15
  /**
@@ -6,6 +6,7 @@ export interface ListExperimentTemplateQueryQueryParams {
6
6
  accountIdentifier: string;
7
7
  correlationID?: string;
8
8
  hubIdentity?: string;
9
+ includeAllScope?: boolean;
9
10
  infrastructure?: 'KubernetesV2';
10
11
  infrastructureType?: 'Kubernetes';
11
12
  /**
@@ -6,6 +6,7 @@ export interface ListFaultTemplateQueryQueryParams {
6
6
  category?: string;
7
7
  correlationID?: string;
8
8
  hubIdentity?: string;
9
+ includeAllScope?: boolean;
9
10
  infrastructure?: 'KubernetesV2';
10
11
  infrastructureType?: 'Kubernetes';
11
12
  isEnterprise?: boolean;
@@ -8,6 +8,16 @@ export interface ListMachineChaosInfraQueryQueryParams {
8
8
  organizationIdentifier: string;
9
9
  projectIdentifier: string;
10
10
  minimalResponse?: boolean;
11
+ infraType: string;
12
+ /**
13
+ * @default 0
14
+ */
15
+ page: number;
16
+ /**
17
+ * @default 10
18
+ */
19
+ limit: number;
20
+ search?: string;
11
21
  }
12
22
  export type ListMachineChaosInfraRequestBody = InfraListInfraRequest;
13
23
  export type ListMachineChaosInfraOkResponse = InfraListInfraResponse;
@@ -7,6 +7,7 @@ export interface RegisterMachineInfraMutationQueryParams {
7
7
  accountIdentifier: string;
8
8
  organizationIdentifier: string;
9
9
  projectIdentifier: string;
10
+ infraType: string;
10
11
  }
11
12
  export type RegisterMachineInfraRequestBody = InfraRegisterInfraRequest;
12
13
  export type RegisterMachineInfraOkResponse = InfraRegisterInfraResponse;
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
+ export interface TestLegacyKubernetesChaosInfraConnectionQueryPathParams {
5
+ id: string;
6
+ }
7
+ export interface TestLegacyKubernetesChaosInfraConnectionQueryQueryParams {
8
+ accountIdentifier: string;
9
+ organizationIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type TestLegacyKubernetesChaosInfraConnectionOkResponse = boolean;
13
+ export type TestLegacyKubernetesChaosInfraConnectionErrorResponse = ApiRestError;
14
+ export interface TestLegacyKubernetesChaosInfraConnectionProps extends TestLegacyKubernetesChaosInfraConnectionQueryPathParams, Omit<FetcherOptions<TestLegacyKubernetesChaosInfraConnectionQueryQueryParams, unknown>, 'url'> {
15
+ queryParams: TestLegacyKubernetesChaosInfraConnectionQueryQueryParams;
16
+ }
17
+ export interface TestLegacyKubernetesChaosInfraConnectionResponseContainer {
18
+ body: TestLegacyKubernetesChaosInfraConnectionOkResponse;
19
+ headers: Headers;
20
+ }
21
+ export declare function testLegacyKubernetesChaosInfraConnection(props: TestLegacyKubernetesChaosInfraConnectionProps): Promise<TestLegacyKubernetesChaosInfraConnectionResponseContainer>;
22
+ /**
23
+ * Test legacy kubernetes chaos infrastructure connection
24
+ */
25
+ export declare function useTestLegacyKubernetesChaosInfraConnectionQuery(props: TestLegacyKubernetesChaosInfraConnectionProps, options?: Omit<UseQueryOptions<TestLegacyKubernetesChaosInfraConnectionResponseContainer, TestLegacyKubernetesChaosInfraConnectionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TestLegacyKubernetesChaosInfraConnectionResponseContainer, 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 testLegacyKubernetesChaosInfraConnection(props) {
7
+ return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/health`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Test legacy kubernetes chaos infrastructure connection
11
+ */
12
+ export function useTestLegacyKubernetesChaosInfraConnectionQuery(props, options) {
13
+ return useQuery(['testLegacyKubernetesChaosInfraConnection', props.id, props.queryParams], ({ signal }) => testLegacyKubernetesChaosInfraConnection(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -10,6 +10,7 @@ export interface UpdateMachineInfraMutationQueryParams {
10
10
  accountIdentifier: string;
11
11
  organizationIdentifier: string;
12
12
  projectIdentifier: string;
13
+ infraType: string;
13
14
  }
14
15
  export type UpdateMachineInfraRequestBody = InfraUpdateInfraRequest;
15
16
  export type UpdateMachineInfraOkResponse = InfraUpdateInfraResponse;
@@ -326,8 +326,8 @@ export type { StopChaosV2ExperimentErrorResponse, StopChaosV2ExperimentMutationP
326
326
  export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
327
327
  export type { StopOnboardingExperimentsErrorResponse, StopOnboardingExperimentsMutationPathParams, StopOnboardingExperimentsMutationProps, StopOnboardingExperimentsMutationQueryParams, StopOnboardingExperimentsOkResponse, StopOnboardingExperimentsProps, } from './hooks/useStopOnboardingExperimentsMutation';
328
328
  export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
329
- export type { TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionMutationPathParams, TestLegacyKubernetesChaosInfraConnectionMutationProps, TestLegacyKubernetesChaosInfraConnectionMutationQueryParams, TestLegacyKubernetesChaosInfraConnectionOkResponse, TestLegacyKubernetesChaosInfraConnectionProps, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionMutation';
330
- export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionMutation, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionMutation';
329
+ export type { TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionOkResponse, TestLegacyKubernetesChaosInfraConnectionProps, TestLegacyKubernetesChaosInfraConnectionQueryPathParams, TestLegacyKubernetesChaosInfraConnectionQueryQueryParams, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
330
+ export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
331
331
  export type { UpdateActionErrorResponse, UpdateActionMutationPathParams, UpdateActionMutationProps, UpdateActionMutationQueryParams, UpdateActionOkResponse, UpdateActionProps, UpdateActionRequestBody, } from './hooks/useUpdateActionMutation';
332
332
  export { updateAction, useUpdateActionMutation } from './hooks/useUpdateActionMutation';
333
333
  export type { UpdateActionTemplateErrorResponse, UpdateActionTemplateMutationPathParams, UpdateActionTemplateMutationProps, UpdateActionTemplateMutationQueryParams, UpdateActionTemplateOkResponse, UpdateActionTemplateProps, UpdateActionTemplateRequestBody, } from './hooks/useUpdateActionTemplateMutation';
@@ -721,15 +721,14 @@ export type { InfraContainerInfraInstallationManifest } from './schemas/InfraCon
721
721
  export type { InfraContainerInfraUserInputs } from './schemas/InfraContainerInfraUserInputs';
722
722
  export type { InfraDeploymentType } from './schemas/InfraDeploymentType';
723
723
  export type { InfraEcsInstallationManifest } from './schemas/InfraEcsInstallationManifest';
724
- export type { InfraIdentifiers } from './schemas/InfraIdentifiers';
725
724
  export type { InfraInfraFilterInput } from './schemas/InfraInfraFilterInput';
726
725
  export type { InfraInfraSpecificUserInputs } from './schemas/InfraInfraSpecificUserInputs';
726
+ export type { InfraInfraStatus } from './schemas/InfraInfraStatus';
727
727
  export type { InfraInfraType } from './schemas/InfraInfraType';
728
728
  export type { InfraInfraVersionDetails } from './schemas/InfraInfraVersionDetails';
729
729
  export type { InfraInstallationManifest } from './schemas/InfraInstallationManifest';
730
730
  export type { InfraListInfraRequest } from './schemas/InfraListInfraRequest';
731
731
  export type { InfraListInfraResponse } from './schemas/InfraListInfraResponse';
732
- export type { InfraPagination } from './schemas/InfraPagination';
733
732
  export type { InfraPlatformType } from './schemas/InfraPlatformType';
734
733
  export type { InfraRegisterInfraRequest } from './schemas/InfraRegisterInfraRequest';
735
734
  export type { InfraRegisterInfraResponse } from './schemas/InfraRegisterInfraResponse';
@@ -162,7 +162,7 @@ export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRun
162
162
  export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
163
163
  export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
164
164
  export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
165
- export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionMutation, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionMutation';
165
+ export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
166
166
  export { updateAction, useUpdateActionMutation } from './hooks/useUpdateActionMutation';
167
167
  export { updateActionTemplate, useUpdateActionTemplateMutation, } from './hooks/useUpdateActionTemplateMutation';
168
168
  export { updateChaosExperimentExecutionNode, useUpdateChaosExperimentExecutionNodeMutation, } from './hooks/useUpdateChaosExperimentExecutionNodeMutation';
@@ -3,7 +3,10 @@ export interface ChaosexperimenttemplateCreateExperimentFromTemplateRequest {
3
3
  * account id to access the resource
4
4
  */
5
5
  accountIdentifier: string;
6
+ description?: string;
7
+ identity?: string;
6
8
  infraRef?: string;
9
+ name: string;
7
10
  /**
8
11
  * organization id to access the resource
9
12
  */
@@ -12,4 +15,5 @@ export interface ChaosexperimenttemplateCreateExperimentFromTemplateRequest {
12
15
  * project id to access the resource
13
16
  */
14
17
  projectIdentifier?: string;
18
+ tags?: string[];
15
19
  }
@@ -1,4 +1,5 @@
1
1
  import type { InfraUserDetails } from '../schemas/InfraUserDetails';
2
+ import type { InfraInfraStatus } from '../schemas/InfraInfraStatus';
2
3
  import type { InfraRegisterInfraUserInputs } from '../schemas/InfraRegisterInfraUserInputs';
3
4
  export interface GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra {
4
5
  /**
@@ -61,6 +62,10 @@ export interface GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra {
61
62
  * Timestamp when the infra got connected
62
63
  */
63
64
  startTime?: string;
65
+ /**
66
+ * Status of the infrastructure
67
+ */
68
+ status?: InfraInfraStatus;
64
69
  /**
65
70
  * Tags of the infra
66
71
  */
@@ -0,0 +1 @@
1
+ export type InfraInfraStatus = 'ACTIVE' | 'INACTIVE' | 'PENDING';
@@ -1,13 +1,6 @@
1
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
2
  import type { InfraV2SortInput } from '../schemas/InfraV2SortInput';
6
3
  export interface InfraListInfraRequest {
7
- /**
8
- * CorrelationID for the request
9
- */
10
- correlationId?: string;
11
4
  /**
12
5
  * Environment ID
13
6
  */
@@ -16,22 +9,10 @@ export interface InfraListInfraRequest {
16
9
  * Details for fetching filtered data
17
10
  */
18
11
  filter?: InfraInfraFilterInput;
19
- /**
20
- * Identifiers for the infra
21
- */
22
- identifiers?: InfraIdentifiers;
23
12
  /**
24
13
  * Array of infra IDs for which details will be fetched
25
14
  */
26
15
  infraIDs?: string[];
27
- /**
28
- * InfraType of the infra
29
- */
30
- infraType?: InfraInfraType;
31
- /**
32
- * Details for fetching paginated data
33
- */
34
- pagination?: InfraPagination;
35
16
  /**
36
17
  * Sort the infrastructures based on field
37
18
  */
@@ -1,12 +1,6 @@
1
1
  import type { InfraUserDetails } from '../schemas/InfraUserDetails';
2
- import type { InfraIdentifiers } from '../schemas/InfraIdentifiers';
3
- import type { InfraInfraType } from '../schemas/InfraInfraType';
4
2
  import type { InfraRegisterInfraUserInputs } from '../schemas/InfraRegisterInfraUserInputs';
5
3
  export interface InfraRegisterInfraRequest {
6
- /**
7
- * CorrelationID for the request
8
- */
9
- correlationId?: string;
10
4
  /**
11
5
  * CreatedBy for the infra
12
6
  */
@@ -19,14 +13,6 @@ export interface InfraRegisterInfraRequest {
19
13
  * Environment ID for the infra
20
14
  */
21
15
  environmentID?: string;
22
- /**
23
- * Identifier for the infra
24
- */
25
- identifier?: InfraIdentifiers;
26
- /**
27
- * InfraType of the infra
28
- */
29
- infraType?: InfraInfraType;
30
16
  /**
31
17
  * Name of the infra
32
18
  */
@@ -1,13 +1,6 @@
1
- import type { InfraIdentifiers } from '../schemas/InfraIdentifiers';
2
- import type { InfraInfraType } from '../schemas/InfraInfraType';
3
1
  export interface InfraUpdateInfraRequest {
4
- correlationID?: string;
5
2
  description?: string;
6
3
  environmentID?: string;
7
- identifier?: InfraIdentifiers;
8
- infraID?: string;
9
- infraType?: InfraInfraType;
10
4
  name?: string;
11
5
  tags?: string[];
12
- userID?: string;
13
6
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
1
4
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.33.0",
3
+ "version": "1.34.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,26 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ApiRestError } from '../schemas/ApiRestError';
3
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
- export interface TestLegacyKubernetesChaosInfraConnectionMutationPathParams {
5
- id: string;
6
- }
7
- export interface TestLegacyKubernetesChaosInfraConnectionMutationQueryParams {
8
- accountIdentifier: string;
9
- organizationIdentifier: string;
10
- projectIdentifier: string;
11
- }
12
- export type TestLegacyKubernetesChaosInfraConnectionOkResponse = boolean;
13
- export type TestLegacyKubernetesChaosInfraConnectionErrorResponse = ApiRestError;
14
- export interface TestLegacyKubernetesChaosInfraConnectionProps extends TestLegacyKubernetesChaosInfraConnectionMutationPathParams, Omit<FetcherOptions<TestLegacyKubernetesChaosInfraConnectionMutationQueryParams, unknown>, 'url'> {
15
- queryParams: TestLegacyKubernetesChaosInfraConnectionMutationQueryParams;
16
- }
17
- export interface TestLegacyKubernetesChaosInfraConnectionResponseContainer {
18
- body: TestLegacyKubernetesChaosInfraConnectionOkResponse;
19
- headers: Headers;
20
- }
21
- export declare function testLegacyKubernetesChaosInfraConnection(props: TestLegacyKubernetesChaosInfraConnectionProps): Promise<TestLegacyKubernetesChaosInfraConnectionResponseContainer>;
22
- export type TestLegacyKubernetesChaosInfraConnectionMutationProps<T extends keyof TestLegacyKubernetesChaosInfraConnectionProps> = Omit<TestLegacyKubernetesChaosInfraConnectionProps, T> & Partial<Pick<TestLegacyKubernetesChaosInfraConnectionProps, T>>;
23
- /**
24
- * Test legacy kubernetes chaos infrastructure connection
25
- */
26
- export declare function useTestLegacyKubernetesChaosInfraConnectionMutation<T extends keyof TestLegacyKubernetesChaosInfraConnectionProps>(props: Pick<Partial<TestLegacyKubernetesChaosInfraConnectionProps>, T>, options?: Omit<UseMutationOptions<TestLegacyKubernetesChaosInfraConnectionResponseContainer, TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TestLegacyKubernetesChaosInfraConnectionResponseContainer, ApiRestError, TestLegacyKubernetesChaosInfraConnectionMutationProps<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 testLegacyKubernetesChaosInfraConnection(props) {
7
- return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/health`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Test legacy kubernetes chaos infrastructure connection
11
- */
12
- export function useTestLegacyKubernetesChaosInfraConnectionMutation(props, options) {
13
- return useMutation((mutateProps) => testLegacyKubernetesChaosInfraConnection(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,5 +0,0 @@
1
- export interface InfraIdentifiers {
2
- accountIdentifier?: string;
3
- orgIdentifier?: string;
4
- projectIdentifier?: string;
5
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};