@harnessio/react-chaos-manager-client 1.91.7-beta.0 → 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.
Files changed (43) hide show
  1. package/dist/chaos-manager/src/services/hooks/useGetProbeTemplateQuery.d.ts +1 -0
  2. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateV3Mutation.d.ts +34 -0
  3. package/dist/chaos-manager/src/services/hooks/{useImportProbeTemplateMutation.js → useImportProbeTemplateV3Mutation.js} +4 -4
  4. package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +2 -0
  5. package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.d.ts +1 -0
  6. package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.d.ts +1 -0
  7. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.d.ts +37 -0
  8. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.d.ts +32 -0
  10. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.js +14 -0
  11. package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.d.ts +39 -0
  12. package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.js +14 -0
  13. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.d.ts +31 -0
  14. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.d.ts +31 -0
  16. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.js +14 -0
  17. package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.d.ts +26 -0
  18. package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.js +14 -0
  19. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.d.ts +36 -0
  20. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.js +14 -0
  21. package/dist/chaos-manager/src/services/index.d.ts +20 -10
  22. package/dist/chaos-manager/src/services/index.js +8 -5
  23. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.d.ts +7 -1
  24. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +7 -0
  25. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentFailure.d.ts +5 -0
  26. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentFailure.js +4 -0
  27. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentsResponse.d.ts +11 -0
  28. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentsResponse.js +1 -0
  29. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStoppedExperimentRun.d.ts +5 -0
  30. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStoppedExperimentRun.js +4 -0
  31. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +9 -0
  32. package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.d.ts +39 -0
  33. package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.js +1 -0
  34. package/package.json +1 -1
  35. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateMutation.d.ts +0 -32
  36. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.d.ts +0 -35
  37. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.js +0 -14
  38. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.d.ts +0 -29
  39. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.js +0 -14
  40. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.d.ts +0 -34
  41. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.js +0 -14
  42. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.d.ts +0 -36
  43. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.js +0 -14
@@ -11,6 +11,7 @@ export interface GetProbeTemplateQueryQueryParams {
11
11
  projectIdentifier: string;
12
12
  hubIdentity: string;
13
13
  revision?: string;
14
+ versionLabel?: string;
14
15
  branch?: string;
15
16
  loadFromFallbackBranch?: boolean;
16
17
  }
@@ -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>;
@@ -3,12 +3,12 @@
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function importProbeTemplate(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/import`, method: 'POST' }, props));
6
+ export function importProbeTemplateV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/probe-templates/import`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Creates a probe template revision from an existing file in Git. Nothing is committed.
11
11
  */
12
- export function useImportProbeTemplateMutation(props, options) {
13
- return useMutation((mutateProps) => importProbeTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
12
+ export function useImportProbeTemplateV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => importProbeTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
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;
@@ -7,6 +7,7 @@ export interface ListChaosHubQueryQueryParams {
7
7
  organizationIdentifier: string;
8
8
  projectIdentifier: string;
9
9
  search: string;
10
+ tags?: string;
10
11
  includeAllScope: boolean;
11
12
  /**
12
13
  * @default 0
@@ -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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -312,8 +312,8 @@ export type { ImportActionErrorResponse, ImportActionMutationProps, ImportAction
312
312
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
313
313
  export type { ImportProbeErrorResponse, ImportProbeMutationProps, ImportProbeMutationQueryParams, ImportProbeOkResponse, ImportProbeProps, ImportProbeRequestBody, } from './hooks/useImportProbeMutation';
314
314
  export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
315
- export type { ImportProbeTemplateErrorResponse, ImportProbeTemplateMutationProps, ImportProbeTemplateMutationQueryParams, ImportProbeTemplateOkResponse, ImportProbeTemplateProps, ImportProbeTemplateRequestBody, } from './hooks/useImportProbeTemplateMutation';
316
- export { importProbeTemplate, useImportProbeTemplateMutation, } from './hooks/useImportProbeTemplateMutation';
315
+ export type { ImportProbeTemplateV3ErrorResponse, ImportProbeTemplateV3MutationProps, ImportProbeTemplateV3MutationQueryParams, ImportProbeTemplateV3OkResponse, ImportProbeTemplateV3Props, ImportProbeTemplateV3RequestBody, } from './hooks/useImportProbeTemplateV3Mutation';
316
+ export { importProbeTemplateV3, useImportProbeTemplateV3Mutation, } from './hooks/useImportProbeTemplateV3Mutation';
317
317
  export type { InternalAbortRiskScanErrorResponse, InternalAbortRiskScanMutationProps, InternalAbortRiskScanMutationQueryParams, InternalAbortRiskScanOkResponse, InternalAbortRiskScanProps, InternalAbortRiskScanRequestBody, } from './hooks/useInternalAbortRiskScanMutation';
318
318
  export { internalAbortRiskScan, useInternalAbortRiskScanMutation, } from './hooks/useInternalAbortRiskScanMutation';
319
319
  export type { ListActionMetadataErrorResponse, ListActionMetadataOkResponse, ListActionMetadataProps, ListActionMetadataQueryQueryParams, ListActionMetadataRequestBody, } from './hooks/useListActionMetadataQuery';
@@ -462,8 +462,8 @@ export type { ListVariablesInActionTemplateErrorResponse, ListVariablesInActionT
462
462
  export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
463
463
  export type { ListVariablesInProbeTemplateErrorResponse, ListVariablesInProbeTemplateOkResponse, ListVariablesInProbeTemplateProps, ListVariablesInProbeTemplateQueryPathParams, ListVariablesInProbeTemplateQueryQueryParams, } from './hooks/useListVariablesInProbeTemplateQuery';
464
464
  export { listVariablesInProbeTemplate, useListVariablesInProbeTemplateQuery, } from './hooks/useListVariablesInProbeTemplateQuery';
465
- export type { MoveProbeTemplateConfigErrorResponse, MoveProbeTemplateConfigMutationPathParams, MoveProbeTemplateConfigMutationProps, MoveProbeTemplateConfigMutationQueryParams, MoveProbeTemplateConfigOkResponse, MoveProbeTemplateConfigProps, } from './hooks/useMoveProbeTemplateConfigMutation';
466
- export { moveProbeTemplateConfig, useMoveProbeTemplateConfigMutation, } from './hooks/useMoveProbeTemplateConfigMutation';
465
+ export type { MoveProbeTemplateConfigV3ErrorResponse, MoveProbeTemplateConfigV3MutationPathParams, MoveProbeTemplateConfigV3MutationProps, MoveProbeTemplateConfigV3MutationQueryParams, MoveProbeTemplateConfigV3OkResponse, MoveProbeTemplateConfigV3Props, } from './hooks/useMoveProbeTemplateConfigV3Mutation';
466
+ export { moveProbeTemplateConfigV3, useMoveProbeTemplateConfigV3Mutation, } from './hooks/useMoveProbeTemplateConfigV3Mutation';
467
467
  export type { OnboardServicesErrorResponse, OnboardServicesMutationPathParams, OnboardServicesMutationProps, OnboardServicesMutationQueryParams, OnboardServicesOkResponse, OnboardServicesProps, OnboardServicesRequestBody, } from './hooks/useOnboardServicesMutation';
468
468
  export { onboardServices, useOnboardServicesMutation } from './hooks/useOnboardServicesMutation';
469
469
  export type { OnboardingConfirmDiscoveryErrorResponse, OnboardingConfirmDiscoveryMutationPathParams, OnboardingConfirmDiscoveryMutationProps, OnboardingConfirmDiscoveryMutationQueryParams, OnboardingConfirmDiscoveryOkResponse, OnboardingConfirmDiscoveryProps, } from './hooks/useOnboardingConfirmDiscoveryMutation';
@@ -490,8 +490,8 @@ export type { ProcessTemplateErrorResponse, ProcessTemplateMutationProps, Proces
490
490
  export { processTemplate, useProcessTemplateMutation } from './hooks/useProcessTemplateMutation';
491
491
  export type { RecommendationEventErrorResponse, RecommendationEventMutationProps, RecommendationEventOkResponse, RecommendationEventProps, RecommendationEventRequestBody, } from './hooks/useRecommendationEventMutation';
492
492
  export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
493
- export type { RefreshProbeTemplateErrorResponse, RefreshProbeTemplateMutationPathParams, RefreshProbeTemplateMutationProps, RefreshProbeTemplateMutationQueryParams, RefreshProbeTemplateOkResponse, RefreshProbeTemplateProps, } from './hooks/useRefreshProbeTemplateMutation';
494
- export { refreshProbeTemplate, useRefreshProbeTemplateMutation, } from './hooks/useRefreshProbeTemplateMutation';
493
+ export type { RefreshProbeTemplateV3ErrorResponse, RefreshProbeTemplateV3MutationPathParams, RefreshProbeTemplateV3MutationProps, RefreshProbeTemplateV3MutationQueryParams, RefreshProbeTemplateV3OkResponse, RefreshProbeTemplateV3Props, } from './hooks/useRefreshProbeTemplateV3Mutation';
494
+ export { refreshProbeTemplateV3, useRefreshProbeTemplateV3Mutation, } from './hooks/useRefreshProbeTemplateV3Mutation';
495
495
  export type { RegisterInfraV2ErrorResponse, RegisterInfraV2MutationProps, RegisterInfraV2MutationQueryParams, RegisterInfraV2OkResponse, RegisterInfraV2Props, RegisterInfraV2RequestBody, } from './hooks/useRegisterInfraV2Mutation';
496
496
  export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
497
497
  export type { RegisterLegacyKubernetesInfraErrorResponse, RegisterLegacyKubernetesInfraMutationProps, RegisterLegacyKubernetesInfraMutationQueryParams, RegisterLegacyKubernetesInfraOkResponse, RegisterLegacyKubernetesInfraProps, RegisterLegacyKubernetesInfraRequestBody, } from './hooks/useRegisterLegacyKubernetesInfraMutation';
@@ -520,8 +520,16 @@ export type { RunRecommendationErrorResponse, RunRecommendationMutationProps, Ru
520
520
  export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRunRecommendationMutation';
521
521
  export type { SaveChaosV2ExperimentErrorResponse, SaveChaosV2ExperimentMutationProps, SaveChaosV2ExperimentMutationQueryParams, SaveChaosV2ExperimentOkResponse, SaveChaosV2ExperimentProps, SaveChaosV2ExperimentRequestBody, } from './hooks/useSaveChaosV2ExperimentMutation';
522
522
  export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
523
+ export type { SaveProbeTemplateRevisionV3ErrorResponse, SaveProbeTemplateRevisionV3MutationPathParams, SaveProbeTemplateRevisionV3MutationProps, SaveProbeTemplateRevisionV3MutationQueryParams, SaveProbeTemplateRevisionV3OkResponse, SaveProbeTemplateRevisionV3Props, SaveProbeTemplateRevisionV3RequestBody, } from './hooks/useSaveProbeTemplateRevisionV3Mutation';
524
+ export { saveProbeTemplateRevisionV3, useSaveProbeTemplateRevisionV3Mutation, } from './hooks/useSaveProbeTemplateRevisionV3Mutation';
525
+ export type { SetDefaultProbeTemplateRevisionV3ErrorResponse, SetDefaultProbeTemplateRevisionV3MutationPathParams, SetDefaultProbeTemplateRevisionV3MutationProps, SetDefaultProbeTemplateRevisionV3MutationQueryParams, SetDefaultProbeTemplateRevisionV3OkResponse, SetDefaultProbeTemplateRevisionV3Props, } from './hooks/useSetDefaultProbeTemplateRevisionV3Mutation';
526
+ export { setDefaultProbeTemplateRevisionV3, useSetDefaultProbeTemplateRevisionV3Mutation, } from './hooks/useSetDefaultProbeTemplateRevisionV3Mutation';
527
+ export type { SetDefaultProbeTemplateVersionV3ErrorResponse, SetDefaultProbeTemplateVersionV3MutationPathParams, SetDefaultProbeTemplateVersionV3MutationProps, SetDefaultProbeTemplateVersionV3MutationQueryParams, SetDefaultProbeTemplateVersionV3OkResponse, SetDefaultProbeTemplateVersionV3Props, } from './hooks/useSetDefaultProbeTemplateVersionV3Mutation';
528
+ export { setDefaultProbeTemplateVersionV3, useSetDefaultProbeTemplateVersionV3Mutation, } from './hooks/useSetDefaultProbeTemplateVersionV3Mutation';
523
529
  export type { SkipOnboardingErrorResponse, SkipOnboardingMutationPathParams, SkipOnboardingMutationProps, SkipOnboardingMutationQueryParams, SkipOnboardingOkResponse, SkipOnboardingProps, } from './hooks/useSkipOnboardingMutation';
524
530
  export { skipOnboarding, useSkipOnboardingMutation } from './hooks/useSkipOnboardingMutation';
531
+ export type { StopAllChaosExperimentsV3ErrorResponse, StopAllChaosExperimentsV3MutationProps, StopAllChaosExperimentsV3MutationQueryParams, StopAllChaosExperimentsV3OkResponse, StopAllChaosExperimentsV3Props, } from './hooks/useStopAllChaosExperimentsV3Mutation';
532
+ export { stopAllChaosExperimentsV3, useStopAllChaosExperimentsV3Mutation, } from './hooks/useStopAllChaosExperimentsV3Mutation';
525
533
  export type { StopChaosExperimentV3ErrorResponse, StopChaosExperimentV3MutationPathParams, StopChaosExperimentV3MutationProps, StopChaosExperimentV3MutationQueryParams, StopChaosExperimentV3OkResponse, StopChaosExperimentV3Props, StopChaosExperimentV3RequestBody, } from './hooks/useStopChaosExperimentV3Mutation';
526
534
  export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hooks/useStopChaosExperimentV3Mutation';
527
535
  export type { StopChaosV2ExperimentErrorResponse, StopChaosV2ExperimentMutationPathParams, StopChaosV2ExperimentMutationProps, StopChaosV2ExperimentMutationQueryParams, StopChaosV2ExperimentOkResponse, StopChaosV2ExperimentProps, } from './hooks/useStopChaosV2ExperimentMutation';
@@ -586,12 +594,10 @@ export type { UpdateNoteErrorResponse, UpdateNoteMutationProps, UpdateNoteMutati
586
594
  export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation';
587
595
  export type { UpdateProbeErrorResponse, UpdateProbeMutationPathParams, UpdateProbeMutationProps, UpdateProbeMutationQueryParams, UpdateProbeOkResponse, UpdateProbeProps, UpdateProbeRequestBody, } from './hooks/useUpdateProbeMutation';
588
596
  export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
589
- export type { UpdateProbeTemplateGitMetadataErrorResponse, UpdateProbeTemplateGitMetadataMutationPathParams, UpdateProbeTemplateGitMetadataMutationProps, UpdateProbeTemplateGitMetadataMutationQueryParams, UpdateProbeTemplateGitMetadataOkResponse, UpdateProbeTemplateGitMetadataProps, } from './hooks/useUpdateProbeTemplateGitMetadataMutation';
590
- export { updateProbeTemplateGitMetadata, useUpdateProbeTemplateGitMetadataMutation, } from './hooks/useUpdateProbeTemplateGitMetadataMutation';
597
+ export type { UpdateProbeTemplateGitMetadataV3ErrorResponse, UpdateProbeTemplateGitMetadataV3MutationPathParams, UpdateProbeTemplateGitMetadataV3MutationProps, UpdateProbeTemplateGitMetadataV3MutationQueryParams, UpdateProbeTemplateGitMetadataV3OkResponse, UpdateProbeTemplateGitMetadataV3Props, } from './hooks/useUpdateProbeTemplateGitMetadataV3Mutation';
598
+ export { updateProbeTemplateGitMetadataV3, useUpdateProbeTemplateGitMetadataV3Mutation, } from './hooks/useUpdateProbeTemplateGitMetadataV3Mutation';
591
599
  export type { UpdateProbeTemplateErrorResponse, UpdateProbeTemplateMutationPathParams, UpdateProbeTemplateMutationProps, UpdateProbeTemplateMutationQueryParams, UpdateProbeTemplateOkResponse, UpdateProbeTemplateProps, UpdateProbeTemplateRequestBody, } from './hooks/useUpdateProbeTemplateMutation';
592
600
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
593
- export type { UpdateProbeTemplateRevisionErrorResponse, UpdateProbeTemplateRevisionMutationPathParams, UpdateProbeTemplateRevisionMutationProps, UpdateProbeTemplateRevisionMutationQueryParams, UpdateProbeTemplateRevisionOkResponse, UpdateProbeTemplateRevisionProps, UpdateProbeTemplateRevisionRequestBody, } from './hooks/useUpdateProbeTemplateRevisionMutation';
594
- export { updateProbeTemplateRevision, useUpdateProbeTemplateRevisionMutation, } from './hooks/useUpdateProbeTemplateRevisionMutation';
595
601
  export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatusMutationProps, UpdateRecommendationStatusMutationQueryParams, UpdateRecommendationStatusOkResponse, UpdateRecommendationStatusProps, } from './hooks/useUpdateRecommendationStatusMutation';
596
602
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
597
603
  export type { UpdateRiskErrorResponse, UpdateRiskMutationPathParams, UpdateRiskMutationProps, UpdateRiskMutationQueryParams, UpdateRiskOkResponse, UpdateRiskProps, UpdateRiskRequestBody, } from './hooks/useUpdateRiskMutation';
@@ -948,8 +954,11 @@ export type { ExperimentrunsListExperimentRunItem } from './schemas/Experimentru
948
954
  export type { ExperimentrunsListExperimentRunsResponse } from './schemas/ExperimentrunsListExperimentRunsResponse';
949
955
  export type { ExperimentrunsRunBody } from './schemas/ExperimentrunsRunBody';
950
956
  export type { ExperimentrunsRunExperimentResponse } from './schemas/ExperimentrunsRunExperimentResponse';
957
+ export type { ExperimentrunsStopAllExperimentFailure } from './schemas/ExperimentrunsStopAllExperimentFailure';
958
+ export type { ExperimentrunsStopAllExperimentsResponse } from './schemas/ExperimentrunsStopAllExperimentsResponse';
951
959
  export type { ExperimentrunsStopExperimentBody } from './schemas/ExperimentrunsStopExperimentBody';
952
960
  export type { ExperimentrunsStopExperimentResponse } from './schemas/ExperimentrunsStopExperimentResponse';
961
+ export type { ExperimentrunsStoppedExperimentRun } from './schemas/ExperimentrunsStoppedExperimentRun';
953
962
  export type { ExperimentsAuditInfo } from './schemas/ExperimentsAuditInfo';
954
963
  export type { ExperimentsCreateRequest } from './schemas/ExperimentsCreateRequest';
955
964
  export type { ExperimentsCreateResponse } from './schemas/ExperimentsCreateResponse';
@@ -1755,6 +1764,7 @@ export type { V3ListExperimentData } from './schemas/V3ListExperimentData';
1755
1764
  export type { V3ListExperimentOrTemplateResponse } from './schemas/V3ListExperimentOrTemplateResponse';
1756
1765
  export type { V3ProcessTemplateRequest } from './schemas/V3ProcessTemplateRequest';
1757
1766
  export type { V3ProcessTemplateResponse } from './schemas/V3ProcessTemplateResponse';
1767
+ export type { V3SaveRevisionRequest } from './schemas/V3SaveRevisionRequest';
1758
1768
  export type { V3TriggerRiskScanRequest } from './schemas/V3TriggerRiskScanRequest';
1759
1769
  export type { V3TriggerRiskScanResponse } from './schemas/V3TriggerRiskScanResponse';
1760
1770
  export type { V3TriggerRiskScanResponseData } from './schemas/V3TriggerRiskScanResponseData';
@@ -155,7 +155,7 @@ export { getV2Onboarding, useGetV2OnboardingQuery } from './hooks/useGetV2Onboar
155
155
  export { healthCheckV3, useHealthCheckV3Query } from './hooks/useHealthCheckV3Query';
156
156
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
157
157
  export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
158
- export { importProbeTemplate, useImportProbeTemplateMutation, } from './hooks/useImportProbeTemplateMutation';
158
+ export { importProbeTemplateV3, useImportProbeTemplateV3Mutation, } from './hooks/useImportProbeTemplateV3Mutation';
159
159
  export { internalAbortRiskScan, useInternalAbortRiskScanMutation, } from './hooks/useInternalAbortRiskScanMutation';
160
160
  export { listActionMetadata, useListActionMetadataQuery } from './hooks/useListActionMetadataQuery';
161
161
  export { listActionReferencedBy, useListActionReferencedByQuery, } from './hooks/useListActionReferencedByQuery';
@@ -230,7 +230,7 @@ export { listTargetNetworkMaps, useListTargetNetworkMapsQuery, } from './hooks/u
230
230
  export { listV2Onboarding, useListV2OnboardingQuery } from './hooks/useListV2OnboardingQuery';
231
231
  export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
232
232
  export { listVariablesInProbeTemplate, useListVariablesInProbeTemplateQuery, } from './hooks/useListVariablesInProbeTemplateQuery';
233
- export { moveProbeTemplateConfig, useMoveProbeTemplateConfigMutation, } from './hooks/useMoveProbeTemplateConfigMutation';
233
+ export { moveProbeTemplateConfigV3, useMoveProbeTemplateConfigV3Mutation, } from './hooks/useMoveProbeTemplateConfigV3Mutation';
234
234
  export { onboardServices, useOnboardServicesMutation } from './hooks/useOnboardServicesMutation';
235
235
  export { onboardingConfirmDiscovery, useOnboardingConfirmDiscoveryMutation, } from './hooks/useOnboardingConfirmDiscoveryMutation';
236
236
  export { onboardingConfirmExperimentCreation, useOnboardingConfirmExperimentCreationMutation, } from './hooks/useOnboardingConfirmExperimentCreationMutation';
@@ -244,7 +244,7 @@ export { pipelineOnboardChaos, usePipelineOnboardChaosMutation, } from './hooks/
244
244
  export { pipelineOnboardChaosStatus, usePipelineOnboardChaosStatusQuery, } from './hooks/usePipelineOnboardChaosStatusQuery';
245
245
  export { processTemplate, useProcessTemplateMutation } from './hooks/useProcessTemplateMutation';
246
246
  export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
247
- export { refreshProbeTemplate, useRefreshProbeTemplateMutation, } from './hooks/useRefreshProbeTemplateMutation';
247
+ export { refreshProbeTemplateV3, useRefreshProbeTemplateV3Mutation, } from './hooks/useRefreshProbeTemplateV3Mutation';
248
248
  export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
249
249
  export { registerLegacyKubernetesInfra, useRegisterLegacyKubernetesInfraMutation, } from './hooks/useRegisterLegacyKubernetesInfraMutation';
250
250
  export { registerMachineInfra, useRegisterMachineInfraMutation, } from './hooks/useRegisterMachineInfraMutation';
@@ -259,7 +259,11 @@ export { runChaosV2Experiment, useRunChaosV2ExperimentMutation, } from './hooks/
259
259
  export { runChaosV2InternalApi, useRunChaosV2InternalApiMutation, } from './hooks/useRunChaosV2InternalApiMutation';
260
260
  export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRunRecommendationMutation';
261
261
  export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
262
+ export { saveProbeTemplateRevisionV3, useSaveProbeTemplateRevisionV3Mutation, } from './hooks/useSaveProbeTemplateRevisionV3Mutation';
263
+ export { setDefaultProbeTemplateRevisionV3, useSetDefaultProbeTemplateRevisionV3Mutation, } from './hooks/useSetDefaultProbeTemplateRevisionV3Mutation';
264
+ export { setDefaultProbeTemplateVersionV3, useSetDefaultProbeTemplateVersionV3Mutation, } from './hooks/useSetDefaultProbeTemplateVersionV3Mutation';
262
265
  export { skipOnboarding, useSkipOnboardingMutation } from './hooks/useSkipOnboardingMutation';
266
+ export { stopAllChaosExperimentsV3, useStopAllChaosExperimentsV3Mutation, } from './hooks/useStopAllChaosExperimentsV3Mutation';
263
267
  export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hooks/useStopChaosExperimentV3Mutation';
264
268
  export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
265
269
  export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
@@ -292,9 +296,8 @@ export { updateLegacyKubernetesChaosInfra, useUpdateLegacyKubernetesChaosInfraMu
292
296
  export { updateMachineInfra, useUpdateMachineInfraMutation, } from './hooks/useUpdateMachineInfraMutation';
293
297
  export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation';
294
298
  export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
295
- export { updateProbeTemplateGitMetadata, useUpdateProbeTemplateGitMetadataMutation, } from './hooks/useUpdateProbeTemplateGitMetadataMutation';
299
+ export { updateProbeTemplateGitMetadataV3, useUpdateProbeTemplateGitMetadataV3Mutation, } from './hooks/useUpdateProbeTemplateGitMetadataV3Mutation';
296
300
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
297
- export { updateProbeTemplateRevision, useUpdateProbeTemplateRevisionMutation, } from './hooks/useUpdateProbeTemplateRevisionMutation';
298
301
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
299
302
  export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation';
300
303
  export { updateRiskRule, useUpdateRiskRuleMutation } from './hooks/useUpdateRiskRuleMutation';
@@ -7,7 +7,13 @@ export interface ChaosprobetemplateImportProbeTemplateRequest {
7
7
  */
8
8
  isDefault?: boolean;
9
9
  /**
10
- * Revision of the file; 0 means "take it from the file".
10
+ * Revision is the internal revision number to import as; 0 assigns one
11
+ * (see importRevision).
11
12
  */
12
13
  revision?: number;
14
+ /**
15
+ * VersionLabel, when set, must equal the file's versionLabel (platform
16
+ * import checks requested metadata against the file).
17
+ */
18
+ versionLabel?: string;
13
19
  }
@@ -29,4 +29,11 @@ export interface ChaosprobetemplateProbeTemplate {
29
29
  tags?: string[];
30
30
  type?: ProbeProbeType;
31
31
  variables?: TemplateVariable[];
32
+ /**
33
+ * VersionLabel names the revision (platform versionLabel). Optional on
34
+ * create and save-as-new-revision (defaults to the revision number),
35
+ * immutable afterwards. Kept out of the stored `template` YAML so an
36
+ * edited manifest cannot carry an old label into a new revision.
37
+ */
38
+ versionLabel?: string;
32
39
  }
@@ -0,0 +1,5 @@
1
+ export interface ExperimentrunsStopAllExperimentFailure {
2
+ experimentId?: string;
3
+ experimentRunId?: string;
4
+ message?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { ExperimentrunsStopAllExperimentFailure } from '../schemas/ExperimentrunsStopAllExperimentFailure';
2
+ import type { ExperimentrunsStoppedExperimentRun } from '../schemas/ExperimentrunsStoppedExperimentRun';
3
+ export interface ExperimentrunsStopAllExperimentsResponse {
4
+ /**
5
+ * correlation id is used to debug micro svc communication
6
+ */
7
+ correlationID?: string;
8
+ failed?: ExperimentrunsStopAllExperimentFailure[];
9
+ stopped?: ExperimentrunsStoppedExperimentRun[];
10
+ stoppedCount?: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ export interface ExperimentrunsStoppedExperimentRun {
2
+ experimentId?: string;
3
+ experimentName?: string;
4
+ experimentRunId?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -74,4 +74,13 @@ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprob
74
74
  updatedBy?: string;
75
75
  updatedByUserDetails?: GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails;
76
76
  variables?: TemplateVariable[];
77
+ /**
78
+ * VersionLabel is the user-facing name of this revision (platform
79
+ * versionLabel): "v1.1.0", or the revision number when the author gave
80
+ * none. Immutable. Revisions created before the field existed have none
81
+ * stored; EffectiveVersionLabel derives it, so no backfill is needed.
82
+ * Revision stays the internal key (indexes, internal_identity_with_revision,
83
+ * existing references); a REMOTE revision's file is named after the label.
84
+ */
85
+ versionLabel?: string;
77
86
  }
@@ -0,0 +1,39 @@
1
+ import type { EntityDetails } from '../schemas/EntityDetails';
2
+ import type { ProbeInfrastructureType } from '../schemas/ProbeInfrastructureType';
3
+ import type { TemplateInput } from '../schemas/TemplateInput';
4
+ import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
5
+ import type { ProbeRuleDetails } from '../schemas/ProbeRuleDetails';
6
+ import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
7
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
8
+ import type { ProbeProbeType } from '../schemas/ProbeProbeType';
9
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
10
+ export interface V3SaveRevisionRequest {
11
+ description?: string;
12
+ gitDetails?: EntityDetails;
13
+ hubRef?: string;
14
+ identity?: string;
15
+ infrastructureType?: ProbeInfrastructureType;
16
+ inputs?: TemplateInput[];
17
+ isDefault?: boolean;
18
+ isRemoved?: boolean;
19
+ name: string;
20
+ probeProperties?: ProbeProbeTemplateProperties;
21
+ revision?: number;
22
+ ruleDetails?: ProbeRuleDetails;
23
+ runProperties?: ProbeProbeTemplateRunProperties;
24
+ /**
25
+ * Response-only Git Experience fields; never part of the internal YAML
26
+ * encoding or the Git file.
27
+ */
28
+ storeType?: EntityStoreType;
29
+ tags?: string[];
30
+ type?: ProbeProbeType;
31
+ variables?: TemplateVariable[];
32
+ /**
33
+ * VersionLabel names the revision (platform versionLabel). Optional on
34
+ * create and save-as-new-revision (defaults to the revision number),
35
+ * immutable afterwards. Kept out of the stored `template` YAML so an
36
+ * edited manifest cannot carry an old label into a new revision.
37
+ */
38
+ versionLabel?: string;
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.91.7-beta.0",
3
+ "version": "1.91.7-beta.1",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,32 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { ChaosprobetemplateImportProbeTemplateRequest } from '../schemas/ChaosprobetemplateImportProbeTemplateRequest';
5
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
- export interface ImportProbeTemplateMutationQueryParams {
7
- accountIdentifier: string;
8
- organizationIdentifier: string;
9
- projectIdentifier: string;
10
- connectorRef?: string;
11
- repoName?: string;
12
- isHarnessCodeRepo?: boolean;
13
- branch?: string;
14
- filePath: string;
15
- }
16
- export type ImportProbeTemplateRequestBody = ChaosprobetemplateImportProbeTemplateRequest;
17
- export type ImportProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
18
- export type ImportProbeTemplateErrorResponse = ApiRestError;
19
- export interface ImportProbeTemplateProps extends Omit<FetcherOptions<ImportProbeTemplateMutationQueryParams, ImportProbeTemplateRequestBody>, 'url'> {
20
- queryParams: ImportProbeTemplateMutationQueryParams;
21
- body: ImportProbeTemplateRequestBody;
22
- }
23
- export interface ImportProbeTemplateResponseContainer {
24
- body: ImportProbeTemplateOkResponse;
25
- headers: Headers;
26
- }
27
- export declare function importProbeTemplate(props: ImportProbeTemplateProps): Promise<ImportProbeTemplateResponseContainer>;
28
- export type ImportProbeTemplateMutationProps<T extends keyof ImportProbeTemplateProps> = Omit<ImportProbeTemplateProps, T> & Partial<Pick<ImportProbeTemplateProps, T>>;
29
- /**
30
- * Creates a probe template revision from an existing file in Git. Nothing is committed.
31
- */
32
- export declare function useImportProbeTemplateMutation<T extends keyof ImportProbeTemplateProps>(props: Pick<Partial<ImportProbeTemplateProps>, T>, options?: Omit<UseMutationOptions<ImportProbeTemplateResponseContainer, ImportProbeTemplateErrorResponse, ImportProbeTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportProbeTemplateResponseContainer, ApiRestError, ImportProbeTemplateMutationProps<T>, unknown>;
@@ -1,35 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface MoveProbeTemplateConfigMutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface MoveProbeTemplateConfigMutationQueryParams {
10
- accountIdentifier: string;
11
- organizationIdentifier: string;
12
- projectIdentifier: string;
13
- hubIdentity: string;
14
- moveConfigType: string;
15
- connectorRef?: string;
16
- repoName?: string;
17
- branch?: string;
18
- filePath?: string;
19
- commitMsg?: string;
20
- }
21
- export type MoveProbeTemplateConfigOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
22
- export type MoveProbeTemplateConfigErrorResponse = ApiRestError;
23
- export interface MoveProbeTemplateConfigProps extends MoveProbeTemplateConfigMutationPathParams, Omit<FetcherOptions<MoveProbeTemplateConfigMutationQueryParams, unknown>, 'url'> {
24
- queryParams: MoveProbeTemplateConfigMutationQueryParams;
25
- }
26
- export interface MoveProbeTemplateConfigResponseContainer {
27
- body: MoveProbeTemplateConfigOkResponse;
28
- headers: Headers;
29
- }
30
- export declare function moveProbeTemplateConfig(props: MoveProbeTemplateConfigProps): Promise<MoveProbeTemplateConfigResponseContainer>;
31
- export type MoveProbeTemplateConfigMutationProps<T extends keyof MoveProbeTemplateConfigProps> = Omit<MoveProbeTemplateConfigProps, T> & Partial<Pick<MoveProbeTemplateConfigProps, T>>;
32
- /**
33
- * Moves a probe template revision between Harness and Git
34
- */
35
- export declare function useMoveProbeTemplateConfigMutation<T extends keyof MoveProbeTemplateConfigProps>(props: Pick<Partial<MoveProbeTemplateConfigProps>, T>, options?: Omit<UseMutationOptions<MoveProbeTemplateConfigResponseContainer, MoveProbeTemplateConfigErrorResponse, MoveProbeTemplateConfigMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveProbeTemplateConfigResponseContainer, ApiRestError, MoveProbeTemplateConfigMutationProps<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 moveProbeTemplateConfig(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/${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 useMoveProbeTemplateConfigMutation(props, options) {
13
- return useMutation((mutateProps) => moveProbeTemplateConfig(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,29 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface RefreshProbeTemplateMutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface RefreshProbeTemplateMutationQueryParams {
10
- accountIdentifier: string;
11
- organizationIdentifier: string;
12
- projectIdentifier: string;
13
- hubIdentity: string;
14
- }
15
- export type RefreshProbeTemplateOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
16
- export type RefreshProbeTemplateErrorResponse = ApiRestError;
17
- export interface RefreshProbeTemplateProps extends RefreshProbeTemplateMutationPathParams, Omit<FetcherOptions<RefreshProbeTemplateMutationQueryParams, unknown>, 'url'> {
18
- queryParams: RefreshProbeTemplateMutationQueryParams;
19
- }
20
- export interface RefreshProbeTemplateResponseContainer {
21
- body: RefreshProbeTemplateOkResponse;
22
- headers: Headers;
23
- }
24
- export declare function refreshProbeTemplate(props: RefreshProbeTemplateProps): Promise<RefreshProbeTemplateResponseContainer>;
25
- export type RefreshProbeTemplateMutationProps<T extends keyof RefreshProbeTemplateProps> = Omit<RefreshProbeTemplateProps, T> & Partial<Pick<RefreshProbeTemplateProps, T>>;
26
- /**
27
- * Reads the revision from the Git provider bypassing git-sync's cache, updates Harness's copy and returns it.
28
- */
29
- export declare function useRefreshProbeTemplateMutation<T extends keyof RefreshProbeTemplateProps>(props: Pick<Partial<RefreshProbeTemplateProps>, T>, options?: Omit<UseMutationOptions<RefreshProbeTemplateResponseContainer, RefreshProbeTemplateErrorResponse, RefreshProbeTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RefreshProbeTemplateResponseContainer, ApiRestError, RefreshProbeTemplateMutationProps<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 refreshProbeTemplate(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}/refresh`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Reads the revision from the Git provider bypassing git-sync's cache, updates Harness's copy and returns it.
11
- */
12
- export function useRefreshProbeTemplateMutation(props, options) {
13
- return useMutation((mutateProps) => refreshProbeTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,34 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface UpdateProbeTemplateGitMetadataMutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface UpdateProbeTemplateGitMetadataMutationQueryParams {
10
- accountIdentifier: string;
11
- organizationIdentifier: string;
12
- projectIdentifier: string;
13
- hubIdentity: string;
14
- connectorRef?: string;
15
- repoName?: string;
16
- isHarnessCodeRepo?: boolean;
17
- filePath?: string;
18
- branch?: string;
19
- }
20
- export type UpdateProbeTemplateGitMetadataOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
21
- export type UpdateProbeTemplateGitMetadataErrorResponse = ApiRestError;
22
- export interface UpdateProbeTemplateGitMetadataProps extends UpdateProbeTemplateGitMetadataMutationPathParams, Omit<FetcherOptions<UpdateProbeTemplateGitMetadataMutationQueryParams, unknown>, 'url'> {
23
- queryParams: UpdateProbeTemplateGitMetadataMutationQueryParams;
24
- }
25
- export interface UpdateProbeTemplateGitMetadataResponseContainer {
26
- body: UpdateProbeTemplateGitMetadataOkResponse;
27
- headers: Headers;
28
- }
29
- export declare function updateProbeTemplateGitMetadata(props: UpdateProbeTemplateGitMetadataProps): Promise<UpdateProbeTemplateGitMetadataResponseContainer>;
30
- export type UpdateProbeTemplateGitMetadataMutationProps<T extends keyof UpdateProbeTemplateGitMetadataProps> = Omit<UpdateProbeTemplateGitMetadataProps, T> & Partial<Pick<UpdateProbeTemplateGitMetadataProps, T>>;
31
- /**
32
- * Points a REMOTE revision at another connector, repository or file path. The file must already exist there and describe this revision.
33
- */
34
- export declare function useUpdateProbeTemplateGitMetadataMutation<T extends keyof UpdateProbeTemplateGitMetadataProps>(props: Pick<Partial<UpdateProbeTemplateGitMetadataProps>, T>, options?: Omit<UseMutationOptions<UpdateProbeTemplateGitMetadataResponseContainer, UpdateProbeTemplateGitMetadataErrorResponse, UpdateProbeTemplateGitMetadataMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProbeTemplateGitMetadataResponseContainer, ApiRestError, UpdateProbeTemplateGitMetadataMutationProps<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 updateProbeTemplateGitMetadata(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}/git-metadata`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Points a REMOTE revision at another connector, repository or file path. The file must already exist there and describe this revision.
11
- */
12
- export function useUpdateProbeTemplateGitMetadataMutation(props, options) {
13
- return useMutation((mutateProps) => updateProbeTemplateGitMetadata(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,36 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface UpdateProbeTemplateRevisionMutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface UpdateProbeTemplateRevisionMutationQueryParams {
10
- accountIdentifier: string;
11
- organizationIdentifier: string;
12
- projectIdentifier: string;
13
- branch?: string;
14
- commitMsg?: string;
15
- isNewBranch?: boolean;
16
- baseBranch?: string;
17
- lastObjectId?: string;
18
- lastCommitId?: string;
19
- }
20
- export type UpdateProbeTemplateRevisionRequestBody = ChaosprobetemplateProbeTemplate;
21
- export type UpdateProbeTemplateRevisionOkResponse = ChaosprobetemplateProbeTemplate;
22
- export type UpdateProbeTemplateRevisionErrorResponse = ApiRestError;
23
- export interface UpdateProbeTemplateRevisionProps extends UpdateProbeTemplateRevisionMutationPathParams, Omit<FetcherOptions<UpdateProbeTemplateRevisionMutationQueryParams, UpdateProbeTemplateRevisionRequestBody>, 'url'> {
24
- queryParams: UpdateProbeTemplateRevisionMutationQueryParams;
25
- body: UpdateProbeTemplateRevisionRequestBody;
26
- }
27
- export interface UpdateProbeTemplateRevisionResponseContainer {
28
- body: UpdateProbeTemplateRevisionOkResponse;
29
- headers: Headers;
30
- }
31
- export declare function updateProbeTemplateRevision(props: UpdateProbeTemplateRevisionProps): Promise<UpdateProbeTemplateRevisionResponseContainer>;
32
- export type UpdateProbeTemplateRevisionMutationProps<T extends keyof UpdateProbeTemplateRevisionProps> = Omit<UpdateProbeTemplateRevisionProps, T> & Partial<Pick<UpdateProbeTemplateRevisionProps, T>>;
33
- /**
34
- * Saves changes to an existing revision. For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required; a newer version in Git returns 409.
35
- */
36
- export declare function useUpdateProbeTemplateRevisionMutation<T extends keyof UpdateProbeTemplateRevisionProps>(props: Pick<Partial<UpdateProbeTemplateRevisionProps>, T>, options?: Omit<UseMutationOptions<UpdateProbeTemplateRevisionResponseContainer, UpdateProbeTemplateRevisionErrorResponse, UpdateProbeTemplateRevisionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProbeTemplateRevisionResponseContainer, ApiRestError, UpdateProbeTemplateRevisionMutationProps<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 updateProbeTemplateRevision(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Saves changes to an existing revision. For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required; a newer version in Git returns 409.
11
- */
12
- export function useUpdateProbeTemplateRevisionMutation(props, options) {
13
- return useMutation((mutateProps) => updateProbeTemplateRevision(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }