/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `OutboundEmailOpen` 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 OutboundEmailOpen * */ export type OutboundEmailOpenModel = runtime.Types.Result.DefaultSelection export type AggregateOutboundEmailOpen = { _count: OutboundEmailOpenCountAggregateOutputType | null _min: OutboundEmailOpenMinAggregateOutputType | null _max: OutboundEmailOpenMaxAggregateOutputType | null } export type OutboundEmailOpenMinAggregateOutputType = { id: string | null createdAt: Date | null firstOpen: boolean | null outboundEmailId: string | null } export type OutboundEmailOpenMaxAggregateOutputType = { id: string | null createdAt: Date | null firstOpen: boolean | null outboundEmailId: string | null } export type OutboundEmailOpenCountAggregateOutputType = { id: number createdAt: number firstOpen: number outboundEmailId: number _all: number } export type OutboundEmailOpenMinAggregateInputType = { id?: true createdAt?: true firstOpen?: true outboundEmailId?: true } export type OutboundEmailOpenMaxAggregateInputType = { id?: true createdAt?: true firstOpen?: true outboundEmailId?: true } export type OutboundEmailOpenCountAggregateInputType = { id?: true createdAt?: true firstOpen?: true outboundEmailId?: true _all?: true } export type OutboundEmailOpenAggregateArgs = { /** * Filter which OutboundEmailOpen to aggregate. */ where?: Prisma.OutboundEmailOpenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OutboundEmailOpens to fetch. */ orderBy?: Prisma.OutboundEmailOpenOrderByWithRelationInput | Prisma.OutboundEmailOpenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.OutboundEmailOpenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OutboundEmailOpens 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` OutboundEmailOpens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned OutboundEmailOpens **/ _count?: true | OutboundEmailOpenCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OutboundEmailOpenMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OutboundEmailOpenMaxAggregateInputType } export type GetOutboundEmailOpenAggregateType = { [P in keyof T & keyof AggregateOutboundEmailOpen]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type OutboundEmailOpenGroupByArgs = { where?: Prisma.OutboundEmailOpenWhereInput orderBy?: Prisma.OutboundEmailOpenOrderByWithAggregationInput | Prisma.OutboundEmailOpenOrderByWithAggregationInput[] by: Prisma.OutboundEmailOpenScalarFieldEnum[] | Prisma.OutboundEmailOpenScalarFieldEnum having?: Prisma.OutboundEmailOpenScalarWhereWithAggregatesInput take?: number skip?: number _count?: OutboundEmailOpenCountAggregateInputType | true _min?: OutboundEmailOpenMinAggregateInputType _max?: OutboundEmailOpenMaxAggregateInputType } export type OutboundEmailOpenGroupByOutputType = { id: string createdAt: Date firstOpen: boolean outboundEmailId: string _count: OutboundEmailOpenCountAggregateOutputType | null _min: OutboundEmailOpenMinAggregateOutputType | null _max: OutboundEmailOpenMaxAggregateOutputType | null } export type GetOutboundEmailOpenGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof OutboundEmailOpenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type OutboundEmailOpenWhereInput = { AND?: Prisma.OutboundEmailOpenWhereInput | Prisma.OutboundEmailOpenWhereInput[] OR?: Prisma.OutboundEmailOpenWhereInput[] NOT?: Prisma.OutboundEmailOpenWhereInput | Prisma.OutboundEmailOpenWhereInput[] id?: Prisma.StringFilter<"OutboundEmailOpen"> | string createdAt?: Prisma.DateTimeFilter<"OutboundEmailOpen"> | Date | string firstOpen?: Prisma.BoolFilter<"OutboundEmailOpen"> | boolean outboundEmailId?: Prisma.StringFilter<"OutboundEmailOpen"> | string outboundEmail?: Prisma.XOR } export type OutboundEmailOpenOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder firstOpen?: Prisma.SortOrder outboundEmailId?: Prisma.SortOrder outboundEmail?: Prisma.OutboundEmailOrderByWithRelationInput } export type OutboundEmailOpenWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.OutboundEmailOpenWhereInput | Prisma.OutboundEmailOpenWhereInput[] OR?: Prisma.OutboundEmailOpenWhereInput[] NOT?: Prisma.OutboundEmailOpenWhereInput | Prisma.OutboundEmailOpenWhereInput[] createdAt?: Prisma.DateTimeFilter<"OutboundEmailOpen"> | Date | string firstOpen?: Prisma.BoolFilter<"OutboundEmailOpen"> | boolean outboundEmailId?: Prisma.StringFilter<"OutboundEmailOpen"> | string outboundEmail?: Prisma.XOR }, "id"> export type OutboundEmailOpenOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder firstOpen?: Prisma.SortOrder outboundEmailId?: Prisma.SortOrder _count?: Prisma.OutboundEmailOpenCountOrderByAggregateInput _max?: Prisma.OutboundEmailOpenMaxOrderByAggregateInput _min?: Prisma.OutboundEmailOpenMinOrderByAggregateInput } export type OutboundEmailOpenScalarWhereWithAggregatesInput = { AND?: Prisma.OutboundEmailOpenScalarWhereWithAggregatesInput | Prisma.OutboundEmailOpenScalarWhereWithAggregatesInput[] OR?: Prisma.OutboundEmailOpenScalarWhereWithAggregatesInput[] NOT?: Prisma.OutboundEmailOpenScalarWhereWithAggregatesInput | Prisma.OutboundEmailOpenScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"OutboundEmailOpen"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"OutboundEmailOpen"> | Date | string firstOpen?: Prisma.BoolWithAggregatesFilter<"OutboundEmailOpen"> | boolean outboundEmailId?: Prisma.StringWithAggregatesFilter<"OutboundEmailOpen"> | string } export type OutboundEmailOpenCreateInput = { id?: string createdAt?: Date | string firstOpen: boolean outboundEmail: Prisma.OutboundEmailCreateNestedOneWithoutOpensInput } export type OutboundEmailOpenUncheckedCreateInput = { id?: string createdAt?: Date | string firstOpen: boolean outboundEmailId: string } export type OutboundEmailOpenUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string firstOpen?: Prisma.BoolFieldUpdateOperationsInput | boolean outboundEmail?: Prisma.OutboundEmailUpdateOneRequiredWithoutOpensNestedInput } export type OutboundEmailOpenUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string firstOpen?: Prisma.BoolFieldUpdateOperationsInput | boolean outboundEmailId?: Prisma.StringFieldUpdateOperationsInput | string } export type OutboundEmailOpenCreateManyInput = { id?: string createdAt?: Date | string firstOpen: boolean outboundEmailId: string } export type OutboundEmailOpenUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string firstOpen?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type OutboundEmailOpenUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string firstOpen?: Prisma.BoolFieldUpdateOperationsInput | boolean outboundEmailId?: Prisma.StringFieldUpdateOperationsInput | string } export type OutboundEmailOpenListRelationFilter = { every?: Prisma.OutboundEmailOpenWhereInput some?: Prisma.OutboundEmailOpenWhereInput none?: Prisma.OutboundEmailOpenWhereInput } export type OutboundEmailOpenOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type OutboundEmailOpenCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder firstOpen?: Prisma.SortOrder outboundEmailId?: Prisma.SortOrder } export type OutboundEmailOpenMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder firstOpen?: Prisma.SortOrder outboundEmailId?: Prisma.SortOrder } export type OutboundEmailOpenMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder firstOpen?: Prisma.SortOrder outboundEmailId?: Prisma.SortOrder } export type OutboundEmailOpenCreateNestedManyWithoutOutboundEmailInput = { create?: Prisma.XOR | Prisma.OutboundEmailOpenCreateWithoutOutboundEmailInput[] | Prisma.OutboundEmailOpenUncheckedCreateWithoutOutboundEmailInput[] connectOrCreate?: Prisma.OutboundEmailOpenCreateOrConnectWithoutOutboundEmailInput | Prisma.OutboundEmailOpenCreateOrConnectWithoutOutboundEmailInput[] createMany?: Prisma.OutboundEmailOpenCreateManyOutboundEmailInputEnvelope connect?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] } export type OutboundEmailOpenUncheckedCreateNestedManyWithoutOutboundEmailInput = { create?: Prisma.XOR | Prisma.OutboundEmailOpenCreateWithoutOutboundEmailInput[] | Prisma.OutboundEmailOpenUncheckedCreateWithoutOutboundEmailInput[] connectOrCreate?: Prisma.OutboundEmailOpenCreateOrConnectWithoutOutboundEmailInput | Prisma.OutboundEmailOpenCreateOrConnectWithoutOutboundEmailInput[] createMany?: Prisma.OutboundEmailOpenCreateManyOutboundEmailInputEnvelope connect?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] } export type OutboundEmailOpenUpdateManyWithoutOutboundEmailNestedInput = { create?: Prisma.XOR | Prisma.OutboundEmailOpenCreateWithoutOutboundEmailInput[] | Prisma.OutboundEmailOpenUncheckedCreateWithoutOutboundEmailInput[] connectOrCreate?: Prisma.OutboundEmailOpenCreateOrConnectWithoutOutboundEmailInput | Prisma.OutboundEmailOpenCreateOrConnectWithoutOutboundEmailInput[] upsert?: Prisma.OutboundEmailOpenUpsertWithWhereUniqueWithoutOutboundEmailInput | Prisma.OutboundEmailOpenUpsertWithWhereUniqueWithoutOutboundEmailInput[] createMany?: Prisma.OutboundEmailOpenCreateManyOutboundEmailInputEnvelope set?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] disconnect?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] delete?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] connect?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] update?: Prisma.OutboundEmailOpenUpdateWithWhereUniqueWithoutOutboundEmailInput | Prisma.OutboundEmailOpenUpdateWithWhereUniqueWithoutOutboundEmailInput[] updateMany?: Prisma.OutboundEmailOpenUpdateManyWithWhereWithoutOutboundEmailInput | Prisma.OutboundEmailOpenUpdateManyWithWhereWithoutOutboundEmailInput[] deleteMany?: Prisma.OutboundEmailOpenScalarWhereInput | Prisma.OutboundEmailOpenScalarWhereInput[] } export type OutboundEmailOpenUncheckedUpdateManyWithoutOutboundEmailNestedInput = { create?: Prisma.XOR | Prisma.OutboundEmailOpenCreateWithoutOutboundEmailInput[] | Prisma.OutboundEmailOpenUncheckedCreateWithoutOutboundEmailInput[] connectOrCreate?: Prisma.OutboundEmailOpenCreateOrConnectWithoutOutboundEmailInput | Prisma.OutboundEmailOpenCreateOrConnectWithoutOutboundEmailInput[] upsert?: Prisma.OutboundEmailOpenUpsertWithWhereUniqueWithoutOutboundEmailInput | Prisma.OutboundEmailOpenUpsertWithWhereUniqueWithoutOutboundEmailInput[] createMany?: Prisma.OutboundEmailOpenCreateManyOutboundEmailInputEnvelope set?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] disconnect?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] delete?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] connect?: Prisma.OutboundEmailOpenWhereUniqueInput | Prisma.OutboundEmailOpenWhereUniqueInput[] update?: Prisma.OutboundEmailOpenUpdateWithWhereUniqueWithoutOutboundEmailInput | Prisma.OutboundEmailOpenUpdateWithWhereUniqueWithoutOutboundEmailInput[] updateMany?: Prisma.OutboundEmailOpenUpdateManyWithWhereWithoutOutboundEmailInput | Prisma.OutboundEmailOpenUpdateManyWithWhereWithoutOutboundEmailInput[] deleteMany?: Prisma.OutboundEmailOpenScalarWhereInput | Prisma.OutboundEmailOpenScalarWhereInput[] } export type OutboundEmailOpenCreateWithoutOutboundEmailInput = { id?: string createdAt?: Date | string firstOpen: boolean } export type OutboundEmailOpenUncheckedCreateWithoutOutboundEmailInput = { id?: string createdAt?: Date | string firstOpen: boolean } export type OutboundEmailOpenCreateOrConnectWithoutOutboundEmailInput = { where: Prisma.OutboundEmailOpenWhereUniqueInput create: Prisma.XOR } export type OutboundEmailOpenCreateManyOutboundEmailInputEnvelope = { data: Prisma.OutboundEmailOpenCreateManyOutboundEmailInput | Prisma.OutboundEmailOpenCreateManyOutboundEmailInput[] skipDuplicates?: boolean } export type OutboundEmailOpenUpsertWithWhereUniqueWithoutOutboundEmailInput = { where: Prisma.OutboundEmailOpenWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OutboundEmailOpenUpdateWithWhereUniqueWithoutOutboundEmailInput = { where: Prisma.OutboundEmailOpenWhereUniqueInput data: Prisma.XOR } export type OutboundEmailOpenUpdateManyWithWhereWithoutOutboundEmailInput = { where: Prisma.OutboundEmailOpenScalarWhereInput data: Prisma.XOR } export type OutboundEmailOpenScalarWhereInput = { AND?: Prisma.OutboundEmailOpenScalarWhereInput | Prisma.OutboundEmailOpenScalarWhereInput[] OR?: Prisma.OutboundEmailOpenScalarWhereInput[] NOT?: Prisma.OutboundEmailOpenScalarWhereInput | Prisma.OutboundEmailOpenScalarWhereInput[] id?: Prisma.StringFilter<"OutboundEmailOpen"> | string createdAt?: Prisma.DateTimeFilter<"OutboundEmailOpen"> | Date | string firstOpen?: Prisma.BoolFilter<"OutboundEmailOpen"> | boolean outboundEmailId?: Prisma.StringFilter<"OutboundEmailOpen"> | string } export type OutboundEmailOpenCreateManyOutboundEmailInput = { id?: string createdAt?: Date | string firstOpen: boolean } export type OutboundEmailOpenUpdateWithoutOutboundEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string firstOpen?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type OutboundEmailOpenUncheckedUpdateWithoutOutboundEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string firstOpen?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type OutboundEmailOpenUncheckedUpdateManyWithoutOutboundEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string firstOpen?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type OutboundEmailOpenSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean firstOpen?: boolean outboundEmailId?: boolean outboundEmail?: boolean | Prisma.OutboundEmailDefaultArgs }, ExtArgs["result"]["outboundEmailOpen"]> export type OutboundEmailOpenSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean firstOpen?: boolean outboundEmailId?: boolean outboundEmail?: boolean | Prisma.OutboundEmailDefaultArgs }, ExtArgs["result"]["outboundEmailOpen"]> export type OutboundEmailOpenSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean firstOpen?: boolean outboundEmailId?: boolean outboundEmail?: boolean | Prisma.OutboundEmailDefaultArgs }, ExtArgs["result"]["outboundEmailOpen"]> export type OutboundEmailOpenSelectScalar = { id?: boolean createdAt?: boolean firstOpen?: boolean outboundEmailId?: boolean } export type OutboundEmailOpenOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "firstOpen" | "outboundEmailId", ExtArgs["result"]["outboundEmailOpen"]> export type OutboundEmailOpenInclude = { outboundEmail?: boolean | Prisma.OutboundEmailDefaultArgs } export type OutboundEmailOpenIncludeCreateManyAndReturn = { outboundEmail?: boolean | Prisma.OutboundEmailDefaultArgs } export type OutboundEmailOpenIncludeUpdateManyAndReturn = { outboundEmail?: boolean | Prisma.OutboundEmailDefaultArgs } export type $OutboundEmailOpenPayload = { name: "OutboundEmailOpen" objects: { outboundEmail: Prisma.$OutboundEmailPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date firstOpen: boolean outboundEmailId: string }, ExtArgs["result"]["outboundEmailOpen"]> composites: {} } export type OutboundEmailOpenGetPayload = runtime.Types.Result.GetResult export type OutboundEmailOpenCountArgs = Omit & { select?: OutboundEmailOpenCountAggregateInputType | true } export interface OutboundEmailOpenDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['OutboundEmailOpen'], meta: { name: 'OutboundEmailOpen' } } /** * Find zero or one OutboundEmailOpen that matches the filter. * @param {OutboundEmailOpenFindUniqueArgs} args - Arguments to find a OutboundEmailOpen * @example * // Get one OutboundEmailOpen * const outboundEmailOpen = await prisma.outboundEmailOpen.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__OutboundEmailOpenClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one OutboundEmailOpen that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OutboundEmailOpenFindUniqueOrThrowArgs} args - Arguments to find a OutboundEmailOpen * @example * // Get one OutboundEmailOpen * const outboundEmailOpen = await prisma.outboundEmailOpen.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__OutboundEmailOpenClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first OutboundEmailOpen 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 {OutboundEmailOpenFindFirstArgs} args - Arguments to find a OutboundEmailOpen * @example * // Get one OutboundEmailOpen * const outboundEmailOpen = await prisma.outboundEmailOpen.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__OutboundEmailOpenClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first OutboundEmailOpen 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 {OutboundEmailOpenFindFirstOrThrowArgs} args - Arguments to find a OutboundEmailOpen * @example * // Get one OutboundEmailOpen * const outboundEmailOpen = await prisma.outboundEmailOpen.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__OutboundEmailOpenClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more OutboundEmailOpens 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 {OutboundEmailOpenFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all OutboundEmailOpens * const outboundEmailOpens = await prisma.outboundEmailOpen.findMany() * * // Get first 10 OutboundEmailOpens * const outboundEmailOpens = await prisma.outboundEmailOpen.findMany({ take: 10 }) * * // Only select the `id` * const outboundEmailOpenWithIdOnly = await prisma.outboundEmailOpen.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a OutboundEmailOpen. * @param {OutboundEmailOpenCreateArgs} args - Arguments to create a OutboundEmailOpen. * @example * // Create one OutboundEmailOpen * const OutboundEmailOpen = await prisma.outboundEmailOpen.create({ * data: { * // ... data to create a OutboundEmailOpen * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__OutboundEmailOpenClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many OutboundEmailOpens. * @param {OutboundEmailOpenCreateManyArgs} args - Arguments to create many OutboundEmailOpens. * @example * // Create many OutboundEmailOpens * const outboundEmailOpen = await prisma.outboundEmailOpen.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many OutboundEmailOpens and returns the data saved in the database. * @param {OutboundEmailOpenCreateManyAndReturnArgs} args - Arguments to create many OutboundEmailOpens. * @example * // Create many OutboundEmailOpens * const outboundEmailOpen = await prisma.outboundEmailOpen.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many OutboundEmailOpens and only return the `id` * const outboundEmailOpenWithIdOnly = await prisma.outboundEmailOpen.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 OutboundEmailOpen. * @param {OutboundEmailOpenDeleteArgs} args - Arguments to delete one OutboundEmailOpen. * @example * // Delete one OutboundEmailOpen * const OutboundEmailOpen = await prisma.outboundEmailOpen.delete({ * where: { * // ... filter to delete one OutboundEmailOpen * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__OutboundEmailOpenClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one OutboundEmailOpen. * @param {OutboundEmailOpenUpdateArgs} args - Arguments to update one OutboundEmailOpen. * @example * // Update one OutboundEmailOpen * const outboundEmailOpen = await prisma.outboundEmailOpen.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__OutboundEmailOpenClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more OutboundEmailOpens. * @param {OutboundEmailOpenDeleteManyArgs} args - Arguments to filter OutboundEmailOpens to delete. * @example * // Delete a few OutboundEmailOpens * const { count } = await prisma.outboundEmailOpen.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OutboundEmailOpens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OutboundEmailOpenUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many OutboundEmailOpens * const outboundEmailOpen = await prisma.outboundEmailOpen.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OutboundEmailOpens and returns the data updated in the database. * @param {OutboundEmailOpenUpdateManyAndReturnArgs} args - Arguments to update many OutboundEmailOpens. * @example * // Update many OutboundEmailOpens * const outboundEmailOpen = await prisma.outboundEmailOpen.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more OutboundEmailOpens and only return the `id` * const outboundEmailOpenWithIdOnly = await prisma.outboundEmailOpen.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 OutboundEmailOpen. * @param {OutboundEmailOpenUpsertArgs} args - Arguments to update or create a OutboundEmailOpen. * @example * // Update or create a OutboundEmailOpen * const outboundEmailOpen = await prisma.outboundEmailOpen.upsert({ * create: { * // ... data to create a OutboundEmailOpen * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the OutboundEmailOpen we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__OutboundEmailOpenClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of OutboundEmailOpens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OutboundEmailOpenCountArgs} args - Arguments to filter OutboundEmailOpens to count. * @example * // Count the number of OutboundEmailOpens * const count = await prisma.outboundEmailOpen.count({ * where: { * // ... the filter for the OutboundEmailOpens 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 OutboundEmailOpen. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OutboundEmailOpenAggregateArgs} 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 OutboundEmailOpen. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OutboundEmailOpenGroupByArgs} 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 OutboundEmailOpenGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: OutboundEmailOpenGroupByArgs['orderBy'] } : { orderBy?: OutboundEmailOpenGroupByArgs['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 ? GetOutboundEmailOpenGroupByPayload : Prisma.PrismaPromise /** * Fields of the OutboundEmailOpen model */ readonly fields: OutboundEmailOpenFieldRefs; } /** * The delegate class that acts as a "Promise-like" for OutboundEmailOpen. * 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__OutboundEmailOpenClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" outboundEmail = {}>(args?: Prisma.Subset>): Prisma.Prisma__OutboundEmailClient, 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 OutboundEmailOpen model */ export interface OutboundEmailOpenFieldRefs { readonly id: Prisma.FieldRef<"OutboundEmailOpen", 'String'> readonly createdAt: Prisma.FieldRef<"OutboundEmailOpen", 'DateTime'> readonly firstOpen: Prisma.FieldRef<"OutboundEmailOpen", 'Boolean'> readonly outboundEmailId: Prisma.FieldRef<"OutboundEmailOpen", 'String'> } // Custom InputTypes /** * OutboundEmailOpen findUnique */ export type OutboundEmailOpenFindUniqueArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null /** * Filter, which OutboundEmailOpen to fetch. */ where: Prisma.OutboundEmailOpenWhereUniqueInput } /** * OutboundEmailOpen findUniqueOrThrow */ export type OutboundEmailOpenFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null /** * Filter, which OutboundEmailOpen to fetch. */ where: Prisma.OutboundEmailOpenWhereUniqueInput } /** * OutboundEmailOpen findFirst */ export type OutboundEmailOpenFindFirstArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null /** * Filter, which OutboundEmailOpen to fetch. */ where?: Prisma.OutboundEmailOpenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OutboundEmailOpens to fetch. */ orderBy?: Prisma.OutboundEmailOpenOrderByWithRelationInput | Prisma.OutboundEmailOpenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OutboundEmailOpens. */ cursor?: Prisma.OutboundEmailOpenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OutboundEmailOpens 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` OutboundEmailOpens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OutboundEmailOpens. */ distinct?: Prisma.OutboundEmailOpenScalarFieldEnum | Prisma.OutboundEmailOpenScalarFieldEnum[] } /** * OutboundEmailOpen findFirstOrThrow */ export type OutboundEmailOpenFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null /** * Filter, which OutboundEmailOpen to fetch. */ where?: Prisma.OutboundEmailOpenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OutboundEmailOpens to fetch. */ orderBy?: Prisma.OutboundEmailOpenOrderByWithRelationInput | Prisma.OutboundEmailOpenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OutboundEmailOpens. */ cursor?: Prisma.OutboundEmailOpenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OutboundEmailOpens 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` OutboundEmailOpens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OutboundEmailOpens. */ distinct?: Prisma.OutboundEmailOpenScalarFieldEnum | Prisma.OutboundEmailOpenScalarFieldEnum[] } /** * OutboundEmailOpen findMany */ export type OutboundEmailOpenFindManyArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null /** * Filter, which OutboundEmailOpens to fetch. */ where?: Prisma.OutboundEmailOpenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OutboundEmailOpens to fetch. */ orderBy?: Prisma.OutboundEmailOpenOrderByWithRelationInput | Prisma.OutboundEmailOpenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing OutboundEmailOpens. */ cursor?: Prisma.OutboundEmailOpenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OutboundEmailOpens 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` OutboundEmailOpens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OutboundEmailOpens. */ distinct?: Prisma.OutboundEmailOpenScalarFieldEnum | Prisma.OutboundEmailOpenScalarFieldEnum[] } /** * OutboundEmailOpen create */ export type OutboundEmailOpenCreateArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null /** * The data needed to create a OutboundEmailOpen. */ data: Prisma.XOR } /** * OutboundEmailOpen createMany */ export type OutboundEmailOpenCreateManyArgs = { /** * The data used to create many OutboundEmailOpens. */ data: Prisma.OutboundEmailOpenCreateManyInput | Prisma.OutboundEmailOpenCreateManyInput[] skipDuplicates?: boolean } /** * OutboundEmailOpen createManyAndReturn */ export type OutboundEmailOpenCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelectCreateManyAndReturn | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * The data used to create many OutboundEmailOpens. */ data: Prisma.OutboundEmailOpenCreateManyInput | Prisma.OutboundEmailOpenCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenIncludeCreateManyAndReturn | null } /** * OutboundEmailOpen update */ export type OutboundEmailOpenUpdateArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null /** * The data needed to update a OutboundEmailOpen. */ data: Prisma.XOR /** * Choose, which OutboundEmailOpen to update. */ where: Prisma.OutboundEmailOpenWhereUniqueInput } /** * OutboundEmailOpen updateMany */ export type OutboundEmailOpenUpdateManyArgs = { /** * The data used to update OutboundEmailOpens. */ data: Prisma.XOR /** * Filter which OutboundEmailOpens to update */ where?: Prisma.OutboundEmailOpenWhereInput /** * Limit how many OutboundEmailOpens to update. */ limit?: number } /** * OutboundEmailOpen updateManyAndReturn */ export type OutboundEmailOpenUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelectUpdateManyAndReturn | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * The data used to update OutboundEmailOpens. */ data: Prisma.XOR /** * Filter which OutboundEmailOpens to update */ where?: Prisma.OutboundEmailOpenWhereInput /** * Limit how many OutboundEmailOpens to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenIncludeUpdateManyAndReturn | null } /** * OutboundEmailOpen upsert */ export type OutboundEmailOpenUpsertArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null /** * The filter to search for the OutboundEmailOpen to update in case it exists. */ where: Prisma.OutboundEmailOpenWhereUniqueInput /** * In case the OutboundEmailOpen found by the `where` argument doesn't exist, create a new OutboundEmailOpen with this data. */ create: Prisma.XOR /** * In case the OutboundEmailOpen was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * OutboundEmailOpen delete */ export type OutboundEmailOpenDeleteArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null /** * Filter which OutboundEmailOpen to delete. */ where: Prisma.OutboundEmailOpenWhereUniqueInput } /** * OutboundEmailOpen deleteMany */ export type OutboundEmailOpenDeleteManyArgs = { /** * Filter which OutboundEmailOpens to delete */ where?: Prisma.OutboundEmailOpenWhereInput /** * Limit how many OutboundEmailOpens to delete. */ limit?: number } /** * OutboundEmailOpen without action */ export type OutboundEmailOpenDefaultArgs = { /** * Select specific fields to fetch from the OutboundEmailOpen */ select?: Prisma.OutboundEmailOpenSelect | null /** * Omit specific fields from the OutboundEmailOpen */ omit?: Prisma.OutboundEmailOpenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OutboundEmailOpenInclude | null }