@harnessio/react-chaos-manager-client 1.91.6 → 1.91.7-beta.1
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/useCreateProbeTemplateMutation.d.ts +9 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRiskRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useCreateRiskRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetProbeTemplateQuery.d.ts +7 -1
- package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateV3Mutation.d.ts +34 -0
- package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +2 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.d.ts +37 -0
- package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.d.ts +32 -0
- package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.d.ts +39 -0
- package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.d.ts +31 -0
- package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.d.ts +36 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateMutation.d.ts +9 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskRuleMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskRuleMutation.js +1 -1
- package/dist/chaos-manager/src/services/index.d.ts +29 -0
- package/dist/chaos-manager/src/services/index.js +8 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosHubGitDefaults.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ChaosHubGitDefaults.js +4 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.js +0 -3
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.js +0 -3
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +15 -0
- package/dist/chaos-manager/src/services/schemas/EntityDetails.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/EntityDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/EntityStoreType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/EntityStoreType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/EntityValidityDetails.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/EntityValidityDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetExperimentRunResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentFailure.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentFailure.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentsResponse.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentsResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsStoppedExperimentRun.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsStoppedExperimentRun.js +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +36 -0
- package/dist/chaos-manager/src/services/schemas/ResolveSource.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ResolveSource.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ResolveUsed.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ResolveUsed.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScmCacheInfo.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/ScmCacheInfo.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScmCacheState.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ScmCacheState.js +4 -0
- package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.d.ts +39 -0
- package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.js +1 -0
- package/package.json +1 -1
|
@@ -6,6 +6,15 @@ export interface CreateProbeTemplateMutationQueryParams {
|
|
|
6
6
|
accountIdentifier: string;
|
|
7
7
|
organizationIdentifier: string;
|
|
8
8
|
projectIdentifier: string;
|
|
9
|
+
storeType?: string;
|
|
10
|
+
connectorRef?: string;
|
|
11
|
+
repoName?: string;
|
|
12
|
+
isHarnessCodeRepo?: boolean;
|
|
13
|
+
branch?: string;
|
|
14
|
+
filePath?: string;
|
|
15
|
+
commitMsg?: string;
|
|
16
|
+
isNewBranch?: boolean;
|
|
17
|
+
baseBranch?: string;
|
|
9
18
|
}
|
|
10
19
|
export type CreateProbeTemplateRequestBody = ChaosprobetemplateProbeTemplate;
|
|
11
20
|
export type CreateProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
|
|
@@ -24,6 +24,6 @@ export interface CreateRiskRuleResponseContainer {
|
|
|
24
24
|
export declare function createRiskRule(props: CreateRiskRuleProps): Promise<CreateRiskRuleResponseContainer>;
|
|
25
25
|
export type CreateRiskRuleMutationProps<T extends keyof CreateRiskRuleProps> = Omit<CreateRiskRuleProps, T> & Partial<Pick<CreateRiskRuleProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
* creates
|
|
27
|
+
* creates an account-scoped custom risk rule. accountIdentifier is stored on the rule; organization and project stay empty. Only the SourceCode data source is supported; spec.faults must be non-empty and on the chaos fault allowlist.
|
|
28
28
|
*/
|
|
29
29
|
export declare function useCreateRiskRuleMutation<T extends keyof CreateRiskRuleProps>(props: Pick<Partial<CreateRiskRuleProps>, T>, options?: Omit<UseMutationOptions<CreateRiskRuleResponseContainer, CreateRiskRuleErrorResponse, CreateRiskRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRiskRuleResponseContainer, SharedError, CreateRiskRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function createRiskRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risk-rules`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* creates
|
|
10
|
+
* creates an account-scoped custom risk rule. accountIdentifier is stored on the rule; organization and project stay empty. Only the SourceCode data source is supported; spec.faults must be non-empty and on the chaos fault allowlist.
|
|
11
11
|
*/
|
|
12
12
|
export function useCreateRiskRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => createRiskRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -24,6 +24,6 @@ export interface DeleteRiskRuleResponseContainer {
|
|
|
24
24
|
export declare function deleteRiskRule(props: DeleteRiskRuleProps): Promise<DeleteRiskRuleResponseContainer>;
|
|
25
25
|
export type DeleteRiskRuleMutationProps<T extends keyof DeleteRiskRuleProps> = Omit<DeleteRiskRuleProps, T> & Partial<Pick<DeleteRiskRuleProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
* soft-deletes
|
|
27
|
+
* soft-deletes an account-scoped custom risk rule. System rules cannot be deleted.
|
|
28
28
|
*/
|
|
29
29
|
export declare function useDeleteRiskRuleMutation<T extends keyof DeleteRiskRuleProps>(props: Pick<Partial<DeleteRiskRuleProps>, T>, options?: Omit<UseMutationOptions<DeleteRiskRuleResponseContainer, DeleteRiskRuleErrorResponse, DeleteRiskRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRiskRuleResponseContainer, SharedError, DeleteRiskRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function deleteRiskRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risk-rules/${props.identity}`, method: 'DELETE' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* soft-deletes
|
|
10
|
+
* soft-deletes an account-scoped custom risk rule. System rules cannot be deleted.
|
|
11
11
|
*/
|
|
12
12
|
export function useDeleteRiskRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => deleteRiskRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -11,10 +11,16 @@ export interface GetProbeTemplateQueryQueryParams {
|
|
|
11
11
|
projectIdentifier: string;
|
|
12
12
|
hubIdentity: string;
|
|
13
13
|
revision?: string;
|
|
14
|
+
versionLabel?: string;
|
|
15
|
+
branch?: string;
|
|
16
|
+
loadFromFallbackBranch?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface GetProbeTemplateQueryHeaderParams {
|
|
19
|
+
'Load-From-Cache'?: string;
|
|
14
20
|
}
|
|
15
21
|
export type GetProbeTemplateOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
|
|
16
22
|
export type GetProbeTemplateErrorResponse = ApiRestError;
|
|
17
|
-
export interface GetProbeTemplateProps extends GetProbeTemplateQueryPathParams, Omit<FetcherOptions<GetProbeTemplateQueryQueryParams, unknown>, 'url'> {
|
|
23
|
+
export interface GetProbeTemplateProps extends GetProbeTemplateQueryPathParams, Omit<FetcherOptions<GetProbeTemplateQueryQueryParams, unknown, GetProbeTemplateQueryHeaderParams>, 'url'> {
|
|
18
24
|
queryParams: GetProbeTemplateQueryQueryParams;
|
|
19
25
|
}
|
|
20
26
|
export interface GetProbeTemplateResponseContainer {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import type { ChaosprobetemplateImportProbeTemplateRequest } from '../schemas/ChaosprobetemplateImportProbeTemplateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface ImportProbeTemplateV3MutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
organizationIdentifier?: string;
|
|
10
|
+
parentUniqueId?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
connectorRef?: string;
|
|
13
|
+
repoName?: string;
|
|
14
|
+
isHarnessCodeRepo?: boolean;
|
|
15
|
+
branch?: string;
|
|
16
|
+
filePath: string;
|
|
17
|
+
}
|
|
18
|
+
export type ImportProbeTemplateV3RequestBody = ChaosprobetemplateImportProbeTemplateRequest;
|
|
19
|
+
export type ImportProbeTemplateV3OkResponse = ChaosprobetemplateProbeTemplate;
|
|
20
|
+
export type ImportProbeTemplateV3ErrorResponse = SharedError;
|
|
21
|
+
export interface ImportProbeTemplateV3Props extends Omit<FetcherOptions<ImportProbeTemplateV3MutationQueryParams, ImportProbeTemplateV3RequestBody>, 'url'> {
|
|
22
|
+
queryParams: ImportProbeTemplateV3MutationQueryParams;
|
|
23
|
+
body: ImportProbeTemplateV3RequestBody;
|
|
24
|
+
}
|
|
25
|
+
export interface ImportProbeTemplateV3ResponseContainer {
|
|
26
|
+
body: ImportProbeTemplateV3OkResponse;
|
|
27
|
+
headers: Headers;
|
|
28
|
+
}
|
|
29
|
+
export declare function importProbeTemplateV3(props: ImportProbeTemplateV3Props): Promise<ImportProbeTemplateV3ResponseContainer>;
|
|
30
|
+
export type ImportProbeTemplateV3MutationProps<T extends keyof ImportProbeTemplateV3Props> = Omit<ImportProbeTemplateV3Props, T> & Partial<Pick<ImportProbeTemplateV3Props, T>>;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a probe template revision from an existing file in Git. Nothing is committed.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useImportProbeTemplateV3Mutation<T extends keyof ImportProbeTemplateV3Props>(props: Pick<Partial<ImportProbeTemplateV3Props>, T>, options?: Omit<UseMutationOptions<ImportProbeTemplateV3ResponseContainer, ImportProbeTemplateV3ErrorResponse, ImportProbeTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportProbeTemplateV3ResponseContainer, SharedError, ImportProbeTemplateV3MutationProps<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 importProbeTemplateV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/probe-templates/import`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a probe template revision from an existing file in Git. Nothing is committed.
|
|
11
|
+
*/
|
|
12
|
+
export function useImportProbeTemplateV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => importProbeTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -19,6 +19,8 @@ export interface ListActionsQueryQueryParams {
|
|
|
19
19
|
infraType?: string;
|
|
20
20
|
entityType?: string;
|
|
21
21
|
includeAllScope?: string;
|
|
22
|
+
sortField?: 'createdAt' | 'identity' | 'infrastructureType' | 'lastUpdated' | 'name' | 'type';
|
|
23
|
+
sortAscending?: boolean;
|
|
22
24
|
}
|
|
23
25
|
export type ListActionsOkResponse = ActionsListActionTemplateResponse;
|
|
24
26
|
export type ListActionsErrorResponse = ApiRestError;
|
|
@@ -11,6 +11,7 @@ export interface ListVariablesInProbeTemplateQueryQueryParams {
|
|
|
11
11
|
projectIdentifier: string;
|
|
12
12
|
hubIdentity: string;
|
|
13
13
|
revision: string;
|
|
14
|
+
versionLabel?: string;
|
|
14
15
|
}
|
|
15
16
|
export type ListVariablesInProbeTemplateOkResponse = ChaosprobetemplateProbeTemplateVariables;
|
|
16
17
|
export type ListVariablesInProbeTemplateErrorResponse = ApiRestError;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface MoveProbeTemplateConfigV3MutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
revision: number;
|
|
8
|
+
}
|
|
9
|
+
export interface MoveProbeTemplateConfigV3MutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
hubIdentity?: string;
|
|
13
|
+
organizationIdentifier?: string;
|
|
14
|
+
parentUniqueId?: string;
|
|
15
|
+
projectIdentifier?: string;
|
|
16
|
+
moveConfigType: string;
|
|
17
|
+
connectorRef?: string;
|
|
18
|
+
repoName?: string;
|
|
19
|
+
branch?: string;
|
|
20
|
+
filePath?: string;
|
|
21
|
+
commitMsg?: string;
|
|
22
|
+
}
|
|
23
|
+
export type MoveProbeTemplateConfigV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
|
|
24
|
+
export type MoveProbeTemplateConfigV3ErrorResponse = SharedError;
|
|
25
|
+
export interface MoveProbeTemplateConfigV3Props extends MoveProbeTemplateConfigV3MutationPathParams, Omit<FetcherOptions<MoveProbeTemplateConfigV3MutationQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: MoveProbeTemplateConfigV3MutationQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export interface MoveProbeTemplateConfigV3ResponseContainer {
|
|
29
|
+
body: MoveProbeTemplateConfigV3OkResponse;
|
|
30
|
+
headers: Headers;
|
|
31
|
+
}
|
|
32
|
+
export declare function moveProbeTemplateConfigV3(props: MoveProbeTemplateConfigV3Props): Promise<MoveProbeTemplateConfigV3ResponseContainer>;
|
|
33
|
+
export type MoveProbeTemplateConfigV3MutationProps<T extends keyof MoveProbeTemplateConfigV3Props> = Omit<MoveProbeTemplateConfigV3Props, T> & Partial<Pick<MoveProbeTemplateConfigV3Props, T>>;
|
|
34
|
+
/**
|
|
35
|
+
* Moves a probe template revision between Harness and Git
|
|
36
|
+
*/
|
|
37
|
+
export declare function useMoveProbeTemplateConfigV3Mutation<T extends keyof MoveProbeTemplateConfigV3Props>(props: Pick<Partial<MoveProbeTemplateConfigV3Props>, T>, options?: Omit<UseMutationOptions<MoveProbeTemplateConfigV3ResponseContainer, MoveProbeTemplateConfigV3ErrorResponse, MoveProbeTemplateConfigV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveProbeTemplateConfigV3ResponseContainer, SharedError, MoveProbeTemplateConfigV3MutationProps<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 moveProbeTemplateConfigV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}/move-config`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Moves a probe template revision between Harness and Git
|
|
11
|
+
*/
|
|
12
|
+
export function useMoveProbeTemplateConfigV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => moveProbeTemplateConfigV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface RefreshProbeTemplateV3MutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
revision: number;
|
|
8
|
+
}
|
|
9
|
+
export interface RefreshProbeTemplateV3MutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
hubIdentity?: string;
|
|
13
|
+
organizationIdentifier?: string;
|
|
14
|
+
parentUniqueId?: string;
|
|
15
|
+
projectIdentifier?: string;
|
|
16
|
+
branch?: string;
|
|
17
|
+
}
|
|
18
|
+
export type RefreshProbeTemplateV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
|
|
19
|
+
export type RefreshProbeTemplateV3ErrorResponse = SharedError;
|
|
20
|
+
export interface RefreshProbeTemplateV3Props extends RefreshProbeTemplateV3MutationPathParams, Omit<FetcherOptions<RefreshProbeTemplateV3MutationQueryParams, unknown>, 'url'> {
|
|
21
|
+
queryParams: RefreshProbeTemplateV3MutationQueryParams;
|
|
22
|
+
}
|
|
23
|
+
export interface RefreshProbeTemplateV3ResponseContainer {
|
|
24
|
+
body: RefreshProbeTemplateV3OkResponse;
|
|
25
|
+
headers: Headers;
|
|
26
|
+
}
|
|
27
|
+
export declare function refreshProbeTemplateV3(props: RefreshProbeTemplateV3Props): Promise<RefreshProbeTemplateV3ResponseContainer>;
|
|
28
|
+
export type RefreshProbeTemplateV3MutationProps<T extends keyof RefreshProbeTemplateV3Props> = Omit<RefreshProbeTemplateV3Props, T> & Partial<Pick<RefreshProbeTemplateV3Props, T>>;
|
|
29
|
+
/**
|
|
30
|
+
* Reloads a probe template revision from Git
|
|
31
|
+
*/
|
|
32
|
+
export declare function useRefreshProbeTemplateV3Mutation<T extends keyof RefreshProbeTemplateV3Props>(props: Pick<Partial<RefreshProbeTemplateV3Props>, T>, options?: Omit<UseMutationOptions<RefreshProbeTemplateV3ResponseContainer, RefreshProbeTemplateV3ErrorResponse, RefreshProbeTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RefreshProbeTemplateV3ResponseContainer, SharedError, RefreshProbeTemplateV3MutationProps<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 refreshProbeTemplateV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}/refresh`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Reloads a probe template revision from Git
|
|
11
|
+
*/
|
|
12
|
+
export function useRefreshProbeTemplateV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => refreshProbeTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import type { V3SaveRevisionRequest } from '../schemas/V3SaveRevisionRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface SaveProbeTemplateRevisionV3MutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
revision: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SaveProbeTemplateRevisionV3MutationQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
correlationID?: string;
|
|
13
|
+
organizationIdentifier?: string;
|
|
14
|
+
parentUniqueId?: string;
|
|
15
|
+
projectIdentifier?: string;
|
|
16
|
+
branch?: string;
|
|
17
|
+
commitMsg?: string;
|
|
18
|
+
isNewBranch?: boolean;
|
|
19
|
+
baseBranch?: string;
|
|
20
|
+
lastObjectId?: string;
|
|
21
|
+
lastCommitId?: string;
|
|
22
|
+
}
|
|
23
|
+
export type SaveProbeTemplateRevisionV3RequestBody = V3SaveRevisionRequest;
|
|
24
|
+
export type SaveProbeTemplateRevisionV3OkResponse = ChaosprobetemplateProbeTemplate;
|
|
25
|
+
export type SaveProbeTemplateRevisionV3ErrorResponse = SharedError;
|
|
26
|
+
export interface SaveProbeTemplateRevisionV3Props extends SaveProbeTemplateRevisionV3MutationPathParams, Omit<FetcherOptions<SaveProbeTemplateRevisionV3MutationQueryParams, SaveProbeTemplateRevisionV3RequestBody>, 'url'> {
|
|
27
|
+
queryParams: SaveProbeTemplateRevisionV3MutationQueryParams;
|
|
28
|
+
body: SaveProbeTemplateRevisionV3RequestBody;
|
|
29
|
+
}
|
|
30
|
+
export interface SaveProbeTemplateRevisionV3ResponseContainer {
|
|
31
|
+
body: SaveProbeTemplateRevisionV3OkResponse;
|
|
32
|
+
headers: Headers;
|
|
33
|
+
}
|
|
34
|
+
export declare function saveProbeTemplateRevisionV3(props: SaveProbeTemplateRevisionV3Props): Promise<SaveProbeTemplateRevisionV3ResponseContainer>;
|
|
35
|
+
export type SaveProbeTemplateRevisionV3MutationProps<T extends keyof SaveProbeTemplateRevisionV3Props> = Omit<SaveProbeTemplateRevisionV3Props, T> & Partial<Pick<SaveProbeTemplateRevisionV3Props, T>>;
|
|
36
|
+
/**
|
|
37
|
+
* For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required.
|
|
38
|
+
*/
|
|
39
|
+
export declare function useSaveProbeTemplateRevisionV3Mutation<T extends keyof SaveProbeTemplateRevisionV3Props>(props: Pick<Partial<SaveProbeTemplateRevisionV3Props>, T>, options?: Omit<UseMutationOptions<SaveProbeTemplateRevisionV3ResponseContainer, SaveProbeTemplateRevisionV3ErrorResponse, SaveProbeTemplateRevisionV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveProbeTemplateRevisionV3ResponseContainer, SharedError, SaveProbeTemplateRevisionV3MutationProps<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 saveProbeTemplateRevisionV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required.
|
|
11
|
+
*/
|
|
12
|
+
export function useSaveProbeTemplateRevisionV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => saveProbeTemplateRevisionV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface SetDefaultProbeTemplateRevisionV3MutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
revision: number;
|
|
8
|
+
}
|
|
9
|
+
export interface SetDefaultProbeTemplateRevisionV3MutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
hubIdentity?: string;
|
|
13
|
+
organizationIdentifier?: string;
|
|
14
|
+
parentUniqueId?: string;
|
|
15
|
+
projectIdentifier?: string;
|
|
16
|
+
}
|
|
17
|
+
export type SetDefaultProbeTemplateRevisionV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
|
|
18
|
+
export type SetDefaultProbeTemplateRevisionV3ErrorResponse = SharedError;
|
|
19
|
+
export interface SetDefaultProbeTemplateRevisionV3Props extends SetDefaultProbeTemplateRevisionV3MutationPathParams, Omit<FetcherOptions<SetDefaultProbeTemplateRevisionV3MutationQueryParams, unknown>, 'url'> {
|
|
20
|
+
queryParams: SetDefaultProbeTemplateRevisionV3MutationQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export interface SetDefaultProbeTemplateRevisionV3ResponseContainer {
|
|
23
|
+
body: SetDefaultProbeTemplateRevisionV3OkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function setDefaultProbeTemplateRevisionV3(props: SetDefaultProbeTemplateRevisionV3Props): Promise<SetDefaultProbeTemplateRevisionV3ResponseContainer>;
|
|
27
|
+
export type SetDefaultProbeTemplateRevisionV3MutationProps<T extends keyof SetDefaultProbeTemplateRevisionV3Props> = Omit<SetDefaultProbeTemplateRevisionV3Props, T> & Partial<Pick<SetDefaultProbeTemplateRevisionV3Props, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* Marks a probe template revision as the default
|
|
30
|
+
*/
|
|
31
|
+
export declare function useSetDefaultProbeTemplateRevisionV3Mutation<T extends keyof SetDefaultProbeTemplateRevisionV3Props>(props: Pick<Partial<SetDefaultProbeTemplateRevisionV3Props>, T>, options?: Omit<UseMutationOptions<SetDefaultProbeTemplateRevisionV3ResponseContainer, SetDefaultProbeTemplateRevisionV3ErrorResponse, SetDefaultProbeTemplateRevisionV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SetDefaultProbeTemplateRevisionV3ResponseContainer, SharedError, SetDefaultProbeTemplateRevisionV3MutationProps<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 setDefaultProbeTemplateRevisionV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}/default`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Marks a probe template revision as the default
|
|
11
|
+
*/
|
|
12
|
+
export function useSetDefaultProbeTemplateRevisionV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => setDefaultProbeTemplateRevisionV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface SetDefaultProbeTemplateVersionV3MutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
versionLabel: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SetDefaultProbeTemplateVersionV3MutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
hubIdentity?: string;
|
|
13
|
+
organizationIdentifier?: string;
|
|
14
|
+
parentUniqueId?: string;
|
|
15
|
+
projectIdentifier?: string;
|
|
16
|
+
}
|
|
17
|
+
export type SetDefaultProbeTemplateVersionV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
|
|
18
|
+
export type SetDefaultProbeTemplateVersionV3ErrorResponse = SharedError;
|
|
19
|
+
export interface SetDefaultProbeTemplateVersionV3Props extends SetDefaultProbeTemplateVersionV3MutationPathParams, Omit<FetcherOptions<SetDefaultProbeTemplateVersionV3MutationQueryParams, unknown>, 'url'> {
|
|
20
|
+
queryParams: SetDefaultProbeTemplateVersionV3MutationQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export interface SetDefaultProbeTemplateVersionV3ResponseContainer {
|
|
23
|
+
body: SetDefaultProbeTemplateVersionV3OkResponse;
|
|
24
|
+
headers: Headers;
|
|
25
|
+
}
|
|
26
|
+
export declare function setDefaultProbeTemplateVersionV3(props: SetDefaultProbeTemplateVersionV3Props): Promise<SetDefaultProbeTemplateVersionV3ResponseContainer>;
|
|
27
|
+
export type SetDefaultProbeTemplateVersionV3MutationProps<T extends keyof SetDefaultProbeTemplateVersionV3Props> = Omit<SetDefaultProbeTemplateVersionV3Props, T> & Partial<Pick<SetDefaultProbeTemplateVersionV3Props, T>>;
|
|
28
|
+
/**
|
|
29
|
+
* Marks a probe template version as the default
|
|
30
|
+
*/
|
|
31
|
+
export declare function useSetDefaultProbeTemplateVersionV3Mutation<T extends keyof SetDefaultProbeTemplateVersionV3Props>(props: Pick<Partial<SetDefaultProbeTemplateVersionV3Props>, T>, options?: Omit<UseMutationOptions<SetDefaultProbeTemplateVersionV3ResponseContainer, SetDefaultProbeTemplateVersionV3ErrorResponse, SetDefaultProbeTemplateVersionV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SetDefaultProbeTemplateVersionV3ResponseContainer, SharedError, SetDefaultProbeTemplateVersionV3MutationProps<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 setDefaultProbeTemplateVersionV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/versions/${props.versionLabel}/default`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Marks a probe template version as the default
|
|
11
|
+
*/
|
|
12
|
+
export function useSetDefaultProbeTemplateVersionV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => setDefaultProbeTemplateVersionV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentrunsStopAllExperimentsResponse } from '../schemas/ExperimentrunsStopAllExperimentsResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface StopAllChaosExperimentsV3MutationQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
organizationIdentifier?: string;
|
|
9
|
+
parentUniqueId?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export type StopAllChaosExperimentsV3OkResponse = ExperimentrunsStopAllExperimentsResponse;
|
|
13
|
+
export type StopAllChaosExperimentsV3ErrorResponse = SharedError;
|
|
14
|
+
export interface StopAllChaosExperimentsV3Props extends Omit<FetcherOptions<StopAllChaosExperimentsV3MutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: StopAllChaosExperimentsV3MutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export interface StopAllChaosExperimentsV3ResponseContainer {
|
|
18
|
+
body: StopAllChaosExperimentsV3OkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function stopAllChaosExperimentsV3(props: StopAllChaosExperimentsV3Props): Promise<StopAllChaosExperimentsV3ResponseContainer>;
|
|
22
|
+
export type StopAllChaosExperimentsV3MutationProps<T extends keyof StopAllChaosExperimentsV3Props> = Omit<StopAllChaosExperimentsV3Props, T> & Partial<Pick<StopAllChaosExperimentsV3Props, T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Stops every experiment run in the Running or Queued phase for the requested account, organization, and project. A run that fails to stop is reported in the response and does not prevent the remaining runs from being stopped.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useStopAllChaosExperimentsV3Mutation<T extends keyof StopAllChaosExperimentsV3Props>(props: Pick<Partial<StopAllChaosExperimentsV3Props>, T>, options?: Omit<UseMutationOptions<StopAllChaosExperimentsV3ResponseContainer, StopAllChaosExperimentsV3ErrorResponse, StopAllChaosExperimentsV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<StopAllChaosExperimentsV3ResponseContainer, SharedError, StopAllChaosExperimentsV3MutationProps<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 stopAllChaosExperimentsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiment-runs/stop-all`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Stops every experiment run in the Running or Queued phase for the requested account, organization, and project. A run that fails to stop is reported in the response and does not prevent the remaining runs from being stopped.
|
|
11
|
+
*/
|
|
12
|
+
export function useStopAllChaosExperimentsV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => stopAllChaosExperimentsV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface UpdateProbeTemplateGitMetadataV3MutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
revision: number;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateProbeTemplateGitMetadataV3MutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
hubIdentity?: string;
|
|
13
|
+
organizationIdentifier?: string;
|
|
14
|
+
parentUniqueId?: string;
|
|
15
|
+
projectIdentifier?: string;
|
|
16
|
+
connectorRef?: string;
|
|
17
|
+
repoName?: string;
|
|
18
|
+
isHarnessCodeRepo?: boolean;
|
|
19
|
+
filePath?: string;
|
|
20
|
+
branch?: string;
|
|
21
|
+
}
|
|
22
|
+
export type UpdateProbeTemplateGitMetadataV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
|
|
23
|
+
export type UpdateProbeTemplateGitMetadataV3ErrorResponse = SharedError;
|
|
24
|
+
export interface UpdateProbeTemplateGitMetadataV3Props extends UpdateProbeTemplateGitMetadataV3MutationPathParams, Omit<FetcherOptions<UpdateProbeTemplateGitMetadataV3MutationQueryParams, unknown>, 'url'> {
|
|
25
|
+
queryParams: UpdateProbeTemplateGitMetadataV3MutationQueryParams;
|
|
26
|
+
}
|
|
27
|
+
export interface UpdateProbeTemplateGitMetadataV3ResponseContainer {
|
|
28
|
+
body: UpdateProbeTemplateGitMetadataV3OkResponse;
|
|
29
|
+
headers: Headers;
|
|
30
|
+
}
|
|
31
|
+
export declare function updateProbeTemplateGitMetadataV3(props: UpdateProbeTemplateGitMetadataV3Props): Promise<UpdateProbeTemplateGitMetadataV3ResponseContainer>;
|
|
32
|
+
export type UpdateProbeTemplateGitMetadataV3MutationProps<T extends keyof UpdateProbeTemplateGitMetadataV3Props> = Omit<UpdateProbeTemplateGitMetadataV3Props, T> & Partial<Pick<UpdateProbeTemplateGitMetadataV3Props, T>>;
|
|
33
|
+
/**
|
|
34
|
+
* The file at the new location must already exist and describe this revision.
|
|
35
|
+
*/
|
|
36
|
+
export declare function useUpdateProbeTemplateGitMetadataV3Mutation<T extends keyof UpdateProbeTemplateGitMetadataV3Props>(props: Pick<Partial<UpdateProbeTemplateGitMetadataV3Props>, T>, options?: Omit<UseMutationOptions<UpdateProbeTemplateGitMetadataV3ResponseContainer, UpdateProbeTemplateGitMetadataV3ErrorResponse, UpdateProbeTemplateGitMetadataV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProbeTemplateGitMetadataV3ResponseContainer, SharedError, UpdateProbeTemplateGitMetadataV3MutationProps<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 updateProbeTemplateGitMetadataV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}/git-metadata`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The file at the new location must already exist and describe this revision.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateProbeTemplateGitMetadataV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateProbeTemplateGitMetadataV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -10,6 +10,15 @@ export interface UpdateProbeTemplateMutationQueryParams {
|
|
|
10
10
|
organizationIdentifier: string;
|
|
11
11
|
projectIdentifier: string;
|
|
12
12
|
isDefault?: boolean;
|
|
13
|
+
storeType?: string;
|
|
14
|
+
connectorRef?: string;
|
|
15
|
+
repoName?: string;
|
|
16
|
+
isHarnessCodeRepo?: boolean;
|
|
17
|
+
branch?: string;
|
|
18
|
+
filePath?: string;
|
|
19
|
+
commitMsg?: string;
|
|
20
|
+
isNewBranch?: boolean;
|
|
21
|
+
baseBranch?: string;
|
|
13
22
|
}
|
|
14
23
|
export type UpdateProbeTemplateRequestBody = ChaosprobetemplateProbeTemplate;
|
|
15
24
|
export type UpdateProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
|
|
@@ -27,6 +27,6 @@ export interface UpdateRiskRuleResponseContainer {
|
|
|
27
27
|
export declare function updateRiskRule(props: UpdateRiskRuleProps): Promise<UpdateRiskRuleResponseContainer>;
|
|
28
28
|
export type UpdateRiskRuleMutationProps<T extends keyof UpdateRiskRuleProps> = Omit<UpdateRiskRuleProps, T> & Partial<Pick<UpdateRiskRuleProps, T>>;
|
|
29
29
|
/**
|
|
30
|
-
* replaces the mutable fields of
|
|
30
|
+
* replaces the mutable fields of an account-scoped custom risk rule. System rules cannot be updated.
|
|
31
31
|
*/
|
|
32
32
|
export declare function useUpdateRiskRuleMutation<T extends keyof UpdateRiskRuleProps>(props: Pick<Partial<UpdateRiskRuleProps>, T>, options?: Omit<UseMutationOptions<UpdateRiskRuleResponseContainer, UpdateRiskRuleErrorResponse, UpdateRiskRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRiskRuleResponseContainer, SharedError, UpdateRiskRuleMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function updateRiskRule(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/risk-rules/${props.identity}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* replaces the mutable fields of
|
|
10
|
+
* replaces the mutable fields of an account-scoped custom risk rule. System rules cannot be updated.
|
|
11
11
|
*/
|
|
12
12
|
export function useUpdateRiskRuleMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => updateRiskRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|