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

sync.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'
*/
sync.url = (options?: RouteQueryOptions) => {
    return sync.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'
*/
sync.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: sync.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 syncForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: sync.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'
*/
syncForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: sync.url(options),
    method: 'post',
})

sync.form = syncForm

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

changed.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'
*/
changed.url = (options?: RouteQueryOptions) => {
    return changed.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'
*/
changed.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: changed.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 changedForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: changed.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'
*/
changedForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: changed.url(options),
    method: 'post',
})

changed.form = changedForm

const products = {
    sync: Object.assign(sync, sync),
    changed: Object.assign(changed, changed),
}

export default products