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

SatisfactionController.definition = {
    methods: ["post"],
    url: '/api/v1/widget/satisfaction',
} satisfies RouteDefinition<["post"]>

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

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

/**
* @see \App\Http\Controllers\Widget\SatisfactionController::__invoke
* @see app/Http/Controllers/Widget/SatisfactionController.php:24
* @route '/api/v1/widget/satisfaction'
*/
const SatisfactionControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: SatisfactionController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Widget\SatisfactionController::__invoke
* @see app/Http/Controllers/Widget/SatisfactionController.php:24
* @route '/api/v1/widget/satisfaction'
*/
SatisfactionControllerForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: SatisfactionController.url(options),
    method: 'post',
})

SatisfactionController.form = SatisfactionControllerForm

export default SatisfactionController