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

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

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

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

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

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

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

/**
* @see \App\Http\Controllers\MealPackageController::create
 * @see app/Http/Controllers/MealPackageController.php:35
 * @route '/dashboard/meal-packages/create'
 */
create.url = (options?: RouteQueryOptions) => {
    return create.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\MealPackageController::create
 * @see app/Http/Controllers/MealPackageController.php:35
 * @route '/dashboard/meal-packages/create'
 */
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\MealPackageController::create
 * @see app/Http/Controllers/MealPackageController.php:35
 * @route '/dashboard/meal-packages/create'
 */
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: create.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\MealPackageController::create
 * @see app/Http/Controllers/MealPackageController.php:35
 * @route '/dashboard/meal-packages/create'
 */
    const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: create.url(options),
        method: 'get',
    })

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

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

/**
* @see \App\Http\Controllers\MealPackageController::store
 * @see app/Http/Controllers/MealPackageController.php:43
 * @route '/dashboard/meal-packages'
 */
store.url = (options?: RouteQueryOptions) => {
    return store.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\MealPackageController::store
 * @see app/Http/Controllers/MealPackageController.php:43
 * @route '/dashboard/meal-packages'
 */
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\MealPackageController::store
 * @see app/Http/Controllers/MealPackageController.php:43
 * @route '/dashboard/meal-packages'
 */
    const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: store.url(options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\MealPackageController::store
 * @see app/Http/Controllers/MealPackageController.php:43
 * @route '/dashboard/meal-packages'
 */
        storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: store.url(options),
            method: 'post',
        })
    
    store.form = storeForm
/**
* @see \App\Http\Controllers\MealPackageController::show
 * @see app/Http/Controllers/MealPackageController.php:112
 * @route '/dashboard/meal-packages/{meal_package}'
 */
export const show = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/dashboard/meal-packages/{meal_package}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\MealPackageController::show
 * @see app/Http/Controllers/MealPackageController.php:112
 * @route '/dashboard/meal-packages/{meal_package}'
 */
show.url = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { meal_package: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        meal_package: args.meal_package,
                }

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

/**
* @see \App\Http\Controllers\MealPackageController::show
 * @see app/Http/Controllers/MealPackageController.php:112
 * @route '/dashboard/meal-packages/{meal_package}'
 */
show.get = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\MealPackageController::show
 * @see app/Http/Controllers/MealPackageController.php:112
 * @route '/dashboard/meal-packages/{meal_package}'
 */
show.head = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\MealPackageController::show
 * @see app/Http/Controllers/MealPackageController.php:112
 * @route '/dashboard/meal-packages/{meal_package}'
 */
    const showForm = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: show.url(args, options),
        method: 'get',
    })

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

edit.definition = {
    methods: ["get","head"],
    url: '/dashboard/meal-packages/{meal_package}/edit',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\MealPackageController::edit
 * @see app/Http/Controllers/MealPackageController.php:130
 * @route '/dashboard/meal-packages/{meal_package}/edit'
 */
edit.url = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { meal_package: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        meal_package: args.meal_package,
                }

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

/**
* @see \App\Http\Controllers\MealPackageController::edit
 * @see app/Http/Controllers/MealPackageController.php:130
 * @route '/dashboard/meal-packages/{meal_package}/edit'
 */
edit.get = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\MealPackageController::edit
 * @see app/Http/Controllers/MealPackageController.php:130
 * @route '/dashboard/meal-packages/{meal_package}/edit'
 */
edit.head = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: edit.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\MealPackageController::edit
 * @see app/Http/Controllers/MealPackageController.php:130
 * @route '/dashboard/meal-packages/{meal_package}/edit'
 */
    const editForm = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: edit.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\MealPackageController::edit
 * @see app/Http/Controllers/MealPackageController.php:130
 * @route '/dashboard/meal-packages/{meal_package}/edit'
 */
        editForm.get = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\MealPackageController::edit
 * @see app/Http/Controllers/MealPackageController.php:130
 * @route '/dashboard/meal-packages/{meal_package}/edit'
 */
        editForm.head = (args: { meal_package: string | number } | [meal_package: 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\MealPackageController::update
 * @see app/Http/Controllers/MealPackageController.php:148
 * @route '/dashboard/meal-packages/{meal_package}'
 */
export const update = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})

update.definition = {
    methods: ["put","patch"],
    url: '/dashboard/meal-packages/{meal_package}',
} satisfies RouteDefinition<["put","patch"]>

/**
* @see \App\Http\Controllers\MealPackageController::update
 * @see app/Http/Controllers/MealPackageController.php:148
 * @route '/dashboard/meal-packages/{meal_package}'
 */
update.url = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { meal_package: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        meal_package: args.meal_package,
                }

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

/**
* @see \App\Http\Controllers\MealPackageController::update
 * @see app/Http/Controllers/MealPackageController.php:148
 * @route '/dashboard/meal-packages/{meal_package}'
 */
update.put = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})
/**
* @see \App\Http\Controllers\MealPackageController::update
 * @see app/Http/Controllers/MealPackageController.php:148
 * @route '/dashboard/meal-packages/{meal_package}'
 */
update.patch = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: update.url(args, options),
    method: 'patch',
})

    /**
* @see \App\Http\Controllers\MealPackageController::update
 * @see app/Http/Controllers/MealPackageController.php:148
 * @route '/dashboard/meal-packages/{meal_package}'
 */
    const updateForm = (args: { meal_package: string | number } | [meal_package: 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\MealPackageController::update
 * @see app/Http/Controllers/MealPackageController.php:148
 * @route '/dashboard/meal-packages/{meal_package}'
 */
        updateForm.put = (args: { meal_package: string | number } | [meal_package: 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\MealPackageController::update
 * @see app/Http/Controllers/MealPackageController.php:148
 * @route '/dashboard/meal-packages/{meal_package}'
 */
        updateForm.patch = (args: { meal_package: string | number } | [meal_package: 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\MealPackageController::destroy
 * @see app/Http/Controllers/MealPackageController.php:276
 * @route '/dashboard/meal-packages/{meal_package}'
 */
export const destroy = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

destroy.definition = {
    methods: ["delete"],
    url: '/dashboard/meal-packages/{meal_package}',
} satisfies RouteDefinition<["delete"]>

/**
* @see \App\Http\Controllers\MealPackageController::destroy
 * @see app/Http/Controllers/MealPackageController.php:276
 * @route '/dashboard/meal-packages/{meal_package}'
 */
destroy.url = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { meal_package: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        meal_package: args.meal_package,
                }

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

/**
* @see \App\Http\Controllers\MealPackageController::destroy
 * @see app/Http/Controllers/MealPackageController.php:276
 * @route '/dashboard/meal-packages/{meal_package}'
 */
destroy.delete = (args: { meal_package: string | number } | [meal_package: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

    /**
* @see \App\Http\Controllers\MealPackageController::destroy
 * @see app/Http/Controllers/MealPackageController.php:276
 * @route '/dashboard/meal-packages/{meal_package}'
 */
    const destroyForm = (args: { meal_package: string | number } | [meal_package: 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\MealPackageController::destroy
 * @see app/Http/Controllers/MealPackageController.php:276
 * @route '/dashboard/meal-packages/{meal_package}'
 */
        destroyForm.delete = (args: { meal_package: string | number } | [meal_package: 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 MealPackageController = { index, create, store, show, edit, update, destroy }

export default MealPackageController