import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Wp\PostSyncController::__invoke
* @see app/Http/Controllers/Wp/PostSyncController.php:41
* @route '/api/v1/wp/posts/sync'
*/
const PostSyncController = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: PostSyncController.url(options),
    method: 'post',
})

PostSyncController.definition = {
    methods: ["post"],
    url: '/api/v1/wp/posts/sync',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Wp\PostSyncController::__invoke
* @see app/Http/Controllers/Wp/PostSyncController.php:41
* @route '/api/v1/wp/posts/sync'
*/
PostSyncController.url = (options?: RouteQueryOptions) => {
    return PostSyncController.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Wp\PostSyncController::__invoke
* @see app/Http/Controllers/Wp/PostSyncController.php:41
* @route '/api/v1/wp/posts/sync'
*/
PostSyncController.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: PostSyncController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Wp\PostSyncController::__invoke
* @see app/Http/Controllers/Wp/PostSyncController.php:41
* @route '/api/v1/wp/posts/sync'
*/
const PostSyncControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: PostSyncController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Wp\PostSyncController::__invoke
* @see app/Http/Controllers/Wp/PostSyncController.php:41
* @route '/api/v1/wp/posts/sync'
*/
PostSyncControllerForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: PostSyncController.url(options),
    method: 'post',
})

PostSyncController.form = PostSyncControllerForm

export default PostSyncController