import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../wayfinder'
/**
* @see \App\Http\Controllers\GoogleIntegrationController::show
* @see app/Http/Controllers/GoogleIntegrationController.php:13
* @route '/administration/other-integrations'
*/
export const show = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/administration/other-integrations',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\GoogleIntegrationController::show
* @see app/Http/Controllers/GoogleIntegrationController.php:13
* @route '/administration/other-integrations'
*/
show.url = (options?: RouteQueryOptions) => {
    return show.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\GoogleIntegrationController::show
* @see app/Http/Controllers/GoogleIntegrationController.php:13
* @route '/administration/other-integrations'
*/
show.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\GoogleIntegrationController::show
* @see app/Http/Controllers/GoogleIntegrationController.php:13
* @route '/administration/other-integrations'
*/
show.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\GoogleIntegrationController::show
* @see app/Http/Controllers/GoogleIntegrationController.php:13
* @route '/administration/other-integrations'
*/
const showForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\GoogleIntegrationController::show
* @see app/Http/Controllers/GoogleIntegrationController.php:13
* @route '/administration/other-integrations'
*/
showForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\GoogleIntegrationController::show
* @see app/Http/Controllers/GoogleIntegrationController.php:13
* @route '/administration/other-integrations'
*/
showForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

show.form = showForm

/**
* @see \App\Http\Controllers\GoogleIntegrationController::update
* @see app/Http/Controllers/GoogleIntegrationController.php:29
* @route '/administration/other-integrations'
*/
export const update = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(options),
    method: 'put',
})

update.definition = {
    methods: ["put"],
    url: '/administration/other-integrations',
} satisfies RouteDefinition<["put"]>

/**
* @see \App\Http\Controllers\GoogleIntegrationController::update
* @see app/Http/Controllers/GoogleIntegrationController.php:29
* @route '/administration/other-integrations'
*/
update.url = (options?: RouteQueryOptions) => {
    return update.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\GoogleIntegrationController::update
* @see app/Http/Controllers/GoogleIntegrationController.php:29
* @route '/administration/other-integrations'
*/
update.put = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(options),
    method: 'put',
})

/**
* @see \App\Http\Controllers\GoogleIntegrationController::update
* @see app/Http/Controllers/GoogleIntegrationController.php:29
* @route '/administration/other-integrations'
*/
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\GoogleIntegrationController::update
* @see app/Http/Controllers/GoogleIntegrationController.php:29
* @route '/administration/other-integrations'
*/
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 GoogleIntegrationController = { show, update }

export default GoogleIntegrationController