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'
*/
export const presence = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: presence.url(options),
    method: 'post',
})

presence.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'
*/
presence.url = (options?: RouteQueryOptions) => {
    return presence.definition.url + queryParams(options)
}

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

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

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

presence.form = presenceForm

const me = {
    presence: Object.assign(presence, presence),
}

export default me