| 113 | |
| 114 | |
| 115 | export const getSearchLabelsMutationOptions = <TError = unknown, |
| 116 | TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof searchLabels>>, TError,{data: SearchLabelsBody}, TContext>, } |
| 117 | ): UseMutationOptions<Awaited<ReturnType<typeof searchLabels>>, TError,{data: SearchLabelsBody}, TContext> => { |
| 118 | const {mutation: mutationOptions} = options ?? {}; |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | const mutationFn: MutationFunction<Awaited<ReturnType<typeof searchLabels>>, {data: SearchLabelsBody}> = (props) => { |
| 124 | const {data} = props ?? {}; |
| 125 | |
| 126 | return searchLabels(data,) |
| 127 | } |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | return { mutationFn, ...mutationOptions }} |
| 133 | |
| 134 | export type SearchLabelsMutationResult = NonNullable<Awaited<ReturnType<typeof searchLabels>>> |
| 135 | export type SearchLabelsMutationBody = SearchLabelsBody |