Files
2026-07-08 16:15:37 +02:00

2284 lines
92 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `InboxLead` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model InboxLead
*
*/
export type InboxLeadModel = runtime.Types.Result.DefaultSelection<Prisma.$InboxLeadPayload>
export type AggregateInboxLead = {
_count: InboxLeadCountAggregateOutputType | null
_avg: InboxLeadAvgAggregateOutputType | null
_sum: InboxLeadSumAggregateOutputType | null
_min: InboxLeadMinAggregateOutputType | null
_max: InboxLeadMaxAggregateOutputType | null
}
export type InboxLeadAvgAggregateOutputType = {
spamScore: number | null
}
export type InboxLeadSumAggregateOutputType = {
spamScore: number | null
}
export type InboxLeadMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
createdByUserId: string | null
zustaendigerUserId: string | null
quelle: $Enums.LeadQuelle | null
sourceId: string | null
sourceOrigin: string | null
submitterIpHash: string | null
status: $Enums.InboxLeadStatus | null
weiterverarbeitungFreigabe: $Enums.LeadWeiterverarbeitungFreigabe | null
vorname: string | null
nachname: string | null
email: string | null
telefon: string | null
message: string | null
spamScore: number | null
spamReason: string | null
isQuarantined: boolean | null
konvertiertProjektId: string | null
verknuepfterKontaktId: string | null
convertedAt: Date | null
lostAt: Date | null
spamMarkedAt: Date | null
autoDeleteAt: Date | null
isDemoData: boolean | null
archivedAt: Date | null
}
export type InboxLeadMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
createdByUserId: string | null
zustaendigerUserId: string | null
quelle: $Enums.LeadQuelle | null
sourceId: string | null
sourceOrigin: string | null
submitterIpHash: string | null
status: $Enums.InboxLeadStatus | null
weiterverarbeitungFreigabe: $Enums.LeadWeiterverarbeitungFreigabe | null
vorname: string | null
nachname: string | null
email: string | null
telefon: string | null
message: string | null
spamScore: number | null
spamReason: string | null
isQuarantined: boolean | null
konvertiertProjektId: string | null
verknuepfterKontaktId: string | null
convertedAt: Date | null
lostAt: Date | null
spamMarkedAt: Date | null
autoDeleteAt: Date | null
isDemoData: boolean | null
archivedAt: Date | null
}
export type InboxLeadCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
createdByUserId: number
zustaendigerUserId: number
quelle: number
quelleDetail: number
sourceId: number
sourceOrigin: number
submitterIpHash: number
status: number
weiterverarbeitungFreigabe: number
vorname: number
nachname: number
email: number
telefon: number
message: number
rohdaten: number
spamScore: number
spamReason: number
isQuarantined: number
konvertiertProjektId: number
verknuepfterKontaktId: number
convertedAt: number
lostAt: number
spamMarkedAt: number
autoDeleteAt: number
isDemoData: number
archivedAt: number
_all: number
}
export type InboxLeadAvgAggregateInputType = {
spamScore?: true
}
export type InboxLeadSumAggregateInputType = {
spamScore?: true
}
export type InboxLeadMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
createdByUserId?: true
zustaendigerUserId?: true
quelle?: true
sourceId?: true
sourceOrigin?: true
submitterIpHash?: true
status?: true
weiterverarbeitungFreigabe?: true
vorname?: true
nachname?: true
email?: true
telefon?: true
message?: true
spamScore?: true
spamReason?: true
isQuarantined?: true
konvertiertProjektId?: true
verknuepfterKontaktId?: true
convertedAt?: true
lostAt?: true
spamMarkedAt?: true
autoDeleteAt?: true
isDemoData?: true
archivedAt?: true
}
export type InboxLeadMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
createdByUserId?: true
zustaendigerUserId?: true
quelle?: true
sourceId?: true
sourceOrigin?: true
submitterIpHash?: true
status?: true
weiterverarbeitungFreigabe?: true
vorname?: true
nachname?: true
email?: true
telefon?: true
message?: true
spamScore?: true
spamReason?: true
isQuarantined?: true
konvertiertProjektId?: true
verknuepfterKontaktId?: true
convertedAt?: true
lostAt?: true
spamMarkedAt?: true
autoDeleteAt?: true
isDemoData?: true
archivedAt?: true
}
export type InboxLeadCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
createdByUserId?: true
zustaendigerUserId?: true
quelle?: true
quelleDetail?: true
sourceId?: true
sourceOrigin?: true
submitterIpHash?: true
status?: true
weiterverarbeitungFreigabe?: true
vorname?: true
nachname?: true
email?: true
telefon?: true
message?: true
rohdaten?: true
spamScore?: true
spamReason?: true
isQuarantined?: true
konvertiertProjektId?: true
verknuepfterKontaktId?: true
convertedAt?: true
lostAt?: true
spamMarkedAt?: true
autoDeleteAt?: true
isDemoData?: true
archivedAt?: true
_all?: true
}
export type InboxLeadAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which InboxLead to aggregate.
*/
where?: Prisma.InboxLeadWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InboxLeads to fetch.
*/
orderBy?: Prisma.InboxLeadOrderByWithRelationInput | Prisma.InboxLeadOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.InboxLeadWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InboxLeads from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` InboxLeads.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned InboxLeads
**/
_count?: true | InboxLeadCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: InboxLeadAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: InboxLeadSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: InboxLeadMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: InboxLeadMaxAggregateInputType
}
export type GetInboxLeadAggregateType<T extends InboxLeadAggregateArgs> = {
[P in keyof T & keyof AggregateInboxLead]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateInboxLead[P]>
: Prisma.GetScalarType<T[P], AggregateInboxLead[P]>
}
export type InboxLeadGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.InboxLeadWhereInput
orderBy?: Prisma.InboxLeadOrderByWithAggregationInput | Prisma.InboxLeadOrderByWithAggregationInput[]
by: Prisma.InboxLeadScalarFieldEnum[] | Prisma.InboxLeadScalarFieldEnum
having?: Prisma.InboxLeadScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: InboxLeadCountAggregateInputType | true
_avg?: InboxLeadAvgAggregateInputType
_sum?: InboxLeadSumAggregateInputType
_min?: InboxLeadMinAggregateInputType
_max?: InboxLeadMaxAggregateInputType
}
export type InboxLeadGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string
createdByUserId: string | null
zustaendigerUserId: string | null
quelle: $Enums.LeadQuelle
quelleDetail: runtime.JsonValue | null
sourceId: string | null
sourceOrigin: string | null
submitterIpHash: string | null
status: $Enums.InboxLeadStatus
weiterverarbeitungFreigabe: $Enums.LeadWeiterverarbeitungFreigabe
vorname: string | null
nachname: string | null
email: string | null
telefon: string | null
message: string | null
rohdaten: runtime.JsonValue | null
spamScore: number
spamReason: string | null
isQuarantined: boolean
konvertiertProjektId: string | null
verknuepfterKontaktId: string | null
convertedAt: Date | null
lostAt: Date | null
spamMarkedAt: Date | null
autoDeleteAt: Date | null
isDemoData: boolean
archivedAt: Date | null
_count: InboxLeadCountAggregateOutputType | null
_avg: InboxLeadAvgAggregateOutputType | null
_sum: InboxLeadSumAggregateOutputType | null
_min: InboxLeadMinAggregateOutputType | null
_max: InboxLeadMaxAggregateOutputType | null
}
export type GetInboxLeadGroupByPayload<T extends InboxLeadGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<InboxLeadGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof InboxLeadGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], InboxLeadGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], InboxLeadGroupByOutputType[P]>
}
>
>
export type InboxLeadWhereInput = {
AND?: Prisma.InboxLeadWhereInput | Prisma.InboxLeadWhereInput[]
OR?: Prisma.InboxLeadWhereInput[]
NOT?: Prisma.InboxLeadWhereInput | Prisma.InboxLeadWhereInput[]
id?: Prisma.StringFilter<"InboxLead"> | string
createdAt?: Prisma.DateTimeFilter<"InboxLead"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"InboxLead"> | Date | string
tenantId?: Prisma.StringFilter<"InboxLead"> | string
createdByUserId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
zustaendigerUserId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
quelle?: Prisma.EnumLeadQuelleFilter<"InboxLead"> | $Enums.LeadQuelle
quelleDetail?: Prisma.JsonNullableFilter<"InboxLead">
sourceId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
sourceOrigin?: Prisma.StringNullableFilter<"InboxLead"> | string | null
submitterIpHash?: Prisma.StringNullableFilter<"InboxLead"> | string | null
status?: Prisma.EnumInboxLeadStatusFilter<"InboxLead"> | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFilter<"InboxLead"> | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.StringNullableFilter<"InboxLead"> | string | null
nachname?: Prisma.StringNullableFilter<"InboxLead"> | string | null
email?: Prisma.StringNullableFilter<"InboxLead"> | string | null
telefon?: Prisma.StringNullableFilter<"InboxLead"> | string | null
message?: Prisma.StringNullableFilter<"InboxLead"> | string | null
rohdaten?: Prisma.JsonNullableFilter<"InboxLead">
spamScore?: Prisma.IntFilter<"InboxLead"> | number
spamReason?: Prisma.StringNullableFilter<"InboxLead"> | string | null
isQuarantined?: Prisma.BoolFilter<"InboxLead"> | boolean
konvertiertProjektId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
verknuepfterKontaktId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
convertedAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
lostAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
spamMarkedAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
autoDeleteAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
isDemoData?: Prisma.BoolFilter<"InboxLead"> | boolean
archivedAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
source?: Prisma.XOR<Prisma.LeadSourceNullableScalarRelationFilter, Prisma.LeadSourceWhereInput> | null
}
export type InboxLeadOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
zustaendigerUserId?: Prisma.SortOrderInput | Prisma.SortOrder
quelle?: Prisma.SortOrder
quelleDetail?: Prisma.SortOrderInput | Prisma.SortOrder
sourceId?: Prisma.SortOrderInput | Prisma.SortOrder
sourceOrigin?: Prisma.SortOrderInput | Prisma.SortOrder
submitterIpHash?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
weiterverarbeitungFreigabe?: Prisma.SortOrder
vorname?: Prisma.SortOrderInput | Prisma.SortOrder
nachname?: Prisma.SortOrderInput | Prisma.SortOrder
email?: Prisma.SortOrderInput | Prisma.SortOrder
telefon?: Prisma.SortOrderInput | Prisma.SortOrder
message?: Prisma.SortOrderInput | Prisma.SortOrder
rohdaten?: Prisma.SortOrderInput | Prisma.SortOrder
spamScore?: Prisma.SortOrder
spamReason?: Prisma.SortOrderInput | Prisma.SortOrder
isQuarantined?: Prisma.SortOrder
konvertiertProjektId?: Prisma.SortOrderInput | Prisma.SortOrder
verknuepfterKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder
convertedAt?: Prisma.SortOrderInput | Prisma.SortOrder
lostAt?: Prisma.SortOrderInput | Prisma.SortOrder
spamMarkedAt?: Prisma.SortOrderInput | Prisma.SortOrder
autoDeleteAt?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.LeadSourceOrderByWithRelationInput
}
export type InboxLeadWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.InboxLeadWhereInput | Prisma.InboxLeadWhereInput[]
OR?: Prisma.InboxLeadWhereInput[]
NOT?: Prisma.InboxLeadWhereInput | Prisma.InboxLeadWhereInput[]
createdAt?: Prisma.DateTimeFilter<"InboxLead"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"InboxLead"> | Date | string
tenantId?: Prisma.StringFilter<"InboxLead"> | string
createdByUserId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
zustaendigerUserId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
quelle?: Prisma.EnumLeadQuelleFilter<"InboxLead"> | $Enums.LeadQuelle
quelleDetail?: Prisma.JsonNullableFilter<"InboxLead">
sourceId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
sourceOrigin?: Prisma.StringNullableFilter<"InboxLead"> | string | null
submitterIpHash?: Prisma.StringNullableFilter<"InboxLead"> | string | null
status?: Prisma.EnumInboxLeadStatusFilter<"InboxLead"> | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFilter<"InboxLead"> | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.StringNullableFilter<"InboxLead"> | string | null
nachname?: Prisma.StringNullableFilter<"InboxLead"> | string | null
email?: Prisma.StringNullableFilter<"InboxLead"> | string | null
telefon?: Prisma.StringNullableFilter<"InboxLead"> | string | null
message?: Prisma.StringNullableFilter<"InboxLead"> | string | null
rohdaten?: Prisma.JsonNullableFilter<"InboxLead">
spamScore?: Prisma.IntFilter<"InboxLead"> | number
spamReason?: Prisma.StringNullableFilter<"InboxLead"> | string | null
isQuarantined?: Prisma.BoolFilter<"InboxLead"> | boolean
konvertiertProjektId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
verknuepfterKontaktId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
convertedAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
lostAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
spamMarkedAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
autoDeleteAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
isDemoData?: Prisma.BoolFilter<"InboxLead"> | boolean
archivedAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
source?: Prisma.XOR<Prisma.LeadSourceNullableScalarRelationFilter, Prisma.LeadSourceWhereInput> | null
}, "id">
export type InboxLeadOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
zustaendigerUserId?: Prisma.SortOrderInput | Prisma.SortOrder
quelle?: Prisma.SortOrder
quelleDetail?: Prisma.SortOrderInput | Prisma.SortOrder
sourceId?: Prisma.SortOrderInput | Prisma.SortOrder
sourceOrigin?: Prisma.SortOrderInput | Prisma.SortOrder
submitterIpHash?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
weiterverarbeitungFreigabe?: Prisma.SortOrder
vorname?: Prisma.SortOrderInput | Prisma.SortOrder
nachname?: Prisma.SortOrderInput | Prisma.SortOrder
email?: Prisma.SortOrderInput | Prisma.SortOrder
telefon?: Prisma.SortOrderInput | Prisma.SortOrder
message?: Prisma.SortOrderInput | Prisma.SortOrder
rohdaten?: Prisma.SortOrderInput | Prisma.SortOrder
spamScore?: Prisma.SortOrder
spamReason?: Prisma.SortOrderInput | Prisma.SortOrder
isQuarantined?: Prisma.SortOrder
konvertiertProjektId?: Prisma.SortOrderInput | Prisma.SortOrder
verknuepfterKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder
convertedAt?: Prisma.SortOrderInput | Prisma.SortOrder
lostAt?: Prisma.SortOrderInput | Prisma.SortOrder
spamMarkedAt?: Prisma.SortOrderInput | Prisma.SortOrder
autoDeleteAt?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.InboxLeadCountOrderByAggregateInput
_avg?: Prisma.InboxLeadAvgOrderByAggregateInput
_max?: Prisma.InboxLeadMaxOrderByAggregateInput
_min?: Prisma.InboxLeadMinOrderByAggregateInput
_sum?: Prisma.InboxLeadSumOrderByAggregateInput
}
export type InboxLeadScalarWhereWithAggregatesInput = {
AND?: Prisma.InboxLeadScalarWhereWithAggregatesInput | Prisma.InboxLeadScalarWhereWithAggregatesInput[]
OR?: Prisma.InboxLeadScalarWhereWithAggregatesInput[]
NOT?: Prisma.InboxLeadScalarWhereWithAggregatesInput | Prisma.InboxLeadScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"InboxLead"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"InboxLead"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"InboxLead"> | Date | string
tenantId?: Prisma.StringWithAggregatesFilter<"InboxLead"> | string
createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
zustaendigerUserId?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
quelle?: Prisma.EnumLeadQuelleWithAggregatesFilter<"InboxLead"> | $Enums.LeadQuelle
quelleDetail?: Prisma.JsonNullableWithAggregatesFilter<"InboxLead">
sourceId?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
sourceOrigin?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
submitterIpHash?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
status?: Prisma.EnumInboxLeadStatusWithAggregatesFilter<"InboxLead"> | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeWithAggregatesFilter<"InboxLead"> | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
nachname?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
email?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
telefon?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
message?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
rohdaten?: Prisma.JsonNullableWithAggregatesFilter<"InboxLead">
spamScore?: Prisma.IntWithAggregatesFilter<"InboxLead"> | number
spamReason?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
isQuarantined?: Prisma.BoolWithAggregatesFilter<"InboxLead"> | boolean
konvertiertProjektId?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
verknuepfterKontaktId?: Prisma.StringNullableWithAggregatesFilter<"InboxLead"> | string | null
convertedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InboxLead"> | Date | string | null
lostAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InboxLead"> | Date | string | null
spamMarkedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InboxLead"> | Date | string | null
autoDeleteAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InboxLead"> | Date | string | null
isDemoData?: Prisma.BoolWithAggregatesFilter<"InboxLead"> | boolean
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InboxLead"> | Date | string | null
}
export type InboxLeadCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId?: string | null
zustaendigerUserId?: string | null
quelle: $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceOrigin?: string | null
submitterIpHash?: string | null
status?: $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: $Enums.LeadWeiterverarbeitungFreigabe
vorname?: string | null
nachname?: string | null
email?: string | null
telefon?: string | null
message?: string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: number
spamReason?: string | null
isQuarantined?: boolean
konvertiertProjektId?: string | null
verknuepfterKontaktId?: string | null
convertedAt?: Date | string | null
lostAt?: Date | string | null
spamMarkedAt?: Date | string | null
autoDeleteAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
source?: Prisma.LeadSourceCreateNestedOneWithoutLeadsInput
}
export type InboxLeadUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId?: string | null
zustaendigerUserId?: string | null
quelle: $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceId?: string | null
sourceOrigin?: string | null
submitterIpHash?: string | null
status?: $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: $Enums.LeadWeiterverarbeitungFreigabe
vorname?: string | null
nachname?: string | null
email?: string | null
telefon?: string | null
message?: string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: number
spamReason?: string | null
isQuarantined?: boolean
konvertiertProjektId?: string | null
verknuepfterKontaktId?: string | null
convertedAt?: Date | string | null
lostAt?: Date | string | null
spamMarkedAt?: Date | string | null
autoDeleteAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type InboxLeadUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quelle?: Prisma.EnumLeadQuelleFieldUpdateOperationsInput | $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
submitterIpHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumInboxLeadStatusFieldUpdateOperationsInput | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFieldUpdateOperationsInput | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
nachname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: Prisma.IntFieldUpdateOperationsInput | number
spamReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isQuarantined?: Prisma.BoolFieldUpdateOperationsInput | boolean
konvertiertProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
verknuepfterKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
convertedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lostAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
spamMarkedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
autoDeleteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
source?: Prisma.LeadSourceUpdateOneWithoutLeadsNestedInput
}
export type InboxLeadUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quelle?: Prisma.EnumLeadQuelleFieldUpdateOperationsInput | $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
submitterIpHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumInboxLeadStatusFieldUpdateOperationsInput | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFieldUpdateOperationsInput | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
nachname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: Prisma.IntFieldUpdateOperationsInput | number
spamReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isQuarantined?: Prisma.BoolFieldUpdateOperationsInput | boolean
konvertiertProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
verknuepfterKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
convertedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lostAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
spamMarkedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
autoDeleteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type InboxLeadCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId?: string | null
zustaendigerUserId?: string | null
quelle: $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceId?: string | null
sourceOrigin?: string | null
submitterIpHash?: string | null
status?: $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: $Enums.LeadWeiterverarbeitungFreigabe
vorname?: string | null
nachname?: string | null
email?: string | null
telefon?: string | null
message?: string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: number
spamReason?: string | null
isQuarantined?: boolean
konvertiertProjektId?: string | null
verknuepfterKontaktId?: string | null
convertedAt?: Date | string | null
lostAt?: Date | string | null
spamMarkedAt?: Date | string | null
autoDeleteAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type InboxLeadUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quelle?: Prisma.EnumLeadQuelleFieldUpdateOperationsInput | $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
submitterIpHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumInboxLeadStatusFieldUpdateOperationsInput | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFieldUpdateOperationsInput | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
nachname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: Prisma.IntFieldUpdateOperationsInput | number
spamReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isQuarantined?: Prisma.BoolFieldUpdateOperationsInput | boolean
konvertiertProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
verknuepfterKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
convertedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lostAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
spamMarkedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
autoDeleteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type InboxLeadUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quelle?: Prisma.EnumLeadQuelleFieldUpdateOperationsInput | $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
submitterIpHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumInboxLeadStatusFieldUpdateOperationsInput | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFieldUpdateOperationsInput | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
nachname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: Prisma.IntFieldUpdateOperationsInput | number
spamReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isQuarantined?: Prisma.BoolFieldUpdateOperationsInput | boolean
konvertiertProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
verknuepfterKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
convertedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lostAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
spamMarkedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
autoDeleteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type InboxLeadCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
zustaendigerUserId?: Prisma.SortOrder
quelle?: Prisma.SortOrder
quelleDetail?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
sourceOrigin?: Prisma.SortOrder
submitterIpHash?: Prisma.SortOrder
status?: Prisma.SortOrder
weiterverarbeitungFreigabe?: Prisma.SortOrder
vorname?: Prisma.SortOrder
nachname?: Prisma.SortOrder
email?: Prisma.SortOrder
telefon?: Prisma.SortOrder
message?: Prisma.SortOrder
rohdaten?: Prisma.SortOrder
spamScore?: Prisma.SortOrder
spamReason?: Prisma.SortOrder
isQuarantined?: Prisma.SortOrder
konvertiertProjektId?: Prisma.SortOrder
verknuepfterKontaktId?: Prisma.SortOrder
convertedAt?: Prisma.SortOrder
lostAt?: Prisma.SortOrder
spamMarkedAt?: Prisma.SortOrder
autoDeleteAt?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type InboxLeadAvgOrderByAggregateInput = {
spamScore?: Prisma.SortOrder
}
export type InboxLeadMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
zustaendigerUserId?: Prisma.SortOrder
quelle?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
sourceOrigin?: Prisma.SortOrder
submitterIpHash?: Prisma.SortOrder
status?: Prisma.SortOrder
weiterverarbeitungFreigabe?: Prisma.SortOrder
vorname?: Prisma.SortOrder
nachname?: Prisma.SortOrder
email?: Prisma.SortOrder
telefon?: Prisma.SortOrder
message?: Prisma.SortOrder
spamScore?: Prisma.SortOrder
spamReason?: Prisma.SortOrder
isQuarantined?: Prisma.SortOrder
konvertiertProjektId?: Prisma.SortOrder
verknuepfterKontaktId?: Prisma.SortOrder
convertedAt?: Prisma.SortOrder
lostAt?: Prisma.SortOrder
spamMarkedAt?: Prisma.SortOrder
autoDeleteAt?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type InboxLeadMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
createdByUserId?: Prisma.SortOrder
zustaendigerUserId?: Prisma.SortOrder
quelle?: Prisma.SortOrder
sourceId?: Prisma.SortOrder
sourceOrigin?: Prisma.SortOrder
submitterIpHash?: Prisma.SortOrder
status?: Prisma.SortOrder
weiterverarbeitungFreigabe?: Prisma.SortOrder
vorname?: Prisma.SortOrder
nachname?: Prisma.SortOrder
email?: Prisma.SortOrder
telefon?: Prisma.SortOrder
message?: Prisma.SortOrder
spamScore?: Prisma.SortOrder
spamReason?: Prisma.SortOrder
isQuarantined?: Prisma.SortOrder
konvertiertProjektId?: Prisma.SortOrder
verknuepfterKontaktId?: Prisma.SortOrder
convertedAt?: Prisma.SortOrder
lostAt?: Prisma.SortOrder
spamMarkedAt?: Prisma.SortOrder
autoDeleteAt?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type InboxLeadSumOrderByAggregateInput = {
spamScore?: Prisma.SortOrder
}
export type InboxLeadListRelationFilter = {
every?: Prisma.InboxLeadWhereInput
some?: Prisma.InboxLeadWhereInput
none?: Prisma.InboxLeadWhereInput
}
export type InboxLeadOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type EnumLeadQuelleFieldUpdateOperationsInput = {
set?: $Enums.LeadQuelle
}
export type EnumInboxLeadStatusFieldUpdateOperationsInput = {
set?: $Enums.InboxLeadStatus
}
export type EnumLeadWeiterverarbeitungFreigabeFieldUpdateOperationsInput = {
set?: $Enums.LeadWeiterverarbeitungFreigabe
}
export type InboxLeadCreateNestedManyWithoutSourceInput = {
create?: Prisma.XOR<Prisma.InboxLeadCreateWithoutSourceInput, Prisma.InboxLeadUncheckedCreateWithoutSourceInput> | Prisma.InboxLeadCreateWithoutSourceInput[] | Prisma.InboxLeadUncheckedCreateWithoutSourceInput[]
connectOrCreate?: Prisma.InboxLeadCreateOrConnectWithoutSourceInput | Prisma.InboxLeadCreateOrConnectWithoutSourceInput[]
createMany?: Prisma.InboxLeadCreateManySourceInputEnvelope
connect?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
}
export type InboxLeadUncheckedCreateNestedManyWithoutSourceInput = {
create?: Prisma.XOR<Prisma.InboxLeadCreateWithoutSourceInput, Prisma.InboxLeadUncheckedCreateWithoutSourceInput> | Prisma.InboxLeadCreateWithoutSourceInput[] | Prisma.InboxLeadUncheckedCreateWithoutSourceInput[]
connectOrCreate?: Prisma.InboxLeadCreateOrConnectWithoutSourceInput | Prisma.InboxLeadCreateOrConnectWithoutSourceInput[]
createMany?: Prisma.InboxLeadCreateManySourceInputEnvelope
connect?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
}
export type InboxLeadUpdateManyWithoutSourceNestedInput = {
create?: Prisma.XOR<Prisma.InboxLeadCreateWithoutSourceInput, Prisma.InboxLeadUncheckedCreateWithoutSourceInput> | Prisma.InboxLeadCreateWithoutSourceInput[] | Prisma.InboxLeadUncheckedCreateWithoutSourceInput[]
connectOrCreate?: Prisma.InboxLeadCreateOrConnectWithoutSourceInput | Prisma.InboxLeadCreateOrConnectWithoutSourceInput[]
upsert?: Prisma.InboxLeadUpsertWithWhereUniqueWithoutSourceInput | Prisma.InboxLeadUpsertWithWhereUniqueWithoutSourceInput[]
createMany?: Prisma.InboxLeadCreateManySourceInputEnvelope
set?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
disconnect?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
delete?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
connect?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
update?: Prisma.InboxLeadUpdateWithWhereUniqueWithoutSourceInput | Prisma.InboxLeadUpdateWithWhereUniqueWithoutSourceInput[]
updateMany?: Prisma.InboxLeadUpdateManyWithWhereWithoutSourceInput | Prisma.InboxLeadUpdateManyWithWhereWithoutSourceInput[]
deleteMany?: Prisma.InboxLeadScalarWhereInput | Prisma.InboxLeadScalarWhereInput[]
}
export type InboxLeadUncheckedUpdateManyWithoutSourceNestedInput = {
create?: Prisma.XOR<Prisma.InboxLeadCreateWithoutSourceInput, Prisma.InboxLeadUncheckedCreateWithoutSourceInput> | Prisma.InboxLeadCreateWithoutSourceInput[] | Prisma.InboxLeadUncheckedCreateWithoutSourceInput[]
connectOrCreate?: Prisma.InboxLeadCreateOrConnectWithoutSourceInput | Prisma.InboxLeadCreateOrConnectWithoutSourceInput[]
upsert?: Prisma.InboxLeadUpsertWithWhereUniqueWithoutSourceInput | Prisma.InboxLeadUpsertWithWhereUniqueWithoutSourceInput[]
createMany?: Prisma.InboxLeadCreateManySourceInputEnvelope
set?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
disconnect?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
delete?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
connect?: Prisma.InboxLeadWhereUniqueInput | Prisma.InboxLeadWhereUniqueInput[]
update?: Prisma.InboxLeadUpdateWithWhereUniqueWithoutSourceInput | Prisma.InboxLeadUpdateWithWhereUniqueWithoutSourceInput[]
updateMany?: Prisma.InboxLeadUpdateManyWithWhereWithoutSourceInput | Prisma.InboxLeadUpdateManyWithWhereWithoutSourceInput[]
deleteMany?: Prisma.InboxLeadScalarWhereInput | Prisma.InboxLeadScalarWhereInput[]
}
export type InboxLeadCreateWithoutSourceInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId?: string | null
zustaendigerUserId?: string | null
quelle: $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceOrigin?: string | null
submitterIpHash?: string | null
status?: $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: $Enums.LeadWeiterverarbeitungFreigabe
vorname?: string | null
nachname?: string | null
email?: string | null
telefon?: string | null
message?: string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: number
spamReason?: string | null
isQuarantined?: boolean
konvertiertProjektId?: string | null
verknuepfterKontaktId?: string | null
convertedAt?: Date | string | null
lostAt?: Date | string | null
spamMarkedAt?: Date | string | null
autoDeleteAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type InboxLeadUncheckedCreateWithoutSourceInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId?: string | null
zustaendigerUserId?: string | null
quelle: $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceOrigin?: string | null
submitterIpHash?: string | null
status?: $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: $Enums.LeadWeiterverarbeitungFreigabe
vorname?: string | null
nachname?: string | null
email?: string | null
telefon?: string | null
message?: string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: number
spamReason?: string | null
isQuarantined?: boolean
konvertiertProjektId?: string | null
verknuepfterKontaktId?: string | null
convertedAt?: Date | string | null
lostAt?: Date | string | null
spamMarkedAt?: Date | string | null
autoDeleteAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type InboxLeadCreateOrConnectWithoutSourceInput = {
where: Prisma.InboxLeadWhereUniqueInput
create: Prisma.XOR<Prisma.InboxLeadCreateWithoutSourceInput, Prisma.InboxLeadUncheckedCreateWithoutSourceInput>
}
export type InboxLeadCreateManySourceInputEnvelope = {
data: Prisma.InboxLeadCreateManySourceInput | Prisma.InboxLeadCreateManySourceInput[]
skipDuplicates?: boolean
}
export type InboxLeadUpsertWithWhereUniqueWithoutSourceInput = {
where: Prisma.InboxLeadWhereUniqueInput
update: Prisma.XOR<Prisma.InboxLeadUpdateWithoutSourceInput, Prisma.InboxLeadUncheckedUpdateWithoutSourceInput>
create: Prisma.XOR<Prisma.InboxLeadCreateWithoutSourceInput, Prisma.InboxLeadUncheckedCreateWithoutSourceInput>
}
export type InboxLeadUpdateWithWhereUniqueWithoutSourceInput = {
where: Prisma.InboxLeadWhereUniqueInput
data: Prisma.XOR<Prisma.InboxLeadUpdateWithoutSourceInput, Prisma.InboxLeadUncheckedUpdateWithoutSourceInput>
}
export type InboxLeadUpdateManyWithWhereWithoutSourceInput = {
where: Prisma.InboxLeadScalarWhereInput
data: Prisma.XOR<Prisma.InboxLeadUpdateManyMutationInput, Prisma.InboxLeadUncheckedUpdateManyWithoutSourceInput>
}
export type InboxLeadScalarWhereInput = {
AND?: Prisma.InboxLeadScalarWhereInput | Prisma.InboxLeadScalarWhereInput[]
OR?: Prisma.InboxLeadScalarWhereInput[]
NOT?: Prisma.InboxLeadScalarWhereInput | Prisma.InboxLeadScalarWhereInput[]
id?: Prisma.StringFilter<"InboxLead"> | string
createdAt?: Prisma.DateTimeFilter<"InboxLead"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"InboxLead"> | Date | string
tenantId?: Prisma.StringFilter<"InboxLead"> | string
createdByUserId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
zustaendigerUserId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
quelle?: Prisma.EnumLeadQuelleFilter<"InboxLead"> | $Enums.LeadQuelle
quelleDetail?: Prisma.JsonNullableFilter<"InboxLead">
sourceId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
sourceOrigin?: Prisma.StringNullableFilter<"InboxLead"> | string | null
submitterIpHash?: Prisma.StringNullableFilter<"InboxLead"> | string | null
status?: Prisma.EnumInboxLeadStatusFilter<"InboxLead"> | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFilter<"InboxLead"> | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.StringNullableFilter<"InboxLead"> | string | null
nachname?: Prisma.StringNullableFilter<"InboxLead"> | string | null
email?: Prisma.StringNullableFilter<"InboxLead"> | string | null
telefon?: Prisma.StringNullableFilter<"InboxLead"> | string | null
message?: Prisma.StringNullableFilter<"InboxLead"> | string | null
rohdaten?: Prisma.JsonNullableFilter<"InboxLead">
spamScore?: Prisma.IntFilter<"InboxLead"> | number
spamReason?: Prisma.StringNullableFilter<"InboxLead"> | string | null
isQuarantined?: Prisma.BoolFilter<"InboxLead"> | boolean
konvertiertProjektId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
verknuepfterKontaktId?: Prisma.StringNullableFilter<"InboxLead"> | string | null
convertedAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
lostAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
spamMarkedAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
autoDeleteAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
isDemoData?: Prisma.BoolFilter<"InboxLead"> | boolean
archivedAt?: Prisma.DateTimeNullableFilter<"InboxLead"> | Date | string | null
}
export type InboxLeadCreateManySourceInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
createdByUserId?: string | null
zustaendigerUserId?: string | null
quelle: $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceOrigin?: string | null
submitterIpHash?: string | null
status?: $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: $Enums.LeadWeiterverarbeitungFreigabe
vorname?: string | null
nachname?: string | null
email?: string | null
telefon?: string | null
message?: string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: number
spamReason?: string | null
isQuarantined?: boolean
konvertiertProjektId?: string | null
verknuepfterKontaktId?: string | null
convertedAt?: Date | string | null
lostAt?: Date | string | null
spamMarkedAt?: Date | string | null
autoDeleteAt?: Date | string | null
isDemoData?: boolean
archivedAt?: Date | string | null
}
export type InboxLeadUpdateWithoutSourceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quelle?: Prisma.EnumLeadQuelleFieldUpdateOperationsInput | $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
submitterIpHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumInboxLeadStatusFieldUpdateOperationsInput | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFieldUpdateOperationsInput | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
nachname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: Prisma.IntFieldUpdateOperationsInput | number
spamReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isQuarantined?: Prisma.BoolFieldUpdateOperationsInput | boolean
konvertiertProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
verknuepfterKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
convertedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lostAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
spamMarkedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
autoDeleteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type InboxLeadUncheckedUpdateWithoutSourceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quelle?: Prisma.EnumLeadQuelleFieldUpdateOperationsInput | $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
submitterIpHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumInboxLeadStatusFieldUpdateOperationsInput | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFieldUpdateOperationsInput | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
nachname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: Prisma.IntFieldUpdateOperationsInput | number
spamReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isQuarantined?: Prisma.BoolFieldUpdateOperationsInput | boolean
konvertiertProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
verknuepfterKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
convertedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lostAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
spamMarkedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
autoDeleteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type InboxLeadUncheckedUpdateManyWithoutSourceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
zustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
quelle?: Prisma.EnumLeadQuelleFieldUpdateOperationsInput | $Enums.LeadQuelle
quelleDetail?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
submitterIpHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.EnumInboxLeadStatusFieldUpdateOperationsInput | $Enums.InboxLeadStatus
weiterverarbeitungFreigabe?: Prisma.EnumLeadWeiterverarbeitungFreigabeFieldUpdateOperationsInput | $Enums.LeadWeiterverarbeitungFreigabe
vorname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
nachname?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
telefon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
rohdaten?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
spamScore?: Prisma.IntFieldUpdateOperationsInput | number
spamReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isQuarantined?: Prisma.BoolFieldUpdateOperationsInput | boolean
konvertiertProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
verknuepfterKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
convertedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
lostAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
spamMarkedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
autoDeleteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type InboxLeadSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
zustaendigerUserId?: boolean
quelle?: boolean
quelleDetail?: boolean
sourceId?: boolean
sourceOrigin?: boolean
submitterIpHash?: boolean
status?: boolean
weiterverarbeitungFreigabe?: boolean
vorname?: boolean
nachname?: boolean
email?: boolean
telefon?: boolean
message?: boolean
rohdaten?: boolean
spamScore?: boolean
spamReason?: boolean
isQuarantined?: boolean
konvertiertProjektId?: boolean
verknuepfterKontaktId?: boolean
convertedAt?: boolean
lostAt?: boolean
spamMarkedAt?: boolean
autoDeleteAt?: boolean
isDemoData?: boolean
archivedAt?: boolean
source?: boolean | Prisma.InboxLead$sourceArgs<ExtArgs>
}, ExtArgs["result"]["inboxLead"]>
export type InboxLeadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
zustaendigerUserId?: boolean
quelle?: boolean
quelleDetail?: boolean
sourceId?: boolean
sourceOrigin?: boolean
submitterIpHash?: boolean
status?: boolean
weiterverarbeitungFreigabe?: boolean
vorname?: boolean
nachname?: boolean
email?: boolean
telefon?: boolean
message?: boolean
rohdaten?: boolean
spamScore?: boolean
spamReason?: boolean
isQuarantined?: boolean
konvertiertProjektId?: boolean
verknuepfterKontaktId?: boolean
convertedAt?: boolean
lostAt?: boolean
spamMarkedAt?: boolean
autoDeleteAt?: boolean
isDemoData?: boolean
archivedAt?: boolean
source?: boolean | Prisma.InboxLead$sourceArgs<ExtArgs>
}, ExtArgs["result"]["inboxLead"]>
export type InboxLeadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
zustaendigerUserId?: boolean
quelle?: boolean
quelleDetail?: boolean
sourceId?: boolean
sourceOrigin?: boolean
submitterIpHash?: boolean
status?: boolean
weiterverarbeitungFreigabe?: boolean
vorname?: boolean
nachname?: boolean
email?: boolean
telefon?: boolean
message?: boolean
rohdaten?: boolean
spamScore?: boolean
spamReason?: boolean
isQuarantined?: boolean
konvertiertProjektId?: boolean
verknuepfterKontaktId?: boolean
convertedAt?: boolean
lostAt?: boolean
spamMarkedAt?: boolean
autoDeleteAt?: boolean
isDemoData?: boolean
archivedAt?: boolean
source?: boolean | Prisma.InboxLead$sourceArgs<ExtArgs>
}, ExtArgs["result"]["inboxLead"]>
export type InboxLeadSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
createdByUserId?: boolean
zustaendigerUserId?: boolean
quelle?: boolean
quelleDetail?: boolean
sourceId?: boolean
sourceOrigin?: boolean
submitterIpHash?: boolean
status?: boolean
weiterverarbeitungFreigabe?: boolean
vorname?: boolean
nachname?: boolean
email?: boolean
telefon?: boolean
message?: boolean
rohdaten?: boolean
spamScore?: boolean
spamReason?: boolean
isQuarantined?: boolean
konvertiertProjektId?: boolean
verknuepfterKontaktId?: boolean
convertedAt?: boolean
lostAt?: boolean
spamMarkedAt?: boolean
autoDeleteAt?: boolean
isDemoData?: boolean
archivedAt?: boolean
}
export type InboxLeadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "createdByUserId" | "zustaendigerUserId" | "quelle" | "quelleDetail" | "sourceId" | "sourceOrigin" | "submitterIpHash" | "status" | "weiterverarbeitungFreigabe" | "vorname" | "nachname" | "email" | "telefon" | "message" | "rohdaten" | "spamScore" | "spamReason" | "isQuarantined" | "konvertiertProjektId" | "verknuepfterKontaktId" | "convertedAt" | "lostAt" | "spamMarkedAt" | "autoDeleteAt" | "isDemoData" | "archivedAt", ExtArgs["result"]["inboxLead"]>
export type InboxLeadInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
source?: boolean | Prisma.InboxLead$sourceArgs<ExtArgs>
}
export type InboxLeadIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
source?: boolean | Prisma.InboxLead$sourceArgs<ExtArgs>
}
export type InboxLeadIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
source?: boolean | Prisma.InboxLead$sourceArgs<ExtArgs>
}
export type $InboxLeadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "InboxLead"
objects: {
source: Prisma.$LeadSourcePayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string
createdByUserId: string | null
zustaendigerUserId: string | null
quelle: $Enums.LeadQuelle
quelleDetail: runtime.JsonValue | null
sourceId: string | null
sourceOrigin: string | null
submitterIpHash: string | null
status: $Enums.InboxLeadStatus
weiterverarbeitungFreigabe: $Enums.LeadWeiterverarbeitungFreigabe
vorname: string | null
nachname: string | null
email: string | null
telefon: string | null
message: string | null
rohdaten: runtime.JsonValue | null
spamScore: number
spamReason: string | null
isQuarantined: boolean
konvertiertProjektId: string | null
verknuepfterKontaktId: string | null
convertedAt: Date | null
lostAt: Date | null
spamMarkedAt: Date | null
autoDeleteAt: Date | null
isDemoData: boolean
archivedAt: Date | null
}, ExtArgs["result"]["inboxLead"]>
composites: {}
}
export type InboxLeadGetPayload<S extends boolean | null | undefined | InboxLeadDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload, S>
export type InboxLeadCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<InboxLeadFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: InboxLeadCountAggregateInputType | true
}
export interface InboxLeadDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['InboxLead'], meta: { name: 'InboxLead' } }
/**
* Find zero or one InboxLead that matches the filter.
* @param {InboxLeadFindUniqueArgs} args - Arguments to find a InboxLead
* @example
* // Get one InboxLead
* const inboxLead = await prisma.inboxLead.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends InboxLeadFindUniqueArgs>(args: Prisma.SelectSubset<T, InboxLeadFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InboxLeadClient<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one InboxLead that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {InboxLeadFindUniqueOrThrowArgs} args - Arguments to find a InboxLead
* @example
* // Get one InboxLead
* const inboxLead = await prisma.inboxLead.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends InboxLeadFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InboxLeadFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InboxLeadClient<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first InboxLead that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InboxLeadFindFirstArgs} args - Arguments to find a InboxLead
* @example
* // Get one InboxLead
* const inboxLead = await prisma.inboxLead.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends InboxLeadFindFirstArgs>(args?: Prisma.SelectSubset<T, InboxLeadFindFirstArgs<ExtArgs>>): Prisma.Prisma__InboxLeadClient<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first InboxLead that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InboxLeadFindFirstOrThrowArgs} args - Arguments to find a InboxLead
* @example
* // Get one InboxLead
* const inboxLead = await prisma.inboxLead.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends InboxLeadFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InboxLeadFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InboxLeadClient<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more InboxLeads that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InboxLeadFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all InboxLeads
* const inboxLeads = await prisma.inboxLead.findMany()
*
* // Get first 10 InboxLeads
* const inboxLeads = await prisma.inboxLead.findMany({ take: 10 })
*
* // Only select the `id`
* const inboxLeadWithIdOnly = await prisma.inboxLead.findMany({ select: { id: true } })
*
*/
findMany<T extends InboxLeadFindManyArgs>(args?: Prisma.SelectSubset<T, InboxLeadFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a InboxLead.
* @param {InboxLeadCreateArgs} args - Arguments to create a InboxLead.
* @example
* // Create one InboxLead
* const InboxLead = await prisma.inboxLead.create({
* data: {
* // ... data to create a InboxLead
* }
* })
*
*/
create<T extends InboxLeadCreateArgs>(args: Prisma.SelectSubset<T, InboxLeadCreateArgs<ExtArgs>>): Prisma.Prisma__InboxLeadClient<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many InboxLeads.
* @param {InboxLeadCreateManyArgs} args - Arguments to create many InboxLeads.
* @example
* // Create many InboxLeads
* const inboxLead = await prisma.inboxLead.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends InboxLeadCreateManyArgs>(args?: Prisma.SelectSubset<T, InboxLeadCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many InboxLeads and returns the data saved in the database.
* @param {InboxLeadCreateManyAndReturnArgs} args - Arguments to create many InboxLeads.
* @example
* // Create many InboxLeads
* const inboxLead = await prisma.inboxLead.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many InboxLeads and only return the `id`
* const inboxLeadWithIdOnly = await prisma.inboxLead.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends InboxLeadCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InboxLeadCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a InboxLead.
* @param {InboxLeadDeleteArgs} args - Arguments to delete one InboxLead.
* @example
* // Delete one InboxLead
* const InboxLead = await prisma.inboxLead.delete({
* where: {
* // ... filter to delete one InboxLead
* }
* })
*
*/
delete<T extends InboxLeadDeleteArgs>(args: Prisma.SelectSubset<T, InboxLeadDeleteArgs<ExtArgs>>): Prisma.Prisma__InboxLeadClient<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one InboxLead.
* @param {InboxLeadUpdateArgs} args - Arguments to update one InboxLead.
* @example
* // Update one InboxLead
* const inboxLead = await prisma.inboxLead.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends InboxLeadUpdateArgs>(args: Prisma.SelectSubset<T, InboxLeadUpdateArgs<ExtArgs>>): Prisma.Prisma__InboxLeadClient<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more InboxLeads.
* @param {InboxLeadDeleteManyArgs} args - Arguments to filter InboxLeads to delete.
* @example
* // Delete a few InboxLeads
* const { count } = await prisma.inboxLead.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends InboxLeadDeleteManyArgs>(args?: Prisma.SelectSubset<T, InboxLeadDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more InboxLeads.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InboxLeadUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many InboxLeads
* const inboxLead = await prisma.inboxLead.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends InboxLeadUpdateManyArgs>(args: Prisma.SelectSubset<T, InboxLeadUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more InboxLeads and returns the data updated in the database.
* @param {InboxLeadUpdateManyAndReturnArgs} args - Arguments to update many InboxLeads.
* @example
* // Update many InboxLeads
* const inboxLead = await prisma.inboxLead.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more InboxLeads and only return the `id`
* const inboxLeadWithIdOnly = await prisma.inboxLead.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends InboxLeadUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InboxLeadUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one InboxLead.
* @param {InboxLeadUpsertArgs} args - Arguments to update or create a InboxLead.
* @example
* // Update or create a InboxLead
* const inboxLead = await prisma.inboxLead.upsert({
* create: {
* // ... data to create a InboxLead
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the InboxLead we want to update
* }
* })
*/
upsert<T extends InboxLeadUpsertArgs>(args: Prisma.SelectSubset<T, InboxLeadUpsertArgs<ExtArgs>>): Prisma.Prisma__InboxLeadClient<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of InboxLeads.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InboxLeadCountArgs} args - Arguments to filter InboxLeads to count.
* @example
* // Count the number of InboxLeads
* const count = await prisma.inboxLead.count({
* where: {
* // ... the filter for the InboxLeads we want to count
* }
* })
**/
count<T extends InboxLeadCountArgs>(
args?: Prisma.Subset<T, InboxLeadCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], InboxLeadCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a InboxLead.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InboxLeadAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends InboxLeadAggregateArgs>(args: Prisma.Subset<T, InboxLeadAggregateArgs>): Prisma.PrismaPromise<GetInboxLeadAggregateType<T>>
/**
* Group by InboxLead.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {InboxLeadGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends InboxLeadGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: InboxLeadGroupByArgs['orderBy'] }
: { orderBy?: InboxLeadGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, InboxLeadGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInboxLeadGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the InboxLead model
*/
readonly fields: InboxLeadFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for InboxLead.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__InboxLeadClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
source<T extends Prisma.InboxLead$sourceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InboxLead$sourceArgs<ExtArgs>>): Prisma.Prisma__LeadSourceClient<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the InboxLead model
*/
export interface InboxLeadFieldRefs {
readonly id: Prisma.FieldRef<"InboxLead", 'String'>
readonly createdAt: Prisma.FieldRef<"InboxLead", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"InboxLead", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"InboxLead", 'String'>
readonly createdByUserId: Prisma.FieldRef<"InboxLead", 'String'>
readonly zustaendigerUserId: Prisma.FieldRef<"InboxLead", 'String'>
readonly quelle: Prisma.FieldRef<"InboxLead", 'LeadQuelle'>
readonly quelleDetail: Prisma.FieldRef<"InboxLead", 'Json'>
readonly sourceId: Prisma.FieldRef<"InboxLead", 'String'>
readonly sourceOrigin: Prisma.FieldRef<"InboxLead", 'String'>
readonly submitterIpHash: Prisma.FieldRef<"InboxLead", 'String'>
readonly status: Prisma.FieldRef<"InboxLead", 'InboxLeadStatus'>
readonly weiterverarbeitungFreigabe: Prisma.FieldRef<"InboxLead", 'LeadWeiterverarbeitungFreigabe'>
readonly vorname: Prisma.FieldRef<"InboxLead", 'String'>
readonly nachname: Prisma.FieldRef<"InboxLead", 'String'>
readonly email: Prisma.FieldRef<"InboxLead", 'String'>
readonly telefon: Prisma.FieldRef<"InboxLead", 'String'>
readonly message: Prisma.FieldRef<"InboxLead", 'String'>
readonly rohdaten: Prisma.FieldRef<"InboxLead", 'Json'>
readonly spamScore: Prisma.FieldRef<"InboxLead", 'Int'>
readonly spamReason: Prisma.FieldRef<"InboxLead", 'String'>
readonly isQuarantined: Prisma.FieldRef<"InboxLead", 'Boolean'>
readonly konvertiertProjektId: Prisma.FieldRef<"InboxLead", 'String'>
readonly verknuepfterKontaktId: Prisma.FieldRef<"InboxLead", 'String'>
readonly convertedAt: Prisma.FieldRef<"InboxLead", 'DateTime'>
readonly lostAt: Prisma.FieldRef<"InboxLead", 'DateTime'>
readonly spamMarkedAt: Prisma.FieldRef<"InboxLead", 'DateTime'>
readonly autoDeleteAt: Prisma.FieldRef<"InboxLead", 'DateTime'>
readonly isDemoData: Prisma.FieldRef<"InboxLead", 'Boolean'>
readonly archivedAt: Prisma.FieldRef<"InboxLead", 'DateTime'>
}
// Custom InputTypes
/**
* InboxLead findUnique
*/
export type InboxLeadFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
/**
* Filter, which InboxLead to fetch.
*/
where: Prisma.InboxLeadWhereUniqueInput
}
/**
* InboxLead findUniqueOrThrow
*/
export type InboxLeadFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
/**
* Filter, which InboxLead to fetch.
*/
where: Prisma.InboxLeadWhereUniqueInput
}
/**
* InboxLead findFirst
*/
export type InboxLeadFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
/**
* Filter, which InboxLead to fetch.
*/
where?: Prisma.InboxLeadWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InboxLeads to fetch.
*/
orderBy?: Prisma.InboxLeadOrderByWithRelationInput | Prisma.InboxLeadOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for InboxLeads.
*/
cursor?: Prisma.InboxLeadWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InboxLeads from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` InboxLeads.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of InboxLeads.
*/
distinct?: Prisma.InboxLeadScalarFieldEnum | Prisma.InboxLeadScalarFieldEnum[]
}
/**
* InboxLead findFirstOrThrow
*/
export type InboxLeadFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
/**
* Filter, which InboxLead to fetch.
*/
where?: Prisma.InboxLeadWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InboxLeads to fetch.
*/
orderBy?: Prisma.InboxLeadOrderByWithRelationInput | Prisma.InboxLeadOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for InboxLeads.
*/
cursor?: Prisma.InboxLeadWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InboxLeads from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` InboxLeads.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of InboxLeads.
*/
distinct?: Prisma.InboxLeadScalarFieldEnum | Prisma.InboxLeadScalarFieldEnum[]
}
/**
* InboxLead findMany
*/
export type InboxLeadFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
/**
* Filter, which InboxLeads to fetch.
*/
where?: Prisma.InboxLeadWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of InboxLeads to fetch.
*/
orderBy?: Prisma.InboxLeadOrderByWithRelationInput | Prisma.InboxLeadOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing InboxLeads.
*/
cursor?: Prisma.InboxLeadWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` InboxLeads from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` InboxLeads.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of InboxLeads.
*/
distinct?: Prisma.InboxLeadScalarFieldEnum | Prisma.InboxLeadScalarFieldEnum[]
}
/**
* InboxLead create
*/
export type InboxLeadCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
/**
* The data needed to create a InboxLead.
*/
data: Prisma.XOR<Prisma.InboxLeadCreateInput, Prisma.InboxLeadUncheckedCreateInput>
}
/**
* InboxLead createMany
*/
export type InboxLeadCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many InboxLeads.
*/
data: Prisma.InboxLeadCreateManyInput | Prisma.InboxLeadCreateManyInput[]
skipDuplicates?: boolean
}
/**
* InboxLead createManyAndReturn
*/
export type InboxLeadCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* The data used to create many InboxLeads.
*/
data: Prisma.InboxLeadCreateManyInput | Prisma.InboxLeadCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* InboxLead update
*/
export type InboxLeadUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
/**
* The data needed to update a InboxLead.
*/
data: Prisma.XOR<Prisma.InboxLeadUpdateInput, Prisma.InboxLeadUncheckedUpdateInput>
/**
* Choose, which InboxLead to update.
*/
where: Prisma.InboxLeadWhereUniqueInput
}
/**
* InboxLead updateMany
*/
export type InboxLeadUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update InboxLeads.
*/
data: Prisma.XOR<Prisma.InboxLeadUpdateManyMutationInput, Prisma.InboxLeadUncheckedUpdateManyInput>
/**
* Filter which InboxLeads to update
*/
where?: Prisma.InboxLeadWhereInput
/**
* Limit how many InboxLeads to update.
*/
limit?: number
}
/**
* InboxLead updateManyAndReturn
*/
export type InboxLeadUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* The data used to update InboxLeads.
*/
data: Prisma.XOR<Prisma.InboxLeadUpdateManyMutationInput, Prisma.InboxLeadUncheckedUpdateManyInput>
/**
* Filter which InboxLeads to update
*/
where?: Prisma.InboxLeadWhereInput
/**
* Limit how many InboxLeads to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* InboxLead upsert
*/
export type InboxLeadUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
/**
* The filter to search for the InboxLead to update in case it exists.
*/
where: Prisma.InboxLeadWhereUniqueInput
/**
* In case the InboxLead found by the `where` argument doesn't exist, create a new InboxLead with this data.
*/
create: Prisma.XOR<Prisma.InboxLeadCreateInput, Prisma.InboxLeadUncheckedCreateInput>
/**
* In case the InboxLead was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.InboxLeadUpdateInput, Prisma.InboxLeadUncheckedUpdateInput>
}
/**
* InboxLead delete
*/
export type InboxLeadDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
/**
* Filter which InboxLead to delete.
*/
where: Prisma.InboxLeadWhereUniqueInput
}
/**
* InboxLead deleteMany
*/
export type InboxLeadDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which InboxLeads to delete
*/
where?: Prisma.InboxLeadWhereInput
/**
* Limit how many InboxLeads to delete.
*/
limit?: number
}
/**
* InboxLead.source
*/
export type InboxLead$sourceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LeadSource
*/
select?: Prisma.LeadSourceSelect<ExtArgs> | null
/**
* Omit specific fields from the LeadSource
*/
omit?: Prisma.LeadSourceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LeadSourceInclude<ExtArgs> | null
where?: Prisma.LeadSourceWhereInput
}
/**
* InboxLead without action
*/
export type InboxLeadDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the InboxLead
*/
select?: Prisma.InboxLeadSelect<ExtArgs> | null
/**
* Omit specific fields from the InboxLead
*/
omit?: Prisma.InboxLeadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.InboxLeadInclude<ExtArgs> | null
}