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

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

/**
* @see \App\Http\Controllers\Partner\SettingsController::index
 * @see app/Http/Controllers/Partner/SettingsController.php:24
 * @route '/partner/settings'
 */
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Partner\SettingsController::index
 * @see app/Http/Controllers/Partner/SettingsController.php:24
 * @route '/partner/settings'
 */
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Partner\SettingsController::index
 * @see app/Http/Controllers/Partner/SettingsController.php:24
 * @route '/partner/settings'
 */
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\Partner\SettingsController::index
 * @see app/Http/Controllers/Partner/SettingsController.php:24
 * @route '/partner/settings'
 */
    const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: index.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\Partner\SettingsController::index
 * @see app/Http/Controllers/Partner/SettingsController.php:24
 * @route '/partner/settings'
 */
        indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Partner\SettingsController::index
 * @see app/Http/Controllers/Partner/SettingsController.php:24
 * @route '/partner/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\Partner\SettingsController::updateProfile
 * @see app/Http/Controllers/Partner/SettingsController.php:37
 * @route '/partner/settings/profile'
 */
export const updateProfile = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: updateProfile.url(options),
    method: 'put',
})

updateProfile.definition = {
    methods: ["put"],
    url: '/partner/settings/profile',
} satisfies RouteDefinition<["put"]>

/**
* @see \App\Http\Controllers\Partner\SettingsController::updateProfile
 * @see app/Http/Controllers/Partner/SettingsController.php:37
 * @route '/partner/settings/profile'
 */
updateProfile.url = (options?: RouteQueryOptions) => {
    return updateProfile.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Partner\SettingsController::updateProfile
 * @see app/Http/Controllers/Partner/SettingsController.php:37
 * @route '/partner/settings/profile'
 */
updateProfile.put = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: updateProfile.url(options),
    method: 'put',
})

    /**
* @see \App\Http\Controllers\Partner\SettingsController::updateProfile
 * @see app/Http/Controllers/Partner/SettingsController.php:37
 * @route '/partner/settings/profile'
 */
    const updateProfileForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: updateProfile.url({
                    [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                        _method: 'PUT',
                        ...(options?.query ?? options?.mergeQuery ?? {}),
                    }
                }),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\Partner\SettingsController::updateProfile
 * @see app/Http/Controllers/Partner/SettingsController.php:37
 * @route '/partner/settings/profile'
 */
        updateProfileForm.put = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: updateProfile.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'PUT',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
    
    updateProfile.form = updateProfileForm
/**
* @see \App\Http\Controllers\Partner\SettingsController::updatePassword
 * @see app/Http/Controllers/Partner/SettingsController.php:69
 * @route '/partner/settings/password'
 */
export const updatePassword = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: updatePassword.url(options),
    method: 'put',
})

updatePassword.definition = {
    methods: ["put"],
    url: '/partner/settings/password',
} satisfies RouteDefinition<["put"]>

/**
* @see \App\Http\Controllers\Partner\SettingsController::updatePassword
 * @see app/Http/Controllers/Partner/SettingsController.php:69
 * @route '/partner/settings/password'
 */
updatePassword.url = (options?: RouteQueryOptions) => {
    return updatePassword.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Partner\SettingsController::updatePassword
 * @see app/Http/Controllers/Partner/SettingsController.php:69
 * @route '/partner/settings/password'
 */
updatePassword.put = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: updatePassword.url(options),
    method: 'put',
})

    /**
* @see \App\Http\Controllers\Partner\SettingsController::updatePassword
 * @see app/Http/Controllers/Partner/SettingsController.php:69
 * @route '/partner/settings/password'
 */
    const updatePasswordForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: updatePassword.url({
                    [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                        _method: 'PUT',
                        ...(options?.query ?? options?.mergeQuery ?? {}),
                    }
                }),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\Partner\SettingsController::updatePassword
 * @see app/Http/Controllers/Partner/SettingsController.php:69
 * @route '/partner/settings/password'
 */
        updatePasswordForm.put = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: updatePassword.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'PUT',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
    
    updatePassword.form = updatePasswordForm
/**
* @see \App\Http\Controllers\Partner\SettingsController::updateSettings
 * @see app/Http/Controllers/Partner/SettingsController.php:104
 * @route '/partner/settings/custom'
 */
export const updateSettings = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: updateSettings.url(options),
    method: 'put',
})

updateSettings.definition = {
    methods: ["put"],
    url: '/partner/settings/custom',
} satisfies RouteDefinition<["put"]>

/**
* @see \App\Http\Controllers\Partner\SettingsController::updateSettings
 * @see app/Http/Controllers/Partner/SettingsController.php:104
 * @route '/partner/settings/custom'
 */
updateSettings.url = (options?: RouteQueryOptions) => {
    return updateSettings.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Partner\SettingsController::updateSettings
 * @see app/Http/Controllers/Partner/SettingsController.php:104
 * @route '/partner/settings/custom'
 */
updateSettings.put = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: updateSettings.url(options),
    method: 'put',
})

    /**
* @see \App\Http\Controllers\Partner\SettingsController::updateSettings
 * @see app/Http/Controllers/Partner/SettingsController.php:104
 * @route '/partner/settings/custom'
 */
    const updateSettingsForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: updateSettings.url({
                    [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                        _method: 'PUT',
                        ...(options?.query ?? options?.mergeQuery ?? {}),
                    }
                }),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\Partner\SettingsController::updateSettings
 * @see app/Http/Controllers/Partner/SettingsController.php:104
 * @route '/partner/settings/custom'
 */
        updateSettingsForm.put = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: updateSettings.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'PUT',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
    
    updateSettings.form = updateSettingsForm
const SettingsController = { index, updateProfile, updatePassword, updateSettings }

export default SettingsController