import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../wayfinder'
/**
* @see \App\Http\Controllers\Admin\InventoryController::exportMethod
* @see app/Http/Controllers/Admin/InventoryController.php:81
* @route '/admin/inventario/exportar'
*/
export const exportMethod = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: exportMethod.url(options),
    method: 'get',
})

exportMethod.definition = {
    methods: ["get","head"],
    url: '/admin/inventario/exportar',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Admin\InventoryController::exportMethod
* @see app/Http/Controllers/Admin/InventoryController.php:81
* @route '/admin/inventario/exportar'
*/
exportMethod.url = (options?: RouteQueryOptions) => {
    return exportMethod.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\InventoryController::exportMethod
* @see app/Http/Controllers/Admin/InventoryController.php:81
* @route '/admin/inventario/exportar'
*/
exportMethod.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: exportMethod.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\InventoryController::exportMethod
* @see app/Http/Controllers/Admin/InventoryController.php:81
* @route '/admin/inventario/exportar'
*/
exportMethod.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: exportMethod.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\InventoryController::exportMethod
* @see app/Http/Controllers/Admin/InventoryController.php:81
* @route '/admin/inventario/exportar'
*/
const exportMethodForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: exportMethod.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\InventoryController::exportMethod
* @see app/Http/Controllers/Admin/InventoryController.php:81
* @route '/admin/inventario/exportar'
*/
exportMethodForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: exportMethod.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\InventoryController::exportMethod
* @see app/Http/Controllers/Admin/InventoryController.php:81
* @route '/admin/inventario/exportar'
*/
exportMethodForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: exportMethod.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

exportMethod.form = exportMethodForm

const inventory = {
    export: Object.assign(exportMethod, exportMethod),
}

export default inventory