import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../wayfinder'
/**
* @see \App\Http\Controllers\UspaOperationController::index
* @see app/Http/Controllers/UspaOperationController.php:51
* @route '/i-uspa-decisions'
*/
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

index.definition = {
    methods: ["get","head"],
    url: '/i-uspa-decisions',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\UspaOperationController::index
* @see app/Http/Controllers/UspaOperationController.php:51
* @route '/i-uspa-decisions'
*/
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\UspaOperationController::index
* @see app/Http/Controllers/UspaOperationController.php:51
* @route '/i-uspa-decisions'
*/
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\UspaOperationController::index
* @see app/Http/Controllers/UspaOperationController.php:51
* @route '/i-uspa-decisions'
*/
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\UspaOperationController::index
* @see app/Http/Controllers/UspaOperationController.php:51
* @route '/i-uspa-decisions'
*/
const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\UspaOperationController::index
* @see app/Http/Controllers/UspaOperationController.php:51
* @route '/i-uspa-decisions'
*/
indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\UspaOperationController::index
* @see app/Http/Controllers/UspaOperationController.php:51
* @route '/i-uspa-decisions'
*/
indexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

index.form = indexForm

/**
* @see \App\Http\Controllers\UspaOperationController::fuFinals
* @see app/Http/Controllers/UspaOperationController.php:308
* @route '/i-uspa-decisions/fu-finals'
*/
export const fuFinals = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: fuFinals.url(options),
    method: 'get',
})

fuFinals.definition = {
    methods: ["get","head"],
    url: '/i-uspa-decisions/fu-finals',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\UspaOperationController::fuFinals
* @see app/Http/Controllers/UspaOperationController.php:308
* @route '/i-uspa-decisions/fu-finals'
*/
fuFinals.url = (options?: RouteQueryOptions) => {
    return fuFinals.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\UspaOperationController::fuFinals
* @see app/Http/Controllers/UspaOperationController.php:308
* @route '/i-uspa-decisions/fu-finals'
*/
fuFinals.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: fuFinals.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\UspaOperationController::fuFinals
* @see app/Http/Controllers/UspaOperationController.php:308
* @route '/i-uspa-decisions/fu-finals'
*/
fuFinals.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: fuFinals.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\UspaOperationController::fuFinals
* @see app/Http/Controllers/UspaOperationController.php:308
* @route '/i-uspa-decisions/fu-finals'
*/
const fuFinalsForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: fuFinals.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\UspaOperationController::fuFinals
* @see app/Http/Controllers/UspaOperationController.php:308
* @route '/i-uspa-decisions/fu-finals'
*/
fuFinalsForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: fuFinals.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\UspaOperationController::fuFinals
* @see app/Http/Controllers/UspaOperationController.php:308
* @route '/i-uspa-decisions/fu-finals'
*/
fuFinalsForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: fuFinals.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

fuFinals.form = fuFinalsForm

const iUspaDecisions = {
    index: Object.assign(index, index),
    fuFinals: Object.assign(fuFinals, fuFinals),
}

export default iUspaDecisions