import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/user/notifications'
*/
const index22302dbb6cece5606a23a458b6050d38 = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index22302dbb6cece5606a23a458b6050d38.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/user/notifications'
*/
index22302dbb6cece5606a23a458b6050d38.url = (options?: RouteQueryOptions) => {
    return index22302dbb6cece5606a23a458b6050d38.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/user/notifications'
*/
index22302dbb6cece5606a23a458b6050d38.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index22302dbb6cece5606a23a458b6050d38.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/user/notifications'
*/
index22302dbb6cece5606a23a458b6050d38.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index22302dbb6cece5606a23a458b6050d38.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/user/notifications'
*/
const index22302dbb6cece5606a23a458b6050d38Form = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index22302dbb6cece5606a23a458b6050d38.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/user/notifications'
*/
index22302dbb6cece5606a23a458b6050d38Form.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index22302dbb6cece5606a23a458b6050d38.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/user/notifications'
*/
index22302dbb6cece5606a23a458b6050d38Form.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index22302dbb6cece5606a23a458b6050d38.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

index22302dbb6cece5606a23a458b6050d38.form = index22302dbb6cece5606a23a458b6050d38Form
/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/api/v1/notifications'
*/
const index61390cf35a89fe10cc418b5300acba9f = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index61390cf35a89fe10cc418b5300acba9f.url(options),
    method: 'get',
})

index61390cf35a89fe10cc418b5300acba9f.definition = {
    methods: ["get","head"],
    url: '/api/v1/notifications',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/api/v1/notifications'
*/
index61390cf35a89fe10cc418b5300acba9f.url = (options?: RouteQueryOptions) => {
    return index61390cf35a89fe10cc418b5300acba9f.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/api/v1/notifications'
*/
index61390cf35a89fe10cc418b5300acba9f.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index61390cf35a89fe10cc418b5300acba9f.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/api/v1/notifications'
*/
index61390cf35a89fe10cc418b5300acba9f.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index61390cf35a89fe10cc418b5300acba9f.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/api/v1/notifications'
*/
const index61390cf35a89fe10cc418b5300acba9fForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index61390cf35a89fe10cc418b5300acba9f.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/api/v1/notifications'
*/
index61390cf35a89fe10cc418b5300acba9fForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index61390cf35a89fe10cc418b5300acba9f.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::index
* @see app/Http/Controllers/Api/V1/NotificationsController.php:13
* @route '/api/v1/notifications'
*/
index61390cf35a89fe10cc418b5300acba9fForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: index61390cf35a89fe10cc418b5300acba9f.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

index61390cf35a89fe10cc418b5300acba9f.form = index61390cf35a89fe10cc418b5300acba9fForm

export const index = {
    '/user/notifications': index22302dbb6cece5606a23a458b6050d38,
    '/api/v1/notifications': index61390cf35a89fe10cc418b5300acba9f,
}

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/user/notifications/{id}/read'
*/
const markRead69817b771922a0d3791f6e10165cc92f = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: markRead69817b771922a0d3791f6e10165cc92f.url(args, options),
    method: 'patch',
})

markRead69817b771922a0d3791f6e10165cc92f.definition = {
    methods: ["patch"],
    url: '/user/notifications/{id}/read',
} satisfies RouteDefinition<["patch"]>

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/user/notifications/{id}/read'
*/
markRead69817b771922a0d3791f6e10165cc92f.url = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { id: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        id: args.id,
    }

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

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/user/notifications/{id}/read'
*/
markRead69817b771922a0d3791f6e10165cc92f.patch = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: markRead69817b771922a0d3791f6e10165cc92f.url(args, options),
    method: 'patch',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/user/notifications/{id}/read'
*/
const markRead69817b771922a0d3791f6e10165cc92fForm = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: markRead69817b771922a0d3791f6e10165cc92f.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PATCH',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/user/notifications/{id}/read'
*/
markRead69817b771922a0d3791f6e10165cc92fForm.patch = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: markRead69817b771922a0d3791f6e10165cc92f.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PATCH',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

markRead69817b771922a0d3791f6e10165cc92f.form = markRead69817b771922a0d3791f6e10165cc92fForm
/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/api/v1/notifications/{id}/read'
*/
const markRead81bbe04b9b018dcb8ddbcf8e182535b9 = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: markRead81bbe04b9b018dcb8ddbcf8e182535b9.url(args, options),
    method: 'patch',
})

markRead81bbe04b9b018dcb8ddbcf8e182535b9.definition = {
    methods: ["patch"],
    url: '/api/v1/notifications/{id}/read',
} satisfies RouteDefinition<["patch"]>

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/api/v1/notifications/{id}/read'
*/
markRead81bbe04b9b018dcb8ddbcf8e182535b9.url = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { id: args }
    }

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

    args = applyUrlDefaults(args)

    const parsedArgs = {
        id: args.id,
    }

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

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/api/v1/notifications/{id}/read'
*/
markRead81bbe04b9b018dcb8ddbcf8e182535b9.patch = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: markRead81bbe04b9b018dcb8ddbcf8e182535b9.url(args, options),
    method: 'patch',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/api/v1/notifications/{id}/read'
*/
const markRead81bbe04b9b018dcb8ddbcf8e182535b9Form = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: markRead81bbe04b9b018dcb8ddbcf8e182535b9.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PATCH',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:26
* @route '/api/v1/notifications/{id}/read'
*/
markRead81bbe04b9b018dcb8ddbcf8e182535b9Form.patch = (args: { id: string | number } | [id: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: markRead81bbe04b9b018dcb8ddbcf8e182535b9.url(args, {
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'PATCH',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'post',
})

markRead81bbe04b9b018dcb8ddbcf8e182535b9.form = markRead81bbe04b9b018dcb8ddbcf8e182535b9Form

export const markRead = {
    '/user/notifications/{id}/read': markRead69817b771922a0d3791f6e10165cc92f,
    '/api/v1/notifications/{id}/read': markRead81bbe04b9b018dcb8ddbcf8e182535b9,
}

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/user/notifications/read-all'
*/
const markAllRead15d1114d8474e682eb283354d31a1b50 = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: markAllRead15d1114d8474e682eb283354d31a1b50.url(options),
    method: 'post',
})

markAllRead15d1114d8474e682eb283354d31a1b50.definition = {
    methods: ["post"],
    url: '/user/notifications/read-all',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/user/notifications/read-all'
*/
markAllRead15d1114d8474e682eb283354d31a1b50.url = (options?: RouteQueryOptions) => {
    return markAllRead15d1114d8474e682eb283354d31a1b50.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/user/notifications/read-all'
*/
markAllRead15d1114d8474e682eb283354d31a1b50.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: markAllRead15d1114d8474e682eb283354d31a1b50.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/user/notifications/read-all'
*/
const markAllRead15d1114d8474e682eb283354d31a1b50Form = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: markAllRead15d1114d8474e682eb283354d31a1b50.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/user/notifications/read-all'
*/
markAllRead15d1114d8474e682eb283354d31a1b50Form.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: markAllRead15d1114d8474e682eb283354d31a1b50.url(options),
    method: 'post',
})

markAllRead15d1114d8474e682eb283354d31a1b50.form = markAllRead15d1114d8474e682eb283354d31a1b50Form
/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/api/v1/notifications/read-all'
*/
const markAllReadceea2eaf8d14ad21e620286576960dcd = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: markAllReadceea2eaf8d14ad21e620286576960dcd.url(options),
    method: 'post',
})

markAllReadceea2eaf8d14ad21e620286576960dcd.definition = {
    methods: ["post"],
    url: '/api/v1/notifications/read-all',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/api/v1/notifications/read-all'
*/
markAllReadceea2eaf8d14ad21e620286576960dcd.url = (options?: RouteQueryOptions) => {
    return markAllReadceea2eaf8d14ad21e620286576960dcd.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/api/v1/notifications/read-all'
*/
markAllReadceea2eaf8d14ad21e620286576960dcd.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: markAllReadceea2eaf8d14ad21e620286576960dcd.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/api/v1/notifications/read-all'
*/
const markAllReadceea2eaf8d14ad21e620286576960dcdForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: markAllReadceea2eaf8d14ad21e620286576960dcd.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::markAllRead
* @see app/Http/Controllers/Api/V1/NotificationsController.php:38
* @route '/api/v1/notifications/read-all'
*/
markAllReadceea2eaf8d14ad21e620286576960dcdForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: markAllReadceea2eaf8d14ad21e620286576960dcd.url(options),
    method: 'post',
})

markAllReadceea2eaf8d14ad21e620286576960dcd.form = markAllReadceea2eaf8d14ad21e620286576960dcdForm

export const markAllRead = {
    '/user/notifications/read-all': markAllRead15d1114d8474e682eb283354d31a1b50,
    '/api/v1/notifications/read-all': markAllReadceea2eaf8d14ad21e620286576960dcd,
}

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::registerDevice
* @see app/Http/Controllers/Api/V1/NotificationsController.php:49
* @route '/api/v1/devices/register-push-token'
*/
export const registerDevice = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: registerDevice.url(options),
    method: 'post',
})

registerDevice.definition = {
    methods: ["post"],
    url: '/api/v1/devices/register-push-token',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::registerDevice
* @see app/Http/Controllers/Api/V1/NotificationsController.php:49
* @route '/api/v1/devices/register-push-token'
*/
registerDevice.url = (options?: RouteQueryOptions) => {
    return registerDevice.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::registerDevice
* @see app/Http/Controllers/Api/V1/NotificationsController.php:49
* @route '/api/v1/devices/register-push-token'
*/
registerDevice.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: registerDevice.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::registerDevice
* @see app/Http/Controllers/Api/V1/NotificationsController.php:49
* @route '/api/v1/devices/register-push-token'
*/
const registerDeviceForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: registerDevice.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::registerDevice
* @see app/Http/Controllers/Api/V1/NotificationsController.php:49
* @route '/api/v1/devices/register-push-token'
*/
registerDeviceForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: registerDevice.url(options),
    method: 'post',
})

registerDevice.form = registerDeviceForm

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::listDevices
* @see app/Http/Controllers/Api/V1/NotificationsController.php:69
* @route '/api/v1/devices'
*/
export const listDevices = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: listDevices.url(options),
    method: 'get',
})

listDevices.definition = {
    methods: ["get","head"],
    url: '/api/v1/devices',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::listDevices
* @see app/Http/Controllers/Api/V1/NotificationsController.php:69
* @route '/api/v1/devices'
*/
listDevices.url = (options?: RouteQueryOptions) => {
    return listDevices.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::listDevices
* @see app/Http/Controllers/Api/V1/NotificationsController.php:69
* @route '/api/v1/devices'
*/
listDevices.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: listDevices.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::listDevices
* @see app/Http/Controllers/Api/V1/NotificationsController.php:69
* @route '/api/v1/devices'
*/
listDevices.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: listDevices.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::listDevices
* @see app/Http/Controllers/Api/V1/NotificationsController.php:69
* @route '/api/v1/devices'
*/
const listDevicesForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: listDevices.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::listDevices
* @see app/Http/Controllers/Api/V1/NotificationsController.php:69
* @route '/api/v1/devices'
*/
listDevicesForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: listDevices.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\Api\V1\NotificationsController::listDevices
* @see app/Http/Controllers/Api/V1/NotificationsController.php:69
* @route '/api/v1/devices'
*/
listDevicesForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: listDevices.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

listDevices.form = listDevicesForm

const NotificationsController = { index, markRead, markAllRead, registerDevice, listDevices }

export default NotificationsController