import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../../wayfinder'
/**
* @see \App\Http\Controllers\PublicApi\V1\WebFormEventStoreController::__invoke
* @see app/Http/Controllers/PublicApi/V1/WebFormEventStoreController.php:14
* @route '/api/public/v1/web-form-events'
*/
const WebFormEventStoreController = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: WebFormEventStoreController.url(options),
    method: 'post',
})

WebFormEventStoreController.definition = {
    methods: ["post"],
    url: '/api/public/v1/web-form-events',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\PublicApi\V1\WebFormEventStoreController::__invoke
* @see app/Http/Controllers/PublicApi/V1/WebFormEventStoreController.php:14
* @route '/api/public/v1/web-form-events'
*/
WebFormEventStoreController.url = (options?: RouteQueryOptions) => {
    return WebFormEventStoreController.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\PublicApi\V1\WebFormEventStoreController::__invoke
* @see app/Http/Controllers/PublicApi/V1/WebFormEventStoreController.php:14
* @route '/api/public/v1/web-form-events'
*/
WebFormEventStoreController.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: WebFormEventStoreController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\PublicApi\V1\WebFormEventStoreController::__invoke
* @see app/Http/Controllers/PublicApi/V1/WebFormEventStoreController.php:14
* @route '/api/public/v1/web-form-events'
*/
const WebFormEventStoreControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: WebFormEventStoreController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\PublicApi\V1\WebFormEventStoreController::__invoke
* @see app/Http/Controllers/PublicApi/V1/WebFormEventStoreController.php:14
* @route '/api/public/v1/web-form-events'
*/
WebFormEventStoreControllerForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: WebFormEventStoreController.url(options),
    method: 'post',
})

WebFormEventStoreController.form = WebFormEventStoreControllerForm

export default WebFormEventStoreController