Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/db/generated/prisma/client/models/LeadSource.ts
T
2026-07-08 16:15:37 +02:00

1622 lines
59 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 `LeadSource` 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 LeadSource
*
*/
export type LeadSourceModel = runtime.Types.Result.DefaultSelection<Prisma.$LeadSourcePayload>
export type AggregateLeadSource = {
_count: LeadSourceCountAggregateOutputType | null
_min: LeadSourceMinAggregateOutputType | null
_max: LeadSourceMaxAggregateOutputType | null
}
export type LeadSourceMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
type: $Enums.LeadSourceType | null
key: string | null
name: string | null
displayLabel: string | null
defaultZustaendigerUserId: string | null
webhookTokenHash: string | null
pausedAt: Date | null
archivedAt: Date | null
isDemoData: boolean | null
}
export type LeadSourceMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
type: $Enums.LeadSourceType | null
key: string | null
name: string | null
displayLabel: string | null
defaultZustaendigerUserId: string | null
webhookTokenHash: string | null
pausedAt: Date | null
archivedAt: Date | null
isDemoData: boolean | null
}
export type LeadSourceCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
type: number
key: number
name: number
displayLabel: number
defaultZustaendigerUserId: number
defaultTags: number
webhookTokenHash: number
pausedAt: number
archivedAt: number
isDemoData: number
_all: number
}
export type LeadSourceMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
type?: true
key?: true
name?: true
displayLabel?: true
defaultZustaendigerUserId?: true
webhookTokenHash?: true
pausedAt?: true
archivedAt?: true
isDemoData?: true
}
export type LeadSourceMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
type?: true
key?: true
name?: true
displayLabel?: true
defaultZustaendigerUserId?: true
webhookTokenHash?: true
pausedAt?: true
archivedAt?: true
isDemoData?: true
}
export type LeadSourceCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
type?: true
key?: true
name?: true
displayLabel?: true
defaultZustaendigerUserId?: true
defaultTags?: true
webhookTokenHash?: true
pausedAt?: true
archivedAt?: true
isDemoData?: true
_all?: true
}
export type LeadSourceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which LeadSource to aggregate.
*/
where?: Prisma.LeadSourceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of LeadSources to fetch.
*/
orderBy?: Prisma.LeadSourceOrderByWithRelationInput | Prisma.LeadSourceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.LeadSourceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` LeadSources 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` LeadSources.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned LeadSources
**/
_count?: true | LeadSourceCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: LeadSourceMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: LeadSourceMaxAggregateInputType
}
export type GetLeadSourceAggregateType<T extends LeadSourceAggregateArgs> = {
[P in keyof T & keyof AggregateLeadSource]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateLeadSource[P]>
: Prisma.GetScalarType<T[P], AggregateLeadSource[P]>
}
export type LeadSourceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.LeadSourceWhereInput
orderBy?: Prisma.LeadSourceOrderByWithAggregationInput | Prisma.LeadSourceOrderByWithAggregationInput[]
by: Prisma.LeadSourceScalarFieldEnum[] | Prisma.LeadSourceScalarFieldEnum
having?: Prisma.LeadSourceScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: LeadSourceCountAggregateInputType | true
_min?: LeadSourceMinAggregateInputType
_max?: LeadSourceMaxAggregateInputType
}
export type LeadSourceGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string
type: $Enums.LeadSourceType
key: string
name: string
displayLabel: string
defaultZustaendigerUserId: string | null
defaultTags: runtime.JsonValue | null
webhookTokenHash: string | null
pausedAt: Date | null
archivedAt: Date | null
isDemoData: boolean
_count: LeadSourceCountAggregateOutputType | null
_min: LeadSourceMinAggregateOutputType | null
_max: LeadSourceMaxAggregateOutputType | null
}
export type GetLeadSourceGroupByPayload<T extends LeadSourceGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<LeadSourceGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof LeadSourceGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], LeadSourceGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], LeadSourceGroupByOutputType[P]>
}
>
>
export type LeadSourceWhereInput = {
AND?: Prisma.LeadSourceWhereInput | Prisma.LeadSourceWhereInput[]
OR?: Prisma.LeadSourceWhereInput[]
NOT?: Prisma.LeadSourceWhereInput | Prisma.LeadSourceWhereInput[]
id?: Prisma.StringFilter<"LeadSource"> | string
createdAt?: Prisma.DateTimeFilter<"LeadSource"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"LeadSource"> | Date | string
tenantId?: Prisma.StringFilter<"LeadSource"> | string
type?: Prisma.EnumLeadSourceTypeFilter<"LeadSource"> | $Enums.LeadSourceType
key?: Prisma.StringFilter<"LeadSource"> | string
name?: Prisma.StringFilter<"LeadSource"> | string
displayLabel?: Prisma.StringFilter<"LeadSource"> | string
defaultZustaendigerUserId?: Prisma.StringNullableFilter<"LeadSource"> | string | null
defaultTags?: Prisma.JsonNullableFilter<"LeadSource">
webhookTokenHash?: Prisma.StringNullableFilter<"LeadSource"> | string | null
pausedAt?: Prisma.DateTimeNullableFilter<"LeadSource"> | Date | string | null
archivedAt?: Prisma.DateTimeNullableFilter<"LeadSource"> | Date | string | null
isDemoData?: Prisma.BoolFilter<"LeadSource"> | boolean
leads?: Prisma.InboxLeadListRelationFilter
}
export type LeadSourceOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
type?: Prisma.SortOrder
key?: Prisma.SortOrder
name?: Prisma.SortOrder
displayLabel?: Prisma.SortOrder
defaultZustaendigerUserId?: Prisma.SortOrderInput | Prisma.SortOrder
defaultTags?: Prisma.SortOrderInput | Prisma.SortOrder
webhookTokenHash?: Prisma.SortOrderInput | Prisma.SortOrder
pausedAt?: Prisma.SortOrderInput | Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
leads?: Prisma.InboxLeadOrderByRelationAggregateInput
}
export type LeadSourceWhereUniqueInput = Prisma.AtLeast<{
id?: string
tenantId_key?: Prisma.LeadSourceTenantIdKeyCompoundUniqueInput
AND?: Prisma.LeadSourceWhereInput | Prisma.LeadSourceWhereInput[]
OR?: Prisma.LeadSourceWhereInput[]
NOT?: Prisma.LeadSourceWhereInput | Prisma.LeadSourceWhereInput[]
createdAt?: Prisma.DateTimeFilter<"LeadSource"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"LeadSource"> | Date | string
tenantId?: Prisma.StringFilter<"LeadSource"> | string
type?: Prisma.EnumLeadSourceTypeFilter<"LeadSource"> | $Enums.LeadSourceType
key?: Prisma.StringFilter<"LeadSource"> | string
name?: Prisma.StringFilter<"LeadSource"> | string
displayLabel?: Prisma.StringFilter<"LeadSource"> | string
defaultZustaendigerUserId?: Prisma.StringNullableFilter<"LeadSource"> | string | null
defaultTags?: Prisma.JsonNullableFilter<"LeadSource">
webhookTokenHash?: Prisma.StringNullableFilter<"LeadSource"> | string | null
pausedAt?: Prisma.DateTimeNullableFilter<"LeadSource"> | Date | string | null
archivedAt?: Prisma.DateTimeNullableFilter<"LeadSource"> | Date | string | null
isDemoData?: Prisma.BoolFilter<"LeadSource"> | boolean
leads?: Prisma.InboxLeadListRelationFilter
}, "id" | "tenantId_key">
export type LeadSourceOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
type?: Prisma.SortOrder
key?: Prisma.SortOrder
name?: Prisma.SortOrder
displayLabel?: Prisma.SortOrder
defaultZustaendigerUserId?: Prisma.SortOrderInput | Prisma.SortOrder
defaultTags?: Prisma.SortOrderInput | Prisma.SortOrder
webhookTokenHash?: Prisma.SortOrderInput | Prisma.SortOrder
pausedAt?: Prisma.SortOrderInput | Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
isDemoData?: Prisma.SortOrder
_count?: Prisma.LeadSourceCountOrderByAggregateInput
_max?: Prisma.LeadSourceMaxOrderByAggregateInput
_min?: Prisma.LeadSourceMinOrderByAggregateInput
}
export type LeadSourceScalarWhereWithAggregatesInput = {
AND?: Prisma.LeadSourceScalarWhereWithAggregatesInput | Prisma.LeadSourceScalarWhereWithAggregatesInput[]
OR?: Prisma.LeadSourceScalarWhereWithAggregatesInput[]
NOT?: Prisma.LeadSourceScalarWhereWithAggregatesInput | Prisma.LeadSourceScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"LeadSource"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"LeadSource"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"LeadSource"> | Date | string
tenantId?: Prisma.StringWithAggregatesFilter<"LeadSource"> | string
type?: Prisma.EnumLeadSourceTypeWithAggregatesFilter<"LeadSource"> | $Enums.LeadSourceType
key?: Prisma.StringWithAggregatesFilter<"LeadSource"> | string
name?: Prisma.StringWithAggregatesFilter<"LeadSource"> | string
displayLabel?: Prisma.StringWithAggregatesFilter<"LeadSource"> | string
defaultZustaendigerUserId?: Prisma.StringNullableWithAggregatesFilter<"LeadSource"> | string | null
defaultTags?: Prisma.JsonNullableWithAggregatesFilter<"LeadSource">
webhookTokenHash?: Prisma.StringNullableWithAggregatesFilter<"LeadSource"> | string | null
pausedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"LeadSource"> | Date | string | null
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"LeadSource"> | Date | string | null
isDemoData?: Prisma.BoolWithAggregatesFilter<"LeadSource"> | boolean
}
export type LeadSourceCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
type: $Enums.LeadSourceType
key: string
name: string
displayLabel: string
defaultZustaendigerUserId?: string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: string | null
pausedAt?: Date | string | null
archivedAt?: Date | string | null
isDemoData?: boolean
leads?: Prisma.InboxLeadCreateNestedManyWithoutSourceInput
}
export type LeadSourceUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
type: $Enums.LeadSourceType
key: string
name: string
displayLabel: string
defaultZustaendigerUserId?: string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: string | null
pausedAt?: Date | string | null
archivedAt?: Date | string | null
isDemoData?: boolean
leads?: Prisma.InboxLeadUncheckedCreateNestedManyWithoutSourceInput
}
export type LeadSourceUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumLeadSourceTypeFieldUpdateOperationsInput | $Enums.LeadSourceType
key?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
displayLabel?: Prisma.StringFieldUpdateOperationsInput | string
defaultZustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
leads?: Prisma.InboxLeadUpdateManyWithoutSourceNestedInput
}
export type LeadSourceUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumLeadSourceTypeFieldUpdateOperationsInput | $Enums.LeadSourceType
key?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
displayLabel?: Prisma.StringFieldUpdateOperationsInput | string
defaultZustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
leads?: Prisma.InboxLeadUncheckedUpdateManyWithoutSourceNestedInput
}
export type LeadSourceCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
type: $Enums.LeadSourceType
key: string
name: string
displayLabel: string
defaultZustaendigerUserId?: string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: string | null
pausedAt?: Date | string | null
archivedAt?: Date | string | null
isDemoData?: boolean
}
export type LeadSourceUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumLeadSourceTypeFieldUpdateOperationsInput | $Enums.LeadSourceType
key?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
displayLabel?: Prisma.StringFieldUpdateOperationsInput | string
defaultZustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type LeadSourceUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumLeadSourceTypeFieldUpdateOperationsInput | $Enums.LeadSourceType
key?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
displayLabel?: Prisma.StringFieldUpdateOperationsInput | string
defaultZustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type LeadSourceNullableScalarRelationFilter = {
is?: Prisma.LeadSourceWhereInput | null
isNot?: Prisma.LeadSourceWhereInput | null
}
export type LeadSourceTenantIdKeyCompoundUniqueInput = {
tenantId: string
key: string
}
export type LeadSourceCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
type?: Prisma.SortOrder
key?: Prisma.SortOrder
name?: Prisma.SortOrder
displayLabel?: Prisma.SortOrder
defaultZustaendigerUserId?: Prisma.SortOrder
defaultTags?: Prisma.SortOrder
webhookTokenHash?: Prisma.SortOrder
pausedAt?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
}
export type LeadSourceMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
type?: Prisma.SortOrder
key?: Prisma.SortOrder
name?: Prisma.SortOrder
displayLabel?: Prisma.SortOrder
defaultZustaendigerUserId?: Prisma.SortOrder
webhookTokenHash?: Prisma.SortOrder
pausedAt?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
}
export type LeadSourceMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
type?: Prisma.SortOrder
key?: Prisma.SortOrder
name?: Prisma.SortOrder
displayLabel?: Prisma.SortOrder
defaultZustaendigerUserId?: Prisma.SortOrder
webhookTokenHash?: Prisma.SortOrder
pausedAt?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
isDemoData?: Prisma.SortOrder
}
export type LeadSourceCreateNestedOneWithoutLeadsInput = {
create?: Prisma.XOR<Prisma.LeadSourceCreateWithoutLeadsInput, Prisma.LeadSourceUncheckedCreateWithoutLeadsInput>
connectOrCreate?: Prisma.LeadSourceCreateOrConnectWithoutLeadsInput
connect?: Prisma.LeadSourceWhereUniqueInput
}
export type LeadSourceUpdateOneWithoutLeadsNestedInput = {
create?: Prisma.XOR<Prisma.LeadSourceCreateWithoutLeadsInput, Prisma.LeadSourceUncheckedCreateWithoutLeadsInput>
connectOrCreate?: Prisma.LeadSourceCreateOrConnectWithoutLeadsInput
upsert?: Prisma.LeadSourceUpsertWithoutLeadsInput
disconnect?: Prisma.LeadSourceWhereInput | boolean
delete?: Prisma.LeadSourceWhereInput | boolean
connect?: Prisma.LeadSourceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.LeadSourceUpdateToOneWithWhereWithoutLeadsInput, Prisma.LeadSourceUpdateWithoutLeadsInput>, Prisma.LeadSourceUncheckedUpdateWithoutLeadsInput>
}
export type EnumLeadSourceTypeFieldUpdateOperationsInput = {
set?: $Enums.LeadSourceType
}
export type LeadSourceCreateWithoutLeadsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
type: $Enums.LeadSourceType
key: string
name: string
displayLabel: string
defaultZustaendigerUserId?: string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: string | null
pausedAt?: Date | string | null
archivedAt?: Date | string | null
isDemoData?: boolean
}
export type LeadSourceUncheckedCreateWithoutLeadsInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
type: $Enums.LeadSourceType
key: string
name: string
displayLabel: string
defaultZustaendigerUserId?: string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: string | null
pausedAt?: Date | string | null
archivedAt?: Date | string | null
isDemoData?: boolean
}
export type LeadSourceCreateOrConnectWithoutLeadsInput = {
where: Prisma.LeadSourceWhereUniqueInput
create: Prisma.XOR<Prisma.LeadSourceCreateWithoutLeadsInput, Prisma.LeadSourceUncheckedCreateWithoutLeadsInput>
}
export type LeadSourceUpsertWithoutLeadsInput = {
update: Prisma.XOR<Prisma.LeadSourceUpdateWithoutLeadsInput, Prisma.LeadSourceUncheckedUpdateWithoutLeadsInput>
create: Prisma.XOR<Prisma.LeadSourceCreateWithoutLeadsInput, Prisma.LeadSourceUncheckedCreateWithoutLeadsInput>
where?: Prisma.LeadSourceWhereInput
}
export type LeadSourceUpdateToOneWithWhereWithoutLeadsInput = {
where?: Prisma.LeadSourceWhereInput
data: Prisma.XOR<Prisma.LeadSourceUpdateWithoutLeadsInput, Prisma.LeadSourceUncheckedUpdateWithoutLeadsInput>
}
export type LeadSourceUpdateWithoutLeadsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumLeadSourceTypeFieldUpdateOperationsInput | $Enums.LeadSourceType
key?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
displayLabel?: Prisma.StringFieldUpdateOperationsInput | string
defaultZustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type LeadSourceUncheckedUpdateWithoutLeadsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumLeadSourceTypeFieldUpdateOperationsInput | $Enums.LeadSourceType
key?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
displayLabel?: Prisma.StringFieldUpdateOperationsInput | string
defaultZustaendigerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
defaultTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pausedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
/**
* Count Type LeadSourceCountOutputType
*/
export type LeadSourceCountOutputType = {
leads: number
}
export type LeadSourceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
leads?: boolean | LeadSourceCountOutputTypeCountLeadsArgs
}
/**
* LeadSourceCountOutputType without action
*/
export type LeadSourceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LeadSourceCountOutputType
*/
select?: Prisma.LeadSourceCountOutputTypeSelect<ExtArgs> | null
}
/**
* LeadSourceCountOutputType without action
*/
export type LeadSourceCountOutputTypeCountLeadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.InboxLeadWhereInput
}
export type LeadSourceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
type?: boolean
key?: boolean
name?: boolean
displayLabel?: boolean
defaultZustaendigerUserId?: boolean
defaultTags?: boolean
webhookTokenHash?: boolean
pausedAt?: boolean
archivedAt?: boolean
isDemoData?: boolean
leads?: boolean | Prisma.LeadSource$leadsArgs<ExtArgs>
_count?: boolean | Prisma.LeadSourceCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["leadSource"]>
export type LeadSourceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
type?: boolean
key?: boolean
name?: boolean
displayLabel?: boolean
defaultZustaendigerUserId?: boolean
defaultTags?: boolean
webhookTokenHash?: boolean
pausedAt?: boolean
archivedAt?: boolean
isDemoData?: boolean
}, ExtArgs["result"]["leadSource"]>
export type LeadSourceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
type?: boolean
key?: boolean
name?: boolean
displayLabel?: boolean
defaultZustaendigerUserId?: boolean
defaultTags?: boolean
webhookTokenHash?: boolean
pausedAt?: boolean
archivedAt?: boolean
isDemoData?: boolean
}, ExtArgs["result"]["leadSource"]>
export type LeadSourceSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
type?: boolean
key?: boolean
name?: boolean
displayLabel?: boolean
defaultZustaendigerUserId?: boolean
defaultTags?: boolean
webhookTokenHash?: boolean
pausedAt?: boolean
archivedAt?: boolean
isDemoData?: boolean
}
export type LeadSourceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "type" | "key" | "name" | "displayLabel" | "defaultZustaendigerUserId" | "defaultTags" | "webhookTokenHash" | "pausedAt" | "archivedAt" | "isDemoData", ExtArgs["result"]["leadSource"]>
export type LeadSourceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
leads?: boolean | Prisma.LeadSource$leadsArgs<ExtArgs>
_count?: boolean | Prisma.LeadSourceCountOutputTypeDefaultArgs<ExtArgs>
}
export type LeadSourceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type LeadSourceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type $LeadSourcePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "LeadSource"
objects: {
leads: Prisma.$InboxLeadPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string
type: $Enums.LeadSourceType
key: string
name: string
displayLabel: string
defaultZustaendigerUserId: string | null
defaultTags: runtime.JsonValue | null
webhookTokenHash: string | null
pausedAt: Date | null
archivedAt: Date | null
isDemoData: boolean
}, ExtArgs["result"]["leadSource"]>
composites: {}
}
export type LeadSourceGetPayload<S extends boolean | null | undefined | LeadSourceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload, S>
export type LeadSourceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<LeadSourceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: LeadSourceCountAggregateInputType | true
}
export interface LeadSourceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LeadSource'], meta: { name: 'LeadSource' } }
/**
* Find zero or one LeadSource that matches the filter.
* @param {LeadSourceFindUniqueArgs} args - Arguments to find a LeadSource
* @example
* // Get one LeadSource
* const leadSource = await prisma.leadSource.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends LeadSourceFindUniqueArgs>(args: Prisma.SelectSubset<T, LeadSourceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LeadSourceClient<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one LeadSource that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {LeadSourceFindUniqueOrThrowArgs} args - Arguments to find a LeadSource
* @example
* // Get one LeadSource
* const leadSource = await prisma.leadSource.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends LeadSourceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LeadSourceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LeadSourceClient<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first LeadSource 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 {LeadSourceFindFirstArgs} args - Arguments to find a LeadSource
* @example
* // Get one LeadSource
* const leadSource = await prisma.leadSource.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends LeadSourceFindFirstArgs>(args?: Prisma.SelectSubset<T, LeadSourceFindFirstArgs<ExtArgs>>): Prisma.Prisma__LeadSourceClient<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first LeadSource 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 {LeadSourceFindFirstOrThrowArgs} args - Arguments to find a LeadSource
* @example
* // Get one LeadSource
* const leadSource = await prisma.leadSource.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends LeadSourceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LeadSourceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LeadSourceClient<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more LeadSources 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 {LeadSourceFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all LeadSources
* const leadSources = await prisma.leadSource.findMany()
*
* // Get first 10 LeadSources
* const leadSources = await prisma.leadSource.findMany({ take: 10 })
*
* // Only select the `id`
* const leadSourceWithIdOnly = await prisma.leadSource.findMany({ select: { id: true } })
*
*/
findMany<T extends LeadSourceFindManyArgs>(args?: Prisma.SelectSubset<T, LeadSourceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a LeadSource.
* @param {LeadSourceCreateArgs} args - Arguments to create a LeadSource.
* @example
* // Create one LeadSource
* const LeadSource = await prisma.leadSource.create({
* data: {
* // ... data to create a LeadSource
* }
* })
*
*/
create<T extends LeadSourceCreateArgs>(args: Prisma.SelectSubset<T, LeadSourceCreateArgs<ExtArgs>>): Prisma.Prisma__LeadSourceClient<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many LeadSources.
* @param {LeadSourceCreateManyArgs} args - Arguments to create many LeadSources.
* @example
* // Create many LeadSources
* const leadSource = await prisma.leadSource.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends LeadSourceCreateManyArgs>(args?: Prisma.SelectSubset<T, LeadSourceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many LeadSources and returns the data saved in the database.
* @param {LeadSourceCreateManyAndReturnArgs} args - Arguments to create many LeadSources.
* @example
* // Create many LeadSources
* const leadSource = await prisma.leadSource.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many LeadSources and only return the `id`
* const leadSourceWithIdOnly = await prisma.leadSource.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 LeadSourceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LeadSourceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a LeadSource.
* @param {LeadSourceDeleteArgs} args - Arguments to delete one LeadSource.
* @example
* // Delete one LeadSource
* const LeadSource = await prisma.leadSource.delete({
* where: {
* // ... filter to delete one LeadSource
* }
* })
*
*/
delete<T extends LeadSourceDeleteArgs>(args: Prisma.SelectSubset<T, LeadSourceDeleteArgs<ExtArgs>>): Prisma.Prisma__LeadSourceClient<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one LeadSource.
* @param {LeadSourceUpdateArgs} args - Arguments to update one LeadSource.
* @example
* // Update one LeadSource
* const leadSource = await prisma.leadSource.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends LeadSourceUpdateArgs>(args: Prisma.SelectSubset<T, LeadSourceUpdateArgs<ExtArgs>>): Prisma.Prisma__LeadSourceClient<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more LeadSources.
* @param {LeadSourceDeleteManyArgs} args - Arguments to filter LeadSources to delete.
* @example
* // Delete a few LeadSources
* const { count } = await prisma.leadSource.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends LeadSourceDeleteManyArgs>(args?: Prisma.SelectSubset<T, LeadSourceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more LeadSources.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LeadSourceUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many LeadSources
* const leadSource = await prisma.leadSource.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends LeadSourceUpdateManyArgs>(args: Prisma.SelectSubset<T, LeadSourceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more LeadSources and returns the data updated in the database.
* @param {LeadSourceUpdateManyAndReturnArgs} args - Arguments to update many LeadSources.
* @example
* // Update many LeadSources
* const leadSource = await prisma.leadSource.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more LeadSources and only return the `id`
* const leadSourceWithIdOnly = await prisma.leadSource.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 LeadSourceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LeadSourceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one LeadSource.
* @param {LeadSourceUpsertArgs} args - Arguments to update or create a LeadSource.
* @example
* // Update or create a LeadSource
* const leadSource = await prisma.leadSource.upsert({
* create: {
* // ... data to create a LeadSource
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the LeadSource we want to update
* }
* })
*/
upsert<T extends LeadSourceUpsertArgs>(args: Prisma.SelectSubset<T, LeadSourceUpsertArgs<ExtArgs>>): Prisma.Prisma__LeadSourceClient<runtime.Types.Result.GetResult<Prisma.$LeadSourcePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of LeadSources.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LeadSourceCountArgs} args - Arguments to filter LeadSources to count.
* @example
* // Count the number of LeadSources
* const count = await prisma.leadSource.count({
* where: {
* // ... the filter for the LeadSources we want to count
* }
* })
**/
count<T extends LeadSourceCountArgs>(
args?: Prisma.Subset<T, LeadSourceCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], LeadSourceCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a LeadSource.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LeadSourceAggregateArgs} 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 LeadSourceAggregateArgs>(args: Prisma.Subset<T, LeadSourceAggregateArgs>): Prisma.PrismaPromise<GetLeadSourceAggregateType<T>>
/**
* Group by LeadSource.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {LeadSourceGroupByArgs} 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 LeadSourceGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: LeadSourceGroupByArgs['orderBy'] }
: { orderBy?: LeadSourceGroupByArgs['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, LeadSourceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLeadSourceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the LeadSource model
*/
readonly fields: LeadSourceFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for LeadSource.
* 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__LeadSourceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
leads<T extends Prisma.LeadSource$leadsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LeadSource$leadsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InboxLeadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* 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 LeadSource model
*/
export interface LeadSourceFieldRefs {
readonly id: Prisma.FieldRef<"LeadSource", 'String'>
readonly createdAt: Prisma.FieldRef<"LeadSource", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"LeadSource", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"LeadSource", 'String'>
readonly type: Prisma.FieldRef<"LeadSource", 'LeadSourceType'>
readonly key: Prisma.FieldRef<"LeadSource", 'String'>
readonly name: Prisma.FieldRef<"LeadSource", 'String'>
readonly displayLabel: Prisma.FieldRef<"LeadSource", 'String'>
readonly defaultZustaendigerUserId: Prisma.FieldRef<"LeadSource", 'String'>
readonly defaultTags: Prisma.FieldRef<"LeadSource", 'Json'>
readonly webhookTokenHash: Prisma.FieldRef<"LeadSource", 'String'>
readonly pausedAt: Prisma.FieldRef<"LeadSource", 'DateTime'>
readonly archivedAt: Prisma.FieldRef<"LeadSource", 'DateTime'>
readonly isDemoData: Prisma.FieldRef<"LeadSource", 'Boolean'>
}
// Custom InputTypes
/**
* LeadSource findUnique
*/
export type LeadSourceFindUniqueArgs<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
/**
* Filter, which LeadSource to fetch.
*/
where: Prisma.LeadSourceWhereUniqueInput
}
/**
* LeadSource findUniqueOrThrow
*/
export type LeadSourceFindUniqueOrThrowArgs<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
/**
* Filter, which LeadSource to fetch.
*/
where: Prisma.LeadSourceWhereUniqueInput
}
/**
* LeadSource findFirst
*/
export type LeadSourceFindFirstArgs<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
/**
* Filter, which LeadSource to fetch.
*/
where?: Prisma.LeadSourceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of LeadSources to fetch.
*/
orderBy?: Prisma.LeadSourceOrderByWithRelationInput | Prisma.LeadSourceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for LeadSources.
*/
cursor?: Prisma.LeadSourceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` LeadSources 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` LeadSources.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of LeadSources.
*/
distinct?: Prisma.LeadSourceScalarFieldEnum | Prisma.LeadSourceScalarFieldEnum[]
}
/**
* LeadSource findFirstOrThrow
*/
export type LeadSourceFindFirstOrThrowArgs<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
/**
* Filter, which LeadSource to fetch.
*/
where?: Prisma.LeadSourceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of LeadSources to fetch.
*/
orderBy?: Prisma.LeadSourceOrderByWithRelationInput | Prisma.LeadSourceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for LeadSources.
*/
cursor?: Prisma.LeadSourceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` LeadSources 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` LeadSources.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of LeadSources.
*/
distinct?: Prisma.LeadSourceScalarFieldEnum | Prisma.LeadSourceScalarFieldEnum[]
}
/**
* LeadSource findMany
*/
export type LeadSourceFindManyArgs<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
/**
* Filter, which LeadSources to fetch.
*/
where?: Prisma.LeadSourceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of LeadSources to fetch.
*/
orderBy?: Prisma.LeadSourceOrderByWithRelationInput | Prisma.LeadSourceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing LeadSources.
*/
cursor?: Prisma.LeadSourceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` LeadSources 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` LeadSources.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of LeadSources.
*/
distinct?: Prisma.LeadSourceScalarFieldEnum | Prisma.LeadSourceScalarFieldEnum[]
}
/**
* LeadSource create
*/
export type LeadSourceCreateArgs<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
/**
* The data needed to create a LeadSource.
*/
data: Prisma.XOR<Prisma.LeadSourceCreateInput, Prisma.LeadSourceUncheckedCreateInput>
}
/**
* LeadSource createMany
*/
export type LeadSourceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many LeadSources.
*/
data: Prisma.LeadSourceCreateManyInput | Prisma.LeadSourceCreateManyInput[]
skipDuplicates?: boolean
}
/**
* LeadSource createManyAndReturn
*/
export type LeadSourceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LeadSource
*/
select?: Prisma.LeadSourceSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the LeadSource
*/
omit?: Prisma.LeadSourceOmit<ExtArgs> | null
/**
* The data used to create many LeadSources.
*/
data: Prisma.LeadSourceCreateManyInput | Prisma.LeadSourceCreateManyInput[]
skipDuplicates?: boolean
}
/**
* LeadSource update
*/
export type LeadSourceUpdateArgs<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
/**
* The data needed to update a LeadSource.
*/
data: Prisma.XOR<Prisma.LeadSourceUpdateInput, Prisma.LeadSourceUncheckedUpdateInput>
/**
* Choose, which LeadSource to update.
*/
where: Prisma.LeadSourceWhereUniqueInput
}
/**
* LeadSource updateMany
*/
export type LeadSourceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update LeadSources.
*/
data: Prisma.XOR<Prisma.LeadSourceUpdateManyMutationInput, Prisma.LeadSourceUncheckedUpdateManyInput>
/**
* Filter which LeadSources to update
*/
where?: Prisma.LeadSourceWhereInput
/**
* Limit how many LeadSources to update.
*/
limit?: number
}
/**
* LeadSource updateManyAndReturn
*/
export type LeadSourceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the LeadSource
*/
select?: Prisma.LeadSourceSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the LeadSource
*/
omit?: Prisma.LeadSourceOmit<ExtArgs> | null
/**
* The data used to update LeadSources.
*/
data: Prisma.XOR<Prisma.LeadSourceUpdateManyMutationInput, Prisma.LeadSourceUncheckedUpdateManyInput>
/**
* Filter which LeadSources to update
*/
where?: Prisma.LeadSourceWhereInput
/**
* Limit how many LeadSources to update.
*/
limit?: number
}
/**
* LeadSource upsert
*/
export type LeadSourceUpsertArgs<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
/**
* The filter to search for the LeadSource to update in case it exists.
*/
where: Prisma.LeadSourceWhereUniqueInput
/**
* In case the LeadSource found by the `where` argument doesn't exist, create a new LeadSource with this data.
*/
create: Prisma.XOR<Prisma.LeadSourceCreateInput, Prisma.LeadSourceUncheckedCreateInput>
/**
* In case the LeadSource was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.LeadSourceUpdateInput, Prisma.LeadSourceUncheckedUpdateInput>
}
/**
* LeadSource delete
*/
export type LeadSourceDeleteArgs<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
/**
* Filter which LeadSource to delete.
*/
where: Prisma.LeadSourceWhereUniqueInput
}
/**
* LeadSource deleteMany
*/
export type LeadSourceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which LeadSources to delete
*/
where?: Prisma.LeadSourceWhereInput
/**
* Limit how many LeadSources to delete.
*/
limit?: number
}
/**
* LeadSource.leads
*/
export type LeadSource$leadsArgs<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
where?: Prisma.InboxLeadWhereInput
orderBy?: Prisma.InboxLeadOrderByWithRelationInput | Prisma.InboxLeadOrderByWithRelationInput[]
cursor?: Prisma.InboxLeadWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.InboxLeadScalarFieldEnum | Prisma.InboxLeadScalarFieldEnum[]
}
/**
* LeadSource without action
*/
export type LeadSourceDefaultArgs<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
}