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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            /**
* @see \App\Http\Controllers\Bookings\ChannelManagerController::store
 * @see app/Http/Controllers/Bookings/ChannelManagerController.php:31
 * @route '/dashboard/channel-manager'
 */
        storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: store.url(options),
            method: 'post',
        })
    
    store.form = storeForm
/**
* @see \App\Http\Controllers\Bookings\ChannelManagerController::show
 * @see app/Http/Controllers/Bookings/ChannelManagerController.php:39
 * @route '/dashboard/channel-manager/{channel_manager}'
 */
export const show = (args: { channel_manager: string | number } | [channel_manager: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/dashboard/channel-manager/{channel_manager}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Bookings\ChannelManagerController::show
 * @see app/Http/Controllers/Bookings/ChannelManagerController.php:39
 * @route '/dashboard/channel-manager/{channel_manager}'
 */
show.url = (args: { channel_manager: string | number } | [channel_manager: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { channel_manager: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        channel_manager: args.channel_manager,
                }

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

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

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

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

edit.definition = {
    methods: ["get","head"],
    url: '/dashboard/channel-manager/{channel_manager}/edit',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Bookings\ChannelManagerController::edit
 * @see app/Http/Controllers/Bookings/ChannelManagerController.php:47
 * @route '/dashboard/channel-manager/{channel_manager}/edit'
 */
edit.url = (args: { channel_manager: string | number } | [channel_manager: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { channel_manager: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        channel_manager: args.channel_manager,
                }

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

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

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

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

update.definition = {
    methods: ["put","patch"],
    url: '/dashboard/channel-manager/{channel_manager}',
} satisfies RouteDefinition<["put","patch"]>

/**
* @see \App\Http\Controllers\Bookings\ChannelManagerController::update
 * @see app/Http/Controllers/Bookings/ChannelManagerController.php:55
 * @route '/dashboard/channel-manager/{channel_manager}'
 */
update.url = (args: { channel_manager: string | number } | [channel_manager: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { channel_manager: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        channel_manager: args.channel_manager,
                }

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

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

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

destroy.definition = {
    methods: ["delete"],
    url: '/dashboard/channel-manager/{channel_manager}',
} satisfies RouteDefinition<["delete"]>

/**
* @see \App\Http\Controllers\Bookings\ChannelManagerController::destroy
 * @see app/Http/Controllers/Bookings/ChannelManagerController.php:63
 * @route '/dashboard/channel-manager/{channel_manager}'
 */
destroy.url = (args: { channel_manager: string | number } | [channel_manager: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { channel_manager: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        channel_manager: args.channel_manager,
                }

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

/**
* @see \App\Http\Controllers\Bookings\ChannelManagerController::destroy
 * @see app/Http/Controllers/Bookings/ChannelManagerController.php:63
 * @route '/dashboard/channel-manager/{channel_manager}'
 */
destroy.delete = (args: { channel_manager: string | number } | [channel_manager: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

    /**
* @see \App\Http\Controllers\Bookings\ChannelManagerController::destroy
 * @see app/Http/Controllers/Bookings/ChannelManagerController.php:63
 * @route '/dashboard/channel-manager/{channel_manager}'
 */
    const destroyForm = (args: { channel_manager: string | number } | [channel_manager: 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\ChannelManagerController::destroy
 * @see app/Http/Controllers/Bookings/ChannelManagerController.php:63
 * @route '/dashboard/channel-manager/{channel_manager}'
 */
        destroyForm.delete = (args: { channel_manager: string | number } | [channel_manager: 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 ChannelManagerController = { index, create, store, show, edit, update, destroy }

export default ChannelManagerController