import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../wayfinder'
/**
* @see \App\Http\Controllers\ClientZoneController::downloadPdf
* @see app/Http/Controllers/ClientZoneController.php:548
* @route '/client-zone/statement/download-pdf'
*/
export const downloadPdf = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: downloadPdf.url(options),
    method: 'get',
})

downloadPdf.definition = {
    methods: ["get","head"],
    url: '/client-zone/statement/download-pdf',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ClientZoneController::downloadPdf
* @see app/Http/Controllers/ClientZoneController.php:548
* @route '/client-zone/statement/download-pdf'
*/
downloadPdf.url = (options?: RouteQueryOptions) => {
    return downloadPdf.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\ClientZoneController::downloadPdf
* @see app/Http/Controllers/ClientZoneController.php:548
* @route '/client-zone/statement/download-pdf'
*/
downloadPdf.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: downloadPdf.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ClientZoneController::downloadPdf
* @see app/Http/Controllers/ClientZoneController.php:548
* @route '/client-zone/statement/download-pdf'
*/
downloadPdf.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: downloadPdf.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ClientZoneController::downloadPdf
* @see app/Http/Controllers/ClientZoneController.php:548
* @route '/client-zone/statement/download-pdf'
*/
const downloadPdfForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: downloadPdf.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ClientZoneController::downloadPdf
* @see app/Http/Controllers/ClientZoneController.php:548
* @route '/client-zone/statement/download-pdf'
*/
downloadPdfForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: downloadPdf.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ClientZoneController::downloadPdf
* @see app/Http/Controllers/ClientZoneController.php:548
* @route '/client-zone/statement/download-pdf'
*/
downloadPdfForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: downloadPdf.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

downloadPdf.form = downloadPdfForm

const statement = {
    downloadPdf: Object.assign(downloadPdf, downloadPdf),
}

export default statement