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

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

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

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

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

/**
* @see \App\Http\Controllers\ClientZoneController::register
* @see app/Http/Controllers/ClientZoneController.php:136
* @route '/client-zone/register'
*/
const registerForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: register.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ClientZoneController::register
* @see app/Http/Controllers/ClientZoneController.php:136
* @route '/client-zone/register'
*/
registerForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: register.url(options),
    method: 'get',
})

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

register.form = registerForm

/**
* @see \App\Http\Controllers\ClientZoneController::dashboard
* @see app/Http/Controllers/ClientZoneController.php:181
* @route '/client-zone'
*/
export const dashboard = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: dashboard.url(options),
    method: 'get',
})

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

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

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

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

/**
* @see \App\Http\Controllers\ClientZoneController::dashboard
* @see app/Http/Controllers/ClientZoneController.php:181
* @route '/client-zone'
*/
const dashboardForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: dashboard.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ClientZoneController::dashboard
* @see app/Http/Controllers/ClientZoneController.php:181
* @route '/client-zone'
*/
dashboardForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: dashboard.url(options),
    method: 'get',
})

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

dashboard.form = dashboardForm

/**
* @see \App\Http\Controllers\ClientZoneController::documents
* @see app/Http/Controllers/ClientZoneController.php:248
* @route '/client-zone/documents'
*/
export const documents = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: documents.url(options),
    method: 'get',
})

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

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

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

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

/**
* @see \App\Http\Controllers\ClientZoneController::documents
* @see app/Http/Controllers/ClientZoneController.php:248
* @route '/client-zone/documents'
*/
const documentsForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: documents.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ClientZoneController::documents
* @see app/Http/Controllers/ClientZoneController.php:248
* @route '/client-zone/documents'
*/
documentsForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: documents.url(options),
    method: 'get',
})

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

documents.form = documentsForm

/**
* @see \App\Http\Controllers\ClientZoneController::requestUpdate
* @see app/Http/Controllers/ClientZoneController.php:392
* @route '/client-zone/request-update'
*/
export const requestUpdate = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: requestUpdate.url(options),
    method: 'get',
})

requestUpdate.definition = {
    methods: ["get","head"],
    url: '/client-zone/request-update',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ClientZoneController::requestUpdate
* @see app/Http/Controllers/ClientZoneController.php:392
* @route '/client-zone/request-update'
*/
requestUpdate.url = (options?: RouteQueryOptions) => {
    return requestUpdate.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\ClientZoneController::requestUpdate
* @see app/Http/Controllers/ClientZoneController.php:392
* @route '/client-zone/request-update'
*/
requestUpdate.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: requestUpdate.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ClientZoneController::requestUpdate
* @see app/Http/Controllers/ClientZoneController.php:392
* @route '/client-zone/request-update'
*/
requestUpdate.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: requestUpdate.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ClientZoneController::requestUpdate
* @see app/Http/Controllers/ClientZoneController.php:392
* @route '/client-zone/request-update'
*/
const requestUpdateForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: requestUpdate.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ClientZoneController::requestUpdate
* @see app/Http/Controllers/ClientZoneController.php:392
* @route '/client-zone/request-update'
*/
requestUpdateForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: requestUpdate.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ClientZoneController::requestUpdate
* @see app/Http/Controllers/ClientZoneController.php:392
* @route '/client-zone/request-update'
*/
requestUpdateForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: requestUpdate.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

requestUpdate.form = requestUpdateForm

/**
* @see \App\Http\Controllers\ClientZoneController::updateRequest
* @see app/Http/Controllers/ClientZoneController.php:401
* @route '/client-zone/update-request'
*/
export const updateRequest = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: updateRequest.url(options),
    method: 'post',
})

updateRequest.definition = {
    methods: ["post"],
    url: '/client-zone/update-request',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\ClientZoneController::updateRequest
* @see app/Http/Controllers/ClientZoneController.php:401
* @route '/client-zone/update-request'
*/
updateRequest.url = (options?: RouteQueryOptions) => {
    return updateRequest.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\ClientZoneController::updateRequest
* @see app/Http/Controllers/ClientZoneController.php:401
* @route '/client-zone/update-request'
*/
updateRequest.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: updateRequest.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ClientZoneController::updateRequest
* @see app/Http/Controllers/ClientZoneController.php:401
* @route '/client-zone/update-request'
*/
const updateRequestForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: updateRequest.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ClientZoneController::updateRequest
* @see app/Http/Controllers/ClientZoneController.php:401
* @route '/client-zone/update-request'
*/
updateRequestForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: updateRequest.url(options),
    method: 'post',
})

updateRequest.form = updateRequestForm

const clientZone = {
    register: Object.assign(register, register702019),
    dashboard: Object.assign(dashboard, dashboard),
    documents: Object.assign(documents, documents),
    requestUpdate: Object.assign(requestUpdate, requestUpdate),
    updateRequest: Object.assign(updateRequest, updateRequest),
    invoices: Object.assign(invoices, invoices),
    quotes: Object.assign(quotes, quotes),
    jobcards: Object.assign(jobcards, jobcards),
    statement: Object.assign(statement, statement),
}

export default clientZone