| 162 | |
| 163 | |
| 164 | export const getGetCategoryMutationOptions = <TError = unknown, |
| 165 | TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof getCategory>>, TError,{data: GetCategoryBody}, TContext>, } |
| 166 | ): UseMutationOptions<Awaited<ReturnType<typeof getCategory>>, TError,{data: GetCategoryBody}, TContext> => { |
| 167 | const {mutation: mutationOptions} = options ?? {}; |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | const mutationFn: MutationFunction<Awaited<ReturnType<typeof getCategory>>, {data: GetCategoryBody}> = (props) => { |
| 173 | const {data} = props ?? {}; |
| 174 | |
| 175 | return getCategory(data,) |
| 176 | } |
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | return { mutationFn, ...mutationOptions }} |
| 182 | |
| 183 | export type GetCategoryMutationResult = NonNullable<Awaited<ReturnType<typeof getCategory>>> |
| 184 | export type GetCategoryMutationBody = GetCategoryBody |