import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../wayfinder'
import withdrawals from './withdrawals'
import walletsE2845c from './wallets'
/**
* @see \App\Http\Controllers\InvestorBalancesController::index
* @see app/Http/Controllers/InvestorBalancesController.php:20
* @route '/balances'
*/
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\InvestorBalancesController::index
* @see app/Http/Controllers/InvestorBalancesController.php:20
* @route '/balances'
*/
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\InvestorBalancesController::index
* @see app/Http/Controllers/InvestorBalancesController.php:20
* @route '/balances'
*/
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\InvestorBalancesController::index
* @see app/Http/Controllers/InvestorBalancesController.php:20
* @route '/balances'
*/
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\InvestorBalancesController::index
* @see app/Http/Controllers/InvestorBalancesController.php:20
* @route '/balances'
*/
const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\InvestorBalancesController::index
* @see app/Http/Controllers/InvestorBalancesController.php:20
* @route '/balances'
*/
indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\InvestorBalancesController::index
* @see app/Http/Controllers/InvestorBalancesController.php:20
* @route '/balances'
*/
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\InvestorMovementsController::movements
* @see app/Http/Controllers/InvestorMovementsController.php:17
* @route '/balances/movimientos'
*/
export const movements = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: movements.url(options),
    method: 'get',
})

movements.definition = {
    methods: ["get","head"],
    url: '/balances/movimientos',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\InvestorMovementsController::movements
* @see app/Http/Controllers/InvestorMovementsController.php:17
* @route '/balances/movimientos'
*/
movements.url = (options?: RouteQueryOptions) => {
    return movements.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\InvestorMovementsController::movements
* @see app/Http/Controllers/InvestorMovementsController.php:17
* @route '/balances/movimientos'
*/
movements.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: movements.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\InvestorMovementsController::movements
* @see app/Http/Controllers/InvestorMovementsController.php:17
* @route '/balances/movimientos'
*/
movements.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: movements.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\InvestorMovementsController::movements
* @see app/Http/Controllers/InvestorMovementsController.php:17
* @route '/balances/movimientos'
*/
const movementsForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: movements.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\InvestorMovementsController::movements
* @see app/Http/Controllers/InvestorMovementsController.php:17
* @route '/balances/movimientos'
*/
movementsForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: movements.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\InvestorMovementsController::movements
* @see app/Http/Controllers/InvestorMovementsController.php:17
* @route '/balances/movimientos'
*/
movementsForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: movements.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

movements.form = movementsForm

/**
* @see \App\Http\Controllers\UserWalletController::wallets
* @see app/Http/Controllers/UserWalletController.php:36
* @route '/balances/billeteras'
*/
export const wallets = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: wallets.url(options),
    method: 'get',
})

wallets.definition = {
    methods: ["get","head"],
    url: '/balances/billeteras',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\UserWalletController::wallets
* @see app/Http/Controllers/UserWalletController.php:36
* @route '/balances/billeteras'
*/
wallets.url = (options?: RouteQueryOptions) => {
    return wallets.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\UserWalletController::wallets
* @see app/Http/Controllers/UserWalletController.php:36
* @route '/balances/billeteras'
*/
wallets.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: wallets.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\UserWalletController::wallets
* @see app/Http/Controllers/UserWalletController.php:36
* @route '/balances/billeteras'
*/
wallets.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: wallets.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\UserWalletController::wallets
* @see app/Http/Controllers/UserWalletController.php:36
* @route '/balances/billeteras'
*/
const walletsForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: wallets.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\UserWalletController::wallets
* @see app/Http/Controllers/UserWalletController.php:36
* @route '/balances/billeteras'
*/
walletsForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: wallets.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\UserWalletController::wallets
* @see app/Http/Controllers/UserWalletController.php:36
* @route '/balances/billeteras'
*/
walletsForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: wallets.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

wallets.form = walletsForm

const balances = {
    index: Object.assign(index, index),
    withdrawals: Object.assign(withdrawals, withdrawals),
    movements: Object.assign(movements, movements),
    wallets: Object.assign(wallets, walletsE2845c),
}

export default balances