@harnessio/react-chaos-manager-client 1.35.0 → 1.37.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/useUpdateRecommendationStatusMutation.js +1 -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/ChaosfaultChaosFault.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultRequest.d.ts +4 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultResponse.d.ts +4 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaultGetFaultResponse.d.ts +4 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultRequest.d.ts +4 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultResponse.d.ts +4 -1
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateChaosFaultTemplate.d.ts +0 -2
- package/dist/chaos-manager/src/services/schemas/CommonImportType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/CommonImportType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/FaultTemplateReference.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/FaultTemplateReference.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
|
+
}
|
|
@@ -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
|
|
@@ -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';
|
|
@@ -540,6 +542,7 @@ export type { ChaosserviceusageServiceDataResponse } from './schemas/Chaosservic
|
|
|
540
542
|
export type { ChaosserviceusageServiceType } from './schemas/ChaosserviceusageServiceType';
|
|
541
543
|
export type { ChaosserviceusageStatsByType } from './schemas/ChaosserviceusageStatsByType';
|
|
542
544
|
export type { ChaosserviceusageUsageStats } from './schemas/ChaosserviceusageUsageStats';
|
|
545
|
+
export type { CommonImportType } from './schemas/CommonImportType';
|
|
543
546
|
export type { CommonTypesExperimentRunStats } from './schemas/CommonTypesExperimentRunStats';
|
|
544
547
|
export type { CommonTypesExperimentRunsData } from './schemas/CommonTypesExperimentRunsData';
|
|
545
548
|
export type { DatabaseAgentConfiguration } from './schemas/DatabaseAgentConfiguration';
|
|
@@ -618,6 +621,7 @@ export type { ExperimenttemplateVertex } from './schemas/ExperimenttemplateVerte
|
|
|
618
621
|
export type { ExperimenttemplateVertexChild } from './schemas/ExperimenttemplateVertexChild';
|
|
619
622
|
export type { ExperimenttemplateVertexResource } from './schemas/ExperimenttemplateVertexResource';
|
|
620
623
|
export type { FaultLink } from './schemas/FaultLink';
|
|
624
|
+
export type { FaultTemplateReference } from './schemas/FaultTemplateReference';
|
|
621
625
|
export type { FaulttemplateApplicationTarget } from './schemas/FaulttemplateApplicationTarget';
|
|
622
626
|
export type { FaulttemplateAuth } from './schemas/FaulttemplateAuth';
|
|
623
627
|
export type { FaulttemplateAwsAuth } from './schemas/FaulttemplateAwsAuth';
|
|
@@ -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';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from '../schemas/GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails';
|
|
2
|
+
import type { MongodbImportType } from '../schemas/MongodbImportType';
|
|
2
3
|
import type { ChaosfaultLink } from '../schemas/ChaosfaultLink';
|
|
3
4
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
4
5
|
export interface ChaosfaultChaosFault {
|
|
@@ -17,6 +18,7 @@ export interface ChaosfaultChaosFault {
|
|
|
17
18
|
* Unique identifier (human-readable) immutable
|
|
18
19
|
*/
|
|
19
20
|
identity: string;
|
|
21
|
+
importType?: MongodbImportType;
|
|
20
22
|
infraType?: string;
|
|
21
23
|
infras?: string[];
|
|
22
24
|
isEnterprise?: boolean;
|
|
@@ -28,6 +30,9 @@ export interface ChaosfaultChaosFault {
|
|
|
28
30
|
projectID?: string;
|
|
29
31
|
tags?: string[];
|
|
30
32
|
template?: string;
|
|
33
|
+
templateReference?: string;
|
|
34
|
+
templateRevision?: string;
|
|
35
|
+
templateUid?: string;
|
|
31
36
|
type?: string;
|
|
32
37
|
updatedAt?: number;
|
|
33
38
|
updatedBy?: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { CommonImportType } from '../schemas/CommonImportType';
|
|
1
2
|
import type { FaultLink } from '../schemas/FaultLink';
|
|
2
3
|
import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
|
|
4
|
+
import type { FaultTemplateReference } from '../schemas/FaultTemplateReference';
|
|
3
5
|
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
4
6
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
5
7
|
export interface ChaosfaultCreateFaultRequest {
|
|
@@ -7,6 +9,7 @@ export interface ChaosfaultCreateFaultRequest {
|
|
|
7
9
|
category?: string[];
|
|
8
10
|
description?: string;
|
|
9
11
|
identity: string;
|
|
12
|
+
importType?: CommonImportType;
|
|
10
13
|
infraType?: string;
|
|
11
14
|
infras?: string[];
|
|
12
15
|
kind?: string;
|
|
@@ -15,7 +18,7 @@ export interface ChaosfaultCreateFaultRequest {
|
|
|
15
18
|
permissionsRequired?: string;
|
|
16
19
|
spec?: FaulttemplateSpec;
|
|
17
20
|
tags?: string[];
|
|
18
|
-
templateReference?:
|
|
21
|
+
templateReference?: FaultTemplateReference;
|
|
19
22
|
type?: string;
|
|
20
23
|
updatedAt?: number;
|
|
21
24
|
values?: TemplateVariableMinimum[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { CommonImportType } from '../schemas/CommonImportType';
|
|
1
2
|
import type { FaultLink } from '../schemas/FaultLink';
|
|
2
3
|
import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
|
|
4
|
+
import type { FaultTemplateReference } from '../schemas/FaultTemplateReference';
|
|
3
5
|
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
4
6
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
5
7
|
export interface ChaosfaultCreateFaultResponse {
|
|
@@ -8,6 +10,7 @@ export interface ChaosfaultCreateFaultResponse {
|
|
|
8
10
|
correlationID?: string;
|
|
9
11
|
description?: string;
|
|
10
12
|
identity: string;
|
|
13
|
+
importType?: CommonImportType;
|
|
11
14
|
infraType?: string;
|
|
12
15
|
infras?: string[];
|
|
13
16
|
kind?: string;
|
|
@@ -16,7 +19,7 @@ export interface ChaosfaultCreateFaultResponse {
|
|
|
16
19
|
permissionsRequired?: string;
|
|
17
20
|
spec?: FaulttemplateSpec;
|
|
18
21
|
tags?: string[];
|
|
19
|
-
templateReference?:
|
|
22
|
+
templateReference?: FaultTemplateReference;
|
|
20
23
|
type?: string;
|
|
21
24
|
updatedAt?: number;
|
|
22
25
|
values?: TemplateVariableMinimum[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { CommonImportType } from '../schemas/CommonImportType';
|
|
1
2
|
import type { FaultLink } from '../schemas/FaultLink';
|
|
2
3
|
import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
|
|
4
|
+
import type { FaultTemplateReference } from '../schemas/FaultTemplateReference';
|
|
3
5
|
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
4
6
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
5
7
|
export interface ChaosfaultGetFaultResponse {
|
|
@@ -8,6 +10,7 @@ export interface ChaosfaultGetFaultResponse {
|
|
|
8
10
|
correlationID?: string;
|
|
9
11
|
description?: string;
|
|
10
12
|
identity: string;
|
|
13
|
+
importType?: CommonImportType;
|
|
11
14
|
infraType?: string;
|
|
12
15
|
infras?: string[];
|
|
13
16
|
isEnterprise?: boolean;
|
|
@@ -17,7 +20,7 @@ export interface ChaosfaultGetFaultResponse {
|
|
|
17
20
|
permissionsRequired?: string;
|
|
18
21
|
spec?: FaulttemplateSpec;
|
|
19
22
|
tags?: string[];
|
|
20
|
-
templateReference?:
|
|
23
|
+
templateReference?: FaultTemplateReference;
|
|
21
24
|
type?: string;
|
|
22
25
|
updatedAt?: number;
|
|
23
26
|
values?: TemplateVariableMinimum[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { CommonImportType } from '../schemas/CommonImportType';
|
|
1
2
|
import type { FaultLink } from '../schemas/FaultLink';
|
|
2
3
|
import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
|
|
4
|
+
import type { FaultTemplateReference } from '../schemas/FaultTemplateReference';
|
|
3
5
|
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
4
6
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
5
7
|
export interface ChaosfaultUpdateFaultRequest {
|
|
@@ -7,6 +9,7 @@ export interface ChaosfaultUpdateFaultRequest {
|
|
|
7
9
|
category?: string[];
|
|
8
10
|
description?: string;
|
|
9
11
|
identity: string;
|
|
12
|
+
importType?: CommonImportType;
|
|
10
13
|
infraType?: string;
|
|
11
14
|
infras?: string[];
|
|
12
15
|
kind?: string;
|
|
@@ -15,7 +18,7 @@ export interface ChaosfaultUpdateFaultRequest {
|
|
|
15
18
|
permissionsRequired?: string;
|
|
16
19
|
spec?: FaulttemplateSpec;
|
|
17
20
|
tags?: string[];
|
|
18
|
-
templateReference?:
|
|
21
|
+
templateReference?: FaultTemplateReference;
|
|
19
22
|
type?: string;
|
|
20
23
|
updatedAt?: number;
|
|
21
24
|
values?: TemplateVariableMinimum[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { CommonImportType } from '../schemas/CommonImportType';
|
|
1
2
|
import type { FaultLink } from '../schemas/FaultLink';
|
|
2
3
|
import type { FaulttemplateSpec } from '../schemas/FaulttemplateSpec';
|
|
4
|
+
import type { FaultTemplateReference } from '../schemas/FaultTemplateReference';
|
|
3
5
|
import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
|
|
4
6
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
5
7
|
export interface ChaosfaultUpdateFaultResponse {
|
|
@@ -8,6 +10,7 @@ export interface ChaosfaultUpdateFaultResponse {
|
|
|
8
10
|
correlationID?: string;
|
|
9
11
|
description?: string;
|
|
10
12
|
identity: string;
|
|
13
|
+
importType?: CommonImportType;
|
|
11
14
|
infraType?: string;
|
|
12
15
|
infras?: string[];
|
|
13
16
|
kind?: string;
|
|
@@ -16,7 +19,7 @@ export interface ChaosfaultUpdateFaultResponse {
|
|
|
16
19
|
permissionsRequired?: string;
|
|
17
20
|
spec?: FaulttemplateSpec;
|
|
18
21
|
tags?: string[];
|
|
19
|
-
templateReference?:
|
|
22
|
+
templateReference?: FaultTemplateReference;
|
|
20
23
|
type?: string;
|
|
21
24
|
updatedAt?: number;
|
|
22
25
|
values?: TemplateVariableMinimum[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CommonImportType = 'LOCAL' | 'REFERENCE';
|
package/package.json
CHANGED