import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../wayfinder'
/**
* @see \App\Http\Controllers\DailyCollectionController::tellerInput
 * @see app/Http/Controllers/DailyCollectionController.php:86
 * @route '/daily-collection/teller'
 */
export const tellerInput = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: tellerInput.url(options),
    method: 'get',
})

tellerInput.definition = {
    methods: ["get","head"],
    url: '/daily-collection/teller',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\DailyCollectionController::tellerInput
 * @see app/Http/Controllers/DailyCollectionController.php:86
 * @route '/daily-collection/teller'
 */
tellerInput.url = (options?: RouteQueryOptions) => {
    return tellerInput.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\DailyCollectionController::tellerInput
 * @see app/Http/Controllers/DailyCollectionController.php:86
 * @route '/daily-collection/teller'
 */
tellerInput.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: tellerInput.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\DailyCollectionController::tellerInput
 * @see app/Http/Controllers/DailyCollectionController.php:86
 * @route '/daily-collection/teller'
 */
tellerInput.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: tellerInput.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\DailyCollectionController::tellerInput
 * @see app/Http/Controllers/DailyCollectionController.php:86
 * @route '/daily-collection/teller'
 */
    const tellerInputForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: tellerInput.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\DailyCollectionController::tellerInput
 * @see app/Http/Controllers/DailyCollectionController.php:86
 * @route '/daily-collection/teller'
 */
        tellerInputForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: tellerInput.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\DailyCollectionController::tellerInput
 * @see app/Http/Controllers/DailyCollectionController.php:86
 * @route '/daily-collection/teller'
 */
        tellerInputForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: tellerInput.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    tellerInput.form = tellerInputForm
/**
* @see \App\Http\Controllers\DailyCollectionController::index
 * @see app/Http/Controllers/DailyCollectionController.php:28
 * @route '/daily-collection'
 */
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\DailyCollectionController::index
 * @see app/Http/Controllers/DailyCollectionController.php:28
 * @route '/daily-collection'
 */
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\DailyCollectionController::index
 * @see app/Http/Controllers/DailyCollectionController.php:28
 * @route '/daily-collection'
 */
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\DailyCollectionController::index
 * @see app/Http/Controllers/DailyCollectionController.php:28
 * @route '/daily-collection'
 */
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

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

            /**
* @see \App\Http\Controllers\DailyCollectionController::index
 * @see app/Http/Controllers/DailyCollectionController.php:28
 * @route '/daily-collection'
 */
        indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\DailyCollectionController::index
 * @see app/Http/Controllers/DailyCollectionController.php:28
 * @route '/daily-collection'
 */
        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\DailyCollectionController::collectorTasks
 * @see app/Http/Controllers/DailyCollectionController.php:47
 * @route '/daily-collection/collector/{user}'
 */
export const collectorTasks = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: collectorTasks.url(args, options),
    method: 'get',
})

collectorTasks.definition = {
    methods: ["get","head"],
    url: '/daily-collection/collector/{user}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\DailyCollectionController::collectorTasks
 * @see app/Http/Controllers/DailyCollectionController.php:47
 * @route '/daily-collection/collector/{user}'
 */
collectorTasks.url = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { user: args }
    }

            if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
            args = { user: args.id }
        }
    
    if (Array.isArray(args)) {
        args = {
                    user: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        user: typeof args.user === 'object'
                ? args.user.id
                : args.user,
                }

    return collectorTasks.definition.url
            .replace('{user}', parsedArgs.user.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\DailyCollectionController::collectorTasks
 * @see app/Http/Controllers/DailyCollectionController.php:47
 * @route '/daily-collection/collector/{user}'
 */
collectorTasks.get = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: collectorTasks.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\DailyCollectionController::collectorTasks
 * @see app/Http/Controllers/DailyCollectionController.php:47
 * @route '/daily-collection/collector/{user}'
 */
collectorTasks.head = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: collectorTasks.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\DailyCollectionController::collectorTasks
 * @see app/Http/Controllers/DailyCollectionController.php:47
 * @route '/daily-collection/collector/{user}'
 */
    const collectorTasksForm = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: collectorTasks.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\DailyCollectionController::collectorTasks
 * @see app/Http/Controllers/DailyCollectionController.php:47
 * @route '/daily-collection/collector/{user}'
 */
        collectorTasksForm.get = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: collectorTasks.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\DailyCollectionController::collectorTasks
 * @see app/Http/Controllers/DailyCollectionController.php:47
 * @route '/daily-collection/collector/{user}'
 */
        collectorTasksForm.head = (args: { user: string | number | { id: string | number } } | [user: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: collectorTasks.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    collectorTasks.form = collectorTasksForm
/**
* @see \App\Http\Controllers\DailyCollectionController::processQuickPayment
 * @see app/Http/Controllers/DailyCollectionController.php:114
 * @route '/daily-collection/{installment}/quick-payment'
 */
export const processQuickPayment = (args: { installment: string | number | { id: string | number } } | [installment: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: processQuickPayment.url(args, options),
    method: 'post',
})

processQuickPayment.definition = {
    methods: ["post"],
    url: '/daily-collection/{installment}/quick-payment',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\DailyCollectionController::processQuickPayment
 * @see app/Http/Controllers/DailyCollectionController.php:114
 * @route '/daily-collection/{installment}/quick-payment'
 */
processQuickPayment.url = (args: { installment: string | number | { id: string | number } } | [installment: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { installment: args }
    }

            if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
            args = { installment: args.id }
        }
    
    if (Array.isArray(args)) {
        args = {
                    installment: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        installment: typeof args.installment === 'object'
                ? args.installment.id
                : args.installment,
                }

    return processQuickPayment.definition.url
            .replace('{installment}', parsedArgs.installment.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\DailyCollectionController::processQuickPayment
 * @see app/Http/Controllers/DailyCollectionController.php:114
 * @route '/daily-collection/{installment}/quick-payment'
 */
processQuickPayment.post = (args: { installment: string | number | { id: string | number } } | [installment: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: processQuickPayment.url(args, options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\DailyCollectionController::processQuickPayment
 * @see app/Http/Controllers/DailyCollectionController.php:114
 * @route '/daily-collection/{installment}/quick-payment'
 */
    const processQuickPaymentForm = (args: { installment: string | number | { id: string | number } } | [installment: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: processQuickPayment.url(args, options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\DailyCollectionController::processQuickPayment
 * @see app/Http/Controllers/DailyCollectionController.php:114
 * @route '/daily-collection/{installment}/quick-payment'
 */
        processQuickPaymentForm.post = (args: { installment: string | number | { id: string | number } } | [installment: string | number | { id: string | number } ] | string | number | { id: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: processQuickPayment.url(args, options),
            method: 'post',
        })
    
    processQuickPayment.form = processQuickPaymentForm
/**
* @see \App\Http\Controllers\DailyCollectionController::performance
 * @see app/Http/Controllers/DailyCollectionController.php:69
 * @route '/daily-collection/performance'
 */
export const performance = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: performance.url(options),
    method: 'get',
})

performance.definition = {
    methods: ["get","head"],
    url: '/daily-collection/performance',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\DailyCollectionController::performance
 * @see app/Http/Controllers/DailyCollectionController.php:69
 * @route '/daily-collection/performance'
 */
performance.url = (options?: RouteQueryOptions) => {
    return performance.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\DailyCollectionController::performance
 * @see app/Http/Controllers/DailyCollectionController.php:69
 * @route '/daily-collection/performance'
 */
performance.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: performance.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\DailyCollectionController::performance
 * @see app/Http/Controllers/DailyCollectionController.php:69
 * @route '/daily-collection/performance'
 */
performance.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: performance.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\DailyCollectionController::performance
 * @see app/Http/Controllers/DailyCollectionController.php:69
 * @route '/daily-collection/performance'
 */
    const performanceForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: performance.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\DailyCollectionController::performance
 * @see app/Http/Controllers/DailyCollectionController.php:69
 * @route '/daily-collection/performance'
 */
        performanceForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: performance.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\DailyCollectionController::performance
 * @see app/Http/Controllers/DailyCollectionController.php:69
 * @route '/daily-collection/performance'
 */
        performanceForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: performance.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    performance.form = performanceForm
const DailyCollectionController = { tellerInput, index, collectorTasks, processQuickPayment, performance }

export default DailyCollectionController