import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Admin\PresenceController::__invoke
* @see app/Http/Controllers/Admin/PresenceController.php:23
* @route '/app/me/presence'
*/
const PresenceController = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: PresenceController.url(options),
    method: 'post',
})

PresenceController.definition = {
    methods: ["post"],
    url: '/app/me/presence',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Admin\PresenceController::__invoke
* @see app/Http/Controllers/Admin/PresenceController.php:23
* @route '/app/me/presence'
*/
PresenceController.url = (options?: RouteQueryOptions) => {
    return PresenceController.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Admin\PresenceController::__invoke
* @see app/Http/Controllers/Admin/PresenceController.php:23
* @route '/app/me/presence'
*/
PresenceController.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: PresenceController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Admin\PresenceController::__invoke
* @see app/Http/Controllers/Admin/PresenceController.php:23
* @route '/app/me/presence'
*/
const PresenceControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: PresenceController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Admin\PresenceController::__invoke
* @see app/Http/Controllers/Admin/PresenceController.php:23
* @route '/app/me/presence'
*/
PresenceControllerForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: PresenceController.url(options),
    method: 'post',
})

PresenceController.form = PresenceControllerForm

export default PresenceController