import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../wayfinder'
/**
* @see \App\Http\Controllers\QuickBooksSettingsController::index
* @see app/Http/Controllers/QuickBooksSettingsController.php:16
* @route '/administration/quickbooks-settings'
*/
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::index
* @see app/Http/Controllers/QuickBooksSettingsController.php:16
* @route '/administration/quickbooks-settings'
*/
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::index
* @see app/Http/Controllers/QuickBooksSettingsController.php:16
* @route '/administration/quickbooks-settings'
*/
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::index
* @see app/Http/Controllers/QuickBooksSettingsController.php:16
* @route '/administration/quickbooks-settings'
*/
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::index
* @see app/Http/Controllers/QuickBooksSettingsController.php:16
* @route '/administration/quickbooks-settings'
*/
const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::index
* @see app/Http/Controllers/QuickBooksSettingsController.php:16
* @route '/administration/quickbooks-settings'
*/
indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::index
* @see app/Http/Controllers/QuickBooksSettingsController.php:16
* @route '/administration/quickbooks-settings'
*/
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\QuickBooksSettingsController::update
* @see app/Http/Controllers/QuickBooksSettingsController.php:61
* @route '/administration/quickbooks-settings'
*/
export const update = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(options),
    method: 'put',
})

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

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::update
* @see app/Http/Controllers/QuickBooksSettingsController.php:61
* @route '/administration/quickbooks-settings'
*/
update.url = (options?: RouteQueryOptions) => {
    return update.definition.url + queryParams(options)
}

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

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::update
* @see app/Http/Controllers/QuickBooksSettingsController.php:61
* @route '/administration/quickbooks-settings'
*/
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\QuickBooksSettingsController::update
* @see app/Http/Controllers/QuickBooksSettingsController.php:61
* @route '/administration/quickbooks-settings'
*/
updateForm.put = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: update.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PUT',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

update.form = updateForm

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::redirectToQuickBooks
* @see app/Http/Controllers/QuickBooksSettingsController.php:125
* @route '/quickbooks/authorize'
*/
export const redirectToQuickBooks = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: redirectToQuickBooks.url(options),
    method: 'get',
})

redirectToQuickBooks.definition = {
    methods: ["get","head"],
    url: '/quickbooks/authorize',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::redirectToQuickBooks
* @see app/Http/Controllers/QuickBooksSettingsController.php:125
* @route '/quickbooks/authorize'
*/
redirectToQuickBooks.url = (options?: RouteQueryOptions) => {
    return redirectToQuickBooks.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::redirectToQuickBooks
* @see app/Http/Controllers/QuickBooksSettingsController.php:125
* @route '/quickbooks/authorize'
*/
redirectToQuickBooks.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: redirectToQuickBooks.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::redirectToQuickBooks
* @see app/Http/Controllers/QuickBooksSettingsController.php:125
* @route '/quickbooks/authorize'
*/
redirectToQuickBooks.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: redirectToQuickBooks.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::redirectToQuickBooks
* @see app/Http/Controllers/QuickBooksSettingsController.php:125
* @route '/quickbooks/authorize'
*/
const redirectToQuickBooksForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: redirectToQuickBooks.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::redirectToQuickBooks
* @see app/Http/Controllers/QuickBooksSettingsController.php:125
* @route '/quickbooks/authorize'
*/
redirectToQuickBooksForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: redirectToQuickBooks.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::redirectToQuickBooks
* @see app/Http/Controllers/QuickBooksSettingsController.php:125
* @route '/quickbooks/authorize'
*/
redirectToQuickBooksForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: redirectToQuickBooks.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

redirectToQuickBooks.form = redirectToQuickBooksForm

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::callback
* @see app/Http/Controllers/QuickBooksSettingsController.php:139
* @route '/quickbooks/callback'
*/
export const callback = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: callback.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::callback
* @see app/Http/Controllers/QuickBooksSettingsController.php:139
* @route '/quickbooks/callback'
*/
callback.url = (options?: RouteQueryOptions) => {
    return callback.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::callback
* @see app/Http/Controllers/QuickBooksSettingsController.php:139
* @route '/quickbooks/callback'
*/
callback.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: callback.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::callback
* @see app/Http/Controllers/QuickBooksSettingsController.php:139
* @route '/quickbooks/callback'
*/
callback.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: callback.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::callback
* @see app/Http/Controllers/QuickBooksSettingsController.php:139
* @route '/quickbooks/callback'
*/
const callbackForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: callback.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::callback
* @see app/Http/Controllers/QuickBooksSettingsController.php:139
* @route '/quickbooks/callback'
*/
callbackForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: callback.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::callback
* @see app/Http/Controllers/QuickBooksSettingsController.php:139
* @route '/quickbooks/callback'
*/
callbackForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: callback.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

callback.form = callbackForm

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::disconnect
* @see app/Http/Controllers/QuickBooksSettingsController.php:240
* @route '/quickbooks/disconnect'
*/
export const disconnect = (options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: disconnect.url(options),
    method: 'delete',
})

disconnect.definition = {
    methods: ["delete"],
    url: '/quickbooks/disconnect',
} satisfies RouteDefinition<["delete"]>

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::disconnect
* @see app/Http/Controllers/QuickBooksSettingsController.php:240
* @route '/quickbooks/disconnect'
*/
disconnect.url = (options?: RouteQueryOptions) => {
    return disconnect.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::disconnect
* @see app/Http/Controllers/QuickBooksSettingsController.php:240
* @route '/quickbooks/disconnect'
*/
disconnect.delete = (options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: disconnect.url(options),
    method: 'delete',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::disconnect
* @see app/Http/Controllers/QuickBooksSettingsController.php:240
* @route '/quickbooks/disconnect'
*/
const disconnectForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: disconnect.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'DELETE',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::disconnect
* @see app/Http/Controllers/QuickBooksSettingsController.php:240
* @route '/quickbooks/disconnect'
*/
disconnectForm.delete = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: disconnect.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'DELETE',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

disconnect.form = disconnectForm

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::switchCompany
* @see app/Http/Controllers/QuickBooksSettingsController.php:258
* @route '/quickbooks/switch-company'
*/
export const switchCompany = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: switchCompany.url(options),
    method: 'post',
})

switchCompany.definition = {
    methods: ["post"],
    url: '/quickbooks/switch-company',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::switchCompany
* @see app/Http/Controllers/QuickBooksSettingsController.php:258
* @route '/quickbooks/switch-company'
*/
switchCompany.url = (options?: RouteQueryOptions) => {
    return switchCompany.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::switchCompany
* @see app/Http/Controllers/QuickBooksSettingsController.php:258
* @route '/quickbooks/switch-company'
*/
switchCompany.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: switchCompany.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::switchCompany
* @see app/Http/Controllers/QuickBooksSettingsController.php:258
* @route '/quickbooks/switch-company'
*/
const switchCompanyForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: switchCompany.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\QuickBooksSettingsController::switchCompany
* @see app/Http/Controllers/QuickBooksSettingsController.php:258
* @route '/quickbooks/switch-company'
*/
switchCompanyForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: switchCompany.url(options),
    method: 'post',
})

switchCompany.form = switchCompanyForm

const QuickBooksSettingsController = { index, update, redirectToQuickBooks, callback, disconnect, switchCompany }

export default QuickBooksSettingsController