/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `EmailIntegrationWebhookEvent` 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 EmailIntegrationWebhookEvent * Persisted inbound provider push (idempotency + retry). Append-only; a fast * 200/202 is returned to the provider and a worker drains `pending` rows. * Retention: 30 days (failed rows 90 days) via the cleanup cron. */ export type EmailIntegrationWebhookEventModel = runtime.Types.Result.DefaultSelection export type AggregateEmailIntegrationWebhookEvent = { _count: EmailIntegrationWebhookEventCountAggregateOutputType | null _min: EmailIntegrationWebhookEventMinAggregateOutputType | null _max: EmailIntegrationWebhookEventMaxAggregateOutputType | null } export type EmailIntegrationWebhookEventMinAggregateOutputType = { id: string | null receivedAt: Date | null tenantId: string | null mailboxId: string | null provider: $Enums.EmailInboxProvider | null processingStatus: $Enums.EmailWebhookProcessingStatus | null processingErrorText: string | null processedAt: Date | null } export type EmailIntegrationWebhookEventMaxAggregateOutputType = { id: string | null receivedAt: Date | null tenantId: string | null mailboxId: string | null provider: $Enums.EmailInboxProvider | null processingStatus: $Enums.EmailWebhookProcessingStatus | null processingErrorText: string | null processedAt: Date | null } export type EmailIntegrationWebhookEventCountAggregateOutputType = { id: number receivedAt: number tenantId: number mailboxId: number provider: number notificationPayload: number processingStatus: number processingErrorText: number processedAt: number derivedMessageIds: number _all: number } export type EmailIntegrationWebhookEventMinAggregateInputType = { id?: true receivedAt?: true tenantId?: true mailboxId?: true provider?: true processingStatus?: true processingErrorText?: true processedAt?: true } export type EmailIntegrationWebhookEventMaxAggregateInputType = { id?: true receivedAt?: true tenantId?: true mailboxId?: true provider?: true processingStatus?: true processingErrorText?: true processedAt?: true } export type EmailIntegrationWebhookEventCountAggregateInputType = { id?: true receivedAt?: true tenantId?: true mailboxId?: true provider?: true notificationPayload?: true processingStatus?: true processingErrorText?: true processedAt?: true derivedMessageIds?: true _all?: true } export type EmailIntegrationWebhookEventAggregateArgs = { /** * Filter which EmailIntegrationWebhookEvent to aggregate. */ where?: Prisma.EmailIntegrationWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailIntegrationWebhookEvents to fetch. */ orderBy?: Prisma.EmailIntegrationWebhookEventOrderByWithRelationInput | Prisma.EmailIntegrationWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailIntegrationWebhookEvents 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` EmailIntegrationWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EmailIntegrationWebhookEvents **/ _count?: true | EmailIntegrationWebhookEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EmailIntegrationWebhookEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EmailIntegrationWebhookEventMaxAggregateInputType } export type GetEmailIntegrationWebhookEventAggregateType = { [P in keyof T & keyof AggregateEmailIntegrationWebhookEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type EmailIntegrationWebhookEventGroupByArgs = { where?: Prisma.EmailIntegrationWebhookEventWhereInput orderBy?: Prisma.EmailIntegrationWebhookEventOrderByWithAggregationInput | Prisma.EmailIntegrationWebhookEventOrderByWithAggregationInput[] by: Prisma.EmailIntegrationWebhookEventScalarFieldEnum[] | Prisma.EmailIntegrationWebhookEventScalarFieldEnum having?: Prisma.EmailIntegrationWebhookEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: EmailIntegrationWebhookEventCountAggregateInputType | true _min?: EmailIntegrationWebhookEventMinAggregateInputType _max?: EmailIntegrationWebhookEventMaxAggregateInputType } export type EmailIntegrationWebhookEventGroupByOutputType = { id: string receivedAt: Date tenantId: string mailboxId: string provider: $Enums.EmailInboxProvider notificationPayload: runtime.JsonValue processingStatus: $Enums.EmailWebhookProcessingStatus processingErrorText: string | null processedAt: Date | null derivedMessageIds: runtime.JsonValue _count: EmailIntegrationWebhookEventCountAggregateOutputType | null _min: EmailIntegrationWebhookEventMinAggregateOutputType | null _max: EmailIntegrationWebhookEventMaxAggregateOutputType | null } export type GetEmailIntegrationWebhookEventGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof EmailIntegrationWebhookEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type EmailIntegrationWebhookEventWhereInput = { AND?: Prisma.EmailIntegrationWebhookEventWhereInput | Prisma.EmailIntegrationWebhookEventWhereInput[] OR?: Prisma.EmailIntegrationWebhookEventWhereInput[] NOT?: Prisma.EmailIntegrationWebhookEventWhereInput | Prisma.EmailIntegrationWebhookEventWhereInput[] id?: Prisma.StringFilter<"EmailIntegrationWebhookEvent"> | string receivedAt?: Prisma.DateTimeFilter<"EmailIntegrationWebhookEvent"> | Date | string tenantId?: Prisma.StringFilter<"EmailIntegrationWebhookEvent"> | string mailboxId?: Prisma.StringFilter<"EmailIntegrationWebhookEvent"> | string provider?: Prisma.EnumEmailInboxProviderFilter<"EmailIntegrationWebhookEvent"> | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonFilter<"EmailIntegrationWebhookEvent"> processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFilter<"EmailIntegrationWebhookEvent"> | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.StringNullableFilter<"EmailIntegrationWebhookEvent"> | string | null processedAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationWebhookEvent"> | Date | string | null derivedMessageIds?: Prisma.JsonFilter<"EmailIntegrationWebhookEvent"> mailbox?: Prisma.XOR } export type EmailIntegrationWebhookEventOrderByWithRelationInput = { id?: Prisma.SortOrder receivedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder mailboxId?: Prisma.SortOrder provider?: Prisma.SortOrder notificationPayload?: Prisma.SortOrder processingStatus?: Prisma.SortOrder processingErrorText?: Prisma.SortOrderInput | Prisma.SortOrder processedAt?: Prisma.SortOrderInput | Prisma.SortOrder derivedMessageIds?: Prisma.SortOrder mailbox?: Prisma.EmailIntegrationMailboxOrderByWithRelationInput } export type EmailIntegrationWebhookEventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.EmailIntegrationWebhookEventWhereInput | Prisma.EmailIntegrationWebhookEventWhereInput[] OR?: Prisma.EmailIntegrationWebhookEventWhereInput[] NOT?: Prisma.EmailIntegrationWebhookEventWhereInput | Prisma.EmailIntegrationWebhookEventWhereInput[] receivedAt?: Prisma.DateTimeFilter<"EmailIntegrationWebhookEvent"> | Date | string tenantId?: Prisma.StringFilter<"EmailIntegrationWebhookEvent"> | string mailboxId?: Prisma.StringFilter<"EmailIntegrationWebhookEvent"> | string provider?: Prisma.EnumEmailInboxProviderFilter<"EmailIntegrationWebhookEvent"> | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonFilter<"EmailIntegrationWebhookEvent"> processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFilter<"EmailIntegrationWebhookEvent"> | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.StringNullableFilter<"EmailIntegrationWebhookEvent"> | string | null processedAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationWebhookEvent"> | Date | string | null derivedMessageIds?: Prisma.JsonFilter<"EmailIntegrationWebhookEvent"> mailbox?: Prisma.XOR }, "id"> export type EmailIntegrationWebhookEventOrderByWithAggregationInput = { id?: Prisma.SortOrder receivedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder mailboxId?: Prisma.SortOrder provider?: Prisma.SortOrder notificationPayload?: Prisma.SortOrder processingStatus?: Prisma.SortOrder processingErrorText?: Prisma.SortOrderInput | Prisma.SortOrder processedAt?: Prisma.SortOrderInput | Prisma.SortOrder derivedMessageIds?: Prisma.SortOrder _count?: Prisma.EmailIntegrationWebhookEventCountOrderByAggregateInput _max?: Prisma.EmailIntegrationWebhookEventMaxOrderByAggregateInput _min?: Prisma.EmailIntegrationWebhookEventMinOrderByAggregateInput } export type EmailIntegrationWebhookEventScalarWhereWithAggregatesInput = { AND?: Prisma.EmailIntegrationWebhookEventScalarWhereWithAggregatesInput | Prisma.EmailIntegrationWebhookEventScalarWhereWithAggregatesInput[] OR?: Prisma.EmailIntegrationWebhookEventScalarWhereWithAggregatesInput[] NOT?: Prisma.EmailIntegrationWebhookEventScalarWhereWithAggregatesInput | Prisma.EmailIntegrationWebhookEventScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"EmailIntegrationWebhookEvent"> | string receivedAt?: Prisma.DateTimeWithAggregatesFilter<"EmailIntegrationWebhookEvent"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"EmailIntegrationWebhookEvent"> | string mailboxId?: Prisma.StringWithAggregatesFilter<"EmailIntegrationWebhookEvent"> | string provider?: Prisma.EnumEmailInboxProviderWithAggregatesFilter<"EmailIntegrationWebhookEvent"> | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonWithAggregatesFilter<"EmailIntegrationWebhookEvent"> processingStatus?: Prisma.EnumEmailWebhookProcessingStatusWithAggregatesFilter<"EmailIntegrationWebhookEvent"> | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationWebhookEvent"> | string | null processedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EmailIntegrationWebhookEvent"> | Date | string | null derivedMessageIds?: Prisma.JsonWithAggregatesFilter<"EmailIntegrationWebhookEvent"> } export type EmailIntegrationWebhookEventCreateInput = { id?: string receivedAt?: Date | string tenantId: string provider: $Enums.EmailInboxProvider notificationPayload: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: $Enums.EmailWebhookProcessingStatus processingErrorText?: string | null processedAt?: Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue mailbox: Prisma.EmailIntegrationMailboxCreateNestedOneWithoutWebhookEventsInput } export type EmailIntegrationWebhookEventUncheckedCreateInput = { id?: string receivedAt?: Date | string tenantId: string mailboxId: string provider: $Enums.EmailInboxProvider notificationPayload: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: $Enums.EmailWebhookProcessingStatus processingErrorText?: string | null processedAt?: Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumEmailInboxProviderFieldUpdateOperationsInput | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFieldUpdateOperationsInput | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue mailbox?: Prisma.EmailIntegrationMailboxUpdateOneRequiredWithoutWebhookEventsNestedInput } export type EmailIntegrationWebhookEventUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string mailboxId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumEmailInboxProviderFieldUpdateOperationsInput | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFieldUpdateOperationsInput | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventCreateManyInput = { id?: string receivedAt?: Date | string tenantId: string mailboxId: string provider: $Enums.EmailInboxProvider notificationPayload: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: $Enums.EmailWebhookProcessingStatus processingErrorText?: string | null processedAt?: Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumEmailInboxProviderFieldUpdateOperationsInput | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFieldUpdateOperationsInput | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string mailboxId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumEmailInboxProviderFieldUpdateOperationsInput | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFieldUpdateOperationsInput | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventListRelationFilter = { every?: Prisma.EmailIntegrationWebhookEventWhereInput some?: Prisma.EmailIntegrationWebhookEventWhereInput none?: Prisma.EmailIntegrationWebhookEventWhereInput } export type EmailIntegrationWebhookEventOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type EmailIntegrationWebhookEventCountOrderByAggregateInput = { id?: Prisma.SortOrder receivedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder mailboxId?: Prisma.SortOrder provider?: Prisma.SortOrder notificationPayload?: Prisma.SortOrder processingStatus?: Prisma.SortOrder processingErrorText?: Prisma.SortOrder processedAt?: Prisma.SortOrder derivedMessageIds?: Prisma.SortOrder } export type EmailIntegrationWebhookEventMaxOrderByAggregateInput = { id?: Prisma.SortOrder receivedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder mailboxId?: Prisma.SortOrder provider?: Prisma.SortOrder processingStatus?: Prisma.SortOrder processingErrorText?: Prisma.SortOrder processedAt?: Prisma.SortOrder } export type EmailIntegrationWebhookEventMinOrderByAggregateInput = { id?: Prisma.SortOrder receivedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder mailboxId?: Prisma.SortOrder provider?: Prisma.SortOrder processingStatus?: Prisma.SortOrder processingErrorText?: Prisma.SortOrder processedAt?: Prisma.SortOrder } export type EmailIntegrationWebhookEventCreateNestedManyWithoutMailboxInput = { create?: Prisma.XOR | Prisma.EmailIntegrationWebhookEventCreateWithoutMailboxInput[] | Prisma.EmailIntegrationWebhookEventUncheckedCreateWithoutMailboxInput[] connectOrCreate?: Prisma.EmailIntegrationWebhookEventCreateOrConnectWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventCreateOrConnectWithoutMailboxInput[] createMany?: Prisma.EmailIntegrationWebhookEventCreateManyMailboxInputEnvelope connect?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] } export type EmailIntegrationWebhookEventUncheckedCreateNestedManyWithoutMailboxInput = { create?: Prisma.XOR | Prisma.EmailIntegrationWebhookEventCreateWithoutMailboxInput[] | Prisma.EmailIntegrationWebhookEventUncheckedCreateWithoutMailboxInput[] connectOrCreate?: Prisma.EmailIntegrationWebhookEventCreateOrConnectWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventCreateOrConnectWithoutMailboxInput[] createMany?: Prisma.EmailIntegrationWebhookEventCreateManyMailboxInputEnvelope connect?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] } export type EmailIntegrationWebhookEventUpdateManyWithoutMailboxNestedInput = { create?: Prisma.XOR | Prisma.EmailIntegrationWebhookEventCreateWithoutMailboxInput[] | Prisma.EmailIntegrationWebhookEventUncheckedCreateWithoutMailboxInput[] connectOrCreate?: Prisma.EmailIntegrationWebhookEventCreateOrConnectWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventCreateOrConnectWithoutMailboxInput[] upsert?: Prisma.EmailIntegrationWebhookEventUpsertWithWhereUniqueWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventUpsertWithWhereUniqueWithoutMailboxInput[] createMany?: Prisma.EmailIntegrationWebhookEventCreateManyMailboxInputEnvelope set?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] disconnect?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] delete?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] connect?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] update?: Prisma.EmailIntegrationWebhookEventUpdateWithWhereUniqueWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventUpdateWithWhereUniqueWithoutMailboxInput[] updateMany?: Prisma.EmailIntegrationWebhookEventUpdateManyWithWhereWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventUpdateManyWithWhereWithoutMailboxInput[] deleteMany?: Prisma.EmailIntegrationWebhookEventScalarWhereInput | Prisma.EmailIntegrationWebhookEventScalarWhereInput[] } export type EmailIntegrationWebhookEventUncheckedUpdateManyWithoutMailboxNestedInput = { create?: Prisma.XOR | Prisma.EmailIntegrationWebhookEventCreateWithoutMailboxInput[] | Prisma.EmailIntegrationWebhookEventUncheckedCreateWithoutMailboxInput[] connectOrCreate?: Prisma.EmailIntegrationWebhookEventCreateOrConnectWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventCreateOrConnectWithoutMailboxInput[] upsert?: Prisma.EmailIntegrationWebhookEventUpsertWithWhereUniqueWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventUpsertWithWhereUniqueWithoutMailboxInput[] createMany?: Prisma.EmailIntegrationWebhookEventCreateManyMailboxInputEnvelope set?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] disconnect?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] delete?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] connect?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput | Prisma.EmailIntegrationWebhookEventWhereUniqueInput[] update?: Prisma.EmailIntegrationWebhookEventUpdateWithWhereUniqueWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventUpdateWithWhereUniqueWithoutMailboxInput[] updateMany?: Prisma.EmailIntegrationWebhookEventUpdateManyWithWhereWithoutMailboxInput | Prisma.EmailIntegrationWebhookEventUpdateManyWithWhereWithoutMailboxInput[] deleteMany?: Prisma.EmailIntegrationWebhookEventScalarWhereInput | Prisma.EmailIntegrationWebhookEventScalarWhereInput[] } export type EnumEmailWebhookProcessingStatusFieldUpdateOperationsInput = { set?: $Enums.EmailWebhookProcessingStatus } export type EmailIntegrationWebhookEventCreateWithoutMailboxInput = { id?: string receivedAt?: Date | string tenantId: string provider: $Enums.EmailInboxProvider notificationPayload: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: $Enums.EmailWebhookProcessingStatus processingErrorText?: string | null processedAt?: Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventUncheckedCreateWithoutMailboxInput = { id?: string receivedAt?: Date | string tenantId: string provider: $Enums.EmailInboxProvider notificationPayload: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: $Enums.EmailWebhookProcessingStatus processingErrorText?: string | null processedAt?: Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventCreateOrConnectWithoutMailboxInput = { where: Prisma.EmailIntegrationWebhookEventWhereUniqueInput create: Prisma.XOR } export type EmailIntegrationWebhookEventCreateManyMailboxInputEnvelope = { data: Prisma.EmailIntegrationWebhookEventCreateManyMailboxInput | Prisma.EmailIntegrationWebhookEventCreateManyMailboxInput[] skipDuplicates?: boolean } export type EmailIntegrationWebhookEventUpsertWithWhereUniqueWithoutMailboxInput = { where: Prisma.EmailIntegrationWebhookEventWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type EmailIntegrationWebhookEventUpdateWithWhereUniqueWithoutMailboxInput = { where: Prisma.EmailIntegrationWebhookEventWhereUniqueInput data: Prisma.XOR } export type EmailIntegrationWebhookEventUpdateManyWithWhereWithoutMailboxInput = { where: Prisma.EmailIntegrationWebhookEventScalarWhereInput data: Prisma.XOR } export type EmailIntegrationWebhookEventScalarWhereInput = { AND?: Prisma.EmailIntegrationWebhookEventScalarWhereInput | Prisma.EmailIntegrationWebhookEventScalarWhereInput[] OR?: Prisma.EmailIntegrationWebhookEventScalarWhereInput[] NOT?: Prisma.EmailIntegrationWebhookEventScalarWhereInput | Prisma.EmailIntegrationWebhookEventScalarWhereInput[] id?: Prisma.StringFilter<"EmailIntegrationWebhookEvent"> | string receivedAt?: Prisma.DateTimeFilter<"EmailIntegrationWebhookEvent"> | Date | string tenantId?: Prisma.StringFilter<"EmailIntegrationWebhookEvent"> | string mailboxId?: Prisma.StringFilter<"EmailIntegrationWebhookEvent"> | string provider?: Prisma.EnumEmailInboxProviderFilter<"EmailIntegrationWebhookEvent"> | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonFilter<"EmailIntegrationWebhookEvent"> processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFilter<"EmailIntegrationWebhookEvent"> | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.StringNullableFilter<"EmailIntegrationWebhookEvent"> | string | null processedAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationWebhookEvent"> | Date | string | null derivedMessageIds?: Prisma.JsonFilter<"EmailIntegrationWebhookEvent"> } export type EmailIntegrationWebhookEventCreateManyMailboxInput = { id?: string receivedAt?: Date | string tenantId: string provider: $Enums.EmailInboxProvider notificationPayload: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: $Enums.EmailWebhookProcessingStatus processingErrorText?: string | null processedAt?: Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventUpdateWithoutMailboxInput = { id?: Prisma.StringFieldUpdateOperationsInput | string receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumEmailInboxProviderFieldUpdateOperationsInput | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFieldUpdateOperationsInput | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventUncheckedUpdateWithoutMailboxInput = { id?: Prisma.StringFieldUpdateOperationsInput | string receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumEmailInboxProviderFieldUpdateOperationsInput | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFieldUpdateOperationsInput | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventUncheckedUpdateManyWithoutMailboxInput = { id?: Prisma.StringFieldUpdateOperationsInput | string receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumEmailInboxProviderFieldUpdateOperationsInput | $Enums.EmailInboxProvider notificationPayload?: Prisma.JsonNullValueInput | runtime.InputJsonValue processingStatus?: Prisma.EnumEmailWebhookProcessingStatusFieldUpdateOperationsInput | $Enums.EmailWebhookProcessingStatus processingErrorText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null derivedMessageIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue } export type EmailIntegrationWebhookEventSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean receivedAt?: boolean tenantId?: boolean mailboxId?: boolean provider?: boolean notificationPayload?: boolean processingStatus?: boolean processingErrorText?: boolean processedAt?: boolean derivedMessageIds?: boolean mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs }, ExtArgs["result"]["emailIntegrationWebhookEvent"]> export type EmailIntegrationWebhookEventSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean receivedAt?: boolean tenantId?: boolean mailboxId?: boolean provider?: boolean notificationPayload?: boolean processingStatus?: boolean processingErrorText?: boolean processedAt?: boolean derivedMessageIds?: boolean mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs }, ExtArgs["result"]["emailIntegrationWebhookEvent"]> export type EmailIntegrationWebhookEventSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean receivedAt?: boolean tenantId?: boolean mailboxId?: boolean provider?: boolean notificationPayload?: boolean processingStatus?: boolean processingErrorText?: boolean processedAt?: boolean derivedMessageIds?: boolean mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs }, ExtArgs["result"]["emailIntegrationWebhookEvent"]> export type EmailIntegrationWebhookEventSelectScalar = { id?: boolean receivedAt?: boolean tenantId?: boolean mailboxId?: boolean provider?: boolean notificationPayload?: boolean processingStatus?: boolean processingErrorText?: boolean processedAt?: boolean derivedMessageIds?: boolean } export type EmailIntegrationWebhookEventOmit = runtime.Types.Extensions.GetOmit<"id" | "receivedAt" | "tenantId" | "mailboxId" | "provider" | "notificationPayload" | "processingStatus" | "processingErrorText" | "processedAt" | "derivedMessageIds", ExtArgs["result"]["emailIntegrationWebhookEvent"]> export type EmailIntegrationWebhookEventInclude = { mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs } export type EmailIntegrationWebhookEventIncludeCreateManyAndReturn = { mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs } export type EmailIntegrationWebhookEventIncludeUpdateManyAndReturn = { mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs } export type $EmailIntegrationWebhookEventPayload = { name: "EmailIntegrationWebhookEvent" objects: { mailbox: Prisma.$EmailIntegrationMailboxPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string receivedAt: Date tenantId: string mailboxId: string provider: $Enums.EmailInboxProvider notificationPayload: runtime.JsonValue processingStatus: $Enums.EmailWebhookProcessingStatus processingErrorText: string | null processedAt: Date | null derivedMessageIds: runtime.JsonValue }, ExtArgs["result"]["emailIntegrationWebhookEvent"]> composites: {} } export type EmailIntegrationWebhookEventGetPayload = runtime.Types.Result.GetResult export type EmailIntegrationWebhookEventCountArgs = Omit & { select?: EmailIntegrationWebhookEventCountAggregateInputType | true } export interface EmailIntegrationWebhookEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EmailIntegrationWebhookEvent'], meta: { name: 'EmailIntegrationWebhookEvent' } } /** * Find zero or one EmailIntegrationWebhookEvent that matches the filter. * @param {EmailIntegrationWebhookEventFindUniqueArgs} args - Arguments to find a EmailIntegrationWebhookEvent * @example * // Get one EmailIntegrationWebhookEvent * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EmailIntegrationWebhookEventClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one EmailIntegrationWebhookEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EmailIntegrationWebhookEventFindUniqueOrThrowArgs} args - Arguments to find a EmailIntegrationWebhookEvent * @example * // Get one EmailIntegrationWebhookEvent * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EmailIntegrationWebhookEventClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first EmailIntegrationWebhookEvent 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 {EmailIntegrationWebhookEventFindFirstArgs} args - Arguments to find a EmailIntegrationWebhookEvent * @example * // Get one EmailIntegrationWebhookEvent * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailIntegrationWebhookEventClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first EmailIntegrationWebhookEvent 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 {EmailIntegrationWebhookEventFindFirstOrThrowArgs} args - Arguments to find a EmailIntegrationWebhookEvent * @example * // Get one EmailIntegrationWebhookEvent * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailIntegrationWebhookEventClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more EmailIntegrationWebhookEvents 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 {EmailIntegrationWebhookEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EmailIntegrationWebhookEvents * const emailIntegrationWebhookEvents = await prisma.emailIntegrationWebhookEvent.findMany() * * // Get first 10 EmailIntegrationWebhookEvents * const emailIntegrationWebhookEvents = await prisma.emailIntegrationWebhookEvent.findMany({ take: 10 }) * * // Only select the `id` * const emailIntegrationWebhookEventWithIdOnly = await prisma.emailIntegrationWebhookEvent.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a EmailIntegrationWebhookEvent. * @param {EmailIntegrationWebhookEventCreateArgs} args - Arguments to create a EmailIntegrationWebhookEvent. * @example * // Create one EmailIntegrationWebhookEvent * const EmailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.create({ * data: { * // ... data to create a EmailIntegrationWebhookEvent * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EmailIntegrationWebhookEventClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many EmailIntegrationWebhookEvents. * @param {EmailIntegrationWebhookEventCreateManyArgs} args - Arguments to create many EmailIntegrationWebhookEvents. * @example * // Create many EmailIntegrationWebhookEvents * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many EmailIntegrationWebhookEvents and returns the data saved in the database. * @param {EmailIntegrationWebhookEventCreateManyAndReturnArgs} args - Arguments to create many EmailIntegrationWebhookEvents. * @example * // Create many EmailIntegrationWebhookEvents * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EmailIntegrationWebhookEvents and only return the `id` * const emailIntegrationWebhookEventWithIdOnly = await prisma.emailIntegrationWebhookEvent.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 EmailIntegrationWebhookEvent. * @param {EmailIntegrationWebhookEventDeleteArgs} args - Arguments to delete one EmailIntegrationWebhookEvent. * @example * // Delete one EmailIntegrationWebhookEvent * const EmailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.delete({ * where: { * // ... filter to delete one EmailIntegrationWebhookEvent * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EmailIntegrationWebhookEventClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one EmailIntegrationWebhookEvent. * @param {EmailIntegrationWebhookEventUpdateArgs} args - Arguments to update one EmailIntegrationWebhookEvent. * @example * // Update one EmailIntegrationWebhookEvent * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EmailIntegrationWebhookEventClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more EmailIntegrationWebhookEvents. * @param {EmailIntegrationWebhookEventDeleteManyArgs} args - Arguments to filter EmailIntegrationWebhookEvents to delete. * @example * // Delete a few EmailIntegrationWebhookEvents * const { count } = await prisma.emailIntegrationWebhookEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailIntegrationWebhookEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailIntegrationWebhookEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EmailIntegrationWebhookEvents * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailIntegrationWebhookEvents and returns the data updated in the database. * @param {EmailIntegrationWebhookEventUpdateManyAndReturnArgs} args - Arguments to update many EmailIntegrationWebhookEvents. * @example * // Update many EmailIntegrationWebhookEvents * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more EmailIntegrationWebhookEvents and only return the `id` * const emailIntegrationWebhookEventWithIdOnly = await prisma.emailIntegrationWebhookEvent.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 EmailIntegrationWebhookEvent. * @param {EmailIntegrationWebhookEventUpsertArgs} args - Arguments to update or create a EmailIntegrationWebhookEvent. * @example * // Update or create a EmailIntegrationWebhookEvent * const emailIntegrationWebhookEvent = await prisma.emailIntegrationWebhookEvent.upsert({ * create: { * // ... data to create a EmailIntegrationWebhookEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EmailIntegrationWebhookEvent we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EmailIntegrationWebhookEventClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of EmailIntegrationWebhookEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailIntegrationWebhookEventCountArgs} args - Arguments to filter EmailIntegrationWebhookEvents to count. * @example * // Count the number of EmailIntegrationWebhookEvents * const count = await prisma.emailIntegrationWebhookEvent.count({ * where: { * // ... the filter for the EmailIntegrationWebhookEvents 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 EmailIntegrationWebhookEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailIntegrationWebhookEventAggregateArgs} 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 EmailIntegrationWebhookEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailIntegrationWebhookEventGroupByArgs} 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 EmailIntegrationWebhookEventGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EmailIntegrationWebhookEventGroupByArgs['orderBy'] } : { orderBy?: EmailIntegrationWebhookEventGroupByArgs['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 ? GetEmailIntegrationWebhookEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the EmailIntegrationWebhookEvent model */ readonly fields: EmailIntegrationWebhookEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EmailIntegrationWebhookEvent. * 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__EmailIntegrationWebhookEventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" mailbox = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmailIntegrationMailboxClient, 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 EmailIntegrationWebhookEvent model */ export interface EmailIntegrationWebhookEventFieldRefs { readonly id: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'String'> readonly receivedAt: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'DateTime'> readonly tenantId: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'String'> readonly mailboxId: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'String'> readonly provider: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'EmailInboxProvider'> readonly notificationPayload: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'Json'> readonly processingStatus: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'EmailWebhookProcessingStatus'> readonly processingErrorText: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'String'> readonly processedAt: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'DateTime'> readonly derivedMessageIds: Prisma.FieldRef<"EmailIntegrationWebhookEvent", 'Json'> } // Custom InputTypes /** * EmailIntegrationWebhookEvent findUnique */ export type EmailIntegrationWebhookEventFindUniqueArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null /** * Filter, which EmailIntegrationWebhookEvent to fetch. */ where: Prisma.EmailIntegrationWebhookEventWhereUniqueInput } /** * EmailIntegrationWebhookEvent findUniqueOrThrow */ export type EmailIntegrationWebhookEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null /** * Filter, which EmailIntegrationWebhookEvent to fetch. */ where: Prisma.EmailIntegrationWebhookEventWhereUniqueInput } /** * EmailIntegrationWebhookEvent findFirst */ export type EmailIntegrationWebhookEventFindFirstArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null /** * Filter, which EmailIntegrationWebhookEvent to fetch. */ where?: Prisma.EmailIntegrationWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailIntegrationWebhookEvents to fetch. */ orderBy?: Prisma.EmailIntegrationWebhookEventOrderByWithRelationInput | Prisma.EmailIntegrationWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailIntegrationWebhookEvents. */ cursor?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailIntegrationWebhookEvents 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` EmailIntegrationWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailIntegrationWebhookEvents. */ distinct?: Prisma.EmailIntegrationWebhookEventScalarFieldEnum | Prisma.EmailIntegrationWebhookEventScalarFieldEnum[] } /** * EmailIntegrationWebhookEvent findFirstOrThrow */ export type EmailIntegrationWebhookEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null /** * Filter, which EmailIntegrationWebhookEvent to fetch. */ where?: Prisma.EmailIntegrationWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailIntegrationWebhookEvents to fetch. */ orderBy?: Prisma.EmailIntegrationWebhookEventOrderByWithRelationInput | Prisma.EmailIntegrationWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailIntegrationWebhookEvents. */ cursor?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailIntegrationWebhookEvents 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` EmailIntegrationWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailIntegrationWebhookEvents. */ distinct?: Prisma.EmailIntegrationWebhookEventScalarFieldEnum | Prisma.EmailIntegrationWebhookEventScalarFieldEnum[] } /** * EmailIntegrationWebhookEvent findMany */ export type EmailIntegrationWebhookEventFindManyArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null /** * Filter, which EmailIntegrationWebhookEvents to fetch. */ where?: Prisma.EmailIntegrationWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailIntegrationWebhookEvents to fetch. */ orderBy?: Prisma.EmailIntegrationWebhookEventOrderByWithRelationInput | Prisma.EmailIntegrationWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EmailIntegrationWebhookEvents. */ cursor?: Prisma.EmailIntegrationWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailIntegrationWebhookEvents 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` EmailIntegrationWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailIntegrationWebhookEvents. */ distinct?: Prisma.EmailIntegrationWebhookEventScalarFieldEnum | Prisma.EmailIntegrationWebhookEventScalarFieldEnum[] } /** * EmailIntegrationWebhookEvent create */ export type EmailIntegrationWebhookEventCreateArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null /** * The data needed to create a EmailIntegrationWebhookEvent. */ data: Prisma.XOR } /** * EmailIntegrationWebhookEvent createMany */ export type EmailIntegrationWebhookEventCreateManyArgs = { /** * The data used to create many EmailIntegrationWebhookEvents. */ data: Prisma.EmailIntegrationWebhookEventCreateManyInput | Prisma.EmailIntegrationWebhookEventCreateManyInput[] skipDuplicates?: boolean } /** * EmailIntegrationWebhookEvent createManyAndReturn */ export type EmailIntegrationWebhookEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelectCreateManyAndReturn | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * The data used to create many EmailIntegrationWebhookEvents. */ data: Prisma.EmailIntegrationWebhookEventCreateManyInput | Prisma.EmailIntegrationWebhookEventCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventIncludeCreateManyAndReturn | null } /** * EmailIntegrationWebhookEvent update */ export type EmailIntegrationWebhookEventUpdateArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null /** * The data needed to update a EmailIntegrationWebhookEvent. */ data: Prisma.XOR /** * Choose, which EmailIntegrationWebhookEvent to update. */ where: Prisma.EmailIntegrationWebhookEventWhereUniqueInput } /** * EmailIntegrationWebhookEvent updateMany */ export type EmailIntegrationWebhookEventUpdateManyArgs = { /** * The data used to update EmailIntegrationWebhookEvents. */ data: Prisma.XOR /** * Filter which EmailIntegrationWebhookEvents to update */ where?: Prisma.EmailIntegrationWebhookEventWhereInput /** * Limit how many EmailIntegrationWebhookEvents to update. */ limit?: number } /** * EmailIntegrationWebhookEvent updateManyAndReturn */ export type EmailIntegrationWebhookEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelectUpdateManyAndReturn | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * The data used to update EmailIntegrationWebhookEvents. */ data: Prisma.XOR /** * Filter which EmailIntegrationWebhookEvents to update */ where?: Prisma.EmailIntegrationWebhookEventWhereInput /** * Limit how many EmailIntegrationWebhookEvents to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventIncludeUpdateManyAndReturn | null } /** * EmailIntegrationWebhookEvent upsert */ export type EmailIntegrationWebhookEventUpsertArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null /** * The filter to search for the EmailIntegrationWebhookEvent to update in case it exists. */ where: Prisma.EmailIntegrationWebhookEventWhereUniqueInput /** * In case the EmailIntegrationWebhookEvent found by the `where` argument doesn't exist, create a new EmailIntegrationWebhookEvent with this data. */ create: Prisma.XOR /** * In case the EmailIntegrationWebhookEvent was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * EmailIntegrationWebhookEvent delete */ export type EmailIntegrationWebhookEventDeleteArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null /** * Filter which EmailIntegrationWebhookEvent to delete. */ where: Prisma.EmailIntegrationWebhookEventWhereUniqueInput } /** * EmailIntegrationWebhookEvent deleteMany */ export type EmailIntegrationWebhookEventDeleteManyArgs = { /** * Filter which EmailIntegrationWebhookEvents to delete */ where?: Prisma.EmailIntegrationWebhookEventWhereInput /** * Limit how many EmailIntegrationWebhookEvents to delete. */ limit?: number } /** * EmailIntegrationWebhookEvent without action */ export type EmailIntegrationWebhookEventDefaultArgs = { /** * Select specific fields to fetch from the EmailIntegrationWebhookEvent */ select?: Prisma.EmailIntegrationWebhookEventSelect | null /** * Omit specific fields from the EmailIntegrationWebhookEvent */ omit?: Prisma.EmailIntegrationWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIntegrationWebhookEventInclude | null }