import { queryParams, type RouteQueryOptions, type RouteDefinition, applyUrlDefaults } from './../../../../wayfinder'
/**
* @see \App\Http\Controllers\ContactController::importIndex
* @see app/Http/Controllers/ContactController.php:402
* @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:402
* @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:402
* @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:402
* @route '/contacts/import'
*/
importIndex.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: importIndex.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\ContactController::contactExport
* @see app/Http/Controllers/ContactController.php:537
* @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:537
* @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:537
* @route '/contacts/export'
*/
contactExport.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: contactExport.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::contactImport
* @see app/Http/Controllers/ContactController.php:596
* @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:596
* @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:596
* @route '/contacts/import'
*/
contactImport.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: contactImport.url(options),
    method: 'post',
})

/**
* @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::sendContactIndividualEmail
* @see app/Http/Controllers/ContactController.php:493
* @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:493
* @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:493
* @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::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::updateInformation
* @see app/Http/Controllers/ContactController.php:616
* @route '/contacts/update/info'
*/
export const updateInformation = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: updateInformation.url(options),
    method: 'post',
})

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

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

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

/**
* @see \App\Http\Controllers\ContactController::getActivities
* @see app/Http/Controllers/ContactController.php:266
* @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:266
* @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:266
* @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:266
* @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::getTasks
* @see app/Http/Controllers/ContactController.php:204
* @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:204
* @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:204
* @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:204
* @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::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::getReminders
* @see app/Http/Controllers/ContactController.php:226
* @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:226
* @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:226
* @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:226
* @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::getEmails
* @see app/Http/Controllers/ContactController.php:236
* @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:236
* @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:236
* @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:236
* @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::getCalls
* @see app/Http/Controllers/ContactController.php:246
* @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:246
* @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:246
* @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:246
* @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::getEvents
* @see app/Http/Controllers/ContactController.php:256
* @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:256
* @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:256
* @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:256
* @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',
})

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

export default ContactController