import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Partner\DashboardController::__invoke
 * @see app/Http/Controllers/Partner/DashboardController.php:17
 * @route '/partner/dashboard'
 */
export const __invoke = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: __invoke.url(options),
    method: 'get',
})

__invoke.definition = {
    methods: ["get","head"],
    url: '/partner/dashboard',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Partner\DashboardController::__invoke
 * @see app/Http/Controllers/Partner/DashboardController.php:17
 * @route '/partner/dashboard'
 */
__invoke.url = (options?: RouteQueryOptions) => {
    return __invoke.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Partner\DashboardController::__invoke
 * @see app/Http/Controllers/Partner/DashboardController.php:17
 * @route '/partner/dashboard'
 */
__invoke.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: __invoke.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Partner\DashboardController::__invoke
 * @see app/Http/Controllers/Partner/DashboardController.php:17
 * @route '/partner/dashboard'
 */
__invoke.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: __invoke.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\Partner\DashboardController::__invoke
 * @see app/Http/Controllers/Partner/DashboardController.php:17
 * @route '/partner/dashboard'
 */
    const __invokeForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: __invoke.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\Partner\DashboardController::__invoke
 * @see app/Http/Controllers/Partner/DashboardController.php:17
 * @route '/partner/dashboard'
 */
        __invokeForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: __invoke.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Partner\DashboardController::__invoke
 * @see app/Http/Controllers/Partner/DashboardController.php:17
 * @route '/partner/dashboard'
 */
        __invokeForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: __invoke.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    __invoke.form = __invokeForm
const DashboardController = { __invoke }

export default DashboardController