import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Widget\RequestHumanController::__invoke
* @see app/Http/Controllers/Widget/RequestHumanController.php:38
* @route '/api/v1/widget/request-human'
*/
const RequestHumanController = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: RequestHumanController.url(options),
    method: 'post',
})

RequestHumanController.definition = {
    methods: ["post"],
    url: '/api/v1/widget/request-human',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Widget\RequestHumanController::__invoke
* @see app/Http/Controllers/Widget/RequestHumanController.php:38
* @route '/api/v1/widget/request-human'
*/
RequestHumanController.url = (options?: RouteQueryOptions) => {
    return RequestHumanController.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Widget\RequestHumanController::__invoke
* @see app/Http/Controllers/Widget/RequestHumanController.php:38
* @route '/api/v1/widget/request-human'
*/
RequestHumanController.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: RequestHumanController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Widget\RequestHumanController::__invoke
* @see app/Http/Controllers/Widget/RequestHumanController.php:38
* @route '/api/v1/widget/request-human'
*/
const RequestHumanControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: RequestHumanController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Widget\RequestHumanController::__invoke
* @see app/Http/Controllers/Widget/RequestHumanController.php:38
* @route '/api/v1/widget/request-human'
*/
RequestHumanControllerForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: RequestHumanController.url(options),
    method: 'post',
})

RequestHumanController.form = RequestHumanControllerForm

export default RequestHumanController