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

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

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

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

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

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

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

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

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

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

            /**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::create
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:47
 * @route '/dashboard/booking-calendar/create'
 */
        createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::create
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:47
 * @route '/dashboard/booking-calendar/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\BookingCalendarController::store
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:55
 * @route '/dashboard/booking-calendar'
 */
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

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

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

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

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

            /**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::store
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:55
 * @route '/dashboard/booking-calendar'
 */
        storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: store.url(options),
            method: 'post',
        })
    
    store.form = storeForm
/**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::show
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:63
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
export const show = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/dashboard/booking-calendar/{booking_calendar}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::show
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:63
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
show.url = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { booking_calendar: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        booking_calendar: args.booking_calendar,
                }

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

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

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

            /**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::show
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:63
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
        showForm.get = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::show
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:63
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
        showForm.head = (args: { booking_calendar: string | number } | [booking_calendar: 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\BookingCalendarController::edit
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:71
 * @route '/dashboard/booking-calendar/{booking_calendar}/edit'
 */
export const edit = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})

edit.definition = {
    methods: ["get","head"],
    url: '/dashboard/booking-calendar/{booking_calendar}/edit',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::edit
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:71
 * @route '/dashboard/booking-calendar/{booking_calendar}/edit'
 */
edit.url = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { booking_calendar: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        booking_calendar: args.booking_calendar,
                }

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

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

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

            /**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::edit
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:71
 * @route '/dashboard/booking-calendar/{booking_calendar}/edit'
 */
        editForm.get = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::edit
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:71
 * @route '/dashboard/booking-calendar/{booking_calendar}/edit'
 */
        editForm.head = (args: { booking_calendar: string | number } | [booking_calendar: 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\BookingCalendarController::update
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:79
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
export const update = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})

update.definition = {
    methods: ["put","patch"],
    url: '/dashboard/booking-calendar/{booking_calendar}',
} satisfies RouteDefinition<["put","patch"]>

/**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::update
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:79
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
update.url = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { booking_calendar: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        booking_calendar: args.booking_calendar,
                }

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

/**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::update
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:79
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
update.put = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})
/**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::update
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:79
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
update.patch = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: update.url(args, options),
    method: 'patch',
})

    /**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::update
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:79
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
    const updateForm = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | 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\BookingCalendarController::update
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:79
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
        updateForm.put = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | 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\BookingCalendarController::update
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:79
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
        updateForm.patch = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | 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\BookingCalendarController::destroy
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:87
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
export const destroy = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

destroy.definition = {
    methods: ["delete"],
    url: '/dashboard/booking-calendar/{booking_calendar}',
} satisfies RouteDefinition<["delete"]>

/**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::destroy
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:87
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
destroy.url = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { booking_calendar: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        booking_calendar: args.booking_calendar,
                }

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

/**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::destroy
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:87
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
destroy.delete = (args: { booking_calendar: string | number } | [booking_calendar: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

    /**
* @see \App\Http\Controllers\Bookings\BookingCalendarController::destroy
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:87
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
    const destroyForm = (args: { booking_calendar: string | number } | [booking_calendar: 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\BookingCalendarController::destroy
 * @see app/Http/Controllers/Bookings/BookingCalendarController.php:87
 * @route '/dashboard/booking-calendar/{booking_calendar}'
 */
        destroyForm.delete = (args: { booking_calendar: string | number } | [booking_calendar: 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 bookingCalendar = {
    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 bookingCalendar