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

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

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

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

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

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

ProductSyncController.form = ProductSyncControllerForm

export default ProductSyncController