import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../wayfinder'
/**
* @see \App\Http\Controllers\AdministrationController::update
* @see app/Http/Controllers/AdministrationController.php:141
* @route '/administration/license'
*/
export const update = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: update.url(options),
    method: 'post',
})

update.definition = {
    methods: ["post"],
    url: '/administration/license',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\AdministrationController::update
* @see app/Http/Controllers/AdministrationController.php:141
* @route '/administration/license'
*/
update.url = (options?: RouteQueryOptions) => {
    return update.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\AdministrationController::update
* @see app/Http/Controllers/AdministrationController.php:141
* @route '/administration/license'
*/
update.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: update.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\AdministrationController::update
* @see app/Http/Controllers/AdministrationController.php:141
* @route '/administration/license'
*/
const updateForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: update.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\AdministrationController::update
* @see app/Http/Controllers/AdministrationController.php:141
* @route '/administration/license'
*/
updateForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: update.url(options),
    method: 'post',
})

update.form = updateForm

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

export default license