import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Partner\ShowController::syncUpcoming
 * @see app/Http/Controllers/Partner/ShowController.php:342
 * @route '/partner/shows/sync-upcoming'
 */
export const syncUpcoming = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: syncUpcoming.url(options),
    method: 'post',
})

syncUpcoming.definition = {
    methods: ["post"],
    url: '/partner/shows/sync-upcoming',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Partner\ShowController::syncUpcoming
 * @see app/Http/Controllers/Partner/ShowController.php:342
 * @route '/partner/shows/sync-upcoming'
 */
syncUpcoming.url = (options?: RouteQueryOptions) => {
    return syncUpcoming.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Partner\ShowController::syncUpcoming
 * @see app/Http/Controllers/Partner/ShowController.php:342
 * @route '/partner/shows/sync-upcoming'
 */
syncUpcoming.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: syncUpcoming.url(options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\Partner\ShowController::syncUpcoming
 * @see app/Http/Controllers/Partner/ShowController.php:342
 * @route '/partner/shows/sync-upcoming'
 */
    const syncUpcomingForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: syncUpcoming.url(options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\Partner\ShowController::syncUpcoming
 * @see app/Http/Controllers/Partner/ShowController.php:342
 * @route '/partner/shows/sync-upcoming'
 */
        syncUpcomingForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: syncUpcoming.url(options),
            method: 'post',
        })
    
    syncUpcoming.form = syncUpcomingForm
/**
* @see \App\Http\Controllers\Partner\ShowController::index
 * @see app/Http/Controllers/Partner/ShowController.php:25
 * @route '/partner/shows'
 */
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\Partner\ShowController::index
 * @see app/Http/Controllers/Partner/ShowController.php:25
 * @route '/partner/shows'
 */
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Partner\ShowController::index
 * @see app/Http/Controllers/Partner/ShowController.php:25
 * @route '/partner/shows'
 */
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Partner\ShowController::index
 * @see app/Http/Controllers/Partner/ShowController.php:25
 * @route '/partner/shows'
 */
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

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

            /**
* @see \App\Http\Controllers\Partner\ShowController::index
 * @see app/Http/Controllers/Partner/ShowController.php:25
 * @route '/partner/shows'
 */
        indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Partner\ShowController::index
 * @see app/Http/Controllers/Partner/ShowController.php:25
 * @route '/partner/shows'
 */
        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\Partner\ShowController::create
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/create'
 */
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\Partner\ShowController::create
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/create'
 */
create.url = (options?: RouteQueryOptions) => {
    return create.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Partner\ShowController::create
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/create'
 */
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Partner\ShowController::create
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/create'
 */
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: create.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\Partner\ShowController::create
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/create'
 */
    const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: create.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\Partner\ShowController::create
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/create'
 */
        createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Partner\ShowController::create
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/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\Partner\ShowController::store
 * @see app/Http/Controllers/Partner/ShowController.php:82
 * @route '/partner/shows'
 */
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

store.definition = {
    methods: ["post"],
    url: '/partner/shows',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Partner\ShowController::store
 * @see app/Http/Controllers/Partner/ShowController.php:82
 * @route '/partner/shows'
 */
store.url = (options?: RouteQueryOptions) => {
    return store.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Partner\ShowController::store
 * @see app/Http/Controllers/Partner/ShowController.php:82
 * @route '/partner/shows'
 */
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\Partner\ShowController::store
 * @see app/Http/Controllers/Partner/ShowController.php:82
 * @route '/partner/shows'
 */
    const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: store.url(options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\Partner\ShowController::store
 * @see app/Http/Controllers/Partner/ShowController.php:82
 * @route '/partner/shows'
 */
        storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: store.url(options),
            method: 'post',
        })
    
    store.form = storeForm
/**
* @see \App\Http\Controllers\Partner\ShowController::show
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}'
 */
export const show = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\Partner\ShowController::show
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}'
 */
show.url = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { show: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        show: args.show,
                }

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

/**
* @see \App\Http\Controllers\Partner\ShowController::show
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}'
 */
show.get = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Partner\ShowController::show
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}'
 */
show.head = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\Partner\ShowController::show
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}'
 */
    const showForm = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: show.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\Partner\ShowController::show
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}'
 */
        showForm.get = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Partner\ShowController::show
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}'
 */
        showForm.head = (args: { show: string | number } | [show: 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\Partner\ShowController::edit
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}/edit'
 */
export const edit = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})

edit.definition = {
    methods: ["get","head"],
    url: '/partner/shows/{show}/edit',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Partner\ShowController::edit
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}/edit'
 */
edit.url = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { show: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        show: args.show,
                }

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

/**
* @see \App\Http\Controllers\Partner\ShowController::edit
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}/edit'
 */
edit.get = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\Partner\ShowController::edit
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}/edit'
 */
edit.head = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: edit.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\Partner\ShowController::edit
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}/edit'
 */
    const editForm = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: edit.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\Partner\ShowController::edit
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}/edit'
 */
        editForm.get = (args: { show: string | number } | [show: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\Partner\ShowController::edit
 * @see app/Http/Controllers/Partner/ShowController.php:0
 * @route '/partner/shows/{show}/edit'
 */
        editForm.head = (args: { show: string | number } | [show: 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\Partner\ShowController::update
 * @see app/Http/Controllers/Partner/ShowController.php:126
 * @route '/partner/shows/{show}'
 */
export const update = (args: { show: number | { id: number } } | [show: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})

update.definition = {
    methods: ["put","patch"],
    url: '/partner/shows/{show}',
} satisfies RouteDefinition<["put","patch"]>

/**
* @see \App\Http\Controllers\Partner\ShowController::update
 * @see app/Http/Controllers/Partner/ShowController.php:126
 * @route '/partner/shows/{show}'
 */
update.url = (args: { show: number | { id: number } } | [show: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { show: args }
    }

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

    args = applyUrlDefaults(args)

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

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

/**
* @see \App\Http\Controllers\Partner\ShowController::update
 * @see app/Http/Controllers/Partner/ShowController.php:126
 * @route '/partner/shows/{show}'
 */
update.put = (args: { show: number | { id: number } } | [show: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})
/**
* @see \App\Http\Controllers\Partner\ShowController::update
 * @see app/Http/Controllers/Partner/ShowController.php:126
 * @route '/partner/shows/{show}'
 */
update.patch = (args: { show: number | { id: number } } | [show: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: update.url(args, options),
    method: 'patch',
})

    /**
* @see \App\Http\Controllers\Partner\ShowController::update
 * @see app/Http/Controllers/Partner/ShowController.php:126
 * @route '/partner/shows/{show}'
 */
    const updateForm = (args: { show: number | { id: number } } | [show: 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\Partner\ShowController::update
 * @see app/Http/Controllers/Partner/ShowController.php:126
 * @route '/partner/shows/{show}'
 */
        updateForm.put = (args: { show: number | { id: number } } | [show: 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\Partner\ShowController::update
 * @see app/Http/Controllers/Partner/ShowController.php:126
 * @route '/partner/shows/{show}'
 */
        updateForm.patch = (args: { show: number | { id: number } } | [show: 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\Partner\ShowController::destroy
 * @see app/Http/Controllers/Partner/ShowController.php:310
 * @route '/partner/shows/{show}'
 */
export const destroy = (args: { show: number | { id: number } } | [show: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

destroy.definition = {
    methods: ["delete"],
    url: '/partner/shows/{show}',
} satisfies RouteDefinition<["delete"]>

/**
* @see \App\Http\Controllers\Partner\ShowController::destroy
 * @see app/Http/Controllers/Partner/ShowController.php:310
 * @route '/partner/shows/{show}'
 */
destroy.url = (args: { show: number | { id: number } } | [show: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { show: args }
    }

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

    args = applyUrlDefaults(args)

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

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

/**
* @see \App\Http\Controllers\Partner\ShowController::destroy
 * @see app/Http/Controllers/Partner/ShowController.php:310
 * @route '/partner/shows/{show}'
 */
destroy.delete = (args: { show: number | { id: number } } | [show: number | { id: number } ] | number | { id: number }, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

    /**
* @see \App\Http\Controllers\Partner\ShowController::destroy
 * @see app/Http/Controllers/Partner/ShowController.php:310
 * @route '/partner/shows/{show}'
 */
    const destroyForm = (args: { show: number | { id: number } } | [show: number | { id: number } ] | number | { id: 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\Partner\ShowController::destroy
 * @see app/Http/Controllers/Partner/ShowController.php:310
 * @route '/partner/shows/{show}'
 */
        destroyForm.delete = (args: { show: number | { id: number } } | [show: number | { id: number } ] | number | { id: 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 ShowController = { syncUpcoming, index, create, store, show, edit, update, destroy }

export default ShowController