/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `EmailCc` 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 EmailCc * */ export type EmailCcModel = runtime.Types.Result.DefaultSelection export type AggregateEmailCc = { _count: EmailCcCountAggregateOutputType | null _min: EmailCcMinAggregateOutputType | null _max: EmailCcMaxAggregateOutputType | null } export type EmailCcMinAggregateOutputType = { id: string | null emailId: string | null toEmail: string | null toName: string | null } export type EmailCcMaxAggregateOutputType = { id: string | null emailId: string | null toEmail: string | null toName: string | null } export type EmailCcCountAggregateOutputType = { id: number emailId: number toEmail: number toName: number _all: number } export type EmailCcMinAggregateInputType = { id?: true emailId?: true toEmail?: true toName?: true } export type EmailCcMaxAggregateInputType = { id?: true emailId?: true toEmail?: true toName?: true } export type EmailCcCountAggregateInputType = { id?: true emailId?: true toEmail?: true toName?: true _all?: true } export type EmailCcAggregateArgs = { /** * Filter which EmailCc to aggregate. */ where?: Prisma.EmailCcWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailCcs to fetch. */ orderBy?: Prisma.EmailCcOrderByWithRelationInput | Prisma.EmailCcOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EmailCcWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailCcs 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` EmailCcs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EmailCcs **/ _count?: true | EmailCcCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EmailCcMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EmailCcMaxAggregateInputType } export type GetEmailCcAggregateType = { [P in keyof T & keyof AggregateEmailCc]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type EmailCcGroupByArgs = { where?: Prisma.EmailCcWhereInput orderBy?: Prisma.EmailCcOrderByWithAggregationInput | Prisma.EmailCcOrderByWithAggregationInput[] by: Prisma.EmailCcScalarFieldEnum[] | Prisma.EmailCcScalarFieldEnum having?: Prisma.EmailCcScalarWhereWithAggregatesInput take?: number skip?: number _count?: EmailCcCountAggregateInputType | true _min?: EmailCcMinAggregateInputType _max?: EmailCcMaxAggregateInputType } export type EmailCcGroupByOutputType = { id: string emailId: string toEmail: string toName: string | null _count: EmailCcCountAggregateOutputType | null _min: EmailCcMinAggregateOutputType | null _max: EmailCcMaxAggregateOutputType | null } export type GetEmailCcGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof EmailCcGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type EmailCcWhereInput = { AND?: Prisma.EmailCcWhereInput | Prisma.EmailCcWhereInput[] OR?: Prisma.EmailCcWhereInput[] NOT?: Prisma.EmailCcWhereInput | Prisma.EmailCcWhereInput[] id?: Prisma.StringFilter<"EmailCc"> | string emailId?: Prisma.StringFilter<"EmailCc"> | string toEmail?: Prisma.StringFilter<"EmailCc"> | string toName?: Prisma.StringNullableFilter<"EmailCc"> | string | null email?: Prisma.XOR } export type EmailCcOrderByWithRelationInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrderInput | Prisma.SortOrder email?: Prisma.EmailOrderByWithRelationInput } export type EmailCcWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.EmailCcWhereInput | Prisma.EmailCcWhereInput[] OR?: Prisma.EmailCcWhereInput[] NOT?: Prisma.EmailCcWhereInput | Prisma.EmailCcWhereInput[] emailId?: Prisma.StringFilter<"EmailCc"> | string toEmail?: Prisma.StringFilter<"EmailCc"> | string toName?: Prisma.StringNullableFilter<"EmailCc"> | string | null email?: Prisma.XOR }, "id"> export type EmailCcOrderByWithAggregationInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.EmailCcCountOrderByAggregateInput _max?: Prisma.EmailCcMaxOrderByAggregateInput _min?: Prisma.EmailCcMinOrderByAggregateInput } export type EmailCcScalarWhereWithAggregatesInput = { AND?: Prisma.EmailCcScalarWhereWithAggregatesInput | Prisma.EmailCcScalarWhereWithAggregatesInput[] OR?: Prisma.EmailCcScalarWhereWithAggregatesInput[] NOT?: Prisma.EmailCcScalarWhereWithAggregatesInput | Prisma.EmailCcScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"EmailCc"> | string emailId?: Prisma.StringWithAggregatesFilter<"EmailCc"> | string toEmail?: Prisma.StringWithAggregatesFilter<"EmailCc"> | string toName?: Prisma.StringNullableWithAggregatesFilter<"EmailCc"> | string | null } export type EmailCcCreateInput = { id?: string toEmail: string toName?: string | null email: Prisma.EmailCreateNestedOneWithoutCcInput } export type EmailCcUncheckedCreateInput = { id?: string emailId: string toEmail: string toName?: string | null } export type EmailCcUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null email?: Prisma.EmailUpdateOneRequiredWithoutCcNestedInput } export type EmailCcUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string emailId?: Prisma.StringFieldUpdateOperationsInput | string toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailCcCreateManyInput = { id?: string emailId: string toEmail: string toName?: string | null } export type EmailCcUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailCcUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string emailId?: Prisma.StringFieldUpdateOperationsInput | string toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailCcListRelationFilter = { every?: Prisma.EmailCcWhereInput some?: Prisma.EmailCcWhereInput none?: Prisma.EmailCcWhereInput } export type EmailCcOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type EmailCcCountOrderByAggregateInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrder } export type EmailCcMaxOrderByAggregateInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrder } export type EmailCcMinOrderByAggregateInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrder } export type EmailCcCreateNestedManyWithoutEmailInput = { create?: Prisma.XOR | Prisma.EmailCcCreateWithoutEmailInput[] | Prisma.EmailCcUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailCcCreateOrConnectWithoutEmailInput | Prisma.EmailCcCreateOrConnectWithoutEmailInput[] createMany?: Prisma.EmailCcCreateManyEmailInputEnvelope connect?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] } export type EmailCcUncheckedCreateNestedManyWithoutEmailInput = { create?: Prisma.XOR | Prisma.EmailCcCreateWithoutEmailInput[] | Prisma.EmailCcUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailCcCreateOrConnectWithoutEmailInput | Prisma.EmailCcCreateOrConnectWithoutEmailInput[] createMany?: Prisma.EmailCcCreateManyEmailInputEnvelope connect?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] } export type EmailCcUpdateManyWithoutEmailNestedInput = { create?: Prisma.XOR | Prisma.EmailCcCreateWithoutEmailInput[] | Prisma.EmailCcUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailCcCreateOrConnectWithoutEmailInput | Prisma.EmailCcCreateOrConnectWithoutEmailInput[] upsert?: Prisma.EmailCcUpsertWithWhereUniqueWithoutEmailInput | Prisma.EmailCcUpsertWithWhereUniqueWithoutEmailInput[] createMany?: Prisma.EmailCcCreateManyEmailInputEnvelope set?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] disconnect?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] delete?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] connect?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] update?: Prisma.EmailCcUpdateWithWhereUniqueWithoutEmailInput | Prisma.EmailCcUpdateWithWhereUniqueWithoutEmailInput[] updateMany?: Prisma.EmailCcUpdateManyWithWhereWithoutEmailInput | Prisma.EmailCcUpdateManyWithWhereWithoutEmailInput[] deleteMany?: Prisma.EmailCcScalarWhereInput | Prisma.EmailCcScalarWhereInput[] } export type EmailCcUncheckedUpdateManyWithoutEmailNestedInput = { create?: Prisma.XOR | Prisma.EmailCcCreateWithoutEmailInput[] | Prisma.EmailCcUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailCcCreateOrConnectWithoutEmailInput | Prisma.EmailCcCreateOrConnectWithoutEmailInput[] upsert?: Prisma.EmailCcUpsertWithWhereUniqueWithoutEmailInput | Prisma.EmailCcUpsertWithWhereUniqueWithoutEmailInput[] createMany?: Prisma.EmailCcCreateManyEmailInputEnvelope set?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] disconnect?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] delete?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] connect?: Prisma.EmailCcWhereUniqueInput | Prisma.EmailCcWhereUniqueInput[] update?: Prisma.EmailCcUpdateWithWhereUniqueWithoutEmailInput | Prisma.EmailCcUpdateWithWhereUniqueWithoutEmailInput[] updateMany?: Prisma.EmailCcUpdateManyWithWhereWithoutEmailInput | Prisma.EmailCcUpdateManyWithWhereWithoutEmailInput[] deleteMany?: Prisma.EmailCcScalarWhereInput | Prisma.EmailCcScalarWhereInput[] } export type EmailCcCreateWithoutEmailInput = { id?: string toEmail: string toName?: string | null } export type EmailCcUncheckedCreateWithoutEmailInput = { id?: string toEmail: string toName?: string | null } export type EmailCcCreateOrConnectWithoutEmailInput = { where: Prisma.EmailCcWhereUniqueInput create: Prisma.XOR } export type EmailCcCreateManyEmailInputEnvelope = { data: Prisma.EmailCcCreateManyEmailInput | Prisma.EmailCcCreateManyEmailInput[] skipDuplicates?: boolean } export type EmailCcUpsertWithWhereUniqueWithoutEmailInput = { where: Prisma.EmailCcWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type EmailCcUpdateWithWhereUniqueWithoutEmailInput = { where: Prisma.EmailCcWhereUniqueInput data: Prisma.XOR } export type EmailCcUpdateManyWithWhereWithoutEmailInput = { where: Prisma.EmailCcScalarWhereInput data: Prisma.XOR } export type EmailCcScalarWhereInput = { AND?: Prisma.EmailCcScalarWhereInput | Prisma.EmailCcScalarWhereInput[] OR?: Prisma.EmailCcScalarWhereInput[] NOT?: Prisma.EmailCcScalarWhereInput | Prisma.EmailCcScalarWhereInput[] id?: Prisma.StringFilter<"EmailCc"> | string emailId?: Prisma.StringFilter<"EmailCc"> | string toEmail?: Prisma.StringFilter<"EmailCc"> | string toName?: Prisma.StringNullableFilter<"EmailCc"> | string | null } export type EmailCcCreateManyEmailInput = { id?: string toEmail: string toName?: string | null } export type EmailCcUpdateWithoutEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailCcUncheckedUpdateWithoutEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailCcUncheckedUpdateManyWithoutEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailCcSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean emailId?: boolean toEmail?: boolean toName?: boolean email?: boolean | Prisma.EmailDefaultArgs }, ExtArgs["result"]["emailCc"]> export type EmailCcSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean emailId?: boolean toEmail?: boolean toName?: boolean email?: boolean | Prisma.EmailDefaultArgs }, ExtArgs["result"]["emailCc"]> export type EmailCcSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean emailId?: boolean toEmail?: boolean toName?: boolean email?: boolean | Prisma.EmailDefaultArgs }, ExtArgs["result"]["emailCc"]> export type EmailCcSelectScalar = { id?: boolean emailId?: boolean toEmail?: boolean toName?: boolean } export type EmailCcOmit = runtime.Types.Extensions.GetOmit<"id" | "emailId" | "toEmail" | "toName", ExtArgs["result"]["emailCc"]> export type EmailCcInclude = { email?: boolean | Prisma.EmailDefaultArgs } export type EmailCcIncludeCreateManyAndReturn = { email?: boolean | Prisma.EmailDefaultArgs } export type EmailCcIncludeUpdateManyAndReturn = { email?: boolean | Prisma.EmailDefaultArgs } export type $EmailCcPayload = { name: "EmailCc" objects: { email: Prisma.$EmailPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string emailId: string toEmail: string toName: string | null }, ExtArgs["result"]["emailCc"]> composites: {} } export type EmailCcGetPayload = runtime.Types.Result.GetResult export type EmailCcCountArgs = Omit & { select?: EmailCcCountAggregateInputType | true } export interface EmailCcDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EmailCc'], meta: { name: 'EmailCc' } } /** * Find zero or one EmailCc that matches the filter. * @param {EmailCcFindUniqueArgs} args - Arguments to find a EmailCc * @example * // Get one EmailCc * const emailCc = await prisma.emailCc.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EmailCcClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one EmailCc that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EmailCcFindUniqueOrThrowArgs} args - Arguments to find a EmailCc * @example * // Get one EmailCc * const emailCc = await prisma.emailCc.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EmailCcClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first EmailCc 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 {EmailCcFindFirstArgs} args - Arguments to find a EmailCc * @example * // Get one EmailCc * const emailCc = await prisma.emailCc.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailCcClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first EmailCc 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 {EmailCcFindFirstOrThrowArgs} args - Arguments to find a EmailCc * @example * // Get one EmailCc * const emailCc = await prisma.emailCc.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailCcClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more EmailCcs 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 {EmailCcFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EmailCcs * const emailCcs = await prisma.emailCc.findMany() * * // Get first 10 EmailCcs * const emailCcs = await prisma.emailCc.findMany({ take: 10 }) * * // Only select the `id` * const emailCcWithIdOnly = await prisma.emailCc.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a EmailCc. * @param {EmailCcCreateArgs} args - Arguments to create a EmailCc. * @example * // Create one EmailCc * const EmailCc = await prisma.emailCc.create({ * data: { * // ... data to create a EmailCc * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EmailCcClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many EmailCcs. * @param {EmailCcCreateManyArgs} args - Arguments to create many EmailCcs. * @example * // Create many EmailCcs * const emailCc = await prisma.emailCc.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many EmailCcs and returns the data saved in the database. * @param {EmailCcCreateManyAndReturnArgs} args - Arguments to create many EmailCcs. * @example * // Create many EmailCcs * const emailCc = await prisma.emailCc.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EmailCcs and only return the `id` * const emailCcWithIdOnly = await prisma.emailCc.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 EmailCc. * @param {EmailCcDeleteArgs} args - Arguments to delete one EmailCc. * @example * // Delete one EmailCc * const EmailCc = await prisma.emailCc.delete({ * where: { * // ... filter to delete one EmailCc * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EmailCcClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one EmailCc. * @param {EmailCcUpdateArgs} args - Arguments to update one EmailCc. * @example * // Update one EmailCc * const emailCc = await prisma.emailCc.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EmailCcClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more EmailCcs. * @param {EmailCcDeleteManyArgs} args - Arguments to filter EmailCcs to delete. * @example * // Delete a few EmailCcs * const { count } = await prisma.emailCc.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailCcs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailCcUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EmailCcs * const emailCc = await prisma.emailCc.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailCcs and returns the data updated in the database. * @param {EmailCcUpdateManyAndReturnArgs} args - Arguments to update many EmailCcs. * @example * // Update many EmailCcs * const emailCc = await prisma.emailCc.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more EmailCcs and only return the `id` * const emailCcWithIdOnly = await prisma.emailCc.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 EmailCc. * @param {EmailCcUpsertArgs} args - Arguments to update or create a EmailCc. * @example * // Update or create a EmailCc * const emailCc = await prisma.emailCc.upsert({ * create: { * // ... data to create a EmailCc * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EmailCc we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EmailCcClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of EmailCcs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailCcCountArgs} args - Arguments to filter EmailCcs to count. * @example * // Count the number of EmailCcs * const count = await prisma.emailCc.count({ * where: { * // ... the filter for the EmailCcs 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 EmailCc. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailCcAggregateArgs} 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 EmailCc. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailCcGroupByArgs} 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 EmailCcGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EmailCcGroupByArgs['orderBy'] } : { orderBy?: EmailCcGroupByArgs['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 ? GetEmailCcGroupByPayload : Prisma.PrismaPromise /** * Fields of the EmailCc model */ readonly fields: EmailCcFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EmailCc. * 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__EmailCcClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" email = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmailClient, 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 EmailCc model */ export interface EmailCcFieldRefs { readonly id: Prisma.FieldRef<"EmailCc", 'String'> readonly emailId: Prisma.FieldRef<"EmailCc", 'String'> readonly toEmail: Prisma.FieldRef<"EmailCc", 'String'> readonly toName: Prisma.FieldRef<"EmailCc", 'String'> } // Custom InputTypes /** * EmailCc findUnique */ export type EmailCcFindUniqueArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null /** * Filter, which EmailCc to fetch. */ where: Prisma.EmailCcWhereUniqueInput } /** * EmailCc findUniqueOrThrow */ export type EmailCcFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null /** * Filter, which EmailCc to fetch. */ where: Prisma.EmailCcWhereUniqueInput } /** * EmailCc findFirst */ export type EmailCcFindFirstArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null /** * Filter, which EmailCc to fetch. */ where?: Prisma.EmailCcWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailCcs to fetch. */ orderBy?: Prisma.EmailCcOrderByWithRelationInput | Prisma.EmailCcOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailCcs. */ cursor?: Prisma.EmailCcWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailCcs 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` EmailCcs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailCcs. */ distinct?: Prisma.EmailCcScalarFieldEnum | Prisma.EmailCcScalarFieldEnum[] } /** * EmailCc findFirstOrThrow */ export type EmailCcFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null /** * Filter, which EmailCc to fetch. */ where?: Prisma.EmailCcWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailCcs to fetch. */ orderBy?: Prisma.EmailCcOrderByWithRelationInput | Prisma.EmailCcOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailCcs. */ cursor?: Prisma.EmailCcWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailCcs 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` EmailCcs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailCcs. */ distinct?: Prisma.EmailCcScalarFieldEnum | Prisma.EmailCcScalarFieldEnum[] } /** * EmailCc findMany */ export type EmailCcFindManyArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null /** * Filter, which EmailCcs to fetch. */ where?: Prisma.EmailCcWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailCcs to fetch. */ orderBy?: Prisma.EmailCcOrderByWithRelationInput | Prisma.EmailCcOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EmailCcs. */ cursor?: Prisma.EmailCcWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailCcs 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` EmailCcs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailCcs. */ distinct?: Prisma.EmailCcScalarFieldEnum | Prisma.EmailCcScalarFieldEnum[] } /** * EmailCc create */ export type EmailCcCreateArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null /** * The data needed to create a EmailCc. */ data: Prisma.XOR } /** * EmailCc createMany */ export type EmailCcCreateManyArgs = { /** * The data used to create many EmailCcs. */ data: Prisma.EmailCcCreateManyInput | Prisma.EmailCcCreateManyInput[] skipDuplicates?: boolean } /** * EmailCc createManyAndReturn */ export type EmailCcCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelectCreateManyAndReturn | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * The data used to create many EmailCcs. */ data: Prisma.EmailCcCreateManyInput | Prisma.EmailCcCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcIncludeCreateManyAndReturn | null } /** * EmailCc update */ export type EmailCcUpdateArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null /** * The data needed to update a EmailCc. */ data: Prisma.XOR /** * Choose, which EmailCc to update. */ where: Prisma.EmailCcWhereUniqueInput } /** * EmailCc updateMany */ export type EmailCcUpdateManyArgs = { /** * The data used to update EmailCcs. */ data: Prisma.XOR /** * Filter which EmailCcs to update */ where?: Prisma.EmailCcWhereInput /** * Limit how many EmailCcs to update. */ limit?: number } /** * EmailCc updateManyAndReturn */ export type EmailCcUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelectUpdateManyAndReturn | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * The data used to update EmailCcs. */ data: Prisma.XOR /** * Filter which EmailCcs to update */ where?: Prisma.EmailCcWhereInput /** * Limit how many EmailCcs to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcIncludeUpdateManyAndReturn | null } /** * EmailCc upsert */ export type EmailCcUpsertArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null /** * The filter to search for the EmailCc to update in case it exists. */ where: Prisma.EmailCcWhereUniqueInput /** * In case the EmailCc found by the `where` argument doesn't exist, create a new EmailCc with this data. */ create: Prisma.XOR /** * In case the EmailCc was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * EmailCc delete */ export type EmailCcDeleteArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null /** * Filter which EmailCc to delete. */ where: Prisma.EmailCcWhereUniqueInput } /** * EmailCc deleteMany */ export type EmailCcDeleteManyArgs = { /** * Filter which EmailCcs to delete */ where?: Prisma.EmailCcWhereInput /** * Limit how many EmailCcs to delete. */ limit?: number } /** * EmailCc without action */ export type EmailCcDefaultArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null }