@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,36 @@
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 ListActionTemplateQueryQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ hubIdentity: string;
10
+ /**
11
+ * @default 0
12
+ */
13
+ page: number;
14
+ /**
15
+ * @default 15
16
+ */
17
+ limit: number;
18
+ search: string;
19
+ infraType?: string;
20
+ actionType?: string;
21
+ includeallscope?: string;
22
+ }
23
+ export type ListActionTemplateOkResponse = ChaosfaulttemplateListActionTemplateResponse;
24
+ export type ListActionTemplateErrorResponse = ApiRestError;
25
+ export interface ListActionTemplateProps extends Omit<FetcherOptions<ListActionTemplateQueryQueryParams, unknown>, 'url'> {
26
+ queryParams: ListActionTemplateQueryQueryParams;
27
+ }
28
+ export interface ListActionTemplateResponseContainer {
29
+ body: ListActionTemplateOkResponse;
30
+ headers: Headers;
31
+ }
32
+ export declare function listActionTemplate(props: ListActionTemplateProps): Promise<ListActionTemplateResponseContainer>;
33
+ /**
34
+ * Lists all the action templates in a hub based on tag
35
+ */
36
+ export declare function useListActionTemplateQuery(props: ListActionTemplateProps, options?: Omit<UseQueryOptions<ListActionTemplateResponseContainer, ListActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionTemplateResponseContainer, 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 listActionTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all the action templates in a hub based on tag
11
+ */
12
+ export function useListActionTemplateQuery(props, options) {
13
+ return useQuery(['listActionTemplate', props.queryParams], ({ signal }) => listActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,35 @@
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 ListActionTemplateRevisionsQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface ListActionTemplateRevisionsQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ hubIdentity: string;
13
+ /**
14
+ * @default 0
15
+ */
16
+ page: number;
17
+ /**
18
+ * @default 15
19
+ */
20
+ limit: number;
21
+ }
22
+ export type ListActionTemplateRevisionsOkResponse = ChaosfaulttemplateListActionTemplateResponse;
23
+ export type ListActionTemplateRevisionsErrorResponse = ApiRestError;
24
+ export interface ListActionTemplateRevisionsProps extends ListActionTemplateRevisionsQueryPathParams, Omit<FetcherOptions<ListActionTemplateRevisionsQueryQueryParams, unknown>, 'url'> {
25
+ queryParams: ListActionTemplateRevisionsQueryQueryParams;
26
+ }
27
+ export interface ListActionTemplateRevisionsResponseContainer {
28
+ body: ListActionTemplateRevisionsOkResponse;
29
+ headers: Headers;
30
+ }
31
+ export declare function listActionTemplateRevisions(props: ListActionTemplateRevisionsProps): Promise<ListActionTemplateRevisionsResponseContainer>;
32
+ /**
33
+ * Lists all the revision of a fault template in a hub
34
+ */
35
+ export declare function useListActionTemplateRevisionsQuery(props: ListActionTemplateRevisionsProps, options?: Omit<UseQueryOptions<ListActionTemplateRevisionsResponseContainer, ListActionTemplateRevisionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionTemplateRevisionsResponseContainer, 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 listActionTemplateRevisions(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}/revisions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all the revision of a fault template in a hub
11
+ */
12
+ export function useListActionTemplateRevisionsQuery(props, options) {
13
+ return useQuery(['listActionTemplateRevisions', props.identity, props.queryParams], ({ signal }) => listActionTemplateRevisions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ActionsListActionTemplateResponse } from '../schemas/ActionsListActionTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListActionsQueryQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ hubIdentity?: string;
10
+ search: string;
11
+ /**
12
+ * @default 0
13
+ */
14
+ page: number;
15
+ /**
16
+ * @default 15
17
+ */
18
+ limit: number;
19
+ infraType?: string;
20
+ actionType?: string;
21
+ includeallscope?: string;
22
+ }
23
+ export type ListActionsOkResponse = ActionsListActionTemplateResponse;
24
+ export type ListActionsErrorResponse = ApiRestError;
25
+ export interface ListActionsProps extends Omit<FetcherOptions<ListActionsQueryQueryParams, unknown>, 'url'> {
26
+ queryParams: ListActionsQueryQueryParams;
27
+ }
28
+ export interface ListActionsResponseContainer {
29
+ body: ListActionsOkResponse;
30
+ headers: Headers;
31
+ }
32
+ export declare function listActions(props: ListActionsProps): Promise<ListActionsResponseContainer>;
33
+ /**
34
+ * Retrieve a list of actions based on various filters like name, tags, date range, and infrastructure type, with pagination support.
35
+ */
36
+ export declare function useListActionsQuery(props: ListActionsProps, options?: Omit<UseQueryOptions<ListActionsResponseContainer, ListActionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionsResponseContainer, 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 listActions(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve a list of actions based on various filters like name, tags, date range, and infrastructure type, with pagination support.
11
+ */
12
+ export function useListActionsQuery(props, options) {
13
+ return useQuery(['listActions', props.queryParams], ({ signal }) => listActions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,33 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { Chaoshubv2ListHubResponse } from '../schemas/Chaoshubv2ListHubResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListChaosHubQueryQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ search: string;
10
+ includeallscope: boolean;
11
+ /**
12
+ * @default 0
13
+ */
14
+ page: number;
15
+ /**
16
+ * @default 15
17
+ */
18
+ limit: number;
19
+ }
20
+ export type ListChaosHubOkResponse = Chaoshubv2ListHubResponse;
21
+ export type ListChaosHubErrorResponse = ApiRestError;
22
+ export interface ListChaosHubProps extends Omit<FetcherOptions<ListChaosHubQueryQueryParams, unknown>, 'url'> {
23
+ queryParams: ListChaosHubQueryQueryParams;
24
+ }
25
+ export interface ListChaosHubResponseContainer {
26
+ body: ListChaosHubOkResponse;
27
+ headers: Headers;
28
+ }
29
+ export declare function listChaosHub(props: ListChaosHubProps): Promise<ListChaosHubResponseContainer>;
30
+ /**
31
+ * Lists chaos hubs based on given filters
32
+ */
33
+ export declare function useListChaosHubQuery(props: ListChaosHubProps, options?: Omit<UseQueryOptions<ListChaosHubResponseContainer, ListChaosHubErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosHubResponseContainer, 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 listChaosHub(props) {
7
+ return fetcher(Object.assign({ url: `/rest/hubs`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists chaos hubs based on given filters
11
+ */
12
+ export function useListChaosHubQuery(props, options) {
13
+ return useQuery(['listChaosHub', props.queryParams], ({ signal }) => listChaosHub(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaulttemplateActionTemplateVariables } from '../schemas/ChaosfaulttemplateActionTemplateVariables';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListVariablesInActionTemplateQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface ListVariablesInActionTemplateQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ hubIdentity: string;
13
+ revision: string;
14
+ }
15
+ export type ListVariablesInActionTemplateOkResponse = ChaosfaulttemplateActionTemplateVariables;
16
+ export type ListVariablesInActionTemplateErrorResponse = ApiRestError;
17
+ export interface ListVariablesInActionTemplateProps extends ListVariablesInActionTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInActionTemplateQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: ListVariablesInActionTemplateQueryQueryParams;
19
+ }
20
+ export interface ListVariablesInActionTemplateResponseContainer {
21
+ body: ListVariablesInActionTemplateOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function listVariablesInActionTemplate(props: ListVariablesInActionTemplateProps): Promise<ListVariablesInActionTemplateResponseContainer>;
25
+ /**
26
+ * Get the list of variables in a fault template based on revision
27
+ */
28
+ export declare function useListVariablesInActionTemplateQuery(props: ListVariablesInActionTemplateProps, options?: Omit<UseQueryOptions<ListVariablesInActionTemplateResponseContainer, ListVariablesInActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVariablesInActionTemplateResponseContainer, 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 listVariablesInActionTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}/variables`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the list of variables in a fault template based on revision
11
+ */
12
+ export function useListVariablesInActionTemplateQuery(props, options) {
13
+ return useQuery(['listVariablesInActionTemplate', props.identity, props.queryParams], ({ signal }) => listVariablesInActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,30 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GithubComHarnessHceSaasGraphqlServerPkgActionsAction } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ActionsActionResponse } from '../schemas/ActionsActionResponse';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface UpdateActionMutationPathParams {
7
+ identity: string;
8
+ }
9
+ export interface UpdateActionMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ }
14
+ export type UpdateActionRequestBody = ActionsActionResponse;
15
+ export type UpdateActionOkResponse = GithubComHarnessHceSaasGraphqlServerPkgActionsAction;
16
+ export type UpdateActionErrorResponse = ApiRestError;
17
+ export interface UpdateActionProps extends UpdateActionMutationPathParams, Omit<FetcherOptions<UpdateActionMutationQueryParams, UpdateActionRequestBody>, 'url'> {
18
+ queryParams: UpdateActionMutationQueryParams;
19
+ body: UpdateActionRequestBody;
20
+ }
21
+ export interface UpdateActionResponseContainer {
22
+ body: UpdateActionOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function updateAction(props: UpdateActionProps): Promise<UpdateActionResponseContainer>;
26
+ export type UpdateActionMutationProps<T extends keyof UpdateActionProps> = Omit<UpdateActionProps, T> & Partial<Pick<UpdateActionProps, T>>;
27
+ /**
28
+ * Update a new action with the specified configuration
29
+ */
30
+ export declare function useUpdateActionMutation<T extends keyof UpdateActionProps>(props: Pick<Partial<UpdateActionProps>, T>, options?: Omit<UseMutationOptions<UpdateActionResponseContainer, UpdateActionErrorResponse, UpdateActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateActionResponseContainer, ApiRestError, UpdateActionMutationProps<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 updateAction(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions/${props.identity}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update a new action with the specified configuration
11
+ */
12
+ export function useUpdateActionMutation(props, options) {
13
+ return useMutation((mutateProps) => updateAction(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,31 @@
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 UpdateActionTemplateMutationPathParams {
7
+ identity: string;
8
+ }
9
+ export interface UpdateActionTemplateMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ isDefault?: boolean;
14
+ }
15
+ export type UpdateActionTemplateRequestBody = ChaosfaulttemplateActionTemplateRequestBody;
16
+ export type UpdateActionTemplateOkResponse = ChaosfaulttemplateActionTemplate;
17
+ export type UpdateActionTemplateErrorResponse = ApiRestError;
18
+ export interface UpdateActionTemplateProps extends UpdateActionTemplateMutationPathParams, Omit<FetcherOptions<UpdateActionTemplateMutationQueryParams, UpdateActionTemplateRequestBody>, 'url'> {
19
+ queryParams: UpdateActionTemplateMutationQueryParams;
20
+ body: UpdateActionTemplateRequestBody;
21
+ }
22
+ export interface UpdateActionTemplateResponseContainer {
23
+ body: UpdateActionTemplateOkResponse;
24
+ headers: Headers;
25
+ }
26
+ export declare function updateActionTemplate(props: UpdateActionTemplateProps): Promise<UpdateActionTemplateResponseContainer>;
27
+ export type UpdateActionTemplateMutationProps<T extends keyof UpdateActionTemplateProps> = Omit<UpdateActionTemplateProps, T> & Partial<Pick<UpdateActionTemplateProps, T>>;
28
+ /**
29
+ * Updates an existing action template in a hub with new configuration
30
+ */
31
+ export declare function useUpdateActionTemplateMutation<T extends keyof UpdateActionTemplateProps>(props: Pick<Partial<UpdateActionTemplateProps>, T>, options?: Omit<UseMutationOptions<UpdateActionTemplateResponseContainer, UpdateActionTemplateErrorResponse, UpdateActionTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateActionTemplateResponseContainer, ApiRestError, UpdateActionTemplateMutationProps<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 updateActionTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Updates an existing action template in a hub with new configuration
11
+ */
12
+ export function useUpdateActionTemplateMutation(props, options) {
13
+ return useMutation((mutateProps) => updateActionTemplate(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 { ModelChaosExecutionNode } from '../schemas/ModelChaosExecutionNode';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface UpdateChaosExperimentExecutionNodeMutationPathParams {
6
+ name: string;
7
+ experimentId: string;
8
+ experimentRunId: string;
9
+ }
10
+ export interface UpdateChaosExperimentExecutionNodeMutationQueryParams {
11
+ accountIdentifier: string;
12
+ }
13
+ export type UpdateChaosExperimentExecutionNodeRequestBody = ModelChaosExecutionNode;
14
+ export type UpdateChaosExperimentExecutionNodeOkResponse = string;
15
+ export type UpdateChaosExperimentExecutionNodeErrorResponse = ApiRestError;
16
+ export interface UpdateChaosExperimentExecutionNodeProps extends UpdateChaosExperimentExecutionNodeMutationPathParams, Omit<FetcherOptions<UpdateChaosExperimentExecutionNodeMutationQueryParams, UpdateChaosExperimentExecutionNodeRequestBody>, 'url'> {
17
+ queryParams: UpdateChaosExperimentExecutionNodeMutationQueryParams;
18
+ body: UpdateChaosExperimentExecutionNodeRequestBody;
19
+ }
20
+ export interface UpdateChaosExperimentExecutionNodeResponseContainer {
21
+ body: UpdateChaosExperimentExecutionNodeOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function updateChaosExperimentExecutionNode(props: UpdateChaosExperimentExecutionNodeProps): Promise<UpdateChaosExperimentExecutionNodeResponseContainer>;
25
+ export type UpdateChaosExperimentExecutionNodeMutationProps<T extends keyof UpdateChaosExperimentExecutionNodeProps> = Omit<UpdateChaosExperimentExecutionNodeProps, T> & Partial<Pick<UpdateChaosExperimentExecutionNodeProps, T>>;
26
+ /**
27
+ * Update chaos execution node
28
+ */
29
+ export declare function useUpdateChaosExperimentExecutionNodeMutation<T extends keyof UpdateChaosExperimentExecutionNodeProps>(props: Pick<Partial<UpdateChaosExperimentExecutionNodeProps>, T>, options?: Omit<UseMutationOptions<UpdateChaosExperimentExecutionNodeResponseContainer, UpdateChaosExperimentExecutionNodeErrorResponse, UpdateChaosExperimentExecutionNodeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateChaosExperimentExecutionNodeResponseContainer, ApiRestError, UpdateChaosExperimentExecutionNodeMutationProps<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 updateChaosExperimentExecutionNode(props) {
7
+ return fetcher(Object.assign({ url: `/internal/v2/taskCallback/${props.experimentId}/${props.experimentRunId}/${props.name}`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Update chaos execution node
11
+ */
12
+ export function useUpdateChaosExperimentExecutionNodeMutation(props, options) {
13
+ return useMutation((mutateProps) => updateChaosExperimentExecutionNode(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 { Chaoshubv2UpdateHubRequest } from '../schemas/Chaoshubv2UpdateHubRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface UpdateChaosHubMutationPathParams {
7
+ hubIdentity: string;
8
+ }
9
+ export interface UpdateChaosHubMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ }
14
+ export type UpdateChaosHubRequestBody = Chaoshubv2UpdateHubRequest;
15
+ export type UpdateChaosHubOkResponse = Chaoshubv2GetHubResponse;
16
+ export type UpdateChaosHubErrorResponse = ApiRestError;
17
+ export interface UpdateChaosHubProps extends UpdateChaosHubMutationPathParams, Omit<FetcherOptions<UpdateChaosHubMutationQueryParams, UpdateChaosHubRequestBody>, 'url'> {
18
+ queryParams: UpdateChaosHubMutationQueryParams;
19
+ body: UpdateChaosHubRequestBody;
20
+ }
21
+ export interface UpdateChaosHubResponseContainer {
22
+ body: UpdateChaosHubOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function updateChaosHub(props: UpdateChaosHubProps): Promise<UpdateChaosHubResponseContainer>;
26
+ export type UpdateChaosHubMutationProps<T extends keyof UpdateChaosHubProps> = Omit<UpdateChaosHubProps, T> & Partial<Pick<UpdateChaosHubProps, T>>;
27
+ /**
28
+ * Update chaos hub
29
+ */
30
+ export declare function useUpdateChaosHubMutation<T extends keyof UpdateChaosHubProps>(props: Pick<Partial<UpdateChaosHubProps>, T>, options?: Omit<UseMutationOptions<UpdateChaosHubResponseContainer, UpdateChaosHubErrorResponse, UpdateChaosHubMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateChaosHubResponseContainer, ApiRestError, UpdateChaosHubMutationProps<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 updateChaosHub(props) {
7
+ return fetcher(Object.assign({ url: `/rest/hubs/${props.hubIdentity}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update chaos hub
11
+ */
12
+ export function useUpdateChaosHubMutation(props, options) {
13
+ return useMutation((mutateProps) => updateChaosHub(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }