import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../wayfinder'
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::index
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:17
 * @route '/dashboard/room-availability'
 */
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::index
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:17
 * @route '/dashboard/room-availability'
 */
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::index
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:17
 * @route '/dashboard/room-availability'
 */
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::index
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:17
 * @route '/dashboard/room-availability'
 */
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::index
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:17
 * @route '/dashboard/room-availability'
 */
    const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: index.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::index
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:17
 * @route '/dashboard/room-availability'
 */
        indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::index
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:17
 * @route '/dashboard/room-availability'
 */
        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\Bookings\RoomAvailabilityController::create
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:25
 * @route '/dashboard/room-availability/create'
 */
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})

create.definition = {
    methods: ["get","head"],
    url: '/dashboard/room-availability/create',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::create
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:25
 * @route '/dashboard/room-availability/create'
 */
create.url = (options?: RouteQueryOptions) => {
    return create.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::create
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:25
 * @route '/dashboard/room-availability/create'
 */
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::create
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:25
 * @route '/dashboard/room-availability/create'
 */
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: create.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::create
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:25
 * @route '/dashboard/room-availability/create'
 */
    const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: create.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::create
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:25
 * @route '/dashboard/room-availability/create'
 */
        createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::create
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:25
 * @route '/dashboard/room-availability/create'
 */
        createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    create.form = createForm
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::store
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:33
 * @route '/dashboard/room-availability'
 */
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

store.definition = {
    methods: ["post"],
    url: '/dashboard/room-availability',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::store
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:33
 * @route '/dashboard/room-availability'
 */
store.url = (options?: RouteQueryOptions) => {
    return store.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::store
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:33
 * @route '/dashboard/room-availability'
 */
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::store
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:33
 * @route '/dashboard/room-availability'
 */
    const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: store.url(options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::store
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:33
 * @route '/dashboard/room-availability'
 */
        storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: store.url(options),
            method: 'post',
        })
    
    store.form = storeForm
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::show
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:74
 * @route '/dashboard/room-availability/{room_availability}'
 */
export const show = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/dashboard/room-availability/{room_availability}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::show
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:74
 * @route '/dashboard/room-availability/{room_availability}'
 */
show.url = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { room_availability: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    room_availability: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        room_availability: args.room_availability,
                }

    return show.definition.url
            .replace('{room_availability}', parsedArgs.room_availability.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::show
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:74
 * @route '/dashboard/room-availability/{room_availability}'
 */
show.get = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::show
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:74
 * @route '/dashboard/room-availability/{room_availability}'
 */
show.head = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::show
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:74
 * @route '/dashboard/room-availability/{room_availability}'
 */
    const showForm = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: show.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::show
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:74
 * @route '/dashboard/room-availability/{room_availability}'
 */
        showForm.get = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::show
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:74
 * @route '/dashboard/room-availability/{room_availability}'
 */
        showForm.head = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    show.form = showForm
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::edit
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:82
 * @route '/dashboard/room-availability/{room_availability}/edit'
 */
export const edit = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})

edit.definition = {
    methods: ["get","head"],
    url: '/dashboard/room-availability/{room_availability}/edit',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::edit
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:82
 * @route '/dashboard/room-availability/{room_availability}/edit'
 */
edit.url = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { room_availability: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    room_availability: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        room_availability: args.room_availability,
                }

    return edit.definition.url
            .replace('{room_availability}', parsedArgs.room_availability.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::edit
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:82
 * @route '/dashboard/room-availability/{room_availability}/edit'
 */
edit.get = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::edit
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:82
 * @route '/dashboard/room-availability/{room_availability}/edit'
 */
edit.head = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: edit.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::edit
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:82
 * @route '/dashboard/room-availability/{room_availability}/edit'
 */
    const editForm = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: edit.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::edit
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:82
 * @route '/dashboard/room-availability/{room_availability}/edit'
 */
        editForm.get = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::edit
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:82
 * @route '/dashboard/room-availability/{room_availability}/edit'
 */
        editForm.head = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    edit.form = editForm
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::update
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:90
 * @route '/dashboard/room-availability/{room_availability}'
 */
export const update = (args: { room_availability: number | { id: number } } | [room_availability: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})

update.definition = {
    methods: ["put","patch"],
    url: '/dashboard/room-availability/{room_availability}',
} satisfies RouteDefinition<["put","patch"]>

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::update
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:90
 * @route '/dashboard/room-availability/{room_availability}'
 */
update.url = (args: { room_availability: number | { id: number } } | [room_availability: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { room_availability: args }
    }

            if (typeof args === 'object' && !Array.isArray(args) && 'id' in args) {
            args = { room_availability: args.id }
        }
    
    if (Array.isArray(args)) {
        args = {
                    room_availability: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        room_availability: typeof args.room_availability === 'object'
                ? args.room_availability.id
                : args.room_availability,
                }

    return update.definition.url
            .replace('{room_availability}', parsedArgs.room_availability.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::update
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:90
 * @route '/dashboard/room-availability/{room_availability}'
 */
update.put = (args: { room_availability: number | { id: number } } | [room_availability: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::update
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:90
 * @route '/dashboard/room-availability/{room_availability}'
 */
update.patch = (args: { room_availability: number | { id: number } } | [room_availability: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: update.url(args, options),
    method: 'patch',
})

    /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::update
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:90
 * @route '/dashboard/room-availability/{room_availability}'
 */
    const updateForm = (args: { room_availability: number | { id: number } } | [room_availability: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: update.url(args, {
                    [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                        _method: 'PUT',
                        ...(options?.query ?? options?.mergeQuery ?? {}),
                    }
                }),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::update
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:90
 * @route '/dashboard/room-availability/{room_availability}'
 */
        updateForm.put = (args: { room_availability: number | { id: number } } | [room_availability: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: update.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'PUT',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::update
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:90
 * @route '/dashboard/room-availability/{room_availability}'
 */
        updateForm.patch = (args: { room_availability: number | { id: number } } | [room_availability: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: update.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'PATCH',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
    
    update.form = updateForm
/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::destroy
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:129
 * @route '/dashboard/room-availability/{room_availability}'
 */
export const destroy = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

destroy.definition = {
    methods: ["delete"],
    url: '/dashboard/room-availability/{room_availability}',
} satisfies RouteDefinition<["delete"]>

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::destroy
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:129
 * @route '/dashboard/room-availability/{room_availability}'
 */
destroy.url = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { room_availability: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    room_availability: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        room_availability: args.room_availability,
                }

    return destroy.definition.url
            .replace('{room_availability}', parsedArgs.room_availability.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::destroy
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:129
 * @route '/dashboard/room-availability/{room_availability}'
 */
destroy.delete = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

    /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::destroy
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:129
 * @route '/dashboard/room-availability/{room_availability}'
 */
    const destroyForm = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: destroy.url(args, {
                    [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                        _method: 'DELETE',
                        ...(options?.query ?? options?.mergeQuery ?? {}),
                    }
                }),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\Bookings\RoomAvailabilityController::destroy
 * @see app/Http/Controllers/Bookings/RoomAvailabilityController.php:129
 * @route '/dashboard/room-availability/{room_availability}'
 */
        destroyForm.delete = (args: { room_availability: string | number } | [room_availability: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: destroy.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'DELETE',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
    
    destroy.form = destroyForm
const roomAvailability = {
    index: Object.assign(index, index),
create: Object.assign(create, create),
store: Object.assign(store, store),
show: Object.assign(show, show),
edit: Object.assign(edit, edit),
update: Object.assign(update, update),
destroy: Object.assign(destroy, destroy),
}

export default roomAvailability