@harnessio/react-chaos-manager-client 1.36.0 → 1.38.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/useBulkUpdateRecommendationStatusMutation.d.ts +25 -0
- package/dist/chaos-manager/src/services/hooks/useBulkUpdateRecommendationStatusMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateLegacyKubernetesChaosInfraMutation.d.ts +2 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateRecommendationStatusMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.d.ts +2 -1
- package/dist/chaos-manager/src/services/index.d.ts +4 -0
- package/dist/chaos-manager/src/services/index.js +1 -0
- package/dist/chaos-manager/src/services/schemas/KubernetesInfraUpdateKubernetesInfrastructureResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/KubernetesInfraUpdateKubernetesInfrastructureResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/KubernetesInfraUpgradeKubernetesInfrastructureResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/KubernetesInfraUpgradeKubernetesInfrastructureResponse.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
3
|
+
export interface BulkUpdateRecommendationStatusMutationQueryParams {
|
|
4
|
+
accountIdentifier: string;
|
|
5
|
+
organizationIdentifier: string;
|
|
6
|
+
projectIdentifier: string;
|
|
7
|
+
status: string;
|
|
8
|
+
}
|
|
9
|
+
export type BulkUpdateRecommendationStatusRequestBody = string[];
|
|
10
|
+
export type BulkUpdateRecommendationStatusOkResponse = unknown;
|
|
11
|
+
export type BulkUpdateRecommendationStatusErrorResponse = unknown;
|
|
12
|
+
export interface BulkUpdateRecommendationStatusProps extends Omit<FetcherOptions<BulkUpdateRecommendationStatusMutationQueryParams, BulkUpdateRecommendationStatusRequestBody>, 'url'> {
|
|
13
|
+
queryParams: BulkUpdateRecommendationStatusMutationQueryParams;
|
|
14
|
+
body: BulkUpdateRecommendationStatusRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export interface BulkUpdateRecommendationStatusResponseContainer {
|
|
17
|
+
body: BulkUpdateRecommendationStatusOkResponse;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
}
|
|
20
|
+
export declare function bulkUpdateRecommendationStatus(props: BulkUpdateRecommendationStatusProps): Promise<BulkUpdateRecommendationStatusResponseContainer>;
|
|
21
|
+
export type BulkUpdateRecommendationStatusMutationProps<T extends keyof BulkUpdateRecommendationStatusProps> = Omit<BulkUpdateRecommendationStatusProps, T> & Partial<Pick<BulkUpdateRecommendationStatusProps, T>>;
|
|
22
|
+
/**
|
|
23
|
+
* Bulk update the recommendation status
|
|
24
|
+
*/
|
|
25
|
+
export declare function useBulkUpdateRecommendationStatusMutation<T extends keyof BulkUpdateRecommendationStatusProps>(props: Pick<Partial<BulkUpdateRecommendationStatusProps>, T>, options?: Omit<UseMutationOptions<BulkUpdateRecommendationStatusResponseContainer, BulkUpdateRecommendationStatusErrorResponse, BulkUpdateRecommendationStatusMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<BulkUpdateRecommendationStatusResponseContainer, unknown, BulkUpdateRecommendationStatusMutationProps<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 bulkUpdateRecommendationStatus(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/recommendations/status`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Bulk update the recommendation status
|
|
11
|
+
*/
|
|
12
|
+
export function useBulkUpdateRecommendationStatusMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => bulkUpdateRecommendationStatus(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useUpdateLegacyKubernetesChaosInfraMutation.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { KubernetesInfraUpdateKubernetesInfrastructureResponse } from '../schemas/KubernetesInfraUpdateKubernetesInfrastructureResponse';
|
|
2
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
4
|
import type { ModelUpdateInfraRequest } from '../schemas/ModelUpdateInfraRequest';
|
|
4
5
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
@@ -11,7 +12,7 @@ export interface UpdateLegacyKubernetesChaosInfraMutationQueryParams {
|
|
|
11
12
|
projectIdentifier: string;
|
|
12
13
|
}
|
|
13
14
|
export type UpdateLegacyKubernetesChaosInfraRequestBody = ModelUpdateInfraRequest;
|
|
14
|
-
export type UpdateLegacyKubernetesChaosInfraOkResponse =
|
|
15
|
+
export type UpdateLegacyKubernetesChaosInfraOkResponse = KubernetesInfraUpdateKubernetesInfrastructureResponse;
|
|
15
16
|
export type UpdateLegacyKubernetesChaosInfraErrorResponse = ApiRestError;
|
|
16
17
|
export interface UpdateLegacyKubernetesChaosInfraProps extends UpdateLegacyKubernetesChaosInfraMutationPathParams, Omit<FetcherOptions<UpdateLegacyKubernetesChaosInfraMutationQueryParams, UpdateLegacyKubernetesChaosInfraRequestBody>, 'url'> {
|
|
17
18
|
queryParams: UpdateLegacyKubernetesChaosInfraMutationQueryParams;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
6
|
export function updateRecommendationStatus(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/rest/recommendations/status`, method: '
|
|
7
|
+
return fetcher(Object.assign({ url: `/rest/recommendations/status`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Update the recommendation status
|
package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { KubernetesInfraUpgradeKubernetesInfrastructureResponse } from '../schemas/KubernetesInfraUpgradeKubernetesInfrastructureResponse';
|
|
2
3
|
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
5
|
export interface UpgradeLegacyKubernetesChaosInfraMutationPathParams {
|
|
@@ -9,7 +10,7 @@ export interface UpgradeLegacyKubernetesChaosInfraMutationQueryParams {
|
|
|
9
10
|
organizationIdentifier: string;
|
|
10
11
|
projectIdentifier: string;
|
|
11
12
|
}
|
|
12
|
-
export type UpgradeLegacyKubernetesChaosInfraOkResponse =
|
|
13
|
+
export type UpgradeLegacyKubernetesChaosInfraOkResponse = KubernetesInfraUpgradeKubernetesInfrastructureResponse;
|
|
13
14
|
export type UpgradeLegacyKubernetesChaosInfraErrorResponse = ApiRestError;
|
|
14
15
|
export interface UpgradeLegacyKubernetesChaosInfraProps extends UpgradeLegacyKubernetesChaosInfraMutationPathParams, Omit<FetcherOptions<UpgradeLegacyKubernetesChaosInfraMutationQueryParams, unknown>, 'url'> {
|
|
15
16
|
queryParams: UpgradeLegacyKubernetesChaosInfraMutationQueryParams;
|
|
@@ -4,6 +4,8 @@ export type { BulkExperimentDeleteErrorResponse, BulkExperimentDeleteMutationPro
|
|
|
4
4
|
export { bulkExperimentDelete, useBulkExperimentDeleteMutation, } from './hooks/useBulkExperimentDeleteMutation';
|
|
5
5
|
export type { BulkExperimentTagAddErrorResponse, BulkExperimentTagAddMutationProps, BulkExperimentTagAddMutationQueryParams, BulkExperimentTagAddOkResponse, BulkExperimentTagAddProps, BulkExperimentTagAddRequestBody, } from './hooks/useBulkExperimentTagAddMutation';
|
|
6
6
|
export { bulkExperimentTagAdd, useBulkExperimentTagAddMutation, } from './hooks/useBulkExperimentTagAddMutation';
|
|
7
|
+
export type { BulkUpdateRecommendationStatusErrorResponse, BulkUpdateRecommendationStatusMutationProps, BulkUpdateRecommendationStatusMutationQueryParams, BulkUpdateRecommendationStatusOkResponse, BulkUpdateRecommendationStatusProps, BulkUpdateRecommendationStatusRequestBody, } from './hooks/useBulkUpdateRecommendationStatusMutation';
|
|
8
|
+
export { bulkUpdateRecommendationStatus, useBulkUpdateRecommendationStatusMutation, } from './hooks/useBulkUpdateRecommendationStatusMutation';
|
|
7
9
|
export type { CanRetryExperimentCreationErrorResponse, CanRetryExperimentCreationOkResponse, CanRetryExperimentCreationProps, CanRetryExperimentCreationQueryPathParams, CanRetryExperimentCreationQueryQueryParams, } from './hooks/useCanRetryExperimentCreationQuery';
|
|
8
10
|
export { canRetryExperimentCreation, useCanRetryExperimentCreationQuery, } from './hooks/useCanRetryExperimentCreationQuery';
|
|
9
11
|
export type { CompareExperimentTemplateRevisionsErrorResponse, CompareExperimentTemplateRevisionsOkResponse, CompareExperimentTemplateRevisionsProps, CompareExperimentTemplateRevisionsQueryPathParams, CompareExperimentTemplateRevisionsQueryQueryParams, } from './hooks/useCompareExperimentTemplateRevisionsQuery';
|
|
@@ -795,6 +797,8 @@ export type { K8sIoApimachineryPkgApisMetaV1ConditionStatus } from './schemas/K8
|
|
|
795
797
|
export type { K8sinfraGetInfraTokenResponse } from './schemas/K8sinfraGetInfraTokenResponse';
|
|
796
798
|
export type { K8sinfraUpdateEmissaryUrlRequest } from './schemas/K8sinfraUpdateEmissaryUrlRequest';
|
|
797
799
|
export type { K8sinfraUpdateEmissaryUrlResponse } from './schemas/K8sinfraUpdateEmissaryUrlResponse';
|
|
800
|
+
export type { KubernetesInfraUpdateKubernetesInfrastructureResponse } from './schemas/KubernetesInfraUpdateKubernetesInfrastructureResponse';
|
|
801
|
+
export type { KubernetesInfraUpgradeKubernetesInfrastructureResponse } from './schemas/KubernetesInfraUpgradeKubernetesInfrastructureResponse';
|
|
798
802
|
export type { ModelClusterType } from './schemas/ModelClusterType';
|
|
799
803
|
export type { ModelConditionDetails } from './schemas/ModelConditionDetails';
|
|
800
804
|
export type { ModelDateRange } from './schemas/ModelDateRange';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { addNote, useAddNoteMutation } from './hooks/useAddNoteMutation';
|
|
2
2
|
export { bulkExperimentDelete, useBulkExperimentDeleteMutation, } from './hooks/useBulkExperimentDeleteMutation';
|
|
3
3
|
export { bulkExperimentTagAdd, useBulkExperimentTagAddMutation, } from './hooks/useBulkExperimentTagAddMutation';
|
|
4
|
+
export { bulkUpdateRecommendationStatus, useBulkUpdateRecommendationStatusMutation, } from './hooks/useBulkUpdateRecommendationStatusMutation';
|
|
4
5
|
export { canRetryExperimentCreation, useCanRetryExperimentCreationQuery, } from './hooks/useCanRetryExperimentCreationQuery';
|
|
5
6
|
export { compareExperimentTemplateRevisions, useCompareExperimentTemplateRevisionsQuery, } from './hooks/useCompareExperimentTemplateRevisionsQuery';
|
|
6
7
|
export { compareFaultTemplateRevisions, useCompareFaultTemplateRevisionsQuery, } from './hooks/useCompareFaultTemplateRevisionsQuery';
|
package/package.json
CHANGED