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

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

/**
* @see \App\Http\Controllers\InvestmentController::index
* @see app/Http/Controllers/InvestmentController.php:21
* @route '/invertir'
*/
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\InvestmentController::index
* @see app/Http/Controllers/InvestmentController.php:21
* @route '/invertir'
*/
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\InvestmentController::index
* @see app/Http/Controllers/InvestmentController.php:21
* @route '/invertir'
*/
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\InvestmentController::index
* @see app/Http/Controllers/InvestmentController.php:21
* @route '/invertir'
*/
const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\InvestmentController::index
* @see app/Http/Controllers/InvestmentController.php:21
* @route '/invertir'
*/
indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\InvestmentController::index
* @see app/Http/Controllers/InvestmentController.php:21
* @route '/invertir'
*/
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\InvestmentController::store
* @see app/Http/Controllers/InvestmentController.php:40
* @route '/invertir'
*/
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

store.definition = {
    methods: ["post"],
    url: '/invertir',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\InvestmentController::store
* @see app/Http/Controllers/InvestmentController.php:40
* @route '/invertir'
*/
store.url = (options?: RouteQueryOptions) => {
    return store.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\InvestmentController::store
* @see app/Http/Controllers/InvestmentController.php:40
* @route '/invertir'
*/
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\InvestmentController::store
* @see app/Http/Controllers/InvestmentController.php:40
* @route '/invertir'
*/
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: store.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\InvestmentController::store
* @see app/Http/Controllers/InvestmentController.php:40
* @route '/invertir'
*/
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: store.url(options),
    method: 'post',
})

store.form = storeForm

const InvestmentController = { index, store }

export default InvestmentController