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

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

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

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

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

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

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

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

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

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

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

/**
* @see \App\Http\Controllers\XeroSettingsController::update
* @see app/Http/Controllers/XeroSettingsController.php:72
* @route '/administration/xero-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\XeroSettingsController::update
* @see app/Http/Controllers/XeroSettingsController.php:72
* @route '/administration/xero-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\XeroSettingsController::redirectToXero
* @see app/Http/Controllers/XeroSettingsController.php:136
* @route '/xero/authorize'
*/
export const redirectToXero = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: redirectToXero.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\XeroSettingsController::redirectToXero
* @see app/Http/Controllers/XeroSettingsController.php:136
* @route '/xero/authorize'
*/
redirectToXero.url = (options?: RouteQueryOptions) => {
    return redirectToXero.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\XeroSettingsController::redirectToXero
* @see app/Http/Controllers/XeroSettingsController.php:136
* @route '/xero/authorize'
*/
redirectToXero.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: redirectToXero.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::redirectToXero
* @see app/Http/Controllers/XeroSettingsController.php:136
* @route '/xero/authorize'
*/
redirectToXero.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: redirectToXero.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::redirectToXero
* @see app/Http/Controllers/XeroSettingsController.php:136
* @route '/xero/authorize'
*/
const redirectToXeroForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: redirectToXero.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::redirectToXero
* @see app/Http/Controllers/XeroSettingsController.php:136
* @route '/xero/authorize'
*/
redirectToXeroForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: redirectToXero.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::redirectToXero
* @see app/Http/Controllers/XeroSettingsController.php:136
* @route '/xero/authorize'
*/
redirectToXeroForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: redirectToXero.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

redirectToXero.form = redirectToXeroForm

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

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

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

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

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

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

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

/**
* @see \App\Http\Controllers\XeroSettingsController::callback
* @see app/Http/Controllers/XeroSettingsController.php:150
* @route '/xero/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\XeroSettingsController::disconnect
* @see app/Http/Controllers/XeroSettingsController.php:286
* @route '/xero/disconnect'
*/
export const disconnect = (options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: disconnect.url(options),
    method: 'delete',
})

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

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

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

/**
* @see \App\Http\Controllers\XeroSettingsController::disconnect
* @see app/Http/Controllers/XeroSettingsController.php:286
* @route '/xero/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\XeroSettingsController::disconnect
* @see app/Http/Controllers/XeroSettingsController.php:286
* @route '/xero/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\XeroSettingsController::selectTenant
* @see app/Http/Controllers/XeroSettingsController.php:237
* @route '/xero/select-tenant'
*/
export const selectTenant = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: selectTenant.url(options),
    method: 'post',
})

selectTenant.definition = {
    methods: ["post"],
    url: '/xero/select-tenant',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\XeroSettingsController::selectTenant
* @see app/Http/Controllers/XeroSettingsController.php:237
* @route '/xero/select-tenant'
*/
selectTenant.url = (options?: RouteQueryOptions) => {
    return selectTenant.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\XeroSettingsController::selectTenant
* @see app/Http/Controllers/XeroSettingsController.php:237
* @route '/xero/select-tenant'
*/
selectTenant.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: selectTenant.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::selectTenant
* @see app/Http/Controllers/XeroSettingsController.php:237
* @route '/xero/select-tenant'
*/
const selectTenantForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: selectTenant.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::selectTenant
* @see app/Http/Controllers/XeroSettingsController.php:237
* @route '/xero/select-tenant'
*/
selectTenantForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: selectTenant.url(options),
    method: 'post',
})

selectTenant.form = selectTenantForm

/**
* @see \App\Http\Controllers\XeroSettingsController::fetchTenants
* @see app/Http/Controllers/XeroSettingsController.php:263
* @route '/xero/fetch-tenants'
*/
export const fetchTenants = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: fetchTenants.url(options),
    method: 'post',
})

fetchTenants.definition = {
    methods: ["post"],
    url: '/xero/fetch-tenants',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\XeroSettingsController::fetchTenants
* @see app/Http/Controllers/XeroSettingsController.php:263
* @route '/xero/fetch-tenants'
*/
fetchTenants.url = (options?: RouteQueryOptions) => {
    return fetchTenants.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\XeroSettingsController::fetchTenants
* @see app/Http/Controllers/XeroSettingsController.php:263
* @route '/xero/fetch-tenants'
*/
fetchTenants.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: fetchTenants.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::fetchTenants
* @see app/Http/Controllers/XeroSettingsController.php:263
* @route '/xero/fetch-tenants'
*/
const fetchTenantsForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: fetchTenants.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::fetchTenants
* @see app/Http/Controllers/XeroSettingsController.php:263
* @route '/xero/fetch-tenants'
*/
fetchTenantsForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: fetchTenants.url(options),
    method: 'post',
})

fetchTenants.form = fetchTenantsForm

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

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

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

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

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

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

switchCompany.form = switchCompanyForm

/**
* @see \App\Http\Controllers\XeroSettingsController::resetInitialSyncStatus
* @see app/Http/Controllers/XeroSettingsController.php:327
* @route '/xero/reset-initial-sync-status'
*/
export const resetInitialSyncStatus = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: resetInitialSyncStatus.url(options),
    method: 'post',
})

resetInitialSyncStatus.definition = {
    methods: ["post"],
    url: '/xero/reset-initial-sync-status',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\XeroSettingsController::resetInitialSyncStatus
* @see app/Http/Controllers/XeroSettingsController.php:327
* @route '/xero/reset-initial-sync-status'
*/
resetInitialSyncStatus.url = (options?: RouteQueryOptions) => {
    return resetInitialSyncStatus.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\XeroSettingsController::resetInitialSyncStatus
* @see app/Http/Controllers/XeroSettingsController.php:327
* @route '/xero/reset-initial-sync-status'
*/
resetInitialSyncStatus.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: resetInitialSyncStatus.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::resetInitialSyncStatus
* @see app/Http/Controllers/XeroSettingsController.php:327
* @route '/xero/reset-initial-sync-status'
*/
const resetInitialSyncStatusForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: resetInitialSyncStatus.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\XeroSettingsController::resetInitialSyncStatus
* @see app/Http/Controllers/XeroSettingsController.php:327
* @route '/xero/reset-initial-sync-status'
*/
resetInitialSyncStatusForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: resetInitialSyncStatus.url(options),
    method: 'post',
})

resetInitialSyncStatus.form = resetInitialSyncStatusForm

const XeroSettingsController = { index, update, redirectToXero, callback, disconnect, selectTenant, fetchTenants, switchCompany, resetInitialSyncStatus }

export default XeroSettingsController