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

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

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

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

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

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

ProductDeltaController.form = ProductDeltaControllerForm

export default ProductDeltaController