import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Api\LicenseValidationController::validate
* @see app/Http/Controllers/Api/LicenseValidationController.php:18
* @route '/api/licenses/validate'
*/
export const validate = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: validate.url(options),
    method: 'post',
})

validate.definition = {
    methods: ["post"],
    url: '/api/licenses/validate',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Api\LicenseValidationController::validate
* @see app/Http/Controllers/Api/LicenseValidationController.php:18
* @route '/api/licenses/validate'
*/
validate.url = (options?: RouteQueryOptions) => {
    return validate.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\LicenseValidationController::validate
* @see app/Http/Controllers/Api/LicenseValidationController.php:18
* @route '/api/licenses/validate'
*/
validate.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: validate.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\LicenseValidationController::validate
* @see app/Http/Controllers/Api/LicenseValidationController.php:18
* @route '/api/licenses/validate'
*/
const validateForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: validate.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\LicenseValidationController::validate
* @see app/Http/Controllers/Api/LicenseValidationController.php:18
* @route '/api/licenses/validate'
*/
validateForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: validate.url(options),
    method: 'post',
})

validate.form = validateForm

/**
* @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
* @see app/Http/Controllers/Api/LicenseValidationController.php:77
* @route '/api/licenses/report-version'
*/
export const reportVersion = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reportVersion.url(options),
    method: 'post',
})

reportVersion.definition = {
    methods: ["post"],
    url: '/api/licenses/report-version',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
* @see app/Http/Controllers/Api/LicenseValidationController.php:77
* @route '/api/licenses/report-version'
*/
reportVersion.url = (options?: RouteQueryOptions) => {
    return reportVersion.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
* @see app/Http/Controllers/Api/LicenseValidationController.php:77
* @route '/api/licenses/report-version'
*/
reportVersion.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: reportVersion.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
* @see app/Http/Controllers/Api/LicenseValidationController.php:77
* @route '/api/licenses/report-version'
*/
const reportVersionForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: reportVersion.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
* @see app/Http/Controllers/Api/LicenseValidationController.php:77
* @route '/api/licenses/report-version'
*/
reportVersionForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: reportVersion.url(options),
    method: 'post',
})

reportVersion.form = reportVersionForm

const LicenseValidationController = { validate, reportVersion }

export default LicenseValidationController