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

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

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

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

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

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

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

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

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

/**
* @see \App\Http\Controllers\ContactController::download
* @see app/Http/Controllers/ContactController.php:547
* @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:547
* @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:547
* @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:547
* @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::bulkAction
* @see app/Http/Controllers/ContactController.php:446
* @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:446
* @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:446
* @route '/contacts/bulk-action'
*/
bulkAction.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: bulkAction.url(options),
    method: 'post',
})

/**
* @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::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::show
* @see app/Http/Controllers/ContactController.php:170
* @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:170
* @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:170
* @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:170
* @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::edit
* @see app/Http/Controllers/ContactController.php:276
* @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:276
* @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:276
* @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:276
* @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::update
* @see app/Http/Controllers/ContactController.php:341
* @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:341
* @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:341
* @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::destroy
* @see app/Http/Controllers/ContactController.php:366
* @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:366
* @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:366
* @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::sendEmail
* @see app/Http/Controllers/ContactController.php:493
* @route '/contacts/{contact}/send-email'
*/
export const sendEmail = (args: { contact: string | number | { uid: string | number } } | [contact: string | number | { uid: string | number } ] | string | number | { uid: string | number }, options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: sendEmail.url(args, options),
    method: 'post',
})

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

/**
* @see \App\Http\Controllers\ContactController::sendEmail
* @see app/Http/Controllers/ContactController.php:493
* @route '/contacts/{contact}/send-email'
*/
sendEmail.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 sendEmail.definition.url
            .replace('{contact}', parsedArgs.contact.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

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

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

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

/**
* @see \App\Http\Controllers\ContactController::activities
* @see app/Http/Controllers/ContactController.php:266
* @route '/contacts/{contact}/activities'
*/
activities.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 activities.definition.url
            .replace('{contact}', parsedArgs.contact.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

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

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

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

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

/**
* @see \App\Http\Controllers\ContactController::tasks
* @see app/Http/Controllers/ContactController.php:204
* @route '/contacts/{contact}/tasks'
*/
tasks.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 tasks.definition.url
            .replace('{contact}', parsedArgs.contact.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

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

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

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

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

/**
* @see \App\Http\Controllers\ContactController::notes
* @see app/Http/Controllers/ContactController.php:215
* @route '/contacts/{contact}/notes'
*/
notes.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 notes.definition.url
            .replace('{contact}', parsedArgs.contact.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

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

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

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

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

/**
* @see \App\Http\Controllers\ContactController::reminders
* @see app/Http/Controllers/ContactController.php:226
* @route '/contacts/{contact}/reminders'
*/
reminders.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 reminders.definition.url
            .replace('{contact}', parsedArgs.contact.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

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

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

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

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

/**
* @see \App\Http\Controllers\ContactController::emails
* @see app/Http/Controllers/ContactController.php:236
* @route '/contacts/{contact}/emails'
*/
emails.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 emails.definition.url
            .replace('{contact}', parsedArgs.contact.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

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

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

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

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

/**
* @see \App\Http\Controllers\ContactController::calls
* @see app/Http/Controllers/ContactController.php:246
* @route '/contacts/{contact}/calls'
*/
calls.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 calls.definition.url
            .replace('{contact}', parsedArgs.contact.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

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

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

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

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

/**
* @see \App\Http\Controllers\ContactController::events
* @see app/Http/Controllers/ContactController.php:256
* @route '/contacts/{contact}/events'
*/
events.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 events.definition.url
            .replace('{contact}', parsedArgs.contact.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

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

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

const contacts = {
    import: Object.assign(importMethod, importMethod7367d2),
    export: Object.assign(exportMethod, exportMethod),
    download: Object.assign(download, download),
    bulkAction: Object.assign(bulkAction, bulkAction),
    index: Object.assign(index, index),
    store: Object.assign(store, store),
    show: Object.assign(show, show),
    edit: Object.assign(edit, edit),
    update: Object.assign(update, update603324),
    destroy: Object.assign(destroy, destroy),
    sendEmail: Object.assign(sendEmail, sendEmail),
    updateStatus: Object.assign(updateStatus, updateStatus),
    activities: Object.assign(activities, activities),
    tasks: Object.assign(tasks, tasks),
    notes: Object.assign(notes, notes),
    reminders: Object.assign(reminders, reminders),
    emails: Object.assign(emails, emails),
    calls: Object.assign(calls, calls),
    events: Object.assign(events, events),
}

export default contacts