/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `KontaktEmail` 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 KontaktEmail * One of a contact's e-mail addresses. Exactly one carries `primaer = true` * (enforced in the service), mirrored to `Kontakt.primaerEmail`. */ export type KontaktEmailModel = runtime.Types.Result.DefaultSelection export type AggregateKontaktEmail = { _count: KontaktEmailCountAggregateOutputType | null _min: KontaktEmailMinAggregateOutputType | null _max: KontaktEmailMaxAggregateOutputType | null } export type KontaktEmailMinAggregateOutputType = { id: string | null createdAt: Date | null tenantId: string | null kontaktId: string | null email: string | null primaer: boolean | null } export type KontaktEmailMaxAggregateOutputType = { id: string | null createdAt: Date | null tenantId: string | null kontaktId: string | null email: string | null primaer: boolean | null } export type KontaktEmailCountAggregateOutputType = { id: number createdAt: number tenantId: number kontaktId: number email: number primaer: number _all: number } export type KontaktEmailMinAggregateInputType = { id?: true createdAt?: true tenantId?: true kontaktId?: true email?: true primaer?: true } export type KontaktEmailMaxAggregateInputType = { id?: true createdAt?: true tenantId?: true kontaktId?: true email?: true primaer?: true } export type KontaktEmailCountAggregateInputType = { id?: true createdAt?: true tenantId?: true kontaktId?: true email?: true primaer?: true _all?: true } export type KontaktEmailAggregateArgs = { /** * Filter which KontaktEmail to aggregate. */ where?: Prisma.KontaktEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KontaktEmails to fetch. */ orderBy?: Prisma.KontaktEmailOrderByWithRelationInput | Prisma.KontaktEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.KontaktEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KontaktEmails 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` KontaktEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned KontaktEmails **/ _count?: true | KontaktEmailCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: KontaktEmailMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: KontaktEmailMaxAggregateInputType } export type GetKontaktEmailAggregateType = { [P in keyof T & keyof AggregateKontaktEmail]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type KontaktEmailGroupByArgs = { where?: Prisma.KontaktEmailWhereInput orderBy?: Prisma.KontaktEmailOrderByWithAggregationInput | Prisma.KontaktEmailOrderByWithAggregationInput[] by: Prisma.KontaktEmailScalarFieldEnum[] | Prisma.KontaktEmailScalarFieldEnum having?: Prisma.KontaktEmailScalarWhereWithAggregatesInput take?: number skip?: number _count?: KontaktEmailCountAggregateInputType | true _min?: KontaktEmailMinAggregateInputType _max?: KontaktEmailMaxAggregateInputType } export type KontaktEmailGroupByOutputType = { id: string createdAt: Date tenantId: string kontaktId: string email: string primaer: boolean _count: KontaktEmailCountAggregateOutputType | null _min: KontaktEmailMinAggregateOutputType | null _max: KontaktEmailMaxAggregateOutputType | null } export type GetKontaktEmailGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof KontaktEmailGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type KontaktEmailWhereInput = { AND?: Prisma.KontaktEmailWhereInput | Prisma.KontaktEmailWhereInput[] OR?: Prisma.KontaktEmailWhereInput[] NOT?: Prisma.KontaktEmailWhereInput | Prisma.KontaktEmailWhereInput[] id?: Prisma.StringFilter<"KontaktEmail"> | string createdAt?: Prisma.DateTimeFilter<"KontaktEmail"> | Date | string tenantId?: Prisma.StringFilter<"KontaktEmail"> | string kontaktId?: Prisma.StringFilter<"KontaktEmail"> | string email?: Prisma.StringFilter<"KontaktEmail"> | string primaer?: Prisma.BoolFilter<"KontaktEmail"> | boolean kontakt?: Prisma.XOR } export type KontaktEmailOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder kontaktId?: Prisma.SortOrder email?: Prisma.SortOrder primaer?: Prisma.SortOrder kontakt?: Prisma.KontaktOrderByWithRelationInput } export type KontaktEmailWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.KontaktEmailWhereInput | Prisma.KontaktEmailWhereInput[] OR?: Prisma.KontaktEmailWhereInput[] NOT?: Prisma.KontaktEmailWhereInput | Prisma.KontaktEmailWhereInput[] createdAt?: Prisma.DateTimeFilter<"KontaktEmail"> | Date | string tenantId?: Prisma.StringFilter<"KontaktEmail"> | string kontaktId?: Prisma.StringFilter<"KontaktEmail"> | string email?: Prisma.StringFilter<"KontaktEmail"> | string primaer?: Prisma.BoolFilter<"KontaktEmail"> | boolean kontakt?: Prisma.XOR }, "id"> export type KontaktEmailOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder kontaktId?: Prisma.SortOrder email?: Prisma.SortOrder primaer?: Prisma.SortOrder _count?: Prisma.KontaktEmailCountOrderByAggregateInput _max?: Prisma.KontaktEmailMaxOrderByAggregateInput _min?: Prisma.KontaktEmailMinOrderByAggregateInput } export type KontaktEmailScalarWhereWithAggregatesInput = { AND?: Prisma.KontaktEmailScalarWhereWithAggregatesInput | Prisma.KontaktEmailScalarWhereWithAggregatesInput[] OR?: Prisma.KontaktEmailScalarWhereWithAggregatesInput[] NOT?: Prisma.KontaktEmailScalarWhereWithAggregatesInput | Prisma.KontaktEmailScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"KontaktEmail"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"KontaktEmail"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"KontaktEmail"> | string kontaktId?: Prisma.StringWithAggregatesFilter<"KontaktEmail"> | string email?: Prisma.StringWithAggregatesFilter<"KontaktEmail"> | string primaer?: Prisma.BoolWithAggregatesFilter<"KontaktEmail"> | boolean } export type KontaktEmailCreateInput = { id?: string createdAt?: Date | string tenantId: string email: string primaer?: boolean kontakt: Prisma.KontaktCreateNestedOneWithoutEmailsInput } export type KontaktEmailUncheckedCreateInput = { id?: string createdAt?: Date | string tenantId: string kontaktId: string email: string primaer?: boolean } export type KontaktEmailUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string primaer?: Prisma.BoolFieldUpdateOperationsInput | boolean kontakt?: Prisma.KontaktUpdateOneRequiredWithoutEmailsNestedInput } export type KontaktEmailUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string kontaktId?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string primaer?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type KontaktEmailCreateManyInput = { id?: string createdAt?: Date | string tenantId: string kontaktId: string email: string primaer?: boolean } export type KontaktEmailUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string primaer?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type KontaktEmailUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string kontaktId?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string primaer?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type KontaktEmailListRelationFilter = { every?: Prisma.KontaktEmailWhereInput some?: Prisma.KontaktEmailWhereInput none?: Prisma.KontaktEmailWhereInput } export type KontaktEmailOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type KontaktEmailCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder kontaktId?: Prisma.SortOrder email?: Prisma.SortOrder primaer?: Prisma.SortOrder } export type KontaktEmailMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder kontaktId?: Prisma.SortOrder email?: Prisma.SortOrder primaer?: Prisma.SortOrder } export type KontaktEmailMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder kontaktId?: Prisma.SortOrder email?: Prisma.SortOrder primaer?: Prisma.SortOrder } export type KontaktEmailCreateNestedManyWithoutKontaktInput = { create?: Prisma.XOR | Prisma.KontaktEmailCreateWithoutKontaktInput[] | Prisma.KontaktEmailUncheckedCreateWithoutKontaktInput[] connectOrCreate?: Prisma.KontaktEmailCreateOrConnectWithoutKontaktInput | Prisma.KontaktEmailCreateOrConnectWithoutKontaktInput[] createMany?: Prisma.KontaktEmailCreateManyKontaktInputEnvelope connect?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] } export type KontaktEmailUncheckedCreateNestedManyWithoutKontaktInput = { create?: Prisma.XOR | Prisma.KontaktEmailCreateWithoutKontaktInput[] | Prisma.KontaktEmailUncheckedCreateWithoutKontaktInput[] connectOrCreate?: Prisma.KontaktEmailCreateOrConnectWithoutKontaktInput | Prisma.KontaktEmailCreateOrConnectWithoutKontaktInput[] createMany?: Prisma.KontaktEmailCreateManyKontaktInputEnvelope connect?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] } export type KontaktEmailUpdateManyWithoutKontaktNestedInput = { create?: Prisma.XOR | Prisma.KontaktEmailCreateWithoutKontaktInput[] | Prisma.KontaktEmailUncheckedCreateWithoutKontaktInput[] connectOrCreate?: Prisma.KontaktEmailCreateOrConnectWithoutKontaktInput | Prisma.KontaktEmailCreateOrConnectWithoutKontaktInput[] upsert?: Prisma.KontaktEmailUpsertWithWhereUniqueWithoutKontaktInput | Prisma.KontaktEmailUpsertWithWhereUniqueWithoutKontaktInput[] createMany?: Prisma.KontaktEmailCreateManyKontaktInputEnvelope set?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] disconnect?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] delete?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] connect?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] update?: Prisma.KontaktEmailUpdateWithWhereUniqueWithoutKontaktInput | Prisma.KontaktEmailUpdateWithWhereUniqueWithoutKontaktInput[] updateMany?: Prisma.KontaktEmailUpdateManyWithWhereWithoutKontaktInput | Prisma.KontaktEmailUpdateManyWithWhereWithoutKontaktInput[] deleteMany?: Prisma.KontaktEmailScalarWhereInput | Prisma.KontaktEmailScalarWhereInput[] } export type KontaktEmailUncheckedUpdateManyWithoutKontaktNestedInput = { create?: Prisma.XOR | Prisma.KontaktEmailCreateWithoutKontaktInput[] | Prisma.KontaktEmailUncheckedCreateWithoutKontaktInput[] connectOrCreate?: Prisma.KontaktEmailCreateOrConnectWithoutKontaktInput | Prisma.KontaktEmailCreateOrConnectWithoutKontaktInput[] upsert?: Prisma.KontaktEmailUpsertWithWhereUniqueWithoutKontaktInput | Prisma.KontaktEmailUpsertWithWhereUniqueWithoutKontaktInput[] createMany?: Prisma.KontaktEmailCreateManyKontaktInputEnvelope set?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] disconnect?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] delete?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] connect?: Prisma.KontaktEmailWhereUniqueInput | Prisma.KontaktEmailWhereUniqueInput[] update?: Prisma.KontaktEmailUpdateWithWhereUniqueWithoutKontaktInput | Prisma.KontaktEmailUpdateWithWhereUniqueWithoutKontaktInput[] updateMany?: Prisma.KontaktEmailUpdateManyWithWhereWithoutKontaktInput | Prisma.KontaktEmailUpdateManyWithWhereWithoutKontaktInput[] deleteMany?: Prisma.KontaktEmailScalarWhereInput | Prisma.KontaktEmailScalarWhereInput[] } export type KontaktEmailCreateWithoutKontaktInput = { id?: string createdAt?: Date | string tenantId: string email: string primaer?: boolean } export type KontaktEmailUncheckedCreateWithoutKontaktInput = { id?: string createdAt?: Date | string tenantId: string email: string primaer?: boolean } export type KontaktEmailCreateOrConnectWithoutKontaktInput = { where: Prisma.KontaktEmailWhereUniqueInput create: Prisma.XOR } export type KontaktEmailCreateManyKontaktInputEnvelope = { data: Prisma.KontaktEmailCreateManyKontaktInput | Prisma.KontaktEmailCreateManyKontaktInput[] skipDuplicates?: boolean } export type KontaktEmailUpsertWithWhereUniqueWithoutKontaktInput = { where: Prisma.KontaktEmailWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type KontaktEmailUpdateWithWhereUniqueWithoutKontaktInput = { where: Prisma.KontaktEmailWhereUniqueInput data: Prisma.XOR } export type KontaktEmailUpdateManyWithWhereWithoutKontaktInput = { where: Prisma.KontaktEmailScalarWhereInput data: Prisma.XOR } export type KontaktEmailScalarWhereInput = { AND?: Prisma.KontaktEmailScalarWhereInput | Prisma.KontaktEmailScalarWhereInput[] OR?: Prisma.KontaktEmailScalarWhereInput[] NOT?: Prisma.KontaktEmailScalarWhereInput | Prisma.KontaktEmailScalarWhereInput[] id?: Prisma.StringFilter<"KontaktEmail"> | string createdAt?: Prisma.DateTimeFilter<"KontaktEmail"> | Date | string tenantId?: Prisma.StringFilter<"KontaktEmail"> | string kontaktId?: Prisma.StringFilter<"KontaktEmail"> | string email?: Prisma.StringFilter<"KontaktEmail"> | string primaer?: Prisma.BoolFilter<"KontaktEmail"> | boolean } export type KontaktEmailCreateManyKontaktInput = { id?: string createdAt?: Date | string tenantId: string email: string primaer?: boolean } export type KontaktEmailUpdateWithoutKontaktInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string primaer?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type KontaktEmailUncheckedUpdateWithoutKontaktInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string primaer?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type KontaktEmailUncheckedUpdateManyWithoutKontaktInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string primaer?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type KontaktEmailSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean kontaktId?: boolean email?: boolean primaer?: boolean kontakt?: boolean | Prisma.KontaktDefaultArgs }, ExtArgs["result"]["kontaktEmail"]> export type KontaktEmailSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean kontaktId?: boolean email?: boolean primaer?: boolean kontakt?: boolean | Prisma.KontaktDefaultArgs }, ExtArgs["result"]["kontaktEmail"]> export type KontaktEmailSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean kontaktId?: boolean email?: boolean primaer?: boolean kontakt?: boolean | Prisma.KontaktDefaultArgs }, ExtArgs["result"]["kontaktEmail"]> export type KontaktEmailSelectScalar = { id?: boolean createdAt?: boolean tenantId?: boolean kontaktId?: boolean email?: boolean primaer?: boolean } export type KontaktEmailOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "kontaktId" | "email" | "primaer", ExtArgs["result"]["kontaktEmail"]> export type KontaktEmailInclude = { kontakt?: boolean | Prisma.KontaktDefaultArgs } export type KontaktEmailIncludeCreateManyAndReturn = { kontakt?: boolean | Prisma.KontaktDefaultArgs } export type KontaktEmailIncludeUpdateManyAndReturn = { kontakt?: boolean | Prisma.KontaktDefaultArgs } export type $KontaktEmailPayload = { name: "KontaktEmail" objects: { kontakt: Prisma.$KontaktPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date tenantId: string kontaktId: string email: string primaer: boolean }, ExtArgs["result"]["kontaktEmail"]> composites: {} } export type KontaktEmailGetPayload = runtime.Types.Result.GetResult export type KontaktEmailCountArgs = Omit & { select?: KontaktEmailCountAggregateInputType | true } export interface KontaktEmailDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['KontaktEmail'], meta: { name: 'KontaktEmail' } } /** * Find zero or one KontaktEmail that matches the filter. * @param {KontaktEmailFindUniqueArgs} args - Arguments to find a KontaktEmail * @example * // Get one KontaktEmail * const kontaktEmail = await prisma.kontaktEmail.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__KontaktEmailClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one KontaktEmail that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {KontaktEmailFindUniqueOrThrowArgs} args - Arguments to find a KontaktEmail * @example * // Get one KontaktEmail * const kontaktEmail = await prisma.kontaktEmail.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__KontaktEmailClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first KontaktEmail 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 {KontaktEmailFindFirstArgs} args - Arguments to find a KontaktEmail * @example * // Get one KontaktEmail * const kontaktEmail = await prisma.kontaktEmail.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__KontaktEmailClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first KontaktEmail 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 {KontaktEmailFindFirstOrThrowArgs} args - Arguments to find a KontaktEmail * @example * // Get one KontaktEmail * const kontaktEmail = await prisma.kontaktEmail.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__KontaktEmailClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more KontaktEmails 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 {KontaktEmailFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all KontaktEmails * const kontaktEmails = await prisma.kontaktEmail.findMany() * * // Get first 10 KontaktEmails * const kontaktEmails = await prisma.kontaktEmail.findMany({ take: 10 }) * * // Only select the `id` * const kontaktEmailWithIdOnly = await prisma.kontaktEmail.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a KontaktEmail. * @param {KontaktEmailCreateArgs} args - Arguments to create a KontaktEmail. * @example * // Create one KontaktEmail * const KontaktEmail = await prisma.kontaktEmail.create({ * data: { * // ... data to create a KontaktEmail * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__KontaktEmailClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many KontaktEmails. * @param {KontaktEmailCreateManyArgs} args - Arguments to create many KontaktEmails. * @example * // Create many KontaktEmails * const kontaktEmail = await prisma.kontaktEmail.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many KontaktEmails and returns the data saved in the database. * @param {KontaktEmailCreateManyAndReturnArgs} args - Arguments to create many KontaktEmails. * @example * // Create many KontaktEmails * const kontaktEmail = await prisma.kontaktEmail.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many KontaktEmails and only return the `id` * const kontaktEmailWithIdOnly = await prisma.kontaktEmail.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 KontaktEmail. * @param {KontaktEmailDeleteArgs} args - Arguments to delete one KontaktEmail. * @example * // Delete one KontaktEmail * const KontaktEmail = await prisma.kontaktEmail.delete({ * where: { * // ... filter to delete one KontaktEmail * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__KontaktEmailClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one KontaktEmail. * @param {KontaktEmailUpdateArgs} args - Arguments to update one KontaktEmail. * @example * // Update one KontaktEmail * const kontaktEmail = await prisma.kontaktEmail.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__KontaktEmailClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more KontaktEmails. * @param {KontaktEmailDeleteManyArgs} args - Arguments to filter KontaktEmails to delete. * @example * // Delete a few KontaktEmails * const { count } = await prisma.kontaktEmail.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more KontaktEmails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KontaktEmailUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many KontaktEmails * const kontaktEmail = await prisma.kontaktEmail.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more KontaktEmails and returns the data updated in the database. * @param {KontaktEmailUpdateManyAndReturnArgs} args - Arguments to update many KontaktEmails. * @example * // Update many KontaktEmails * const kontaktEmail = await prisma.kontaktEmail.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more KontaktEmails and only return the `id` * const kontaktEmailWithIdOnly = await prisma.kontaktEmail.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 KontaktEmail. * @param {KontaktEmailUpsertArgs} args - Arguments to update or create a KontaktEmail. * @example * // Update or create a KontaktEmail * const kontaktEmail = await prisma.kontaktEmail.upsert({ * create: { * // ... data to create a KontaktEmail * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the KontaktEmail we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__KontaktEmailClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of KontaktEmails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KontaktEmailCountArgs} args - Arguments to filter KontaktEmails to count. * @example * // Count the number of KontaktEmails * const count = await prisma.kontaktEmail.count({ * where: { * // ... the filter for the KontaktEmails 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 KontaktEmail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KontaktEmailAggregateArgs} 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 KontaktEmail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KontaktEmailGroupByArgs} 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 KontaktEmailGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: KontaktEmailGroupByArgs['orderBy'] } : { orderBy?: KontaktEmailGroupByArgs['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 ? GetKontaktEmailGroupByPayload : Prisma.PrismaPromise /** * Fields of the KontaktEmail model */ readonly fields: KontaktEmailFieldRefs; } /** * The delegate class that acts as a "Promise-like" for KontaktEmail. * 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__KontaktEmailClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" kontakt = {}>(args?: Prisma.Subset>): Prisma.Prisma__KontaktClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(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 KontaktEmail model */ export interface KontaktEmailFieldRefs { readonly id: Prisma.FieldRef<"KontaktEmail", 'String'> readonly createdAt: Prisma.FieldRef<"KontaktEmail", 'DateTime'> readonly tenantId: Prisma.FieldRef<"KontaktEmail", 'String'> readonly kontaktId: Prisma.FieldRef<"KontaktEmail", 'String'> readonly email: Prisma.FieldRef<"KontaktEmail", 'String'> readonly primaer: Prisma.FieldRef<"KontaktEmail", 'Boolean'> } // Custom InputTypes /** * KontaktEmail findUnique */ export type KontaktEmailFindUniqueArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null /** * Filter, which KontaktEmail to fetch. */ where: Prisma.KontaktEmailWhereUniqueInput } /** * KontaktEmail findUniqueOrThrow */ export type KontaktEmailFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null /** * Filter, which KontaktEmail to fetch. */ where: Prisma.KontaktEmailWhereUniqueInput } /** * KontaktEmail findFirst */ export type KontaktEmailFindFirstArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null /** * Filter, which KontaktEmail to fetch. */ where?: Prisma.KontaktEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KontaktEmails to fetch. */ orderBy?: Prisma.KontaktEmailOrderByWithRelationInput | Prisma.KontaktEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for KontaktEmails. */ cursor?: Prisma.KontaktEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KontaktEmails 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` KontaktEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of KontaktEmails. */ distinct?: Prisma.KontaktEmailScalarFieldEnum | Prisma.KontaktEmailScalarFieldEnum[] } /** * KontaktEmail findFirstOrThrow */ export type KontaktEmailFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null /** * Filter, which KontaktEmail to fetch. */ where?: Prisma.KontaktEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KontaktEmails to fetch. */ orderBy?: Prisma.KontaktEmailOrderByWithRelationInput | Prisma.KontaktEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for KontaktEmails. */ cursor?: Prisma.KontaktEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KontaktEmails 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` KontaktEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of KontaktEmails. */ distinct?: Prisma.KontaktEmailScalarFieldEnum | Prisma.KontaktEmailScalarFieldEnum[] } /** * KontaktEmail findMany */ export type KontaktEmailFindManyArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null /** * Filter, which KontaktEmails to fetch. */ where?: Prisma.KontaktEmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KontaktEmails to fetch. */ orderBy?: Prisma.KontaktEmailOrderByWithRelationInput | Prisma.KontaktEmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing KontaktEmails. */ cursor?: Prisma.KontaktEmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KontaktEmails 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` KontaktEmails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of KontaktEmails. */ distinct?: Prisma.KontaktEmailScalarFieldEnum | Prisma.KontaktEmailScalarFieldEnum[] } /** * KontaktEmail create */ export type KontaktEmailCreateArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null /** * The data needed to create a KontaktEmail. */ data: Prisma.XOR } /** * KontaktEmail createMany */ export type KontaktEmailCreateManyArgs = { /** * The data used to create many KontaktEmails. */ data: Prisma.KontaktEmailCreateManyInput | Prisma.KontaktEmailCreateManyInput[] skipDuplicates?: boolean } /** * KontaktEmail createManyAndReturn */ export type KontaktEmailCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelectCreateManyAndReturn | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * The data used to create many KontaktEmails. */ data: Prisma.KontaktEmailCreateManyInput | Prisma.KontaktEmailCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailIncludeCreateManyAndReturn | null } /** * KontaktEmail update */ export type KontaktEmailUpdateArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null /** * The data needed to update a KontaktEmail. */ data: Prisma.XOR /** * Choose, which KontaktEmail to update. */ where: Prisma.KontaktEmailWhereUniqueInput } /** * KontaktEmail updateMany */ export type KontaktEmailUpdateManyArgs = { /** * The data used to update KontaktEmails. */ data: Prisma.XOR /** * Filter which KontaktEmails to update */ where?: Prisma.KontaktEmailWhereInput /** * Limit how many KontaktEmails to update. */ limit?: number } /** * KontaktEmail updateManyAndReturn */ export type KontaktEmailUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelectUpdateManyAndReturn | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * The data used to update KontaktEmails. */ data: Prisma.XOR /** * Filter which KontaktEmails to update */ where?: Prisma.KontaktEmailWhereInput /** * Limit how many KontaktEmails to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailIncludeUpdateManyAndReturn | null } /** * KontaktEmail upsert */ export type KontaktEmailUpsertArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null /** * The filter to search for the KontaktEmail to update in case it exists. */ where: Prisma.KontaktEmailWhereUniqueInput /** * In case the KontaktEmail found by the `where` argument doesn't exist, create a new KontaktEmail with this data. */ create: Prisma.XOR /** * In case the KontaktEmail was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * KontaktEmail delete */ export type KontaktEmailDeleteArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null /** * Filter which KontaktEmail to delete. */ where: Prisma.KontaktEmailWhereUniqueInput } /** * KontaktEmail deleteMany */ export type KontaktEmailDeleteManyArgs = { /** * Filter which KontaktEmails to delete */ where?: Prisma.KontaktEmailWhereInput /** * Limit how many KontaktEmails to delete. */ limit?: number } /** * KontaktEmail without action */ export type KontaktEmailDefaultArgs = { /** * Select specific fields to fetch from the KontaktEmail */ select?: Prisma.KontaktEmailSelect | null /** * Omit specific fields from the KontaktEmail */ omit?: Prisma.KontaktEmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KontaktEmailInclude | null }