@harnessio/react-chaos-manager-client 1.29.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/chaos-manager/src/services/hooks/useCreateConditionMutation.d.ts +28 -0
  2. package/dist/chaos-manager/src/services/hooks/useCreateConditionMutation.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useCreateRuleMutation.d.ts +28 -0
  4. package/dist/chaos-manager/src/services/hooks/useCreateRuleMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useDeleteConditionMutation.d.ts +28 -0
  6. package/dist/chaos-manager/src/services/hooks/useDeleteConditionMutation.js +14 -0
  7. package/dist/chaos-manager/src/services/hooks/useDeleteLegacyKubernetesChaosInfraMutation.d.ts +27 -0
  8. package/dist/chaos-manager/src/services/hooks/useDeleteLegacyKubernetesChaosInfraMutation.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useDeleteRuleMutation.d.ts +28 -0
  10. package/dist/chaos-manager/src/services/hooks/useDeleteRuleMutation.js +14 -0
  11. package/dist/chaos-manager/src/services/hooks/useEnableRuleMutation.d.ts +29 -0
  12. package/dist/chaos-manager/src/services/hooks/useEnableRuleMutation.js +14 -0
  13. package/dist/chaos-manager/src/services/hooks/useGetConditionQuery.d.ts +27 -0
  14. package/dist/chaos-manager/src/services/hooks/useGetConditionQuery.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useGetExperimentTemplateRevisionsQuery.d.ts +1 -1
  16. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraDetailsQuery.d.ts +26 -0
  17. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraDetailsQuery.js +14 -0
  18. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraManifestQuery.d.ts +25 -0
  19. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraManifestQuery.js +14 -0
  20. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraStatsQuery.d.ts +23 -0
  21. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraStatsQuery.js +14 -0
  22. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraVersionDetailsQuery.d.ts +23 -0
  23. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesChaosInfraVersionDetailsQuery.js +14 -0
  24. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesHelmInfraCommandQuery.d.ts +25 -0
  25. package/dist/chaos-manager/src/services/hooks/useGetLegacyKubernetesHelmInfraCommandQuery.js +14 -0
  26. package/dist/chaos-manager/src/services/hooks/useGetRuleQuery.d.ts +27 -0
  27. package/dist/chaos-manager/src/services/hooks/useGetRuleQuery.js +14 -0
  28. package/dist/chaos-manager/src/services/hooks/useListConditionQuery.d.ts +36 -0
  29. package/dist/chaos-manager/src/services/hooks/useListConditionQuery.js +14 -0
  30. package/dist/chaos-manager/src/services/hooks/useListExperimentRunsOfFaultQuery.d.ts +1 -1
  31. package/dist/chaos-manager/src/services/hooks/useListExperimentTemplateQuery.d.ts +1 -1
  32. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +1 -1
  33. package/dist/chaos-manager/src/services/hooks/useListFaultv2Query.d.ts +1 -1
  34. package/dist/chaos-manager/src/services/hooks/useListLegacyKubernetesChaosInfraMutation.d.ts +27 -0
  35. package/dist/chaos-manager/src/services/hooks/useListLegacyKubernetesChaosInfraMutation.js +14 -0
  36. package/dist/chaos-manager/src/services/hooks/useListRuleQuery.d.ts +36 -0
  37. package/dist/chaos-manager/src/services/hooks/useListRuleQuery.js +14 -0
  38. package/dist/chaos-manager/src/services/hooks/useRegisterLegacyKubernetesInfraMutation.d.ts +27 -0
  39. package/dist/chaos-manager/src/services/hooks/useRegisterLegacyKubernetesInfraMutation.js +14 -0
  40. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionMutation.d.ts +26 -0
  41. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionMutation.js +14 -0
  42. package/dist/chaos-manager/src/services/hooks/useUpdateConditionMutation.d.ts +31 -0
  43. package/dist/chaos-manager/src/services/hooks/useUpdateConditionMutation.js +14 -0
  44. package/dist/chaos-manager/src/services/hooks/useUpdateLegacyKubernetesChaosInfraMutation.d.ts +29 -0
  45. package/dist/chaos-manager/src/services/hooks/useUpdateLegacyKubernetesChaosInfraMutation.js +14 -0
  46. package/dist/chaos-manager/src/services/hooks/useUpdateMachineInfraMutation.d.ts +30 -0
  47. package/dist/chaos-manager/src/services/hooks/useUpdateMachineInfraMutation.js +14 -0
  48. package/dist/chaos-manager/src/services/hooks/useUpdateRuleMutation.d.ts +31 -0
  49. package/dist/chaos-manager/src/services/hooks/useUpdateRuleMutation.js +14 -0
  50. package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.d.ts +26 -0
  51. package/dist/chaos-manager/src/services/hooks/useUpgradeLegacyKubernetesChaosInfraMutation.js +14 -0
  52. package/dist/chaos-manager/src/services/index.d.ts +73 -0
  53. package/dist/chaos-manager/src/services/index.js +23 -0
  54. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateCreateExperimentFromTemplateRequest.d.ts +9 -0
  55. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsConditionResponse.d.ts +21 -0
  56. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsConditionResponse.js +1 -0
  57. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsCreateConditionRequest.d.ts +14 -0
  58. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsCreateConditionRequest.js +1 -0
  59. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsCreateConditionResponse.d.ts +15 -0
  60. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsCreateConditionResponse.js +1 -0
  61. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsDeleteConditionResponse.d.ts +5 -0
  62. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsDeleteConditionResponse.js +4 -0
  63. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsGetConditionResponse.d.ts +22 -0
  64. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsGetConditionResponse.js +1 -0
  65. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsListConditionResponse.d.ts +7 -0
  66. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsListConditionResponse.js +1 -0
  67. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsRule.d.ts +4 -0
  68. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsRule.js +4 -0
  69. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsUpdateConditionResponse.d.ts +15 -0
  70. package/dist/chaos-manager/src/services/schemas/ChaosguardconditionsUpdateConditionResponse.js +1 -0
  71. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesCreateRuleRequest.d.ts +11 -0
  72. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesCreateRuleRequest.js +1 -0
  73. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesCreateRuleResponse.d.ts +12 -0
  74. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesCreateRuleResponse.js +1 -0
  75. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesDeleteRuleResponse.d.ts +5 -0
  76. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesDeleteRuleResponse.js +4 -0
  77. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesGetRuleResponse.d.ts +19 -0
  78. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesGetRuleResponse.js +1 -0
  79. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesListRuleResponse.d.ts +7 -0
  80. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesListRuleResponse.js +1 -0
  81. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesRuleResponse.d.ts +19 -0
  82. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesRuleResponse.js +1 -0
  83. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesUpdateRuleResponse.d.ts +12 -0
  84. package/dist/chaos-manager/src/services/schemas/ChaosguardrulesUpdateRuleResponse.js +1 -0
  85. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest.d.ts +85 -0
  86. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest.js +1 -0
  87. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse.d.ts +22 -0
  88. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse.js +4 -0
  89. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbSecurityGovernanceRule.d.ts +11 -0
  90. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbSecurityGovernanceRule.js +1 -0
  91. package/dist/chaos-manager/src/services/schemas/HcesdkUserDetails.d.ts +5 -0
  92. package/dist/chaos-manager/src/services/schemas/HcesdkUserDetails.js +4 -0
  93. package/dist/chaos-manager/src/services/schemas/InfraInfraFilterInput.d.ts +4 -0
  94. package/dist/chaos-manager/src/services/schemas/InfraListInfraRequest.d.ts +5 -0
  95. package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraRequest.d.ts +13 -0
  96. package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraRequest.js +1 -0
  97. package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraResponse.d.ts +4 -0
  98. package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraResponse.js +4 -0
  99. package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfraV2FilterInput.d.ts +1 -0
  100. package/dist/chaos-manager/src/services/schemas/InfraV2ListKubernetesInfraV2Request.d.ts +2 -0
  101. package/dist/chaos-manager/src/services/schemas/InfraV2SortInput.d.ts +11 -0
  102. package/dist/chaos-manager/src/services/schemas/InfraV2SortInput.js +1 -0
  103. package/dist/chaos-manager/src/services/schemas/InfraV2SortingField.d.ts +1 -0
  104. package/dist/chaos-manager/src/services/schemas/InfraV2SortingField.js +4 -0
  105. package/dist/chaos-manager/src/services/schemas/ModelGetInfraStatsResponse.d.ts +22 -0
  106. package/dist/chaos-manager/src/services/schemas/ModelGetInfraStatsResponse.js +4 -0
  107. package/dist/chaos-manager/src/services/schemas/ModelInfraVersionDetails.d.ts +10 -0
  108. package/dist/chaos-manager/src/services/schemas/ModelInfraVersionDetails.js +4 -0
  109. package/dist/chaos-manager/src/services/schemas/ModelToleration.d.ts +7 -0
  110. package/dist/chaos-manager/src/services/schemas/ModelToleration.js +4 -0
  111. package/dist/chaos-manager/src/services/schemas/ModelUpdateInfraRequest.d.ts +22 -0
  112. package/dist/chaos-manager/src/services/schemas/ModelUpdateInfraRequest.js +4 -0
  113. package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
  114. package/dist/chaos-manager/src/services/schemas/SecurityGovernanceCondition.d.ts +4 -4
  115. package/dist/chaos-manager/src/services/schemas/SecurityGovernanceRecurrence.d.ts +1 -1
  116. package/dist/chaos-manager/src/services/schemas/SecurityGovernanceTimeWindow.d.ts +2 -2
  117. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosguardconditionsCreateConditionResponse } from '../schemas/ChaosguardconditionsCreateConditionResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ChaosguardconditionsCreateConditionRequest } from '../schemas/ChaosguardconditionsCreateConditionRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface CreateConditionMutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ organizationIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export type CreateConditionRequestBody = ChaosguardconditionsCreateConditionRequest;
13
+ export type CreateConditionOkResponse = ChaosguardconditionsCreateConditionResponse;
14
+ export type CreateConditionErrorResponse = ApiRestError;
15
+ export interface CreateConditionProps extends Omit<FetcherOptions<CreateConditionMutationQueryParams, CreateConditionRequestBody>, 'url'> {
16
+ queryParams: CreateConditionMutationQueryParams;
17
+ body: CreateConditionRequestBody;
18
+ }
19
+ export interface CreateConditionResponseContainer {
20
+ body: CreateConditionOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function createCondition(props: CreateConditionProps): Promise<CreateConditionResponseContainer>;
24
+ export type CreateConditionMutationProps<T extends keyof CreateConditionProps> = Omit<CreateConditionProps, T> & Partial<Pick<CreateConditionProps, T>>;
25
+ /**
26
+ * creates a chaos guard condition
27
+ */
28
+ export declare function useCreateConditionMutation<T extends keyof CreateConditionProps>(props: Pick<Partial<CreateConditionProps>, T>, options?: Omit<UseMutationOptions<CreateConditionResponseContainer, CreateConditionErrorResponse, CreateConditionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateConditionResponseContainer, ApiRestError, CreateConditionMutationProps<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 createCondition(props) {
7
+ return fetcher(Object.assign({ url: `/v3/chaosguard-conditions`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * creates a chaos guard condition
11
+ */
12
+ export function useCreateConditionMutation(props, options) {
13
+ return useMutation((mutateProps) => createCondition(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosguardrulesCreateRuleResponse } from '../schemas/ChaosguardrulesCreateRuleResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ChaosguardrulesCreateRuleRequest } from '../schemas/ChaosguardrulesCreateRuleRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface CreateRuleMutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ organizationIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export type CreateRuleRequestBody = ChaosguardrulesCreateRuleRequest;
13
+ export type CreateRuleOkResponse = ChaosguardrulesCreateRuleResponse;
14
+ export type CreateRuleErrorResponse = ApiRestError;
15
+ export interface CreateRuleProps extends Omit<FetcherOptions<CreateRuleMutationQueryParams, CreateRuleRequestBody>, 'url'> {
16
+ queryParams: CreateRuleMutationQueryParams;
17
+ body: CreateRuleRequestBody;
18
+ }
19
+ export interface CreateRuleResponseContainer {
20
+ body: CreateRuleOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function createRule(props: CreateRuleProps): Promise<CreateRuleResponseContainer>;
24
+ export type CreateRuleMutationProps<T extends keyof CreateRuleProps> = Omit<CreateRuleProps, T> & Partial<Pick<CreateRuleProps, T>>;
25
+ /**
26
+ * creates a chaos guard rule
27
+ */
28
+ export declare function useCreateRuleMutation<T extends keyof CreateRuleProps>(props: Pick<Partial<CreateRuleProps>, T>, options?: Omit<UseMutationOptions<CreateRuleResponseContainer, CreateRuleErrorResponse, CreateRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRuleResponseContainer, ApiRestError, CreateRuleMutationProps<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 createRule(props) {
7
+ return fetcher(Object.assign({ url: `/v3/chaosguard-rules`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * creates a chaos guard rule
11
+ */
12
+ export function useCreateRuleMutation(props, options) {
13
+ return useMutation((mutateProps) => createRule(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosguardconditionsDeleteConditionResponse } from '../schemas/ChaosguardconditionsDeleteConditionResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface DeleteConditionMutationPathParams {
6
+ identity: string;
7
+ }
8
+ export interface DeleteConditionMutationQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ organizationIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export type DeleteConditionOkResponse = ChaosguardconditionsDeleteConditionResponse;
15
+ export type DeleteConditionErrorResponse = ApiRestError;
16
+ export interface DeleteConditionProps extends DeleteConditionMutationPathParams, Omit<FetcherOptions<DeleteConditionMutationQueryParams, unknown>, 'url'> {
17
+ queryParams: DeleteConditionMutationQueryParams;
18
+ }
19
+ export interface DeleteConditionResponseContainer {
20
+ body: DeleteConditionOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function deleteCondition(props: DeleteConditionProps): Promise<DeleteConditionResponseContainer>;
24
+ export type DeleteConditionMutationProps<T extends keyof DeleteConditionProps> = Omit<DeleteConditionProps, T> & Partial<Pick<DeleteConditionProps, T>>;
25
+ /**
26
+ * deletes a chaos guard condition
27
+ */
28
+ export declare function useDeleteConditionMutation<T extends keyof DeleteConditionProps>(props: Pick<Partial<DeleteConditionProps>, T>, options?: Omit<UseMutationOptions<DeleteConditionResponseContainer, DeleteConditionErrorResponse, DeleteConditionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteConditionResponseContainer, ApiRestError, DeleteConditionMutationProps<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 deleteCondition(props) {
7
+ return fetcher(Object.assign({ url: `/v3/chaosguard-conditions/${props.identity}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * deletes a chaos guard condition
11
+ */
12
+ export function useDeleteConditionMutation(props, options) {
13
+ return useMutation((mutateProps) => deleteCondition(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
+ export interface DeleteLegacyKubernetesChaosInfraMutationPathParams {
5
+ id: string;
6
+ }
7
+ export interface DeleteLegacyKubernetesChaosInfraMutationQueryParams {
8
+ accountIdentifier: string;
9
+ organizationIdentifier: string;
10
+ projectIdentifier: string;
11
+ forceDelete: boolean;
12
+ }
13
+ export type DeleteLegacyKubernetesChaosInfraOkResponse = string;
14
+ export type DeleteLegacyKubernetesChaosInfraErrorResponse = ApiRestError;
15
+ export interface DeleteLegacyKubernetesChaosInfraProps extends DeleteLegacyKubernetesChaosInfraMutationPathParams, Omit<FetcherOptions<DeleteLegacyKubernetesChaosInfraMutationQueryParams, unknown>, 'url'> {
16
+ queryParams: DeleteLegacyKubernetesChaosInfraMutationQueryParams;
17
+ }
18
+ export interface DeleteLegacyKubernetesChaosInfraResponseContainer {
19
+ body: DeleteLegacyKubernetesChaosInfraOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function deleteLegacyKubernetesChaosInfra(props: DeleteLegacyKubernetesChaosInfraProps): Promise<DeleteLegacyKubernetesChaosInfraResponseContainer>;
23
+ export type DeleteLegacyKubernetesChaosInfraMutationProps<T extends keyof DeleteLegacyKubernetesChaosInfraProps> = Omit<DeleteLegacyKubernetesChaosInfraProps, T> & Partial<Pick<DeleteLegacyKubernetesChaosInfraProps, T>>;
24
+ /**
25
+ * Deletes a legacy kubernetes chaos infra
26
+ */
27
+ export declare function useDeleteLegacyKubernetesChaosInfraMutation<T extends keyof DeleteLegacyKubernetesChaosInfraProps>(props: Pick<Partial<DeleteLegacyKubernetesChaosInfraProps>, T>, options?: Omit<UseMutationOptions<DeleteLegacyKubernetesChaosInfraResponseContainer, DeleteLegacyKubernetesChaosInfraErrorResponse, DeleteLegacyKubernetesChaosInfraMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteLegacyKubernetesChaosInfraResponseContainer, ApiRestError, DeleteLegacyKubernetesChaosInfraMutationProps<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 deleteLegacyKubernetesChaosInfra(props) {
7
+ return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Deletes a legacy kubernetes chaos infra
11
+ */
12
+ export function useDeleteLegacyKubernetesChaosInfraMutation(props, options) {
13
+ return useMutation((mutateProps) => deleteLegacyKubernetesChaosInfra(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosguardrulesDeleteRuleResponse } from '../schemas/ChaosguardrulesDeleteRuleResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface DeleteRuleMutationPathParams {
6
+ identity: string;
7
+ }
8
+ export interface DeleteRuleMutationQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ organizationIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export type DeleteRuleOkResponse = ChaosguardrulesDeleteRuleResponse;
15
+ export type DeleteRuleErrorResponse = ApiRestError;
16
+ export interface DeleteRuleProps extends DeleteRuleMutationPathParams, Omit<FetcherOptions<DeleteRuleMutationQueryParams, unknown>, 'url'> {
17
+ queryParams: DeleteRuleMutationQueryParams;
18
+ }
19
+ export interface DeleteRuleResponseContainer {
20
+ body: DeleteRuleOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function deleteRule(props: DeleteRuleProps): Promise<DeleteRuleResponseContainer>;
24
+ export type DeleteRuleMutationProps<T extends keyof DeleteRuleProps> = Omit<DeleteRuleProps, T> & Partial<Pick<DeleteRuleProps, T>>;
25
+ /**
26
+ * deletes a chaos guard rule
27
+ */
28
+ export declare function useDeleteRuleMutation<T extends keyof DeleteRuleProps>(props: Pick<Partial<DeleteRuleProps>, T>, options?: Omit<UseMutationOptions<DeleteRuleResponseContainer, DeleteRuleErrorResponse, DeleteRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRuleResponseContainer, ApiRestError, DeleteRuleMutationProps<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 deleteRule(props) {
7
+ return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * deletes a chaos guard rule
11
+ */
12
+ export function useDeleteRuleMutation(props, options) {
13
+ return useMutation((mutateProps) => deleteRule(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface EnableRuleMutationPathParams {
6
+ identity: string;
7
+ }
8
+ export interface EnableRuleMutationQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ organizationIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ enabled: boolean;
14
+ }
15
+ export type EnableRuleOkResponse = string;
16
+ export type EnableRuleErrorResponse = ApiRestError | SharedError;
17
+ export interface EnableRuleProps extends EnableRuleMutationPathParams, Omit<FetcherOptions<EnableRuleMutationQueryParams, unknown>, 'url'> {
18
+ queryParams: EnableRuleMutationQueryParams;
19
+ }
20
+ export interface EnableRuleResponseContainer {
21
+ body: EnableRuleOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function enableRule(props: EnableRuleProps): Promise<EnableRuleResponseContainer>;
25
+ export type EnableRuleMutationProps<T extends keyof EnableRuleProps> = Omit<EnableRuleProps, T> & Partial<Pick<EnableRuleProps, T>>;
26
+ /**
27
+ * enables or disables a chaos guard rule
28
+ */
29
+ export declare function useEnableRuleMutation<T extends keyof EnableRuleProps>(props: Pick<Partial<EnableRuleProps>, T>, options?: Omit<UseMutationOptions<EnableRuleResponseContainer, EnableRuleErrorResponse, EnableRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EnableRuleResponseContainer, EnableRuleErrorResponse, EnableRuleMutationProps<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 enableRule(props) {
7
+ return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}/enable`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * enables or disables a chaos guard rule
11
+ */
12
+ export function useEnableRuleMutation(props, options) {
13
+ return useMutation((mutateProps) => enableRule(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosguardconditionsGetConditionResponse } from '../schemas/ChaosguardconditionsGetConditionResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetConditionQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface GetConditionQueryQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ organizationIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export type GetConditionOkResponse = ChaosguardconditionsGetConditionResponse;
15
+ export type GetConditionErrorResponse = ApiRestError;
16
+ export interface GetConditionProps extends GetConditionQueryPathParams, Omit<FetcherOptions<GetConditionQueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetConditionQueryQueryParams;
18
+ }
19
+ export interface GetConditionResponseContainer {
20
+ body: GetConditionOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function getCondition(props: GetConditionProps): Promise<GetConditionResponseContainer>;
24
+ /**
25
+ * gets a chaos guard condition by id
26
+ */
27
+ export declare function useGetConditionQuery(props: GetConditionProps, options?: Omit<UseQueryOptions<GetConditionResponseContainer, GetConditionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetConditionResponseContainer, ApiRestError>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
+ export function getCondition(props) {
7
+ return fetcher(Object.assign({ url: `/v3/chaosguard-conditions/${props.identity}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * gets a chaos guard condition by id
11
+ */
12
+ export function useGetConditionQuery(props, options) {
13
+ return useQuery(['getCondition', props.identity, props.queryParams], ({ signal }) => getCondition(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -12,7 +12,7 @@ export interface GetExperimentTemplateRevisionsQueryQueryParams {
12
12
  infrastructure?: 'KubernetesV2';
13
13
  infrastructureType?: 'Kubernetes';
14
14
  /**
15
- * @default 10
15
+ * @default 15
16
16
  */
17
17
  limit?: number;
18
18
  organizationIdentifier?: string;
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ModelKubernetesInfra } from '../schemas/ModelKubernetesInfra';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetLegacyKubernetesChaosInfraDetailsQueryPathParams {
6
+ id: string;
7
+ }
8
+ export interface GetLegacyKubernetesChaosInfraDetailsQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ }
13
+ export type GetLegacyKubernetesChaosInfraDetailsOkResponse = ModelKubernetesInfra;
14
+ export type GetLegacyKubernetesChaosInfraDetailsErrorResponse = ApiRestError;
15
+ export interface GetLegacyKubernetesChaosInfraDetailsProps extends GetLegacyKubernetesChaosInfraDetailsQueryPathParams, Omit<FetcherOptions<GetLegacyKubernetesChaosInfraDetailsQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: GetLegacyKubernetesChaosInfraDetailsQueryQueryParams;
17
+ }
18
+ export interface GetLegacyKubernetesChaosInfraDetailsResponseContainer {
19
+ body: GetLegacyKubernetesChaosInfraDetailsOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function getLegacyKubernetesChaosInfraDetails(props: GetLegacyKubernetesChaosInfraDetailsProps): Promise<GetLegacyKubernetesChaosInfraDetailsResponseContainer>;
23
+ /**
24
+ * Get legacy kubernetes chaos infrastructure details
25
+ */
26
+ export declare function useGetLegacyKubernetesChaosInfraDetailsQuery(props: GetLegacyKubernetesChaosInfraDetailsProps, options?: Omit<UseQueryOptions<GetLegacyKubernetesChaosInfraDetailsResponseContainer, GetLegacyKubernetesChaosInfraDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLegacyKubernetesChaosInfraDetailsResponseContainer, ApiRestError>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
+ export function getLegacyKubernetesChaosInfraDetails(props) {
7
+ return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get legacy kubernetes chaos infrastructure details
11
+ */
12
+ export function useGetLegacyKubernetesChaosInfraDetailsQuery(props, options) {
13
+ return useQuery(['getLegacyKubernetesChaosInfraDetails', props.id, props.queryParams], ({ signal }) => getLegacyKubernetesChaosInfraDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
+ export interface GetLegacyKubernetesChaosInfraManifestQueryPathParams {
5
+ id: string;
6
+ }
7
+ export interface GetLegacyKubernetesChaosInfraManifestQueryQueryParams {
8
+ accountIdentifier: string;
9
+ organizationIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type GetLegacyKubernetesChaosInfraManifestOkResponse = string;
13
+ export type GetLegacyKubernetesChaosInfraManifestErrorResponse = ApiRestError;
14
+ export interface GetLegacyKubernetesChaosInfraManifestProps extends GetLegacyKubernetesChaosInfraManifestQueryPathParams, Omit<FetcherOptions<GetLegacyKubernetesChaosInfraManifestQueryQueryParams, unknown>, 'url'> {
15
+ queryParams: GetLegacyKubernetesChaosInfraManifestQueryQueryParams;
16
+ }
17
+ export interface GetLegacyKubernetesChaosInfraManifestResponseContainer {
18
+ body: GetLegacyKubernetesChaosInfraManifestOkResponse;
19
+ headers: Headers;
20
+ }
21
+ export declare function getLegacyKubernetesChaosInfraManifest(props: GetLegacyKubernetesChaosInfraManifestProps): Promise<GetLegacyKubernetesChaosInfraManifestResponseContainer>;
22
+ /**
23
+ * Get legacy kubernetes chaos infrastructure manifest
24
+ */
25
+ export declare function useGetLegacyKubernetesChaosInfraManifestQuery(props: GetLegacyKubernetesChaosInfraManifestProps, options?: Omit<UseQueryOptions<GetLegacyKubernetesChaosInfraManifestResponseContainer, GetLegacyKubernetesChaosInfraManifestErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLegacyKubernetesChaosInfraManifestResponseContainer, ApiRestError>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
+ export function getLegacyKubernetesChaosInfraManifest(props) {
7
+ return fetcher(Object.assign({ url: `/rest/kubernetes/infra/manifest/${props.id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get legacy kubernetes chaos infrastructure manifest
11
+ */
12
+ export function useGetLegacyKubernetesChaosInfraManifestQuery(props, options) {
13
+ return useQuery(['getLegacyKubernetesChaosInfraManifest', props.id, props.queryParams], ({ signal }) => getLegacyKubernetesChaosInfraManifest(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ModelGetInfraStatsResponse } from '../schemas/ModelGetInfraStatsResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetLegacyKubernetesChaosInfraStatsQueryQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ }
10
+ export type GetLegacyKubernetesChaosInfraStatsOkResponse = ModelGetInfraStatsResponse;
11
+ export type GetLegacyKubernetesChaosInfraStatsErrorResponse = ApiRestError;
12
+ export interface GetLegacyKubernetesChaosInfraStatsProps extends Omit<FetcherOptions<GetLegacyKubernetesChaosInfraStatsQueryQueryParams, unknown>, 'url'> {
13
+ queryParams: GetLegacyKubernetesChaosInfraStatsQueryQueryParams;
14
+ }
15
+ export interface GetLegacyKubernetesChaosInfraStatsResponseContainer {
16
+ body: GetLegacyKubernetesChaosInfraStatsOkResponse;
17
+ headers: Headers;
18
+ }
19
+ export declare function getLegacyKubernetesChaosInfraStats(props: GetLegacyKubernetesChaosInfraStatsProps): Promise<GetLegacyKubernetesChaosInfraStatsResponseContainer>;
20
+ /**
21
+ * Get legacy kubernetes chaos infra stats
22
+ */
23
+ export declare function useGetLegacyKubernetesChaosInfraStatsQuery(props: GetLegacyKubernetesChaosInfraStatsProps, options?: Omit<UseQueryOptions<GetLegacyKubernetesChaosInfraStatsResponseContainer, GetLegacyKubernetesChaosInfraStatsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLegacyKubernetesChaosInfraStatsResponseContainer, ApiRestError>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
+ export function getLegacyKubernetesChaosInfraStats(props) {
7
+ return fetcher(Object.assign({ url: `/rest/kubernetes/infra/stats`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get legacy kubernetes chaos infra stats
11
+ */
12
+ export function useGetLegacyKubernetesChaosInfraStatsQuery(props, options) {
13
+ return useQuery(['getLegacyKubernetesChaosInfraStats', props.queryParams], ({ signal }) => getLegacyKubernetesChaosInfraStats(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ModelInfraVersionDetails } from '../schemas/ModelInfraVersionDetails';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetLegacyKubernetesChaosInfraVersionDetailsQueryQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ }
10
+ export type GetLegacyKubernetesChaosInfraVersionDetailsOkResponse = ModelInfraVersionDetails;
11
+ export type GetLegacyKubernetesChaosInfraVersionDetailsErrorResponse = ApiRestError;
12
+ export interface GetLegacyKubernetesChaosInfraVersionDetailsProps extends Omit<FetcherOptions<GetLegacyKubernetesChaosInfraVersionDetailsQueryQueryParams, unknown>, 'url'> {
13
+ queryParams: GetLegacyKubernetesChaosInfraVersionDetailsQueryQueryParams;
14
+ }
15
+ export interface GetLegacyKubernetesChaosInfraVersionDetailsResponseContainer {
16
+ body: GetLegacyKubernetesChaosInfraVersionDetailsOkResponse;
17
+ headers: Headers;
18
+ }
19
+ export declare function getLegacyKubernetesChaosInfraVersionDetails(props: GetLegacyKubernetesChaosInfraVersionDetailsProps): Promise<GetLegacyKubernetesChaosInfraVersionDetailsResponseContainer>;
20
+ /**
21
+ * Get legacy kubernetes chaos infrastructure version details
22
+ */
23
+ export declare function useGetLegacyKubernetesChaosInfraVersionDetailsQuery(props: GetLegacyKubernetesChaosInfraVersionDetailsProps, options?: Omit<UseQueryOptions<GetLegacyKubernetesChaosInfraVersionDetailsResponseContainer, GetLegacyKubernetesChaosInfraVersionDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLegacyKubernetesChaosInfraVersionDetailsResponseContainer, ApiRestError>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
+ export function getLegacyKubernetesChaosInfraVersionDetails(props) {
7
+ return fetcher(Object.assign({ url: `/rest/kubernetes/infra/version`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get legacy kubernetes chaos infrastructure version details
11
+ */
12
+ export function useGetLegacyKubernetesChaosInfraVersionDetailsQuery(props, options) {
13
+ return useQuery(['getLegacyKubernetesChaosInfraVersionDetails', props.queryParams], ({ signal }) => getLegacyKubernetesChaosInfraVersionDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
+ export interface GetLegacyKubernetesHelmInfraCommandQueryPathParams {
5
+ id: string;
6
+ }
7
+ export interface GetLegacyKubernetesHelmInfraCommandQueryQueryParams {
8
+ accountIdentifier: string;
9
+ organizationIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type GetLegacyKubernetesHelmInfraCommandOkResponse = string[];
13
+ export type GetLegacyKubernetesHelmInfraCommandErrorResponse = ApiRestError;
14
+ export interface GetLegacyKubernetesHelmInfraCommandProps extends GetLegacyKubernetesHelmInfraCommandQueryPathParams, Omit<FetcherOptions<GetLegacyKubernetesHelmInfraCommandQueryQueryParams, unknown>, 'url'> {
15
+ queryParams: GetLegacyKubernetesHelmInfraCommandQueryQueryParams;
16
+ }
17
+ export interface GetLegacyKubernetesHelmInfraCommandResponseContainer {
18
+ body: GetLegacyKubernetesHelmInfraCommandOkResponse;
19
+ headers: Headers;
20
+ }
21
+ export declare function getLegacyKubernetesHelmInfraCommand(props: GetLegacyKubernetesHelmInfraCommandProps): Promise<GetLegacyKubernetesHelmInfraCommandResponseContainer>;
22
+ /**
23
+ * Test legacy kubernetes helm infra command
24
+ */
25
+ export declare function useGetLegacyKubernetesHelmInfraCommandQuery(props: GetLegacyKubernetesHelmInfraCommandProps, options?: Omit<UseQueryOptions<GetLegacyKubernetesHelmInfraCommandResponseContainer, GetLegacyKubernetesHelmInfraCommandErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLegacyKubernetesHelmInfraCommandResponseContainer, ApiRestError>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
+ export function getLegacyKubernetesHelmInfraCommand(props) {
7
+ return fetcher(Object.assign({ url: `/rest/kubernetes/infra/helm-command/${props.id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Test legacy kubernetes helm infra command
11
+ */
12
+ export function useGetLegacyKubernetesHelmInfraCommandQuery(props, options) {
13
+ return useQuery(['getLegacyKubernetesHelmInfraCommand', props.id, props.queryParams], ({ signal }) => getLegacyKubernetesHelmInfraCommand(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosguardrulesGetRuleResponse } from '../schemas/ChaosguardrulesGetRuleResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetRuleQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface GetRuleQueryQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ organizationIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export type GetRuleOkResponse = ChaosguardrulesGetRuleResponse;
15
+ export type GetRuleErrorResponse = ApiRestError;
16
+ export interface GetRuleProps extends GetRuleQueryPathParams, Omit<FetcherOptions<GetRuleQueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetRuleQueryQueryParams;
18
+ }
19
+ export interface GetRuleResponseContainer {
20
+ body: GetRuleOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function getRule(props: GetRuleProps): Promise<GetRuleResponseContainer>;
24
+ /**
25
+ * gets a chaos guard rule by id
26
+ */
27
+ export declare function useGetRuleQuery(props: GetRuleProps, options?: Omit<UseQueryOptions<GetRuleResponseContainer, GetRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRuleResponseContainer, ApiRestError>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
+ export function getRule(props) {
7
+ return fetcher(Object.assign({ url: `/v3/chaosguard-rules/${props.identity}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * gets a chaos guard rule by id
11
+ */
12
+ export function useGetRuleQuery(props, options) {
13
+ return useQuery(['getRule', props.identity, props.queryParams], ({ signal }) => getRule(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosguardconditionsListConditionResponse } from '../schemas/ChaosguardconditionsListConditionResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListConditionQueryQueryParams {
6
+ accountIdentifier: string;
7
+ correlationID?: string;
8
+ /**
9
+ * @default 15
10
+ */
11
+ limit?: number;
12
+ organizationIdentifier?: string;
13
+ /**
14
+ * @default 0
15
+ */
16
+ page?: number;
17
+ projectIdentifier?: string;
18
+ search?: string;
19
+ sortAscending?: boolean;
20
+ sortField?: 'lastUpdated' | 'name';
21
+ tags?: string;
22
+ }
23
+ export type ListConditionOkResponse = ChaosguardconditionsListConditionResponse;
24
+ export type ListConditionErrorResponse = ApiRestError;
25
+ export interface ListConditionProps extends Omit<FetcherOptions<ListConditionQueryQueryParams, unknown>, 'url'> {
26
+ queryParams: ListConditionQueryQueryParams;
27
+ }
28
+ export interface ListConditionResponseContainer {
29
+ body: ListConditionOkResponse;
30
+ headers: Headers;
31
+ }
32
+ export declare function listCondition(props: ListConditionProps): Promise<ListConditionResponseContainer>;
33
+ /**
34
+ * lists chaos guard conditions
35
+ */
36
+ export declare function useListConditionQuery(props: ListConditionProps, options?: Omit<UseQueryOptions<ListConditionResponseContainer, ListConditionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListConditionResponseContainer, ApiRestError>;