/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateLeadSource]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type LeadSourceGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof LeadSourceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 connectOrCreate?: Prisma.LeadSourceCreateOrConnectWithoutLeadsInput connect?: Prisma.LeadSourceWhereUniqueInput } export type LeadSourceUpdateOneWithoutLeadsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.LeadSourceCreateOrConnectWithoutLeadsInput upsert?: Prisma.LeadSourceUpsertWithoutLeadsInput disconnect?: Prisma.LeadSourceWhereInput | boolean delete?: Prisma.LeadSourceWhereInput | boolean connect?: Prisma.LeadSourceWhereUniqueInput update?: Prisma.XOR, 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 } export type LeadSourceUpsertWithoutLeadsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.LeadSourceWhereInput } export type LeadSourceUpdateToOneWithWhereWithoutLeadsInput = { where?: Prisma.LeadSourceWhereInput data: Prisma.XOR } 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 = { leads?: boolean | LeadSourceCountOutputTypeCountLeadsArgs } /** * LeadSourceCountOutputType without action */ export type LeadSourceCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the LeadSourceCountOutputType */ select?: Prisma.LeadSourceCountOutputTypeSelect | null } /** * LeadSourceCountOutputType without action */ export type LeadSourceCountOutputTypeCountLeadsArgs = { where?: Prisma.InboxLeadWhereInput } export type LeadSourceSelect = 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 _count?: boolean | Prisma.LeadSourceCountOutputTypeDefaultArgs }, ExtArgs["result"]["leadSource"]> export type LeadSourceSelectCreateManyAndReturn = 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "type" | "key" | "name" | "displayLabel" | "defaultZustaendigerUserId" | "defaultTags" | "webhookTokenHash" | "pausedAt" | "archivedAt" | "isDemoData", ExtArgs["result"]["leadSource"]> export type LeadSourceInclude = { leads?: boolean | Prisma.LeadSource$leadsArgs _count?: boolean | Prisma.LeadSourceCountOutputTypeDefaultArgs } export type LeadSourceIncludeCreateManyAndReturn = {} export type LeadSourceIncludeUpdateManyAndReturn = {} export type $LeadSourcePayload = { name: "LeadSource" objects: { leads: Prisma.$InboxLeadPayload[] } 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 = runtime.Types.Result.GetResult export type LeadSourceCountArgs = Omit & { select?: LeadSourceCountAggregateInputType | true } export interface LeadSourceDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__LeadSourceClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__LeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__LeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__LeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__LeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__LeadSourceClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__LeadSourceClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__LeadSourceClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: LeadSourceGroupByArgs['orderBy'] } : { orderBy?: LeadSourceGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetLeadSourceGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" leads = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | null /** * Filter, which LeadSource to fetch. */ where: Prisma.LeadSourceWhereUniqueInput } /** * LeadSource findUniqueOrThrow */ export type LeadSourceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | null /** * Filter, which LeadSource to fetch. */ where: Prisma.LeadSourceWhereUniqueInput } /** * LeadSource findFirst */ export type LeadSourceFindFirstArgs = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | 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 = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | 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 = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | 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 = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | null /** * The data needed to create a LeadSource. */ data: Prisma.XOR } /** * LeadSource createMany */ export type LeadSourceCreateManyArgs = { /** * The data used to create many LeadSources. */ data: Prisma.LeadSourceCreateManyInput | Prisma.LeadSourceCreateManyInput[] skipDuplicates?: boolean } /** * LeadSource createManyAndReturn */ export type LeadSourceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelectCreateManyAndReturn | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * The data used to create many LeadSources. */ data: Prisma.LeadSourceCreateManyInput | Prisma.LeadSourceCreateManyInput[] skipDuplicates?: boolean } /** * LeadSource update */ export type LeadSourceUpdateArgs = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | null /** * The data needed to update a LeadSource. */ data: Prisma.XOR /** * Choose, which LeadSource to update. */ where: Prisma.LeadSourceWhereUniqueInput } /** * LeadSource updateMany */ export type LeadSourceUpdateManyArgs = { /** * The data used to update LeadSources. */ data: Prisma.XOR /** * Filter which LeadSources to update */ where?: Prisma.LeadSourceWhereInput /** * Limit how many LeadSources to update. */ limit?: number } /** * LeadSource updateManyAndReturn */ export type LeadSourceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelectUpdateManyAndReturn | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * The data used to update LeadSources. */ data: Prisma.XOR /** * Filter which LeadSources to update */ where?: Prisma.LeadSourceWhereInput /** * Limit how many LeadSources to update. */ limit?: number } /** * LeadSource upsert */ export type LeadSourceUpsertArgs = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | 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 /** * In case the LeadSource was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * LeadSource delete */ export type LeadSourceDeleteArgs = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | null /** * Filter which LeadSource to delete. */ where: Prisma.LeadSourceWhereUniqueInput } /** * LeadSource deleteMany */ export type LeadSourceDeleteManyArgs = { /** * Filter which LeadSources to delete */ where?: Prisma.LeadSourceWhereInput /** * Limit how many LeadSources to delete. */ limit?: number } /** * LeadSource.leads */ export type LeadSource$leadsArgs = { /** * Select specific fields to fetch from the InboxLead */ select?: Prisma.InboxLeadSelect | null /** * Omit specific fields from the InboxLead */ omit?: Prisma.InboxLeadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InboxLeadInclude | 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 = { /** * Select specific fields to fetch from the LeadSource */ select?: Prisma.LeadSourceSelect | null /** * Omit specific fields from the LeadSource */ omit?: Prisma.LeadSourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeadSourceInclude | null }