import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../wayfinder'
/**
* @see \App\Http\Controllers\ContactController::importIndex
* @see app/Http/Controllers/ContactController.php:401
* @route '/contacts/import'
*/
export const importIndex = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: importIndex.url(options),
    method: 'get',
})

importIndex.definition = {
    methods: ["get","head"],
    url: '/contacts/import',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ContactController::importIndex
* @see app/Http/Controllers/ContactController.php:401
* @route '/contacts/import'
*/
importIndex.url = (options?: RouteQueryOptions) => {
    return importIndex.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\ContactController::importIndex
* @see app/Http/Controllers/ContactController.php:401
* @route '/contacts/import'
*/
importIndex.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: importIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::importIndex
* @see app/Http/Controllers/ContactController.php:401
* @route '/contacts/import'
*/
importIndex.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: importIndex.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::importIndex
* @see app/Http/Controllers/ContactController.php:401
* @route '/contacts/import'
*/
const importIndexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: importIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::importIndex
* @see app/Http/Controllers/ContactController.php:401
* @route '/contacts/import'
*/
importIndexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: importIndex.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::importIndex
* @see app/Http/Controllers/ContactController.php:401
* @route '/contacts/import'
*/
importIndexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: importIndex.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

importIndex.form = importIndexForm

/**
* @see \App\Http\Controllers\ContactController::contactExport
* @see app/Http/Controllers/ContactController.php:536
* @route '/contacts/export'
*/
export const contactExport = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: contactExport.url(options),
    method: 'post',
})

contactExport.definition = {
    methods: ["post"],
    url: '/contacts/export',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\ContactController::contactExport
* @see app/Http/Controllers/ContactController.php:536
* @route '/contacts/export'
*/
contactExport.url = (options?: RouteQueryOptions) => {
    return contactExport.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\ContactController::contactExport
* @see app/Http/Controllers/ContactController.php:536
* @route '/contacts/export'
*/
contactExport.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: contactExport.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ContactController::contactExport
* @see app/Http/Controllers/ContactController.php:536
* @route '/contacts/export'
*/
const contactExportForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: contactExport.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ContactController::contactExport
* @see app/Http/Controllers/ContactController.php:536
* @route '/contacts/export'
*/
contactExportForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: contactExport.url(options),
    method: 'post',
})

contactExport.form = contactExportForm

/**
* @see \App\Http\Controllers\ContactController::download
* @see app/Http/Controllers/ContactController.php:546
* @route '/contacts/download/{filename}'
*/
export const download = (args: { filename: string | number } | [filename: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: download.url(args, options),
    method: 'get',
})

download.definition = {
    methods: ["get","head"],
    url: '/contacts/download/{filename}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ContactController::download
* @see app/Http/Controllers/ContactController.php:546
* @route '/contacts/download/{filename}'
*/
download.url = (args: { filename: string | number } | [filename: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { filename: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        filename: args.filename,
    }

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

/**
* @see \App\Http\Controllers\ContactController::download
* @see app/Http/Controllers/ContactController.php:546
* @route '/contacts/download/{filename}'
*/
download.get = (args: { filename: string | number } | [filename: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: download.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::download
* @see app/Http/Controllers/ContactController.php:546
* @route '/contacts/download/{filename}'
*/
download.head = (args: { filename: string | number } | [filename: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: download.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::download
* @see app/Http/Controllers/ContactController.php:546
* @route '/contacts/download/{filename}'
*/
const downloadForm = (args: { filename: string | number } | [filename: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: download.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::download
* @see app/Http/Controllers/ContactController.php:546
* @route '/contacts/download/{filename}'
*/
downloadForm.get = (args: { filename: string | number } | [filename: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: download.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::download
* @see app/Http/Controllers/ContactController.php:546
* @route '/contacts/download/{filename}'
*/
downloadForm.head = (args: { filename: string | number } | [filename: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: download.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

download.form = downloadForm

/**
* @see \App\Http\Controllers\ContactController::contactImport
* @see app/Http/Controllers/ContactController.php:595
* @route '/contacts/import'
*/
export const contactImport = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: contactImport.url(options),
    method: 'post',
})

contactImport.definition = {
    methods: ["post"],
    url: '/contacts/import',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\ContactController::contactImport
* @see app/Http/Controllers/ContactController.php:595
* @route '/contacts/import'
*/
contactImport.url = (options?: RouteQueryOptions) => {
    return contactImport.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\ContactController::contactImport
* @see app/Http/Controllers/ContactController.php:595
* @route '/contacts/import'
*/
contactImport.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: contactImport.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ContactController::contactImport
* @see app/Http/Controllers/ContactController.php:595
* @route '/contacts/import'
*/
const contactImportForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: contactImport.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ContactController::contactImport
* @see app/Http/Controllers/ContactController.php:595
* @route '/contacts/import'
*/
contactImportForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: contactImport.url(options),
    method: 'post',
})

contactImport.form = contactImportForm

/**
* @see \App\Http\Controllers\ContactController::bulkAction
* @see app/Http/Controllers/ContactController.php:445
* @route '/contacts/bulk-action'
*/
export const bulkAction = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: bulkAction.url(options),
    method: 'post',
})

bulkAction.definition = {
    methods: ["post"],
    url: '/contacts/bulk-action',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\ContactController::bulkAction
* @see app/Http/Controllers/ContactController.php:445
* @route '/contacts/bulk-action'
*/
bulkAction.url = (options?: RouteQueryOptions) => {
    return bulkAction.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\ContactController::bulkAction
* @see app/Http/Controllers/ContactController.php:445
* @route '/contacts/bulk-action'
*/
bulkAction.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: bulkAction.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ContactController::bulkAction
* @see app/Http/Controllers/ContactController.php:445
* @route '/contacts/bulk-action'
*/
const bulkActionForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: bulkAction.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ContactController::bulkAction
* @see app/Http/Controllers/ContactController.php:445
* @route '/contacts/bulk-action'
*/
bulkActionForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: bulkAction.url(options),
    method: 'post',
})

bulkAction.form = bulkActionForm

/**
* @see \App\Http\Controllers\ContactController::index
* @see app/Http/Controllers/ContactController.php:43
* @route '/contacts'
*/
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\ContactController::index
* @see app/Http/Controllers/ContactController.php:43
* @route '/contacts'
*/
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\ContactController::index
* @see app/Http/Controllers/ContactController.php:43
* @route '/contacts'
*/
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::index
* @see app/Http/Controllers/ContactController.php:43
* @route '/contacts'
*/
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

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

/**
* @see \App\Http\Controllers\ContactController::index
* @see app/Http/Controllers/ContactController.php:43
* @route '/contacts'
*/
indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::index
* @see app/Http/Controllers/ContactController.php:43
* @route '/contacts'
*/
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\ContactController::store
* @see app/Http/Controllers/ContactController.php:147
* @route '/contacts'
*/
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

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

/**
* @see \App\Http\Controllers\ContactController::store
* @see app/Http/Controllers/ContactController.php:147
* @route '/contacts'
*/
store.url = (options?: RouteQueryOptions) => {
    return store.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\ContactController::store
* @see app/Http/Controllers/ContactController.php:147
* @route '/contacts'
*/
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

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

/**
* @see \App\Http\Controllers\ContactController::store
* @see app/Http/Controllers/ContactController.php:147
* @route '/contacts'
*/
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: store.url(options),
    method: 'post',
})

store.form = storeForm

/**
* @see \App\Http\Controllers\ContactController::show
* @see app/Http/Controllers/ContactController.php:171
* @route '/contacts/{contact}'
*/
export const show = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\ContactController::show
* @see app/Http/Controllers/ContactController.php:171
* @route '/contacts/{contact}'
*/
show.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::show
* @see app/Http/Controllers/ContactController.php:171
* @route '/contacts/{contact}'
*/
show.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::show
* @see app/Http/Controllers/ContactController.php:171
* @route '/contacts/{contact}'
*/
show.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::show
* @see app/Http/Controllers/ContactController.php:171
* @route '/contacts/{contact}'
*/
const showForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::show
* @see app/Http/Controllers/ContactController.php:171
* @route '/contacts/{contact}'
*/
showForm.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: show.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::show
* @see app/Http/Controllers/ContactController.php:171
* @route '/contacts/{contact}'
*/
showForm.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: 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\ContactController::edit
* @see app/Http/Controllers/ContactController.php:275
* @route '/contacts/{contact}/edit'
*/
export const edit = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\ContactController::edit
* @see app/Http/Controllers/ContactController.php:275
* @route '/contacts/{contact}/edit'
*/
edit.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::edit
* @see app/Http/Controllers/ContactController.php:275
* @route '/contacts/{contact}/edit'
*/
edit.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::edit
* @see app/Http/Controllers/ContactController.php:275
* @route '/contacts/{contact}/edit'
*/
edit.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: edit.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::edit
* @see app/Http/Controllers/ContactController.php:275
* @route '/contacts/{contact}/edit'
*/
const editForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: edit.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::edit
* @see app/Http/Controllers/ContactController.php:275
* @route '/contacts/{contact}/edit'
*/
editForm.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: edit.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::edit
* @see app/Http/Controllers/ContactController.php:275
* @route '/contacts/{contact}/edit'
*/
editForm.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: 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\ContactController::update
* @see app/Http/Controllers/ContactController.php:340
* @route '/contacts/{contact}'
*/
export const update = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})

update.definition = {
    methods: ["put"],
    url: '/contacts/{contact}',
} satisfies RouteDefinition<["put"]>

/**
* @see \App\Http\Controllers\ContactController::update
* @see app/Http/Controllers/ContactController.php:340
* @route '/contacts/{contact}'
*/
update.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::update
* @see app/Http/Controllers/ContactController.php:340
* @route '/contacts/{contact}'
*/
update.put = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})

/**
* @see \App\Http\Controllers\ContactController::update
* @see app/Http/Controllers/ContactController.php:340
* @route '/contacts/{contact}'
*/
const updateForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: 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\ContactController::update
* @see app/Http/Controllers/ContactController.php:340
* @route '/contacts/{contact}'
*/
updateForm.put = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: update.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PUT',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

update.form = updateForm

/**
* @see \App\Http\Controllers\ContactController::destroy
* @see app/Http/Controllers/ContactController.php:365
* @route '/contacts/{contact}'
*/
export const destroy = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

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

/**
* @see \App\Http\Controllers\ContactController::destroy
* @see app/Http/Controllers/ContactController.php:365
* @route '/contacts/{contact}'
*/
destroy.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::destroy
* @see app/Http/Controllers/ContactController.php:365
* @route '/contacts/{contact}'
*/
destroy.delete = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

/**
* @see \App\Http\Controllers\ContactController::destroy
* @see app/Http/Controllers/ContactController.php:365
* @route '/contacts/{contact}'
*/
const destroyForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: 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\ContactController::destroy
* @see app/Http/Controllers/ContactController.php:365
* @route '/contacts/{contact}'
*/
destroyForm.delete = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: 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

/**
* @see \App\Http\Controllers\ContactController::sendContactIndividualEmail
* @see app/Http/Controllers/ContactController.php:492
* @route '/contacts/{contact}/send-email'
*/
export const sendContactIndividualEmail = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: sendContactIndividualEmail.url(args, options),
    method: 'post',
})

sendContactIndividualEmail.definition = {
    methods: ["post"],
    url: '/contacts/{contact}/send-email',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\ContactController::sendContactIndividualEmail
* @see app/Http/Controllers/ContactController.php:492
* @route '/contacts/{contact}/send-email'
*/
sendContactIndividualEmail.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::sendContactIndividualEmail
* @see app/Http/Controllers/ContactController.php:492
* @route '/contacts/{contact}/send-email'
*/
sendContactIndividualEmail.post = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: sendContactIndividualEmail.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ContactController::sendContactIndividualEmail
* @see app/Http/Controllers/ContactController.php:492
* @route '/contacts/{contact}/send-email'
*/
const sendContactIndividualEmailForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: sendContactIndividualEmail.url(args, options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ContactController::sendContactIndividualEmail
* @see app/Http/Controllers/ContactController.php:492
* @route '/contacts/{contact}/send-email'
*/
sendContactIndividualEmailForm.post = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: sendContactIndividualEmail.url(args, options),
    method: 'post',
})

sendContactIndividualEmail.form = sendContactIndividualEmailForm

/**
* @see \App\Http\Controllers\ContactController::updateStatus
* @see app/Http/Controllers/ContactController.php:89
* @route '/contacts/{contact}/status'
*/
export const updateStatus = (args: { contact: string | number } | [contact: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: updateStatus.url(args, options),
    method: 'patch',
})

updateStatus.definition = {
    methods: ["patch"],
    url: '/contacts/{contact}/status',
} satisfies RouteDefinition<["patch"]>

/**
* @see \App\Http\Controllers\ContactController::updateStatus
* @see app/Http/Controllers/ContactController.php:89
* @route '/contacts/{contact}/status'
*/
updateStatus.url = (args: { contact: string | number } | [contact: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::updateStatus
* @see app/Http/Controllers/ContactController.php:89
* @route '/contacts/{contact}/status'
*/
updateStatus.patch = (args: { contact: string | number } | [contact: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: updateStatus.url(args, options),
    method: 'patch',
})

/**
* @see \App\Http\Controllers\ContactController::updateStatus
* @see app/Http/Controllers/ContactController.php:89
* @route '/contacts/{contact}/status'
*/
const updateStatusForm = (args: { contact: string | number } | [contact: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: updateStatus.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PATCH',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

/**
* @see \App\Http\Controllers\ContactController::updateStatus
* @see app/Http/Controllers/ContactController.php:89
* @route '/contacts/{contact}/status'
*/
updateStatusForm.patch = (args: { contact: string | number } | [contact: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: updateStatus.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PATCH',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

updateStatus.form = updateStatusForm

/**
* @see \App\Http\Controllers\ContactController::getActivities
* @see app/Http/Controllers/ContactController.php:265
* @route '/contacts/{contact}/activities'
*/
export const getActivities = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getActivities.url(args, options),
    method: 'get',
})

getActivities.definition = {
    methods: ["get","head"],
    url: '/contacts/{contact}/activities',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ContactController::getActivities
* @see app/Http/Controllers/ContactController.php:265
* @route '/contacts/{contact}/activities'
*/
getActivities.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::getActivities
* @see app/Http/Controllers/ContactController.php:265
* @route '/contacts/{contact}/activities'
*/
getActivities.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getActivities.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getActivities
* @see app/Http/Controllers/ContactController.php:265
* @route '/contacts/{contact}/activities'
*/
getActivities.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: getActivities.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::getActivities
* @see app/Http/Controllers/ContactController.php:265
* @route '/contacts/{contact}/activities'
*/
const getActivitiesForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getActivities.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getActivities
* @see app/Http/Controllers/ContactController.php:265
* @route '/contacts/{contact}/activities'
*/
getActivitiesForm.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getActivities.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getActivities
* @see app/Http/Controllers/ContactController.php:265
* @route '/contacts/{contact}/activities'
*/
getActivitiesForm.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getActivities.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

getActivities.form = getActivitiesForm

/**
* @see \App\Http\Controllers\ContactController::getTasks
* @see app/Http/Controllers/ContactController.php:205
* @route '/contacts/{contact}/tasks'
*/
export const getTasks = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getTasks.url(args, options),
    method: 'get',
})

getTasks.definition = {
    methods: ["get","head"],
    url: '/contacts/{contact}/tasks',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ContactController::getTasks
* @see app/Http/Controllers/ContactController.php:205
* @route '/contacts/{contact}/tasks'
*/
getTasks.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::getTasks
* @see app/Http/Controllers/ContactController.php:205
* @route '/contacts/{contact}/tasks'
*/
getTasks.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getTasks.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getTasks
* @see app/Http/Controllers/ContactController.php:205
* @route '/contacts/{contact}/tasks'
*/
getTasks.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: getTasks.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::getTasks
* @see app/Http/Controllers/ContactController.php:205
* @route '/contacts/{contact}/tasks'
*/
const getTasksForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getTasks.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getTasks
* @see app/Http/Controllers/ContactController.php:205
* @route '/contacts/{contact}/tasks'
*/
getTasksForm.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getTasks.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getTasks
* @see app/Http/Controllers/ContactController.php:205
* @route '/contacts/{contact}/tasks'
*/
getTasksForm.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getTasks.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

getTasks.form = getTasksForm

/**
* @see \App\Http\Controllers\ContactController::getNotes
* @see app/Http/Controllers/ContactController.php:215
* @route '/contacts/{contact}/notes'
*/
export const getNotes = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getNotes.url(args, options),
    method: 'get',
})

getNotes.definition = {
    methods: ["get","head"],
    url: '/contacts/{contact}/notes',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ContactController::getNotes
* @see app/Http/Controllers/ContactController.php:215
* @route '/contacts/{contact}/notes'
*/
getNotes.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::getNotes
* @see app/Http/Controllers/ContactController.php:215
* @route '/contacts/{contact}/notes'
*/
getNotes.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getNotes.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getNotes
* @see app/Http/Controllers/ContactController.php:215
* @route '/contacts/{contact}/notes'
*/
getNotes.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: getNotes.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::getNotes
* @see app/Http/Controllers/ContactController.php:215
* @route '/contacts/{contact}/notes'
*/
const getNotesForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getNotes.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getNotes
* @see app/Http/Controllers/ContactController.php:215
* @route '/contacts/{contact}/notes'
*/
getNotesForm.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getNotes.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getNotes
* @see app/Http/Controllers/ContactController.php:215
* @route '/contacts/{contact}/notes'
*/
getNotesForm.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getNotes.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

getNotes.form = getNotesForm

/**
* @see \App\Http\Controllers\ContactController::getReminders
* @see app/Http/Controllers/ContactController.php:225
* @route '/contacts/{contact}/reminders'
*/
export const getReminders = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getReminders.url(args, options),
    method: 'get',
})

getReminders.definition = {
    methods: ["get","head"],
    url: '/contacts/{contact}/reminders',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ContactController::getReminders
* @see app/Http/Controllers/ContactController.php:225
* @route '/contacts/{contact}/reminders'
*/
getReminders.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::getReminders
* @see app/Http/Controllers/ContactController.php:225
* @route '/contacts/{contact}/reminders'
*/
getReminders.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getReminders.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getReminders
* @see app/Http/Controllers/ContactController.php:225
* @route '/contacts/{contact}/reminders'
*/
getReminders.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: getReminders.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::getReminders
* @see app/Http/Controllers/ContactController.php:225
* @route '/contacts/{contact}/reminders'
*/
const getRemindersForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getReminders.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getReminders
* @see app/Http/Controllers/ContactController.php:225
* @route '/contacts/{contact}/reminders'
*/
getRemindersForm.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getReminders.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getReminders
* @see app/Http/Controllers/ContactController.php:225
* @route '/contacts/{contact}/reminders'
*/
getRemindersForm.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getReminders.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

getReminders.form = getRemindersForm

/**
* @see \App\Http\Controllers\ContactController::getEmails
* @see app/Http/Controllers/ContactController.php:235
* @route '/contacts/{contact}/emails'
*/
export const getEmails = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getEmails.url(args, options),
    method: 'get',
})

getEmails.definition = {
    methods: ["get","head"],
    url: '/contacts/{contact}/emails',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ContactController::getEmails
* @see app/Http/Controllers/ContactController.php:235
* @route '/contacts/{contact}/emails'
*/
getEmails.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::getEmails
* @see app/Http/Controllers/ContactController.php:235
* @route '/contacts/{contact}/emails'
*/
getEmails.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getEmails.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getEmails
* @see app/Http/Controllers/ContactController.php:235
* @route '/contacts/{contact}/emails'
*/
getEmails.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: getEmails.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::getEmails
* @see app/Http/Controllers/ContactController.php:235
* @route '/contacts/{contact}/emails'
*/
const getEmailsForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getEmails.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getEmails
* @see app/Http/Controllers/ContactController.php:235
* @route '/contacts/{contact}/emails'
*/
getEmailsForm.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getEmails.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getEmails
* @see app/Http/Controllers/ContactController.php:235
* @route '/contacts/{contact}/emails'
*/
getEmailsForm.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getEmails.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

getEmails.form = getEmailsForm

/**
* @see \App\Http\Controllers\ContactController::getCalls
* @see app/Http/Controllers/ContactController.php:245
* @route '/contacts/{contact}/calls'
*/
export const getCalls = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getCalls.url(args, options),
    method: 'get',
})

getCalls.definition = {
    methods: ["get","head"],
    url: '/contacts/{contact}/calls',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ContactController::getCalls
* @see app/Http/Controllers/ContactController.php:245
* @route '/contacts/{contact}/calls'
*/
getCalls.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::getCalls
* @see app/Http/Controllers/ContactController.php:245
* @route '/contacts/{contact}/calls'
*/
getCalls.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getCalls.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getCalls
* @see app/Http/Controllers/ContactController.php:245
* @route '/contacts/{contact}/calls'
*/
getCalls.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: getCalls.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::getCalls
* @see app/Http/Controllers/ContactController.php:245
* @route '/contacts/{contact}/calls'
*/
const getCallsForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getCalls.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getCalls
* @see app/Http/Controllers/ContactController.php:245
* @route '/contacts/{contact}/calls'
*/
getCallsForm.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getCalls.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getCalls
* @see app/Http/Controllers/ContactController.php:245
* @route '/contacts/{contact}/calls'
*/
getCallsForm.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getCalls.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

getCalls.form = getCallsForm

/**
* @see \App\Http\Controllers\ContactController::getEvents
* @see app/Http/Controllers/ContactController.php:255
* @route '/contacts/{contact}/events'
*/
export const getEvents = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getEvents.url(args, options),
    method: 'get',
})

getEvents.definition = {
    methods: ["get","head"],
    url: '/contacts/{contact}/events',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\ContactController::getEvents
* @see app/Http/Controllers/ContactController.php:255
* @route '/contacts/{contact}/events'
*/
getEvents.url = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { contact: args }
    }

    if (typeof args === 'object' && !Array.isArray(args) && 'uid' in args) {
        args = { contact: args.uid }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        contact: typeof args.contact === 'object'
        ? args.contact.uid
        : args.contact,
    }

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

/**
* @see \App\Http\Controllers\ContactController::getEvents
* @see app/Http/Controllers/ContactController.php:255
* @route '/contacts/{contact}/events'
*/
getEvents.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: getEvents.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getEvents
* @see app/Http/Controllers/ContactController.php:255
* @route '/contacts/{contact}/events'
*/
getEvents.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: getEvents.url(args, options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::getEvents
* @see app/Http/Controllers/ContactController.php:255
* @route '/contacts/{contact}/events'
*/
const getEventsForm = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getEvents.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getEvents
* @see app/Http/Controllers/ContactController.php:255
* @route '/contacts/{contact}/events'
*/
getEventsForm.get = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getEvents.url(args, options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\ContactController::getEvents
* @see app/Http/Controllers/ContactController.php:255
* @route '/contacts/{contact}/events'
*/
getEventsForm.head = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: getEvents.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

getEvents.form = getEventsForm

const ContactController = { importIndex, contactExport, download, contactImport, bulkAction, index, store, show, edit, update, destroy, sendContactIndividualEmail, updateStatus, getActivities, getTasks, getNotes, getReminders, getEmails, getCalls, getEvents }

export default ContactController