@harnessio/react-chaos-manager-client 0.2.0 → 0.3.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 (154) hide show
  1. package/dist/chaos-manager/src/services/hooks/useAddNoteMutation.d.ts +9 -5
  2. package/dist/chaos-manager/src/services/hooks/useAddNoteMutation.js +3 -3
  3. package/dist/chaos-manager/src/services/hooks/useBulkExperimentDeleteMutation.d.ts +9 -5
  4. package/dist/chaos-manager/src/services/hooks/useBulkExperimentDeleteMutation.js +3 -3
  5. package/dist/chaos-manager/src/services/hooks/useBulkExperimentTagAddMutation.d.ts +9 -5
  6. package/dist/chaos-manager/src/services/hooks/useBulkExperimentTagAddMutation.js +3 -3
  7. package/dist/chaos-manager/src/services/hooks/useCanRetryExperimentCreationQuery.d.ts +8 -5
  8. package/dist/chaos-manager/src/services/hooks/useCanRetryExperimentCreationQuery.js +1 -1
  9. package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentPipelineMutation.d.ts +9 -5
  10. package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentPipelineMutation.js +3 -3
  11. package/dist/chaos-manager/src/services/hooks/useCreateGamedayRunV2Mutation.d.ts +9 -5
  12. package/dist/chaos-manager/src/services/hooks/useCreateGamedayRunV2Mutation.js +3 -3
  13. package/dist/chaos-manager/src/services/hooks/useCreateGamedayV2Mutation.d.ts +9 -5
  14. package/dist/chaos-manager/src/services/hooks/useCreateGamedayV2Mutation.js +3 -3
  15. package/dist/chaos-manager/src/services/hooks/useCreateInputSetMutation.d.ts +9 -5
  16. package/dist/chaos-manager/src/services/hooks/useCreateInputSetMutation.js +3 -3
  17. package/dist/chaos-manager/src/services/hooks/useCreateV2OnboardingMutation.d.ts +9 -5
  18. package/dist/chaos-manager/src/services/hooks/useCreateV2OnboardingMutation.js +3 -3
  19. package/dist/chaos-manager/src/services/hooks/useDeleteChaosV2ExperimentMutation.d.ts +9 -5
  20. package/dist/chaos-manager/src/services/hooks/useDeleteChaosV2ExperimentMutation.js +3 -3
  21. package/dist/chaos-manager/src/services/hooks/useDeleteGamedayV2Mutation.d.ts +9 -5
  22. package/dist/chaos-manager/src/services/hooks/useDeleteGamedayV2Mutation.js +3 -3
  23. package/dist/chaos-manager/src/services/hooks/useDeleteInfraV2Mutation.d.ts +9 -5
  24. package/dist/chaos-manager/src/services/hooks/useDeleteInfraV2Mutation.js +3 -3
  25. package/dist/chaos-manager/src/services/hooks/useDeleteInputSetMutation.d.ts +9 -5
  26. package/dist/chaos-manager/src/services/hooks/useDeleteInputSetMutation.js +3 -3
  27. package/dist/chaos-manager/src/services/hooks/useDeleteTargetNetworkMapMutation.d.ts +9 -5
  28. package/dist/chaos-manager/src/services/hooks/useDeleteTargetNetworkMapMutation.js +3 -3
  29. package/dist/chaos-manager/src/services/hooks/useGetAccountServiceDetailsQuery.d.ts +8 -5
  30. package/dist/chaos-manager/src/services/hooks/useGetAccountServiceDetailsQuery.js +1 -1
  31. package/dist/chaos-manager/src/services/hooks/useGetAccountServiceUsageStatsQuery.d.ts +8 -5
  32. package/dist/chaos-manager/src/services/hooks/useGetAccountServiceUsageStatsQuery.js +1 -1
  33. package/dist/chaos-manager/src/services/hooks/useGetChaosDashboardQuery.d.ts +8 -5
  34. package/dist/chaos-manager/src/services/hooks/useGetChaosDashboardQuery.js +1 -1
  35. package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunReportQuery.d.ts +8 -5
  36. package/dist/chaos-manager/src/services/hooks/useGetChaosExperimentRunReportQuery.js +1 -1
  37. package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentQuery.d.ts +8 -5
  38. package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentQuery.js +1 -1
  39. package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentRunQuery.d.ts +8 -5
  40. package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentRunQuery.js +1 -1
  41. package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentVariablesQuery.d.ts +8 -5
  42. package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentVariablesQuery.js +1 -1
  43. package/dist/chaos-manager/src/services/hooks/useGetConnectorForInfraQuery.d.ts +8 -5
  44. package/dist/chaos-manager/src/services/hooks/useGetConnectorForInfraQuery.js +1 -1
  45. package/dist/chaos-manager/src/services/hooks/useGetExperimentHelperImageVersionQuery.d.ts +8 -5
  46. package/dist/chaos-manager/src/services/hooks/useGetExperimentHelperImageVersionQuery.js +1 -1
  47. package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsOverviewStatsQuery.d.ts +8 -5
  48. package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsOverviewStatsQuery.js +1 -1
  49. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateQuery.d.ts +8 -5
  50. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateQuery.js +1 -1
  51. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionDifferenceQuery.d.ts +8 -5
  52. package/dist/chaos-manager/src/services/hooks/useGetFaultTemplateRevisionDifferenceQuery.js +1 -1
  53. package/dist/chaos-manager/src/services/hooks/useGetGamedayRunV2Query.d.ts +8 -5
  54. package/dist/chaos-manager/src/services/hooks/useGetGamedayRunV2Query.js +1 -1
  55. package/dist/chaos-manager/src/services/hooks/useGetGamedayV2Query.d.ts +8 -5
  56. package/dist/chaos-manager/src/services/hooks/useGetGamedayV2Query.js +1 -1
  57. package/dist/chaos-manager/src/services/hooks/useGetImageRegistryQuery.d.ts +8 -5
  58. package/dist/chaos-manager/src/services/hooks/useGetImageRegistryQuery.js +1 -1
  59. package/dist/chaos-manager/src/services/hooks/useGetInfraV2Query.d.ts +8 -5
  60. package/dist/chaos-manager/src/services/hooks/useGetInfraV2Query.js +1 -1
  61. package/dist/chaos-manager/src/services/hooks/useGetInputSetQuery.d.ts +8 -5
  62. package/dist/chaos-manager/src/services/hooks/useGetInputSetQuery.js +1 -1
  63. package/dist/chaos-manager/src/services/hooks/useGetNoteQuery.d.ts +8 -5
  64. package/dist/chaos-manager/src/services/hooks/useGetNoteQuery.js +1 -1
  65. package/dist/chaos-manager/src/services/hooks/useGetOnboardingExperimentsQuery.d.ts +8 -5
  66. package/dist/chaos-manager/src/services/hooks/useGetOnboardingExperimentsQuery.js +1 -1
  67. package/dist/chaos-manager/src/services/hooks/useGetOverallServiceUsageStatsQuery.d.ts +8 -5
  68. package/dist/chaos-manager/src/services/hooks/useGetOverallServiceUsageStatsQuery.js +1 -1
  69. package/dist/chaos-manager/src/services/hooks/useGetResourceUsageQuery.d.ts +8 -5
  70. package/dist/chaos-manager/src/services/hooks/useGetResourceUsageQuery.js +1 -1
  71. package/dist/chaos-manager/src/services/hooks/useGetServiceResponseQuery.d.ts +8 -5
  72. package/dist/chaos-manager/src/services/hooks/useGetServiceResponseQuery.js +1 -1
  73. package/dist/chaos-manager/src/services/hooks/useGetServiceUsageReportQuery.d.ts +8 -5
  74. package/dist/chaos-manager/src/services/hooks/useGetServiceUsageReportQuery.js +1 -1
  75. package/dist/chaos-manager/src/services/hooks/useGetSgpTemplateByGenAiMutation.d.ts +9 -5
  76. package/dist/chaos-manager/src/services/hooks/useGetSgpTemplateByGenAiMutation.js +3 -3
  77. package/dist/chaos-manager/src/services/hooks/useGetTargetNetworkMapQuery.d.ts +8 -5
  78. package/dist/chaos-manager/src/services/hooks/useGetTargetNetworkMapQuery.js +1 -1
  79. package/dist/chaos-manager/src/services/hooks/useGetV2InfrastructureYamlMutation.d.ts +9 -5
  80. package/dist/chaos-manager/src/services/hooks/useGetV2InfrastructureYamlMutation.js +3 -3
  81. package/dist/chaos-manager/src/services/hooks/useGetV2OnboardingQuery.d.ts +8 -5
  82. package/dist/chaos-manager/src/services/hooks/useGetV2OnboardingQuery.js +1 -1
  83. package/dist/chaos-manager/src/services/hooks/useListChaosEnabledInfraV2Query.d.ts +8 -5
  84. package/dist/chaos-manager/src/services/hooks/useListChaosEnabledInfraV2Query.js +1 -1
  85. package/dist/chaos-manager/src/services/hooks/useListChaosV2ExperimentQuery.d.ts +8 -5
  86. package/dist/chaos-manager/src/services/hooks/useListChaosV2ExperimentQuery.js +1 -1
  87. package/dist/chaos-manager/src/services/hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery.d.ts +8 -5
  88. package/dist/chaos-manager/src/services/hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery.js +1 -1
  89. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +8 -5
  90. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.js +1 -1
  91. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateRevisionsQuery.d.ts +8 -5
  92. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateRevisionsQuery.js +1 -1
  93. package/dist/chaos-manager/src/services/hooks/useListGamedayRunV2Query.d.ts +8 -5
  94. package/dist/chaos-manager/src/services/hooks/useListGamedayRunV2Query.js +1 -1
  95. package/dist/chaos-manager/src/services/hooks/useListGamedayV2Query.d.ts +8 -5
  96. package/dist/chaos-manager/src/services/hooks/useListGamedayV2Query.js +1 -1
  97. package/dist/chaos-manager/src/services/hooks/useListHarnessInfraQuery.d.ts +8 -5
  98. package/dist/chaos-manager/src/services/hooks/useListHarnessInfraQuery.js +1 -1
  99. package/dist/chaos-manager/src/services/hooks/useListInfraV2Query.d.ts +8 -5
  100. package/dist/chaos-manager/src/services/hooks/useListInfraV2Query.js +1 -1
  101. package/dist/chaos-manager/src/services/hooks/useListInputSetQuery.d.ts +8 -5
  102. package/dist/chaos-manager/src/services/hooks/useListInputSetQuery.js +1 -1
  103. package/dist/chaos-manager/src/services/hooks/useListK8sInfrasV2Mutation.d.ts +9 -5
  104. package/dist/chaos-manager/src/services/hooks/useListK8sInfrasV2Mutation.js +3 -3
  105. package/dist/chaos-manager/src/services/hooks/useListServiceQuery.d.ts +8 -5
  106. package/dist/chaos-manager/src/services/hooks/useListServiceQuery.js +1 -1
  107. package/dist/chaos-manager/src/services/hooks/useListTargetNetworkMapsQuery.d.ts +8 -5
  108. package/dist/chaos-manager/src/services/hooks/useListTargetNetworkMapsQuery.js +1 -1
  109. package/dist/chaos-manager/src/services/hooks/useListV2OnboardingQuery.d.ts +8 -5
  110. package/dist/chaos-manager/src/services/hooks/useListV2OnboardingQuery.js +1 -1
  111. package/dist/chaos-manager/src/services/hooks/useListVariablesInFaultTemplateQuery.d.ts +8 -5
  112. package/dist/chaos-manager/src/services/hooks/useListVariablesInFaultTemplateQuery.js +1 -1
  113. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.d.ts +9 -5
  114. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmDiscoveryMutation.js +3 -3
  115. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.d.ts +9 -5
  116. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentCreationMutation.js +3 -3
  117. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.d.ts +9 -5
  118. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmExperimentRunMutation.js +3 -3
  119. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.d.ts +9 -5
  120. package/dist/chaos-manager/src/services/hooks/useOnboardingConfirmNetworkMapMutation.js +3 -3
  121. package/dist/chaos-manager/src/services/hooks/useRegisterInfraV2Mutation.d.ts +9 -5
  122. package/dist/chaos-manager/src/services/hooks/useRegisterInfraV2Mutation.js +3 -3
  123. package/dist/chaos-manager/src/services/hooks/useRetryExperimentCreationMutation.d.ts +9 -5
  124. package/dist/chaos-manager/src/services/hooks/useRetryExperimentCreationMutation.js +3 -3
  125. package/dist/chaos-manager/src/services/hooks/useRunChaosV2ExperimentMutation.d.ts +9 -5
  126. package/dist/chaos-manager/src/services/hooks/useRunChaosV2ExperimentMutation.js +3 -3
  127. package/dist/chaos-manager/src/services/hooks/useSaveChaosV2ExperimentMutation.d.ts +9 -5
  128. package/dist/chaos-manager/src/services/hooks/useSaveChaosV2ExperimentMutation.js +3 -3
  129. package/dist/chaos-manager/src/services/hooks/useStopChaosV2ExperimentMutation.d.ts +9 -5
  130. package/dist/chaos-manager/src/services/hooks/useStopChaosV2ExperimentMutation.js +3 -3
  131. package/dist/chaos-manager/src/services/hooks/useStopOnboardingExperimentsMutation.d.ts +9 -5
  132. package/dist/chaos-manager/src/services/hooks/useStopOnboardingExperimentsMutation.js +3 -3
  133. package/dist/chaos-manager/src/services/hooks/useUpdateChaosV2CronExperimentMutation.d.ts +9 -5
  134. package/dist/chaos-manager/src/services/hooks/useUpdateChaosV2CronExperimentMutation.js +3 -3
  135. package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunPrerequisitesV2Mutation.d.ts +9 -5
  136. package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunPrerequisitesV2Mutation.js +3 -3
  137. package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation.d.ts +9 -5
  138. package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunStakeHolderActionsV2Mutation.js +3 -3
  139. package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunV2Mutation.d.ts +9 -5
  140. package/dist/chaos-manager/src/services/hooks/useUpdateGamedayRunV2Mutation.js +3 -3
  141. package/dist/chaos-manager/src/services/hooks/useUpdateGamedayV2Mutation.d.ts +9 -5
  142. package/dist/chaos-manager/src/services/hooks/useUpdateGamedayV2Mutation.js +3 -3
  143. package/dist/chaos-manager/src/services/hooks/useUpdateInfraV2Mutation.d.ts +9 -5
  144. package/dist/chaos-manager/src/services/hooks/useUpdateInfraV2Mutation.js +3 -3
  145. package/dist/chaos-manager/src/services/hooks/useUpdateInputSetMutation.d.ts +9 -5
  146. package/dist/chaos-manager/src/services/hooks/useUpdateInputSetMutation.js +3 -3
  147. package/dist/chaos-manager/src/services/hooks/useUpdateNoteMutation.d.ts +9 -5
  148. package/dist/chaos-manager/src/services/hooks/useUpdateNoteMutation.js +3 -3
  149. package/dist/chaos-manager/src/services/index.d.ts +34 -35
  150. package/dist/custom-fetcher/index.d.ts +22 -0
  151. package/dist/custom-fetcher/index.js +51 -0
  152. package/package.json +1 -1
  153. package/dist/chaos-manager/src/services/helpers.d.ts +0 -14
  154. package/dist/chaos-manager/src/services/helpers.js +0 -1
@@ -2,22 +2,26 @@ import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesCreateNoteResponse } from '../schemas/TypesCreateNoteResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import type { TypesCreateNoteRequest } from '../schemas/TypesCreateNoteRequest';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
7
6
  export interface AddNoteMutationQueryParams {
8
7
  accountIdentifier: string;
9
8
  organizationIdentifier: string;
10
9
  projectIdentifier: string;
11
10
  }
12
11
  export type AddNoteRequestBody = TypesCreateNoteRequest;
13
- export type AddNoteOkResponse = ResponseWithPagination<TypesCreateNoteResponse>;
12
+ export type AddNoteOkResponse = TypesCreateNoteResponse;
14
13
  export type AddNoteErrorResponse = ApiRestError;
15
14
  export interface AddNoteProps extends Omit<FetcherOptions<AddNoteMutationQueryParams, AddNoteRequestBody>, 'url'> {
16
15
  queryParams: AddNoteMutationQueryParams;
17
16
  body: AddNoteRequestBody;
18
17
  }
19
- export declare function addNote(props: AddNoteProps): Promise<AddNoteOkResponse>;
18
+ export interface AddNoteResponseContainer {
19
+ body: AddNoteOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function addNote(props: AddNoteProps): Promise<AddNoteResponseContainer>;
23
+ export type AddNoteMutationProps<T extends keyof AddNoteProps> = Omit<AddNoteProps, T> & Partial<Pick<AddNoteProps, T>>;
20
24
  /**
21
25
  * Add a resource note
22
26
  */
23
- export declare function useAddNoteMutation(options?: Omit<UseMutationOptions<AddNoteOkResponse, AddNoteErrorResponse, AddNoteProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AddNoteOkResponse, ApiRestError, AddNoteProps, unknown>;
27
+ export declare function useAddNoteMutation<T extends keyof AddNoteProps>(props: Pick<Partial<AddNoteProps>, T>, options?: Omit<UseMutationOptions<AddNoteResponseContainer, AddNoteErrorResponse, AddNoteMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AddNoteResponseContainer, ApiRestError, AddNoteMutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function addNote(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/notes`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Add a resource note
11
11
  */
12
- export function useAddNoteMutation(options) {
13
- return useMutation((mutateProps) => addNote(mutateProps), options);
12
+ export function useAddNoteMutation(props, options) {
13
+ return useMutation((mutateProps) => addNote(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -2,22 +2,26 @@ import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { BulkactionBulkDeleteExperimetsResponse } from '../schemas/BulkactionBulkDeleteExperimetsResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import type { BulkactionBulkDeleteExperimetsInput } from '../schemas/BulkactionBulkDeleteExperimetsInput';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
7
6
  export interface BulkExperimentDeleteMutationQueryParams {
8
7
  accountIdentifier: string;
9
8
  organizationIdentifier: string;
10
9
  projectIdentifier: string;
11
10
  }
12
11
  export type BulkExperimentDeleteRequestBody = BulkactionBulkDeleteExperimetsInput;
13
- export type BulkExperimentDeleteOkResponse = ResponseWithPagination<BulkactionBulkDeleteExperimetsResponse>;
12
+ export type BulkExperimentDeleteOkResponse = BulkactionBulkDeleteExperimetsResponse;
14
13
  export type BulkExperimentDeleteErrorResponse = ApiRestError;
15
14
  export interface BulkExperimentDeleteProps extends Omit<FetcherOptions<BulkExperimentDeleteMutationQueryParams, BulkExperimentDeleteRequestBody>, 'url'> {
16
15
  queryParams: BulkExperimentDeleteMutationQueryParams;
17
16
  body: BulkExperimentDeleteRequestBody;
18
17
  }
19
- export declare function bulkExperimentDelete(props: BulkExperimentDeleteProps): Promise<BulkExperimentDeleteOkResponse>;
18
+ export interface BulkExperimentDeleteResponseContainer {
19
+ body: BulkExperimentDeleteOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function bulkExperimentDelete(props: BulkExperimentDeleteProps): Promise<BulkExperimentDeleteResponseContainer>;
23
+ export type BulkExperimentDeleteMutationProps<T extends keyof BulkExperimentDeleteProps> = Omit<BulkExperimentDeleteProps, T> & Partial<Pick<BulkExperimentDeleteProps, T>>;
20
24
  /**
21
25
  * Deletes given experiments
22
26
  */
23
- export declare function useBulkExperimentDeleteMutation(options?: Omit<UseMutationOptions<BulkExperimentDeleteOkResponse, BulkExperimentDeleteErrorResponse, BulkExperimentDeleteProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<BulkExperimentDeleteOkResponse, ApiRestError, BulkExperimentDeleteProps, unknown>;
27
+ export declare function useBulkExperimentDeleteMutation<T extends keyof BulkExperimentDeleteProps>(props: Pick<Partial<BulkExperimentDeleteProps>, T>, options?: Omit<UseMutationOptions<BulkExperimentDeleteResponseContainer, BulkExperimentDeleteErrorResponse, BulkExperimentDeleteMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<BulkExperimentDeleteResponseContainer, ApiRestError, BulkExperimentDeleteMutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function bulkExperimentDelete(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/bulkaction/bulkexperimentdelete`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Deletes given experiments
11
11
  */
12
- export function useBulkExperimentDeleteMutation(options) {
13
- return useMutation((mutateProps) => bulkExperimentDelete(mutateProps), options);
12
+ export function useBulkExperimentDeleteMutation(props, options) {
13
+ return useMutation((mutateProps) => bulkExperimentDelete(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -2,22 +2,26 @@ import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { BulkactionBulkAddTagsInExperimetsResponse } from '../schemas/BulkactionBulkAddTagsInExperimetsResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import type { BulkactionBulkAddTagsInExperimetsInput } from '../schemas/BulkactionBulkAddTagsInExperimetsInput';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
7
6
  export interface BulkExperimentTagAddMutationQueryParams {
8
7
  accountIdentifier: string;
9
8
  organizationIdentifier: string;
10
9
  projectIdentifier: string;
11
10
  }
12
11
  export type BulkExperimentTagAddRequestBody = BulkactionBulkAddTagsInExperimetsInput;
13
- export type BulkExperimentTagAddOkResponse = ResponseWithPagination<BulkactionBulkAddTagsInExperimetsResponse>;
12
+ export type BulkExperimentTagAddOkResponse = BulkactionBulkAddTagsInExperimetsResponse;
14
13
  export type BulkExperimentTagAddErrorResponse = ApiRestError;
15
14
  export interface BulkExperimentTagAddProps extends Omit<FetcherOptions<BulkExperimentTagAddMutationQueryParams, BulkExperimentTagAddRequestBody>, 'url'> {
16
15
  queryParams: BulkExperimentTagAddMutationQueryParams;
17
16
  body: BulkExperimentTagAddRequestBody;
18
17
  }
19
- export declare function bulkExperimentTagAdd(props: BulkExperimentTagAddProps): Promise<BulkExperimentTagAddOkResponse>;
18
+ export interface BulkExperimentTagAddResponseContainer {
19
+ body: BulkExperimentTagAddOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function bulkExperimentTagAdd(props: BulkExperimentTagAddProps): Promise<BulkExperimentTagAddResponseContainer>;
23
+ export type BulkExperimentTagAddMutationProps<T extends keyof BulkExperimentTagAddProps> = Omit<BulkExperimentTagAddProps, T> & Partial<Pick<BulkExperimentTagAddProps, T>>;
20
24
  /**
21
25
  * Adds tags in given experiments
22
26
  */
23
- export declare function useBulkExperimentTagAddMutation(options?: Omit<UseMutationOptions<BulkExperimentTagAddOkResponse, BulkExperimentTagAddErrorResponse, BulkExperimentTagAddProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<BulkExperimentTagAddOkResponse, ApiRestError, BulkExperimentTagAddProps, unknown>;
27
+ export declare function useBulkExperimentTagAddMutation<T extends keyof BulkExperimentTagAddProps>(props: Pick<Partial<BulkExperimentTagAddProps>, T>, options?: Omit<UseMutationOptions<BulkExperimentTagAddResponseContainer, BulkExperimentTagAddErrorResponse, BulkExperimentTagAddMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<BulkExperimentTagAddResponseContainer, ApiRestError, BulkExperimentTagAddMutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function bulkExperimentTagAdd(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/bulkaction/bulkexperimenttagsadd`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Adds tags in given experiments
11
11
  */
12
- export function useBulkExperimentTagAddMutation(options) {
13
- return useMutation((mutateProps) => bulkExperimentTagAdd(mutateProps), options);
12
+ export function useBulkExperimentTagAddMutation(props, options) {
13
+ return useMutation((mutateProps) => bulkExperimentTagAdd(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -1,8 +1,7 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { NetworkmapCanRetryExperimentCreationResponse } from '../schemas/NetworkmapCanRetryExperimentCreationResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
5
  export interface CanRetryExperimentCreationQueryPathParams {
7
6
  applicationmapid: string;
8
7
  }
@@ -13,13 +12,17 @@ export interface CanRetryExperimentCreationQueryQueryParams {
13
12
  environmentIdentifier: string;
14
13
  infraId: string;
15
14
  }
16
- export type CanRetryExperimentCreationOkResponse = ResponseWithPagination<NetworkmapCanRetryExperimentCreationResponse>;
15
+ export type CanRetryExperimentCreationOkResponse = NetworkmapCanRetryExperimentCreationResponse;
17
16
  export type CanRetryExperimentCreationErrorResponse = ApiRestError;
18
17
  export interface CanRetryExperimentCreationProps extends CanRetryExperimentCreationQueryPathParams, Omit<FetcherOptions<CanRetryExperimentCreationQueryQueryParams, unknown>, 'url'> {
19
18
  queryParams: CanRetryExperimentCreationQueryQueryParams;
20
19
  }
21
- export declare function canRetryExperimentCreation(props: CanRetryExperimentCreationProps): Promise<CanRetryExperimentCreationOkResponse>;
20
+ export interface CanRetryExperimentCreationResponseContainer {
21
+ body: CanRetryExperimentCreationOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function canRetryExperimentCreation(props: CanRetryExperimentCreationProps): Promise<CanRetryExperimentCreationResponseContainer>;
22
25
  /**
23
26
  * can retry or not chaos experiment creation for the given target network map
24
27
  */
25
- export declare function useCanRetryExperimentCreationQuery(props: CanRetryExperimentCreationProps, options?: Omit<UseQueryOptions<CanRetryExperimentCreationOkResponse, CanRetryExperimentCreationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CanRetryExperimentCreationOkResponse, ApiRestError>;
28
+ export declare function useCanRetryExperimentCreationQuery(props: CanRetryExperimentCreationProps, options?: Omit<UseQueryOptions<CanRetryExperimentCreationResponseContainer, CanRetryExperimentCreationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CanRetryExperimentCreationResponseContainer, ApiRestError>;
@@ -2,7 +2,7 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function canRetryExperimentCreation(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/applicationmaps/${props.applicationmapid}/canretry`, method: 'GET' }, props));
8
8
  }
@@ -2,22 +2,26 @@ import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { PipelinesBulkExperimentRunResponse } from '../schemas/PipelinesBulkExperimentRunResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import type { PipelinesChaosPipelineInput } from '../schemas/PipelinesChaosPipelineInput';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
7
6
  export interface CreateChaosExperimentPipelineMutationQueryParams {
8
7
  accountIdentifier: string;
9
8
  organizationIdentifier: string;
10
9
  projectIdentifier: string;
11
10
  }
12
11
  export type CreateChaosExperimentPipelineRequestBody = PipelinesChaosPipelineInput;
13
- export type CreateChaosExperimentPipelineOkResponse = ResponseWithPagination<PipelinesBulkExperimentRunResponse>;
12
+ export type CreateChaosExperimentPipelineOkResponse = PipelinesBulkExperimentRunResponse;
14
13
  export type CreateChaosExperimentPipelineErrorResponse = ApiRestError;
15
14
  export interface CreateChaosExperimentPipelineProps extends Omit<FetcherOptions<CreateChaosExperimentPipelineMutationQueryParams, CreateChaosExperimentPipelineRequestBody>, 'url'> {
16
15
  queryParams: CreateChaosExperimentPipelineMutationQueryParams;
17
16
  body: CreateChaosExperimentPipelineRequestBody;
18
17
  }
19
- export declare function createChaosExperimentPipeline(props: CreateChaosExperimentPipelineProps): Promise<CreateChaosExperimentPipelineOkResponse>;
18
+ export interface CreateChaosExperimentPipelineResponseContainer {
19
+ body: CreateChaosExperimentPipelineOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function createChaosExperimentPipeline(props: CreateChaosExperimentPipelineProps): Promise<CreateChaosExperimentPipelineResponseContainer>;
23
+ export type CreateChaosExperimentPipelineMutationProps<T extends keyof CreateChaosExperimentPipelineProps> = Omit<CreateChaosExperimentPipelineProps, T> & Partial<Pick<CreateChaosExperimentPipelineProps, T>>;
20
24
  /**
21
25
  * Create pipeline to run experiments in bulk
22
26
  */
23
- export declare function useCreateChaosExperimentPipelineMutation(options?: Omit<UseMutationOptions<CreateChaosExperimentPipelineOkResponse, CreateChaosExperimentPipelineErrorResponse, CreateChaosExperimentPipelineProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChaosExperimentPipelineOkResponse, ApiRestError, CreateChaosExperimentPipelineProps, unknown>;
27
+ export declare function useCreateChaosExperimentPipelineMutation<T extends keyof CreateChaosExperimentPipelineProps>(props: Pick<Partial<CreateChaosExperimentPipelineProps>, T>, options?: Omit<UseMutationOptions<CreateChaosExperimentPipelineResponseContainer, CreateChaosExperimentPipelineErrorResponse, CreateChaosExperimentPipelineMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateChaosExperimentPipelineResponseContainer, ApiRestError, CreateChaosExperimentPipelineMutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function createChaosExperimentPipeline(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/experiment/bulk/run`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Create pipeline to run experiments in bulk
11
11
  */
12
- export function useCreateChaosExperimentPipelineMutation(options) {
13
- return useMutation((mutateProps) => createChaosExperimentPipeline(mutateProps), options);
12
+ export function useCreateChaosExperimentPipelineMutation(props, options) {
13
+ return useMutation((mutateProps) => createChaosExperimentPipeline(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -1,8 +1,7 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesCreateGamedayRunResponse } from '../schemas/TypesCreateGamedayRunResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
5
  export interface CreateGamedayRunV2MutationPathParams {
7
6
  gamedayId: string;
8
7
  }
@@ -11,13 +10,18 @@ export interface CreateGamedayRunV2MutationQueryParams {
11
10
  organizationIdentifier: string;
12
11
  projectIdentifier: string;
13
12
  }
14
- export type CreateGamedayRunV2OkResponse = ResponseWithPagination<TypesCreateGamedayRunResponse>;
13
+ export type CreateGamedayRunV2OkResponse = TypesCreateGamedayRunResponse;
15
14
  export type CreateGamedayRunV2ErrorResponse = ApiRestError;
16
15
  export interface CreateGamedayRunV2Props extends CreateGamedayRunV2MutationPathParams, Omit<FetcherOptions<CreateGamedayRunV2MutationQueryParams, unknown>, 'url'> {
17
16
  queryParams: CreateGamedayRunV2MutationQueryParams;
18
17
  }
19
- export declare function createGamedayRunV2(props: CreateGamedayRunV2Props): Promise<CreateGamedayRunV2OkResponse>;
18
+ export interface CreateGamedayRunV2ResponseContainer {
19
+ body: CreateGamedayRunV2OkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function createGamedayRunV2(props: CreateGamedayRunV2Props): Promise<CreateGamedayRunV2ResponseContainer>;
23
+ export type CreateGamedayRunV2MutationProps<T extends keyof CreateGamedayRunV2Props> = Omit<CreateGamedayRunV2Props, T> & Partial<Pick<CreateGamedayRunV2Props, T>>;
20
24
  /**
21
25
  * Create a chaos v2 gameday run
22
26
  */
23
- export declare function useCreateGamedayRunV2Mutation(options?: Omit<UseMutationOptions<CreateGamedayRunV2OkResponse, CreateGamedayRunV2ErrorResponse, CreateGamedayRunV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateGamedayRunV2OkResponse, ApiRestError, CreateGamedayRunV2Props, unknown>;
27
+ export declare function useCreateGamedayRunV2Mutation<T extends keyof CreateGamedayRunV2Props>(props: Pick<Partial<CreateGamedayRunV2Props>, T>, options?: Omit<UseMutationOptions<CreateGamedayRunV2ResponseContainer, CreateGamedayRunV2ErrorResponse, CreateGamedayRunV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateGamedayRunV2ResponseContainer, ApiRestError, CreateGamedayRunV2MutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function createGamedayRunV2(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/gameday/${props.gamedayId}/run`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Create a chaos v2 gameday run
11
11
  */
12
- export function useCreateGamedayRunV2Mutation(options) {
13
- return useMutation((mutateProps) => createGamedayRunV2(mutateProps), options);
12
+ export function useCreateGamedayRunV2Mutation(props, options) {
13
+ return useMutation((mutateProps) => createGamedayRunV2(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -2,22 +2,26 @@ import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesCreateGamedayResponse } from '../schemas/TypesCreateGamedayResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import type { TypesCreateGamedayRequest } from '../schemas/TypesCreateGamedayRequest';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
7
6
  export interface CreateGamedayV2MutationQueryParams {
8
7
  accountIdentifier: string;
9
8
  organizationIdentifier: string;
10
9
  projectIdentifier: string;
11
10
  }
12
11
  export type CreateGamedayV2RequestBody = TypesCreateGamedayRequest;
13
- export type CreateGamedayV2OkResponse = ResponseWithPagination<TypesCreateGamedayResponse>;
12
+ export type CreateGamedayV2OkResponse = TypesCreateGamedayResponse;
14
13
  export type CreateGamedayV2ErrorResponse = ApiRestError;
15
14
  export interface CreateGamedayV2Props extends Omit<FetcherOptions<CreateGamedayV2MutationQueryParams, CreateGamedayV2RequestBody>, 'url'> {
16
15
  queryParams: CreateGamedayV2MutationQueryParams;
17
16
  body: CreateGamedayV2RequestBody;
18
17
  }
19
- export declare function createGamedayV2(props: CreateGamedayV2Props): Promise<CreateGamedayV2OkResponse>;
18
+ export interface CreateGamedayV2ResponseContainer {
19
+ body: CreateGamedayV2OkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function createGamedayV2(props: CreateGamedayV2Props): Promise<CreateGamedayV2ResponseContainer>;
23
+ export type CreateGamedayV2MutationProps<T extends keyof CreateGamedayV2Props> = Omit<CreateGamedayV2Props, T> & Partial<Pick<CreateGamedayV2Props, T>>;
20
24
  /**
21
25
  * Create a chaos v2 gameday
22
26
  */
23
- export declare function useCreateGamedayV2Mutation(options?: Omit<UseMutationOptions<CreateGamedayV2OkResponse, CreateGamedayV2ErrorResponse, CreateGamedayV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateGamedayV2OkResponse, ApiRestError, CreateGamedayV2Props, unknown>;
27
+ export declare function useCreateGamedayV2Mutation<T extends keyof CreateGamedayV2Props>(props: Pick<Partial<CreateGamedayV2Props>, T>, options?: Omit<UseMutationOptions<CreateGamedayV2ResponseContainer, CreateGamedayV2ErrorResponse, CreateGamedayV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateGamedayV2ResponseContainer, ApiRestError, CreateGamedayV2MutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function createGamedayV2(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/gameday`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Create a chaos v2 gameday
11
11
  */
12
- export function useCreateGamedayV2Mutation(options) {
13
- return useMutation((mutateProps) => createGamedayV2(mutateProps), options);
12
+ export function useCreateGamedayV2Mutation(props, options) {
13
+ return useMutation((mutateProps) => createGamedayV2(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -2,8 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { InputsetsCreateInputSetResponse } from '../schemas/InputsetsCreateInputSetResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import type { InputsetsCreateInputSetRequest } from '../schemas/InputsetsCreateInputSetRequest';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
7
6
  export interface CreateInputSetMutationPathParams {
8
7
  experimentId: string;
9
8
  }
@@ -13,14 +12,19 @@ export interface CreateInputSetMutationQueryParams {
13
12
  projectIdentifier: string;
14
13
  }
15
14
  export type CreateInputSetRequestBody = InputsetsCreateInputSetRequest;
16
- export type CreateInputSetOkResponse = ResponseWithPagination<InputsetsCreateInputSetResponse>;
15
+ export type CreateInputSetOkResponse = InputsetsCreateInputSetResponse;
17
16
  export type CreateInputSetErrorResponse = ApiRestError;
18
17
  export interface CreateInputSetProps extends CreateInputSetMutationPathParams, Omit<FetcherOptions<CreateInputSetMutationQueryParams, CreateInputSetRequestBody>, 'url'> {
19
18
  queryParams: CreateInputSetMutationQueryParams;
20
19
  body: CreateInputSetRequestBody;
21
20
  }
22
- export declare function createInputSet(props: CreateInputSetProps): Promise<CreateInputSetOkResponse>;
21
+ export interface CreateInputSetResponseContainer {
22
+ body: CreateInputSetOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function createInputSet(props: CreateInputSetProps): Promise<CreateInputSetResponseContainer>;
26
+ export type CreateInputSetMutationProps<T extends keyof CreateInputSetProps> = Omit<CreateInputSetProps, T> & Partial<Pick<CreateInputSetProps, T>>;
23
27
  /**
24
28
  * Create an input set
25
29
  */
26
- export declare function useCreateInputSetMutation(options?: Omit<UseMutationOptions<CreateInputSetOkResponse, CreateInputSetErrorResponse, CreateInputSetProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateInputSetOkResponse, ApiRestError, CreateInputSetProps, unknown>;
30
+ export declare function useCreateInputSetMutation<T extends keyof CreateInputSetProps>(props: Pick<Partial<CreateInputSetProps>, T>, options?: Omit<UseMutationOptions<CreateInputSetResponseContainer, CreateInputSetErrorResponse, CreateInputSetMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateInputSetResponseContainer, ApiRestError, CreateInputSetMutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function createInputSet(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/experiments/${props.experimentId}/inputsets`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Create an input set
11
11
  */
12
- export function useCreateInputSetMutation(options) {
13
- return useMutation((mutateProps) => createInputSet(mutateProps), options);
12
+ export function useCreateInputSetMutation(props, options) {
13
+ return useMutation((mutateProps) => createInputSet(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -2,8 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { V2OnboardingV2Onboarding } from '../schemas/V2OnboardingV2Onboarding';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
4
  import type { V2OnboardingV2OnboardingRequest } from '../schemas/V2OnboardingV2OnboardingRequest';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
7
6
  export interface CreateV2OnboardingMutationQueryParams {
8
7
  corelationID?: string;
9
8
  accountIdentifier: string;
@@ -11,14 +10,19 @@ export interface CreateV2OnboardingMutationQueryParams {
11
10
  projectIdentifier: string;
12
11
  }
13
12
  export type CreateV2OnboardingRequestBody = V2OnboardingV2OnboardingRequest;
14
- export type CreateV2OnboardingOkResponse = ResponseWithPagination<V2OnboardingV2Onboarding>;
13
+ export type CreateV2OnboardingOkResponse = V2OnboardingV2Onboarding;
15
14
  export type CreateV2OnboardingErrorResponse = ApiRestError;
16
15
  export interface CreateV2OnboardingProps extends Omit<FetcherOptions<CreateV2OnboardingMutationQueryParams, CreateV2OnboardingRequestBody>, 'url'> {
17
16
  queryParams: CreateV2OnboardingMutationQueryParams;
18
17
  body: CreateV2OnboardingRequestBody;
19
18
  }
20
- export declare function createV2Onboarding(props: CreateV2OnboardingProps): Promise<CreateV2OnboardingOkResponse>;
19
+ export interface CreateV2OnboardingResponseContainer {
20
+ body: CreateV2OnboardingOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function createV2Onboarding(props: CreateV2OnboardingProps): Promise<CreateV2OnboardingResponseContainer>;
24
+ export type CreateV2OnboardingMutationProps<T extends keyof CreateV2OnboardingProps> = Omit<CreateV2OnboardingProps, T> & Partial<Pick<CreateV2OnboardingProps, T>>;
21
25
  /**
22
26
  * Create V2 Onboarding
23
27
  */
24
- export declare function useCreateV2OnboardingMutation(options?: Omit<UseMutationOptions<CreateV2OnboardingOkResponse, CreateV2OnboardingErrorResponse, CreateV2OnboardingProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateV2OnboardingOkResponse, ApiRestError, CreateV2OnboardingProps, unknown>;
28
+ export declare function useCreateV2OnboardingMutation<T extends keyof CreateV2OnboardingProps>(props: Pick<Partial<CreateV2OnboardingProps>, T>, options?: Omit<UseMutationOptions<CreateV2OnboardingResponseContainer, CreateV2OnboardingErrorResponse, CreateV2OnboardingMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateV2OnboardingResponseContainer, ApiRestError, CreateV2OnboardingMutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function createV2Onboarding(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/onboarding`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Create V2 Onboarding
11
11
  */
12
- export function useCreateV2OnboardingMutation(options) {
13
- return useMutation((mutateProps) => createV2Onboarding(mutateProps), options);
12
+ export function useCreateV2OnboardingMutation(props, options) {
13
+ return useMutation((mutateProps) => createV2Onboarding(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -1,8 +1,7 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { TypesDeleteChaosV2ExperimentResponse } from '../schemas/TypesDeleteChaosV2ExperimentResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
5
  export interface DeleteChaosV2ExperimentMutationPathParams {
7
6
  experimentId: string;
8
7
  }
@@ -11,13 +10,18 @@ export interface DeleteChaosV2ExperimentMutationQueryParams {
11
10
  organizationIdentifier: string;
12
11
  projectIdentifier: string;
13
12
  }
14
- export type DeleteChaosV2ExperimentOkResponse = ResponseWithPagination<TypesDeleteChaosV2ExperimentResponse>;
13
+ export type DeleteChaosV2ExperimentOkResponse = TypesDeleteChaosV2ExperimentResponse;
15
14
  export type DeleteChaosV2ExperimentErrorResponse = ApiRestError;
16
15
  export interface DeleteChaosV2ExperimentProps extends DeleteChaosV2ExperimentMutationPathParams, Omit<FetcherOptions<DeleteChaosV2ExperimentMutationQueryParams, unknown>, 'url'> {
17
16
  queryParams: DeleteChaosV2ExperimentMutationQueryParams;
18
17
  }
19
- export declare function deleteChaosV2Experiment(props: DeleteChaosV2ExperimentProps): Promise<DeleteChaosV2ExperimentOkResponse>;
18
+ export interface DeleteChaosV2ExperimentResponseContainer {
19
+ body: DeleteChaosV2ExperimentOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function deleteChaosV2Experiment(props: DeleteChaosV2ExperimentProps): Promise<DeleteChaosV2ExperimentResponseContainer>;
23
+ export type DeleteChaosV2ExperimentMutationProps<T extends keyof DeleteChaosV2ExperimentProps> = Omit<DeleteChaosV2ExperimentProps, T> & Partial<Pick<DeleteChaosV2ExperimentProps, T>>;
20
24
  /**
21
25
  * Delete Chaos V2 experiment
22
26
  */
23
- export declare function useDeleteChaosV2ExperimentMutation(options?: Omit<UseMutationOptions<DeleteChaosV2ExperimentOkResponse, DeleteChaosV2ExperimentErrorResponse, DeleteChaosV2ExperimentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteChaosV2ExperimentOkResponse, ApiRestError, DeleteChaosV2ExperimentProps, unknown>;
27
+ export declare function useDeleteChaosV2ExperimentMutation<T extends keyof DeleteChaosV2ExperimentProps>(props: Pick<Partial<DeleteChaosV2ExperimentProps>, T>, options?: Omit<UseMutationOptions<DeleteChaosV2ExperimentResponseContainer, DeleteChaosV2ExperimentErrorResponse, DeleteChaosV2ExperimentMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteChaosV2ExperimentResponseContainer, ApiRestError, DeleteChaosV2ExperimentMutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function deleteChaosV2Experiment(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/experiment/${props.experimentId}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * Delete Chaos V2 experiment
11
11
  */
12
- export function useDeleteChaosV2ExperimentMutation(options) {
13
- return useMutation((mutateProps) => deleteChaosV2Experiment(mutateProps), options);
12
+ export function useDeleteChaosV2ExperimentMutation(props, options) {
13
+ return useMutation((mutateProps) => deleteChaosV2Experiment(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -1,7 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { ApiRestError } from '../schemas/ApiRestError';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
3
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
4
  export interface DeleteGamedayV2MutationPathParams {
6
5
  gamedayId: string;
7
6
  }
@@ -10,13 +9,18 @@ export interface DeleteGamedayV2MutationQueryParams {
10
9
  organizationIdentifier: string;
11
10
  projectIdentifier: string;
12
11
  }
13
- export type DeleteGamedayV2OkResponse = ResponseWithPagination<string>;
12
+ export type DeleteGamedayV2OkResponse = string;
14
13
  export type DeleteGamedayV2ErrorResponse = ApiRestError;
15
14
  export interface DeleteGamedayV2Props extends DeleteGamedayV2MutationPathParams, Omit<FetcherOptions<DeleteGamedayV2MutationQueryParams, unknown>, 'url'> {
16
15
  queryParams: DeleteGamedayV2MutationQueryParams;
17
16
  }
18
- export declare function deleteGamedayV2(props: DeleteGamedayV2Props): Promise<DeleteGamedayV2OkResponse>;
17
+ export interface DeleteGamedayV2ResponseContainer {
18
+ body: DeleteGamedayV2OkResponse;
19
+ headers: Headers;
20
+ }
21
+ export declare function deleteGamedayV2(props: DeleteGamedayV2Props): Promise<DeleteGamedayV2ResponseContainer>;
22
+ export type DeleteGamedayV2MutationProps<T extends keyof DeleteGamedayV2Props> = Omit<DeleteGamedayV2Props, T> & Partial<Pick<DeleteGamedayV2Props, T>>;
19
23
  /**
20
24
  * Get a chaos v2 Gameday
21
25
  */
22
- export declare function useDeleteGamedayV2Mutation(options?: Omit<UseMutationOptions<DeleteGamedayV2OkResponse, DeleteGamedayV2ErrorResponse, DeleteGamedayV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteGamedayV2OkResponse, ApiRestError, DeleteGamedayV2Props, unknown>;
26
+ export declare function useDeleteGamedayV2Mutation<T extends keyof DeleteGamedayV2Props>(props: Pick<Partial<DeleteGamedayV2Props>, T>, options?: Omit<UseMutationOptions<DeleteGamedayV2ResponseContainer, DeleteGamedayV2ErrorResponse, DeleteGamedayV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteGamedayV2ResponseContainer, ApiRestError, DeleteGamedayV2MutationProps<T>, unknown>;
@@ -2,13 +2,13 @@
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function deleteGamedayV2(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/v2/gameday/${props.gamedayId}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
10
  * Get a chaos v2 Gameday
11
11
  */
12
- export function useDeleteGamedayV2Mutation(options) {
13
- return useMutation((mutateProps) => deleteGamedayV2(mutateProps), options);
12
+ export function useDeleteGamedayV2Mutation(props, options) {
13
+ return useMutation((mutateProps) => deleteGamedayV2(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -1,8 +1,7 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { InfraV2DeleteKubernetesInfraV2Response } from '../schemas/InfraV2DeleteKubernetesInfraV2Response';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
5
  export interface DeleteInfraV2MutationPathParams {
7
6
  identity: string;
8
7
  environmentIdentifier: string;
@@ -12,13 +11,18 @@ export interface DeleteInfraV2MutationQueryParams {
12
11
  organizationIdentifier: string;
13
12
  projectIdentifier: string;
14
13
  }
15
- export type DeleteInfraV2OkResponse = ResponseWithPagination<InfraV2DeleteKubernetesInfraV2Response>;
14
+ export type DeleteInfraV2OkResponse = InfraV2DeleteKubernetesInfraV2Response;
16
15
  export type DeleteInfraV2ErrorResponse = ApiRestError;
17
16
  export interface DeleteInfraV2Props extends DeleteInfraV2MutationPathParams, Omit<FetcherOptions<DeleteInfraV2MutationQueryParams, unknown>, 'url'> {
18
17
  queryParams: DeleteInfraV2MutationQueryParams;
19
18
  }
20
- export declare function deleteInfraV2(props: DeleteInfraV2Props): Promise<DeleteInfraV2OkResponse>;
19
+ export interface DeleteInfraV2ResponseContainer {
20
+ body: DeleteInfraV2OkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function deleteInfraV2(props: DeleteInfraV2Props): Promise<DeleteInfraV2ResponseContainer>;
24
+ export type DeleteInfraV2MutationProps<T extends keyof DeleteInfraV2Props> = Omit<DeleteInfraV2Props, T> & Partial<Pick<DeleteInfraV2Props, T>>;
21
25
  /**
22
26
  * Delete a new v2 infra
23
27
  */
24
- export declare function useDeleteInfraV2Mutation(options?: Omit<UseMutationOptions<DeleteInfraV2OkResponse, DeleteInfraV2ErrorResponse, DeleteInfraV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteInfraV2OkResponse, ApiRestError, DeleteInfraV2Props, unknown>;
28
+ export declare function useDeleteInfraV2Mutation<T extends keyof DeleteInfraV2Props>(props: Pick<Partial<DeleteInfraV2Props>, T>, options?: Omit<UseMutationOptions<DeleteInfraV2ResponseContainer, DeleteInfraV2ErrorResponse, DeleteInfraV2MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteInfraV2ResponseContainer, ApiRestError, DeleteInfraV2MutationProps<T>, unknown>;