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

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

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::edit
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:14
* @route '/admin/notificaciones'
*/
edit.url = (options?: RouteQueryOptions) => {
    return edit.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::edit
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:14
* @route '/admin/notificaciones'
*/
edit.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::edit
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:14
* @route '/admin/notificaciones'
*/
edit.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: edit.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::edit
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:14
* @route '/admin/notificaciones'
*/
const editForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: edit.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::edit
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:14
* @route '/admin/notificaciones'
*/
editForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: edit.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::edit
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:14
* @route '/admin/notificaciones'
*/
editForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: edit.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

edit.form = editForm

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::update
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:28
* @route '/admin/notificaciones'
*/
export const update = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(options),
    method: 'put',
})

update.definition = {
    methods: ["put"],
    url: '/admin/notificaciones',
} satisfies RouteDefinition<["put"]>

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::update
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:28
* @route '/admin/notificaciones'
*/
update.url = (options?: RouteQueryOptions) => {
    return update.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::update
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:28
* @route '/admin/notificaciones'
*/
update.put = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(options),
    method: 'put',
})

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::update
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:28
* @route '/admin/notificaciones'
*/
const updateForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: update.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PUT',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Admin\AdminNotificationSettingsController::update
* @see app/Http/Controllers/Admin/AdminNotificationSettingsController.php:28
* @route '/admin/notificaciones'
*/
updateForm.put = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: update.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PUT',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

update.form = updateForm

const notificationSettings = {
    edit: Object.assign(edit, edit),
    update: Object.assign(update, update),
}

export default notificationSettings