@harnessio/react-chaos-manager-client 0.9.0 → 0.10.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 (169) hide show
  1. package/dist/chaos-manager/src/services/hooks/useCreateActionMutation.d.ts +26 -0
  2. package/dist/chaos-manager/src/services/hooks/useCreateActionMutation.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useCreateActionTemplateMutation.d.ts +27 -0
  4. package/dist/chaos-manager/src/services/hooks/useCreateActionTemplateMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.d.ts +24 -0
  6. package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.js +14 -0
  7. package/dist/chaos-manager/src/services/hooks/useCreateChaosHubMutation.d.ts +30 -0
  8. package/dist/chaos-manager/src/services/hooks/useCreateChaosHubMutation.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useDeleteActionMutation.d.ts +26 -0
  10. package/dist/chaos-manager/src/services/hooks/useDeleteActionMutation.js +14 -0
  11. package/dist/chaos-manager/src/services/hooks/useExperimentExecutionNodeDetailsQuery.d.ts +28 -0
  12. package/dist/chaos-manager/src/services/hooks/useExperimentExecutionNodeDetailsQuery.js +20 -0
  13. package/dist/chaos-manager/src/services/hooks/useGetActionManifestQuery.d.ts +25 -0
  14. package/dist/chaos-manager/src/services/hooks/useGetActionManifestQuery.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useGetActionQuery.d.ts +26 -0
  16. package/dist/chaos-manager/src/services/hooks/useGetActionQuery.js +14 -0
  17. package/dist/chaos-manager/src/services/hooks/useGetActionTemplateQuery.d.ts +28 -0
  18. package/dist/chaos-manager/src/services/hooks/useGetActionTemplateQuery.js +14 -0
  19. package/dist/chaos-manager/src/services/hooks/useGetActionTemplateRevisionDifferenceQuery.d.ts +29 -0
  20. package/dist/chaos-manager/src/services/hooks/useGetActionTemplateRevisionDifferenceQuery.js +14 -0
  21. package/dist/chaos-manager/src/services/hooks/useGetChaosHubQuery.d.ts +26 -0
  22. package/dist/chaos-manager/src/services/hooks/useGetChaosHubQuery.js +14 -0
  23. package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.d.ts +27 -0
  24. package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.js +14 -0
  25. package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.d.ts +28 -0
  26. package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.js +20 -0
  27. package/dist/chaos-manager/src/services/hooks/useImportActionMutation.d.ts +27 -0
  28. package/dist/chaos-manager/src/services/hooks/useImportActionMutation.js +14 -0
  29. package/dist/chaos-manager/src/services/hooks/useListActionTemplateQuery.d.ts +36 -0
  30. package/dist/chaos-manager/src/services/hooks/useListActionTemplateQuery.js +14 -0
  31. package/dist/chaos-manager/src/services/hooks/useListActionTemplateRevisionsQuery.d.ts +35 -0
  32. package/dist/chaos-manager/src/services/hooks/useListActionTemplateRevisionsQuery.js +14 -0
  33. package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +36 -0
  34. package/dist/chaos-manager/src/services/hooks/useListActionsQuery.js +14 -0
  35. package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.d.ts +33 -0
  36. package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.js +14 -0
  37. package/dist/chaos-manager/src/services/hooks/useListVariablesInActionTemplateQuery.d.ts +28 -0
  38. package/dist/chaos-manager/src/services/hooks/useListVariablesInActionTemplateQuery.js +14 -0
  39. package/dist/chaos-manager/src/services/hooks/useUpdateActionMutation.d.ts +30 -0
  40. package/dist/chaos-manager/src/services/hooks/useUpdateActionMutation.js +14 -0
  41. package/dist/chaos-manager/src/services/hooks/useUpdateActionTemplateMutation.d.ts +31 -0
  42. package/dist/chaos-manager/src/services/hooks/useUpdateActionTemplateMutation.js +14 -0
  43. package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.d.ts +29 -0
  44. package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.js +14 -0
  45. package/dist/chaos-manager/src/services/hooks/useUpdateChaosHubMutation.d.ts +30 -0
  46. package/dist/chaos-manager/src/services/hooks/useUpdateChaosHubMutation.js +14 -0
  47. package/dist/chaos-manager/src/services/index.d.ts +90 -3
  48. package/dist/chaos-manager/src/services/index.js +23 -0
  49. package/dist/chaos-manager/src/services/requestBodies/ChaosfaulttemplateActionTemplateRequestBody.d.ts +2 -0
  50. package/dist/chaos-manager/src/services/schemas/ActionsActionDetails.d.ts +7 -0
  51. package/dist/chaos-manager/src/services/schemas/ActionsActionDetails.js +1 -0
  52. package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.d.ts +29 -0
  53. package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.js +1 -0
  54. package/dist/chaos-manager/src/services/schemas/ActionsActionRunProperties.d.ts +8 -0
  55. package/dist/chaos-manager/src/services/schemas/ActionsActionType.d.ts +1 -0
  56. package/dist/chaos-manager/src/services/schemas/ActionsExecutedByExperiment.d.ts +9 -0
  57. package/dist/chaos-manager/src/services/schemas/ActionsExecutedByExperiment.js +1 -0
  58. package/dist/chaos-manager/src/services/schemas/ActionsImportActionTemplateRequest.d.ts +11 -0
  59. package/dist/chaos-manager/src/services/schemas/ActionsImportActionTemplateRequest.js +4 -0
  60. package/dist/chaos-manager/src/services/schemas/ActionsInfrastructureType.d.ts +1 -0
  61. package/dist/chaos-manager/src/services/schemas/ActionsInfrastructureType.js +4 -0
  62. package/dist/chaos-manager/src/services/schemas/ActionsListActionTemplateResponse.d.ts +6 -0
  63. package/dist/chaos-manager/src/services/schemas/ActionsListActionTemplateResponse.js +1 -0
  64. package/dist/chaos-manager/src/services/schemas/ActionsRecentExecutions.d.ts +6 -0
  65. package/dist/chaos-manager/src/services/schemas/ActionsRecentExecutions.js +1 -0
  66. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.d.ts +1 -1
  67. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts +1 -1
  68. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepStatus.d.ts +1 -1
  69. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.d.ts +2 -2
  70. package/dist/chaos-manager/src/services/schemas/ChaosExperimentChaosExperimentRequest.d.ts +3 -3
  71. package/dist/chaos-manager/src/services/schemas/ChaosExperimentExperimentRunDetail.d.ts +1 -1
  72. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +2 -2
  73. package/dist/chaos-manager/src/services/schemas/ChaosHubAuthType.d.ts +1 -0
  74. package/dist/chaos-manager/src/services/schemas/ChaosHubAuthType.js +4 -0
  75. package/dist/chaos-manager/src/services/schemas/ChaosHubConnectorScope.d.ts +1 -0
  76. package/dist/chaos-manager/src/services/schemas/ChaosHubConnectorScope.js +4 -0
  77. package/dist/chaos-manager/src/services/schemas/ChaosHubStatus.d.ts +1 -0
  78. package/dist/chaos-manager/src/services/schemas/ChaosHubStatus.js +4 -0
  79. package/dist/chaos-manager/src/services/schemas/ChaosInfrastructureV2ChaosInfraV2.d.ts +3 -3
  80. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionProperties.d.ts +7 -0
  81. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionProperties.js +1 -0
  82. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionsTemplateCount.d.ts +5 -0
  83. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionsTemplateCount.js +1 -0
  84. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateChaosActionTemplate.d.ts +44 -0
  85. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateChaosActionTemplate.js +1 -0
  86. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplate.d.ts +16 -0
  87. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplate.js +1 -0
  88. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplateVariables.d.ts +6 -0
  89. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplateVariables.js +1 -0
  90. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetActionTemplateResponse.d.ts +5 -0
  91. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetActionTemplateResponse.js +1 -0
  92. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateListActionTemplateResponse.d.ts +9 -0
  93. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateListActionTemplateResponse.js +1 -0
  94. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +44 -0
  95. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.js +1 -0
  96. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +9 -0
  97. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.js +4 -0
  98. package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +44 -0
  99. package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.js +1 -0
  100. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ListHubResponse.d.ts +6 -0
  101. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ListHubResponse.js +1 -0
  102. package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.d.ts +5 -0
  103. package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.js +4 -0
  104. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction.d.ts +18 -0
  105. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction.js +1 -0
  106. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.d.ts +24 -0
  107. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.js +1 -0
  108. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate.d.ts +1 -1
  109. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonKubernetesV2ModelChaosData.d.ts +8 -0
  110. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonKubernetesV2ModelChaosData.js +1 -0
  111. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.d.ts +1 -0
  112. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesChaosInputs.d.ts +31 -5
  113. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition.d.ts +6 -0
  114. package/dist/chaos-manager/src/services/schemas/InputsetInputSet.d.ts +1 -1
  115. package/dist/chaos-manager/src/services/schemas/ModelActionData.d.ts +3 -0
  116. package/dist/chaos-manager/src/services/schemas/ModelActionData.js +4 -0
  117. package/dist/chaos-manager/src/services/schemas/ModelChaosExecutionNode.d.ts +19 -0
  118. package/dist/chaos-manager/src/services/schemas/ModelChaosExecutionNode.js +1 -0
  119. package/dist/chaos-manager/src/services/schemas/ModelChaosStepStatus.d.ts +1 -0
  120. package/dist/chaos-manager/src/services/schemas/ModelChaosStepStatus.js +4 -0
  121. package/dist/chaos-manager/src/services/schemas/ModelChaosStepType.d.ts +1 -0
  122. package/dist/chaos-manager/src/services/schemas/ModelChaosStepType.js +4 -0
  123. package/dist/chaos-manager/src/services/schemas/ModelCommandProbe.d.ts +3 -0
  124. package/dist/chaos-manager/src/services/schemas/ModelCommandProbe.js +4 -0
  125. package/dist/chaos-manager/src/services/schemas/ModelErrorData.d.ts +4 -0
  126. package/dist/chaos-manager/src/services/schemas/ModelErrorData.js +4 -0
  127. package/dist/chaos-manager/src/services/schemas/ModelFaultData.d.ts +10 -0
  128. package/dist/chaos-manager/src/services/schemas/ModelFaultData.js +1 -0
  129. package/dist/chaos-manager/src/services/schemas/ModelHelperPodDetails.d.ts +4 -0
  130. package/dist/chaos-manager/src/services/schemas/ModelHelperPodDetails.js +4 -0
  131. package/dist/chaos-manager/src/services/schemas/ModelHttpProbe.d.ts +5 -0
  132. package/dist/chaos-manager/src/services/schemas/ModelHttpProbe.js +4 -0
  133. package/dist/chaos-manager/src/services/schemas/ModelProbeData.d.ts +8 -0
  134. package/dist/chaos-manager/src/services/schemas/ModelProbeData.js +1 -0
  135. package/dist/chaos-manager/src/services/schemas/ModelProbeIterations.d.ts +11 -0
  136. package/dist/chaos-manager/src/services/schemas/ModelProbeIterations.js +1 -0
  137. package/dist/chaos-manager/src/services/schemas/ModelPromProbe.d.ts +3 -0
  138. package/dist/chaos-manager/src/services/schemas/ModelPromProbe.js +4 -0
  139. package/dist/chaos-manager/src/services/schemas/NetworkmapGetTargetNetworkMapResponse.d.ts +2 -2
  140. package/dist/chaos-manager/src/services/schemas/TargetnetworkmapExperimentRunDetail.d.ts +1 -1
  141. package/dist/chaos-manager/src/services/schemas/TargetnetworkmapTargetNetworkMap.d.ts +2 -2
  142. package/dist/chaos-manager/src/services/schemas/TargetserviceTargetService.d.ts +2 -2
  143. package/dist/chaos-manager/src/services/schemas/TypesConfigMap.d.ts +9 -0
  144. package/dist/chaos-manager/src/services/schemas/TypesExperimentComponents.d.ts +39 -0
  145. package/dist/chaos-manager/src/services/schemas/TypesFault.d.ts +21 -0
  146. package/dist/chaos-manager/src/services/schemas/TypesFault.js +1 -0
  147. package/dist/chaos-manager/src/services/schemas/TypesFaultRef.d.ts +14 -0
  148. package/dist/chaos-manager/src/services/schemas/TypesFaultRef.js +4 -0
  149. package/dist/chaos-manager/src/services/schemas/TypesHostFile.d.ts +12 -0
  150. package/dist/chaos-manager/src/services/schemas/TypesProjectedVolumes.d.ts +12 -0
  151. package/dist/chaos-manager/src/services/schemas/TypesSecret.d.ts +9 -0
  152. package/dist/chaos-manager/src/services/schemas/TypesSecurityContext.d.ts +6 -0
  153. package/dist/chaos-manager/src/services/schemas/TypesSelector.d.ts +3 -0
  154. package/dist/chaos-manager/src/services/schemas/TypesSidecar.d.ts +15 -0
  155. package/dist/chaos-manager/src/services/schemas/TypesStatusCheckTimeout.d.ts +6 -0
  156. package/dist/chaos-manager/src/services/schemas/TypesTargets.d.ts +3 -2
  157. package/dist/chaos-manager/src/services/schemas/TypesWorkload.d.ts +12 -0
  158. package/dist/chaos-manager/src/services/schemas/V1alpha1TargetDetails.d.ts +5 -0
  159. package/dist/chaos-manager/src/services/schemas/V1alpha1TargetDetails.js +4 -0
  160. package/dist/chaos-manager/src/services/schemas/V1alpha1Targets.d.ts +8 -0
  161. package/dist/chaos-manager/src/services/schemas/V1alpha1Targets.js +4 -0
  162. package/dist/chaos-manager/src/services/schemas/V2OnboardingV2Onboarding.d.ts +2 -2
  163. package/package.json +1 -1
  164. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultDetails.d.ts +0 -5
  165. package/dist/chaos-manager/src/services/schemas/TypesApplication.d.ts +0 -4
  166. package/dist/chaos-manager/src/services/schemas/TypesCleanupPolicy.d.ts +0 -1
  167. /package/dist/chaos-manager/src/services/{schemas/ChaosExecutionNodesFaultDetails.js → requestBodies/ChaosfaulttemplateActionTemplateRequestBody.js} +0 -0
  168. /package/dist/chaos-manager/src/services/schemas/{TypesApplication.js → ActionsActionRunProperties.js} +0 -0
  169. /package/dist/chaos-manager/src/services/schemas/{TypesCleanupPolicy.js → ActionsActionType.js} +0 -0
@@ -0,0 +1,26 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GithubComHarnessHceSaasGraphqlServerPkgActionsAction } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface CreateActionMutationQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ }
10
+ export type CreateActionRequestBody = GithubComHarnessHceSaasGraphqlServerPkgActionsAction;
11
+ export type CreateActionOkResponse = GithubComHarnessHceSaasGraphqlServerPkgActionsAction;
12
+ export type CreateActionErrorResponse = ApiRestError;
13
+ export interface CreateActionProps extends Omit<FetcherOptions<CreateActionMutationQueryParams, CreateActionRequestBody>, 'url'> {
14
+ queryParams: CreateActionMutationQueryParams;
15
+ body: CreateActionRequestBody;
16
+ }
17
+ export interface CreateActionResponseContainer {
18
+ body: CreateActionOkResponse;
19
+ headers: Headers;
20
+ }
21
+ export declare function createAction(props: CreateActionProps): Promise<CreateActionResponseContainer>;
22
+ export type CreateActionMutationProps<T extends keyof CreateActionProps> = Omit<CreateActionProps, T> & Partial<Pick<CreateActionProps, T>>;
23
+ /**
24
+ * Create a new action
25
+ */
26
+ export declare function useCreateActionMutation<T extends keyof CreateActionProps>(props: Pick<Partial<CreateActionProps>, T>, options?: Omit<UseMutationOptions<CreateActionResponseContainer, CreateActionErrorResponse, CreateActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateActionResponseContainer, ApiRestError, CreateActionMutationProps<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 createAction(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create a new action
11
+ */
12
+ export function useCreateActionMutation(props, options) {
13
+ return useMutation((mutateProps) => createAction(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaulttemplateActionTemplate } from '../schemas/ChaosfaulttemplateActionTemplate';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ChaosfaulttemplateActionTemplateRequestBody } from '../requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface CreateActionTemplateMutationQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier: string;
9
+ projectIdentifier: string;
10
+ }
11
+ export type CreateActionTemplateRequestBody = ChaosfaulttemplateActionTemplateRequestBody;
12
+ export type CreateActionTemplateOkResponse = ChaosfaulttemplateActionTemplate;
13
+ export type CreateActionTemplateErrorResponse = ApiRestError;
14
+ export interface CreateActionTemplateProps extends Omit<FetcherOptions<CreateActionTemplateMutationQueryParams, CreateActionTemplateRequestBody>, 'url'> {
15
+ queryParams: CreateActionTemplateMutationQueryParams;
16
+ body: CreateActionTemplateRequestBody;
17
+ }
18
+ export interface CreateActionTemplateResponseContainer {
19
+ body: CreateActionTemplateOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function createActionTemplate(props: CreateActionTemplateProps): Promise<CreateActionTemplateResponseContainer>;
23
+ export type CreateActionTemplateMutationProps<T extends keyof CreateActionTemplateProps> = Omit<CreateActionTemplateProps, T> & Partial<Pick<CreateActionTemplateProps, T>>;
24
+ /**
25
+ * Creates action templates in a hub based on tag
26
+ */
27
+ export declare function useCreateActionTemplateMutation<T extends keyof CreateActionTemplateProps>(props: Pick<Partial<CreateActionTemplateProps>, T>, options?: Omit<UseMutationOptions<CreateActionTemplateResponseContainer, CreateActionTemplateErrorResponse, CreateActionTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateActionTemplateResponseContainer, ApiRestError, CreateActionTemplateMutationProps<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 createActionTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates action templates in a hub based on tag
11
+ */
12
+ export function useCreateActionTemplateMutation(props, options) {
13
+ return useMutation((mutateProps) => createActionTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
+ import type { ModelChaosExecutionNode } from '../schemas/ModelChaosExecutionNode';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface CreateChaosExperimentExecutionNodeMutationPathParams {
6
+ experimentId: string;
7
+ experimentRunId: string;
8
+ }
9
+ export type CreateChaosExperimentExecutionNodeRequestBody = ModelChaosExecutionNode[];
10
+ export type CreateChaosExperimentExecutionNodeOkResponse = string;
11
+ export type CreateChaosExperimentExecutionNodeErrorResponse = ApiRestError;
12
+ export interface CreateChaosExperimentExecutionNodeProps extends CreateChaosExperimentExecutionNodeMutationPathParams, Omit<FetcherOptions<unknown, CreateChaosExperimentExecutionNodeRequestBody>, 'url'> {
13
+ body: CreateChaosExperimentExecutionNodeRequestBody;
14
+ }
15
+ export interface CreateChaosExperimentExecutionNodeResponseContainer {
16
+ body: CreateChaosExperimentExecutionNodeOkResponse;
17
+ headers: Headers;
18
+ }
19
+ export declare function createChaosExperimentExecutionNode(props: CreateChaosExperimentExecutionNodeProps): Promise<CreateChaosExperimentExecutionNodeResponseContainer>;
20
+ export type CreateChaosExperimentExecutionNodeMutationProps<T extends keyof CreateChaosExperimentExecutionNodeProps> = Omit<CreateChaosExperimentExecutionNodeProps, T> & Partial<Pick<CreateChaosExperimentExecutionNodeProps, T>>;
21
+ /**
22
+ * Create chaos execution node
23
+ */
24
+ export declare function useCreateChaosExperimentExecutionNodeMutation<T extends keyof CreateChaosExperimentExecutionNodeProps>(props: Pick<Partial<CreateChaosExperimentExecutionNodeProps>, T>, options?: Omit<UseMutationOptions<CreateChaosExperimentExecutionNodeResponseContainer, CreateChaosExperimentExecutionNodeErrorResponse, CreateChaosExperimentExecutionNodeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChaosExperimentExecutionNodeResponseContainer, ApiRestError, CreateChaosExperimentExecutionNodeMutationProps<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 createChaosExperimentExecutionNode(props) {
7
+ return fetcher(Object.assign({ url: `/internal/v2/taskCallback/${props.experimentId}/${props.experimentRunId}`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create chaos execution node
11
+ */
12
+ export function useCreateChaosExperimentExecutionNodeMutation(props, options) {
13
+ return useMutation((mutateProps) => createChaosExperimentExecutionNode(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,30 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { Chaoshubv2GetHubResponse } from '../schemas/Chaoshubv2GetHubResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { Chaoshubv2CreateHubRequest } from '../schemas/Chaoshubv2CreateHubRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface CreateChaosHubMutationPathParams {
7
+ hubIdentity: string;
8
+ }
9
+ export interface CreateChaosHubMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ }
14
+ export type CreateChaosHubRequestBody = Chaoshubv2CreateHubRequest;
15
+ export type CreateChaosHubOkResponse = Chaoshubv2GetHubResponse;
16
+ export type CreateChaosHubErrorResponse = ApiRestError;
17
+ export interface CreateChaosHubProps extends CreateChaosHubMutationPathParams, Omit<FetcherOptions<CreateChaosHubMutationQueryParams, CreateChaosHubRequestBody>, 'url'> {
18
+ queryParams: CreateChaosHubMutationQueryParams;
19
+ body: CreateChaosHubRequestBody;
20
+ }
21
+ export interface CreateChaosHubResponseContainer {
22
+ body: CreateChaosHubOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function createChaosHub(props: CreateChaosHubProps): Promise<CreateChaosHubResponseContainer>;
26
+ export type CreateChaosHubMutationProps<T extends keyof CreateChaosHubProps> = Omit<CreateChaosHubProps, T> & Partial<Pick<CreateChaosHubProps, T>>;
27
+ /**
28
+ * Create chaos hub
29
+ */
30
+ export declare function useCreateChaosHubMutation<T extends keyof CreateChaosHubProps>(props: Pick<Partial<CreateChaosHubProps>, T>, options?: Omit<UseMutationOptions<CreateChaosHubResponseContainer, CreateChaosHubErrorResponse, CreateChaosHubMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChaosHubResponseContainer, ApiRestError, CreateChaosHubMutationProps<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 createChaosHub(props) {
7
+ return fetcher(Object.assign({ url: `/rest/hubs`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create chaos hub
11
+ */
12
+ export function useCreateChaosHubMutation(props, options) {
13
+ return useMutation((mutateProps) => createChaosHub(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,26 @@
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 DeleteActionMutationPathParams {
5
+ actionId: string;
6
+ }
7
+ export interface DeleteActionMutationQueryParams {
8
+ accountIdentifier: string;
9
+ organizationIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type DeleteActionOkResponse = string;
13
+ export type DeleteActionErrorResponse = ApiRestError;
14
+ export interface DeleteActionProps extends DeleteActionMutationPathParams, Omit<FetcherOptions<DeleteActionMutationQueryParams, unknown>, 'url'> {
15
+ queryParams: DeleteActionMutationQueryParams;
16
+ }
17
+ export interface DeleteActionResponseContainer {
18
+ body: DeleteActionOkResponse;
19
+ headers: Headers;
20
+ }
21
+ export declare function deleteAction(props: DeleteActionProps): Promise<DeleteActionResponseContainer>;
22
+ export type DeleteActionMutationProps<T extends keyof DeleteActionProps> = Omit<DeleteActionProps, T> & Partial<Pick<DeleteActionProps, T>>;
23
+ /**
24
+ * Delete an action with a provided identifier
25
+ */
26
+ export declare function useDeleteActionMutation<T extends keyof DeleteActionProps>(props: Pick<Partial<DeleteActionProps>, T>, options?: Omit<UseMutationOptions<DeleteActionResponseContainer, DeleteActionErrorResponse, DeleteActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteActionResponseContainer, ApiRestError, DeleteActionMutationProps<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 deleteAction(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions/${props.actionId}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete an action with a provided identifier
11
+ */
12
+ export function useDeleteActionMutation(props, options) {
13
+ return useMutation((mutateProps) => deleteAction(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ModelChaosExecutionNode } from '../schemas/ModelChaosExecutionNode';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ExperimentExecutionNodeDetailsQueryPathParams {
6
+ name: string;
7
+ experimentId: string;
8
+ experimentRunId: string;
9
+ }
10
+ export interface ExperimentExecutionNodeDetailsQueryQueryParams {
11
+ accountIdentifier: string;
12
+ organizationIdentifier: string;
13
+ projectIdentifier: string;
14
+ }
15
+ export type ExperimentExecutionNodeDetailsOkResponse = ModelChaosExecutionNode[];
16
+ export type ExperimentExecutionNodeDetailsErrorResponse = ApiRestError;
17
+ export interface ExperimentExecutionNodeDetailsProps extends ExperimentExecutionNodeDetailsQueryPathParams, Omit<FetcherOptions<ExperimentExecutionNodeDetailsQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: ExperimentExecutionNodeDetailsQueryQueryParams;
19
+ }
20
+ export interface ExperimentExecutionNodeDetailsResponseContainer {
21
+ body: ExperimentExecutionNodeDetailsOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function experimentExecutionNodeDetails(props: ExperimentExecutionNodeDetailsProps): Promise<ExperimentExecutionNodeDetailsResponseContainer>;
25
+ /**
26
+ * Get chaos execution node
27
+ */
28
+ export declare function useExperimentExecutionNodeDetailsQuery(props: ExperimentExecutionNodeDetailsProps, options?: Omit<UseQueryOptions<ExperimentExecutionNodeDetailsResponseContainer, ExperimentExecutionNodeDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ExperimentExecutionNodeDetailsResponseContainer, ApiRestError>;
@@ -0,0 +1,20 @@
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 experimentExecutionNodeDetails(props) {
7
+ return fetcher(Object.assign({ url: `/internal/v2/node/${props.experimentId}/${props.experimentRunId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get chaos execution node
11
+ */
12
+ export function useExperimentExecutionNodeDetailsQuery(props, options) {
13
+ return useQuery([
14
+ 'experimentExecutionNodeDetails',
15
+ props.name,
16
+ props.experimentId,
17
+ props.experimentRunId,
18
+ props.queryParams,
19
+ ], ({ signal }) => experimentExecutionNodeDetails(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -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 GetActionManifestQueryPathParams {
5
+ identity: string;
6
+ }
7
+ export interface GetActionManifestQueryQueryParams {
8
+ accountIdentifier: string;
9
+ organizationIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type GetActionManifestOkResponse = string;
13
+ export type GetActionManifestErrorResponse = ApiRestError;
14
+ export interface GetActionManifestProps extends GetActionManifestQueryPathParams, Omit<FetcherOptions<GetActionManifestQueryQueryParams, unknown>, 'url'> {
15
+ queryParams: GetActionManifestQueryQueryParams;
16
+ }
17
+ export interface GetActionManifestResponseContainer {
18
+ body: GetActionManifestOkResponse;
19
+ headers: Headers;
20
+ }
21
+ export declare function getActionManifest(props: GetActionManifestProps): Promise<GetActionManifestResponseContainer>;
22
+ /**
23
+ * Retrieve Action manifest of a specific action by its ID
24
+ */
25
+ export declare function useGetActionManifestQuery(props: GetActionManifestProps, options?: Omit<UseQueryOptions<GetActionManifestResponseContainer, GetActionManifestErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionManifestResponseContainer, 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 getActionManifest(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions/manifest/${props.identity}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve Action manifest of a specific action by its ID
11
+ */
12
+ export function useGetActionManifestQuery(props, options) {
13
+ return useQuery(['getActionManifest', props.identity, props.queryParams], ({ signal }) => getActionManifest(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ActionsActionResponse } from '../schemas/ActionsActionResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetActionQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface GetActionQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ }
13
+ export type GetActionOkResponse = ActionsActionResponse;
14
+ export type GetActionErrorResponse = ApiRestError;
15
+ export interface GetActionProps extends GetActionQueryPathParams, Omit<FetcherOptions<GetActionQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: GetActionQueryQueryParams;
17
+ }
18
+ export interface GetActionResponseContainer {
19
+ body: GetActionOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function getAction(props: GetActionProps): Promise<GetActionResponseContainer>;
23
+ /**
24
+ * Retrieve details of a specific action by its ID
25
+ */
26
+ export declare function useGetActionQuery(props: GetActionProps, options?: Omit<UseQueryOptions<GetActionResponseContainer, GetActionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionResponseContainer, 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 getAction(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions/${props.identity}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve details of a specific action by its ID
11
+ */
12
+ export function useGetActionQuery(props, options) {
13
+ return useQuery(['getAction', props.identity, props.queryParams], ({ signal }) => getAction(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaulttemplateGetActionTemplateResponse } from '../schemas/ChaosfaulttemplateGetActionTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetActionTemplateQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface GetActionTemplateQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ hubIdentity: string;
13
+ revision?: string;
14
+ }
15
+ export type GetActionTemplateOkResponse = ChaosfaulttemplateGetActionTemplateResponse;
16
+ export type GetActionTemplateErrorResponse = ApiRestError;
17
+ export interface GetActionTemplateProps extends GetActionTemplateQueryPathParams, Omit<FetcherOptions<GetActionTemplateQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: GetActionTemplateQueryQueryParams;
19
+ }
20
+ export interface GetActionTemplateResponseContainer {
21
+ body: GetActionTemplateOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function getActionTemplate(props: GetActionTemplateProps): Promise<GetActionTemplateResponseContainer>;
25
+ /**
26
+ * Get the action template in a hub based on action ref
27
+ */
28
+ export declare function useGetActionTemplateQuery(props: GetActionTemplateProps, options?: Omit<UseQueryOptions<GetActionTemplateResponseContainer, GetActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionTemplateResponseContainer, 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 getActionTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the action template in a hub based on action ref
11
+ */
12
+ export function useGetActionTemplateQuery(props, options) {
13
+ return useQuery(['getActionTemplate', props.identity, props.queryParams], ({ signal }) => getActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,29 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaulttemplateListActionTemplateResponse } from '../schemas/ChaosfaulttemplateListActionTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetActionTemplateRevisionDifferenceQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface GetActionTemplateRevisionDifferenceQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ hubIdentity: string;
13
+ revision: string;
14
+ revisionToCompare: string;
15
+ }
16
+ export type GetActionTemplateRevisionDifferenceOkResponse = ChaosfaulttemplateListActionTemplateResponse;
17
+ export type GetActionTemplateRevisionDifferenceErrorResponse = ApiRestError;
18
+ export interface GetActionTemplateRevisionDifferenceProps extends GetActionTemplateRevisionDifferenceQueryPathParams, Omit<FetcherOptions<GetActionTemplateRevisionDifferenceQueryQueryParams, unknown>, 'url'> {
19
+ queryParams: GetActionTemplateRevisionDifferenceQueryQueryParams;
20
+ }
21
+ export interface GetActionTemplateRevisionDifferenceResponseContainer {
22
+ body: GetActionTemplateRevisionDifferenceOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function getActionTemplateRevisionDifference(props: GetActionTemplateRevisionDifferenceProps): Promise<GetActionTemplateRevisionDifferenceResponseContainer>;
26
+ /**
27
+ * Get the difference between 2 revisions of action template in a hub
28
+ */
29
+ export declare function useGetActionTemplateRevisionDifferenceQuery(props: GetActionTemplateRevisionDifferenceProps, options?: Omit<UseQueryOptions<GetActionTemplateRevisionDifferenceResponseContainer, GetActionTemplateRevisionDifferenceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetActionTemplateRevisionDifferenceResponseContainer, 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 getActionTemplateRevisionDifference(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}/compare`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the difference between 2 revisions of action template in a hub
11
+ */
12
+ export function useGetActionTemplateRevisionDifferenceQuery(props, options) {
13
+ return useQuery(['getActionTemplateRevisionDifference', props.identity, props.queryParams], ({ signal }) => getActionTemplateRevisionDifference(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { Chaoshubv2GetHubResponse } from '../schemas/Chaoshubv2GetHubResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetChaosHubQueryPathParams {
6
+ hubIdentity: string;
7
+ }
8
+ export interface GetChaosHubQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ }
13
+ export type GetChaosHubOkResponse = Chaoshubv2GetHubResponse;
14
+ export type GetChaosHubErrorResponse = ApiRestError;
15
+ export interface GetChaosHubProps extends GetChaosHubQueryPathParams, Omit<FetcherOptions<GetChaosHubQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: GetChaosHubQueryQueryParams;
17
+ }
18
+ export interface GetChaosHubResponseContainer {
19
+ body: GetChaosHubOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function getChaosHub(props: GetChaosHubProps): Promise<GetChaosHubResponseContainer>;
23
+ /**
24
+ * Get chaos hub based on given filters
25
+ */
26
+ export declare function useGetChaosHubQuery(props: GetChaosHubProps, options?: Omit<UseQueryOptions<GetChaosHubResponseContainer, GetChaosHubErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosHubResponseContainer, 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 getChaosHub(props) {
7
+ return fetcher(Object.assign({ url: `/rest/hubs/${props.hubIdentity}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get chaos hub based on given filters
11
+ */
12
+ export function useGetChaosHubQuery(props, options) {
13
+ return useQuery(['getChaosHub', props.hubIdentity, props.queryParams], ({ signal }) => getChaosHub(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosExecutionNodesChaosExecutionResponse } from '../schemas/ChaosExecutionNodesChaosExecutionResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetChaosPipelineExecutionQueryPathParams {
6
+ experimentId: string;
7
+ experimentRunId: string;
8
+ }
9
+ export interface GetChaosPipelineExecutionQueryQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ }
14
+ export type GetChaosPipelineExecutionOkResponse = ChaosExecutionNodesChaosExecutionResponse;
15
+ export type GetChaosPipelineExecutionErrorResponse = ApiRestError;
16
+ export interface GetChaosPipelineExecutionProps extends GetChaosPipelineExecutionQueryPathParams, Omit<FetcherOptions<GetChaosPipelineExecutionQueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetChaosPipelineExecutionQueryQueryParams;
18
+ }
19
+ export interface GetChaosPipelineExecutionResponseContainer {
20
+ body: GetChaosPipelineExecutionOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function getChaosPipelineExecution(props: GetChaosPipelineExecutionProps): Promise<GetChaosPipelineExecutionResponseContainer>;
24
+ /**
25
+ * Get a chaos pipeline execution
26
+ */
27
+ export declare function useGetChaosPipelineExecutionQuery(props: GetChaosPipelineExecutionProps, options?: Omit<UseQueryOptions<GetChaosPipelineExecutionResponseContainer, GetChaosPipelineExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosPipelineExecutionResponseContainer, 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 getChaosPipelineExecution(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/chaos-pipeline/${props.experimentId}/${props.experimentRunId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a chaos pipeline execution
11
+ */
12
+ export function useGetChaosPipelineExecutionQuery(props, options) {
13
+ return useQuery(['getChaosPipelineExecution', props.experimentId, props.experimentRunId, props.queryParams], ({ signal }) => getChaosPipelineExecution(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosExecutionNodesChaosExecutionNode } from '../schemas/ChaosExecutionNodesChaosExecutionNode';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetChaosPipelineStepDetailsQueryPathParams {
6
+ experimentId: string;
7
+ experimentRunId: string;
8
+ stepName: string;
9
+ }
10
+ export interface GetChaosPipelineStepDetailsQueryQueryParams {
11
+ accountIdentifier: string;
12
+ organizationIdentifier: string;
13
+ projectIdentifier: string;
14
+ }
15
+ export type GetChaosPipelineStepDetailsOkResponse = ChaosExecutionNodesChaosExecutionNode;
16
+ export type GetChaosPipelineStepDetailsErrorResponse = ApiRestError;
17
+ export interface GetChaosPipelineStepDetailsProps extends GetChaosPipelineStepDetailsQueryPathParams, Omit<FetcherOptions<GetChaosPipelineStepDetailsQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: GetChaosPipelineStepDetailsQueryQueryParams;
19
+ }
20
+ export interface GetChaosPipelineStepDetailsResponseContainer {
21
+ body: GetChaosPipelineStepDetailsOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function getChaosPipelineStepDetails(props: GetChaosPipelineStepDetailsProps): Promise<GetChaosPipelineStepDetailsResponseContainer>;
25
+ /**
26
+ * Get a chaos pipeline step execution
27
+ */
28
+ export declare function useGetChaosPipelineStepDetailsQuery(props: GetChaosPipelineStepDetailsProps, options?: Omit<UseQueryOptions<GetChaosPipelineStepDetailsResponseContainer, GetChaosPipelineStepDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosPipelineStepDetailsResponseContainer, ApiRestError>;
@@ -0,0 +1,20 @@
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 getChaosPipelineStepDetails(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/chaos-pipeline/step/${props.experimentId}/${props.experimentRunId}/${props.stepName}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a chaos pipeline step execution
11
+ */
12
+ export function useGetChaosPipelineStepDetailsQuery(props, options) {
13
+ return useQuery([
14
+ 'getChaosPipelineStepDetails',
15
+ props.experimentId,
16
+ props.experimentRunId,
17
+ props.stepName,
18
+ props.queryParams,
19
+ ], ({ signal }) => getChaosPipelineStepDetails(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ActionsImportActionTemplateRequest } from '../schemas/ActionsImportActionTemplateRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ImportActionMutationQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier: string;
9
+ projectIdentifier: string;
10
+ }
11
+ export type ImportActionRequestBody = ActionsImportActionTemplateRequest;
12
+ export type ImportActionOkResponse = GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction;
13
+ export type ImportActionErrorResponse = ApiRestError;
14
+ export interface ImportActionProps extends Omit<FetcherOptions<ImportActionMutationQueryParams, ImportActionRequestBody>, 'url'> {
15
+ queryParams: ImportActionMutationQueryParams;
16
+ body: ImportActionRequestBody;
17
+ }
18
+ export interface ImportActionResponseContainer {
19
+ body: ImportActionOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function importAction(props: ImportActionProps): Promise<ImportActionResponseContainer>;
23
+ export type ImportActionMutationProps<T extends keyof ImportActionProps> = Omit<ImportActionProps, T> & Partial<Pick<ImportActionProps, T>>;
24
+ /**
25
+ * Import a new action
26
+ */
27
+ export declare function useImportActionMutation<T extends keyof ImportActionProps>(props: Pick<Partial<ImportActionProps>, T>, options?: Omit<UseMutationOptions<ImportActionResponseContainer, ImportActionErrorResponse, ImportActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportActionResponseContainer, ApiRestError, ImportActionMutationProps<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 importAction(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions/import`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Import a new action
11
+ */
12
+ export function useImportActionMutation(props, options) {
13
+ return useMutation((mutateProps) => importAction(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }