import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Api\V1\TeamsController::index
* @see app/Http/Controllers/Api/V1/TeamsController.php:12
* @route '/api/v1/teams'
*/
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

index.definition = {
    methods: ["get","head"],
    url: '/api/v1/teams',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::index
* @see app/Http/Controllers/Api/V1/TeamsController.php:12
* @route '/api/v1/teams'
*/
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::index
* @see app/Http/Controllers/Api/V1/TeamsController.php:12
* @route '/api/v1/teams'
*/
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::index
* @see app/Http/Controllers/Api/V1/TeamsController.php:12
* @route '/api/v1/teams'
*/
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::index
* @see app/Http/Controllers/Api/V1/TeamsController.php:12
* @route '/api/v1/teams'
*/
const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::index
* @see app/Http/Controllers/Api/V1/TeamsController.php:12
* @route '/api/v1/teams'
*/
indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::index
* @see app/Http/Controllers/Api/V1/TeamsController.php:12
* @route '/api/v1/teams'
*/
indexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

index.form = indexForm

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::assignableUsers
* @see app/Http/Controllers/Api/V1/TeamsController.php:25
* @route '/api/v1/users/assignable'
*/
export const assignableUsers = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: assignableUsers.url(options),
    method: 'get',
})

assignableUsers.definition = {
    methods: ["get","head"],
    url: '/api/v1/users/assignable',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::assignableUsers
* @see app/Http/Controllers/Api/V1/TeamsController.php:25
* @route '/api/v1/users/assignable'
*/
assignableUsers.url = (options?: RouteQueryOptions) => {
    return assignableUsers.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::assignableUsers
* @see app/Http/Controllers/Api/V1/TeamsController.php:25
* @route '/api/v1/users/assignable'
*/
assignableUsers.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: assignableUsers.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::assignableUsers
* @see app/Http/Controllers/Api/V1/TeamsController.php:25
* @route '/api/v1/users/assignable'
*/
assignableUsers.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: assignableUsers.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::assignableUsers
* @see app/Http/Controllers/Api/V1/TeamsController.php:25
* @route '/api/v1/users/assignable'
*/
const assignableUsersForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: assignableUsers.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::assignableUsers
* @see app/Http/Controllers/Api/V1/TeamsController.php:25
* @route '/api/v1/users/assignable'
*/
assignableUsersForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: assignableUsers.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\TeamsController::assignableUsers
* @see app/Http/Controllers/Api/V1/TeamsController.php:25
* @route '/api/v1/users/assignable'
*/
assignableUsersForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: assignableUsers.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

assignableUsers.form = assignableUsersForm

const TeamsController = { index, assignableUsers }

export default TeamsController