/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `NotificationDelivery` 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 NotificationDelivery * */ export type NotificationDeliveryModel = runtime.Types.Result.DefaultSelection export type AggregateNotificationDelivery = { _count: NotificationDeliveryCountAggregateOutputType | null _avg: NotificationDeliveryAvgAggregateOutputType | null _sum: NotificationDeliverySumAggregateOutputType | null _min: NotificationDeliveryMinAggregateOutputType | null _max: NotificationDeliveryMaxAggregateOutputType | null } export type NotificationDeliveryAvgAggregateOutputType = { attemptsMade: number | null } export type NotificationDeliverySumAggregateOutputType = { attemptsMade: number | null } export type NotificationDeliveryMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null userId: string | null channel: $Enums.NotificationPreferenceChannel | null category: string | null messageKey: string | null sourceKey: string | null status: $Enums.NotificationDeliveryStatus | null attemptsMade: number | null providerMessageId: string | null lastError: string | null sentAt: Date | null readAt: Date | null } export type NotificationDeliveryMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null userId: string | null channel: $Enums.NotificationPreferenceChannel | null category: string | null messageKey: string | null sourceKey: string | null status: $Enums.NotificationDeliveryStatus | null attemptsMade: number | null providerMessageId: string | null lastError: string | null sentAt: Date | null readAt: Date | null } export type NotificationDeliveryCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number userId: number channel: number category: number messageKey: number sourceKey: number status: number attemptsMade: number providerMessageId: number lastError: number payloadMetadata: number sentAt: number readAt: number _all: number } export type NotificationDeliveryAvgAggregateInputType = { attemptsMade?: true } export type NotificationDeliverySumAggregateInputType = { attemptsMade?: true } export type NotificationDeliveryMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true userId?: true channel?: true category?: true messageKey?: true sourceKey?: true status?: true attemptsMade?: true providerMessageId?: true lastError?: true sentAt?: true readAt?: true } export type NotificationDeliveryMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true userId?: true channel?: true category?: true messageKey?: true sourceKey?: true status?: true attemptsMade?: true providerMessageId?: true lastError?: true sentAt?: true readAt?: true } export type NotificationDeliveryCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true userId?: true channel?: true category?: true messageKey?: true sourceKey?: true status?: true attemptsMade?: true providerMessageId?: true lastError?: true payloadMetadata?: true sentAt?: true readAt?: true _all?: true } export type NotificationDeliveryAggregateArgs = { /** * Filter which NotificationDelivery to aggregate. */ where?: Prisma.NotificationDeliveryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NotificationDeliveries to fetch. */ orderBy?: Prisma.NotificationDeliveryOrderByWithRelationInput | Prisma.NotificationDeliveryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.NotificationDeliveryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NotificationDeliveries 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` NotificationDeliveries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned NotificationDeliveries **/ _count?: true | NotificationDeliveryCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: NotificationDeliveryAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: NotificationDeliverySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: NotificationDeliveryMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: NotificationDeliveryMaxAggregateInputType } export type GetNotificationDeliveryAggregateType = { [P in keyof T & keyof AggregateNotificationDelivery]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type NotificationDeliveryGroupByArgs = { where?: Prisma.NotificationDeliveryWhereInput orderBy?: Prisma.NotificationDeliveryOrderByWithAggregationInput | Prisma.NotificationDeliveryOrderByWithAggregationInput[] by: Prisma.NotificationDeliveryScalarFieldEnum[] | Prisma.NotificationDeliveryScalarFieldEnum having?: Prisma.NotificationDeliveryScalarWhereWithAggregatesInput take?: number skip?: number _count?: NotificationDeliveryCountAggregateInputType | true _avg?: NotificationDeliveryAvgAggregateInputType _sum?: NotificationDeliverySumAggregateInputType _min?: NotificationDeliveryMinAggregateInputType _max?: NotificationDeliveryMaxAggregateInputType } export type NotificationDeliveryGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string | null userId: string | null channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey: string | null status: $Enums.NotificationDeliveryStatus attemptsMade: number providerMessageId: string | null lastError: string | null payloadMetadata: runtime.JsonValue | null sentAt: Date | null readAt: Date | null _count: NotificationDeliveryCountAggregateOutputType | null _avg: NotificationDeliveryAvgAggregateOutputType | null _sum: NotificationDeliverySumAggregateOutputType | null _min: NotificationDeliveryMinAggregateOutputType | null _max: NotificationDeliveryMaxAggregateOutputType | null } export type GetNotificationDeliveryGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof NotificationDeliveryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type NotificationDeliveryWhereInput = { AND?: Prisma.NotificationDeliveryWhereInput | Prisma.NotificationDeliveryWhereInput[] OR?: Prisma.NotificationDeliveryWhereInput[] NOT?: Prisma.NotificationDeliveryWhereInput | Prisma.NotificationDeliveryWhereInput[] id?: Prisma.StringFilter<"NotificationDelivery"> | string createdAt?: Prisma.DateTimeFilter<"NotificationDelivery"> | Date | string updatedAt?: Prisma.DateTimeFilter<"NotificationDelivery"> | Date | string tenantId?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null userId?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null channel?: Prisma.EnumNotificationPreferenceChannelFilter<"NotificationDelivery"> | $Enums.NotificationPreferenceChannel category?: Prisma.StringFilter<"NotificationDelivery"> | string messageKey?: Prisma.StringFilter<"NotificationDelivery"> | string sourceKey?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null status?: Prisma.EnumNotificationDeliveryStatusFilter<"NotificationDelivery"> | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFilter<"NotificationDelivery"> | number providerMessageId?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null lastError?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null payloadMetadata?: Prisma.JsonNullableFilter<"NotificationDelivery"> sentAt?: Prisma.DateTimeNullableFilter<"NotificationDelivery"> | Date | string | null readAt?: Prisma.DateTimeNullableFilter<"NotificationDelivery"> | Date | string | null tenant?: Prisma.XOR | null user?: Prisma.XOR | null } export type NotificationDeliveryOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder channel?: Prisma.SortOrder category?: Prisma.SortOrder messageKey?: Prisma.SortOrder sourceKey?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrder attemptsMade?: Prisma.SortOrder providerMessageId?: Prisma.SortOrderInput | Prisma.SortOrder lastError?: Prisma.SortOrderInput | Prisma.SortOrder payloadMetadata?: Prisma.SortOrderInput | Prisma.SortOrder sentAt?: Prisma.SortOrderInput | Prisma.SortOrder readAt?: Prisma.SortOrderInput | Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput user?: Prisma.UserOrderByWithRelationInput } export type NotificationDeliveryWhereUniqueInput = Prisma.AtLeast<{ id?: string notification_delivery_source_key?: Prisma.NotificationDeliveryNotification_delivery_source_keyCompoundUniqueInput AND?: Prisma.NotificationDeliveryWhereInput | Prisma.NotificationDeliveryWhereInput[] OR?: Prisma.NotificationDeliveryWhereInput[] NOT?: Prisma.NotificationDeliveryWhereInput | Prisma.NotificationDeliveryWhereInput[] createdAt?: Prisma.DateTimeFilter<"NotificationDelivery"> | Date | string updatedAt?: Prisma.DateTimeFilter<"NotificationDelivery"> | Date | string tenantId?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null userId?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null channel?: Prisma.EnumNotificationPreferenceChannelFilter<"NotificationDelivery"> | $Enums.NotificationPreferenceChannel category?: Prisma.StringFilter<"NotificationDelivery"> | string messageKey?: Prisma.StringFilter<"NotificationDelivery"> | string sourceKey?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null status?: Prisma.EnumNotificationDeliveryStatusFilter<"NotificationDelivery"> | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFilter<"NotificationDelivery"> | number providerMessageId?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null lastError?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null payloadMetadata?: Prisma.JsonNullableFilter<"NotificationDelivery"> sentAt?: Prisma.DateTimeNullableFilter<"NotificationDelivery"> | Date | string | null readAt?: Prisma.DateTimeNullableFilter<"NotificationDelivery"> | Date | string | null tenant?: Prisma.XOR | null user?: Prisma.XOR | null }, "id" | "notification_delivery_source_key"> export type NotificationDeliveryOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder channel?: Prisma.SortOrder category?: Prisma.SortOrder messageKey?: Prisma.SortOrder sourceKey?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrder attemptsMade?: Prisma.SortOrder providerMessageId?: Prisma.SortOrderInput | Prisma.SortOrder lastError?: Prisma.SortOrderInput | Prisma.SortOrder payloadMetadata?: Prisma.SortOrderInput | Prisma.SortOrder sentAt?: Prisma.SortOrderInput | Prisma.SortOrder readAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.NotificationDeliveryCountOrderByAggregateInput _avg?: Prisma.NotificationDeliveryAvgOrderByAggregateInput _max?: Prisma.NotificationDeliveryMaxOrderByAggregateInput _min?: Prisma.NotificationDeliveryMinOrderByAggregateInput _sum?: Prisma.NotificationDeliverySumOrderByAggregateInput } export type NotificationDeliveryScalarWhereWithAggregatesInput = { AND?: Prisma.NotificationDeliveryScalarWhereWithAggregatesInput | Prisma.NotificationDeliveryScalarWhereWithAggregatesInput[] OR?: Prisma.NotificationDeliveryScalarWhereWithAggregatesInput[] NOT?: Prisma.NotificationDeliveryScalarWhereWithAggregatesInput | Prisma.NotificationDeliveryScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"NotificationDelivery"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"NotificationDelivery"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"NotificationDelivery"> | Date | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"NotificationDelivery"> | string | null userId?: Prisma.StringNullableWithAggregatesFilter<"NotificationDelivery"> | string | null channel?: Prisma.EnumNotificationPreferenceChannelWithAggregatesFilter<"NotificationDelivery"> | $Enums.NotificationPreferenceChannel category?: Prisma.StringWithAggregatesFilter<"NotificationDelivery"> | string messageKey?: Prisma.StringWithAggregatesFilter<"NotificationDelivery"> | string sourceKey?: Prisma.StringNullableWithAggregatesFilter<"NotificationDelivery"> | string | null status?: Prisma.EnumNotificationDeliveryStatusWithAggregatesFilter<"NotificationDelivery"> | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntWithAggregatesFilter<"NotificationDelivery"> | number providerMessageId?: Prisma.StringNullableWithAggregatesFilter<"NotificationDelivery"> | string | null lastError?: Prisma.StringNullableWithAggregatesFilter<"NotificationDelivery"> | string | null payloadMetadata?: Prisma.JsonNullableWithAggregatesFilter<"NotificationDelivery"> sentAt?: Prisma.DateTimeNullableWithAggregatesFilter<"NotificationDelivery"> | Date | string | null readAt?: Prisma.DateTimeNullableWithAggregatesFilter<"NotificationDelivery"> | Date | string | null } export type NotificationDeliveryCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey?: string | null status?: $Enums.NotificationDeliveryStatus attemptsMade?: number providerMessageId?: string | null lastError?: string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Date | string | null readAt?: Date | string | null tenant?: Prisma.TenantCreateNestedOneWithoutNotificationDeliveriesInput user?: Prisma.UserCreateNestedOneWithoutNotificationDeliveriesInput } export type NotificationDeliveryUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null userId?: string | null channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey?: string | null status?: $Enums.NotificationDeliveryStatus attemptsMade?: number providerMessageId?: string | null lastError?: string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Date | string | null readAt?: Date | string | null } export type NotificationDeliveryUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null tenant?: Prisma.TenantUpdateOneWithoutNotificationDeliveriesNestedInput user?: Prisma.UserUpdateOneWithoutNotificationDeliveriesNestedInput } export type NotificationDeliveryUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationDeliveryCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null userId?: string | null channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey?: string | null status?: $Enums.NotificationDeliveryStatus attemptsMade?: number providerMessageId?: string | null lastError?: string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Date | string | null readAt?: Date | string | null } export type NotificationDeliveryUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationDeliveryUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationDeliveryListRelationFilter = { every?: Prisma.NotificationDeliveryWhereInput some?: Prisma.NotificationDeliveryWhereInput none?: Prisma.NotificationDeliveryWhereInput } export type NotificationDeliveryOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type NotificationDeliveryNotification_delivery_source_keyCompoundUniqueInput = { tenantId: string userId: string channel: $Enums.NotificationPreferenceChannel sourceKey: string } export type NotificationDeliveryCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder channel?: Prisma.SortOrder category?: Prisma.SortOrder messageKey?: Prisma.SortOrder sourceKey?: Prisma.SortOrder status?: Prisma.SortOrder attemptsMade?: Prisma.SortOrder providerMessageId?: Prisma.SortOrder lastError?: Prisma.SortOrder payloadMetadata?: Prisma.SortOrder sentAt?: Prisma.SortOrder readAt?: Prisma.SortOrder } export type NotificationDeliveryAvgOrderByAggregateInput = { attemptsMade?: Prisma.SortOrder } export type NotificationDeliveryMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder channel?: Prisma.SortOrder category?: Prisma.SortOrder messageKey?: Prisma.SortOrder sourceKey?: Prisma.SortOrder status?: Prisma.SortOrder attemptsMade?: Prisma.SortOrder providerMessageId?: Prisma.SortOrder lastError?: Prisma.SortOrder sentAt?: Prisma.SortOrder readAt?: Prisma.SortOrder } export type NotificationDeliveryMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder userId?: Prisma.SortOrder channel?: Prisma.SortOrder category?: Prisma.SortOrder messageKey?: Prisma.SortOrder sourceKey?: Prisma.SortOrder status?: Prisma.SortOrder attemptsMade?: Prisma.SortOrder providerMessageId?: Prisma.SortOrder lastError?: Prisma.SortOrder sentAt?: Prisma.SortOrder readAt?: Prisma.SortOrder } export type NotificationDeliverySumOrderByAggregateInput = { attemptsMade?: Prisma.SortOrder } export type NotificationDeliveryCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.NotificationDeliveryCreateWithoutUserInput[] | Prisma.NotificationDeliveryUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.NotificationDeliveryCreateOrConnectWithoutUserInput | Prisma.NotificationDeliveryCreateOrConnectWithoutUserInput[] createMany?: Prisma.NotificationDeliveryCreateManyUserInputEnvelope connect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] } export type NotificationDeliveryUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.NotificationDeliveryCreateWithoutUserInput[] | Prisma.NotificationDeliveryUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.NotificationDeliveryCreateOrConnectWithoutUserInput | Prisma.NotificationDeliveryCreateOrConnectWithoutUserInput[] createMany?: Prisma.NotificationDeliveryCreateManyUserInputEnvelope connect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] } export type NotificationDeliveryUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.NotificationDeliveryCreateWithoutUserInput[] | Prisma.NotificationDeliveryUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.NotificationDeliveryCreateOrConnectWithoutUserInput | Prisma.NotificationDeliveryCreateOrConnectWithoutUserInput[] upsert?: Prisma.NotificationDeliveryUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationDeliveryUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.NotificationDeliveryCreateManyUserInputEnvelope set?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] disconnect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] delete?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] connect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] update?: Prisma.NotificationDeliveryUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationDeliveryUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.NotificationDeliveryUpdateManyWithWhereWithoutUserInput | Prisma.NotificationDeliveryUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.NotificationDeliveryScalarWhereInput | Prisma.NotificationDeliveryScalarWhereInput[] } export type NotificationDeliveryUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.NotificationDeliveryCreateWithoutUserInput[] | Prisma.NotificationDeliveryUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.NotificationDeliveryCreateOrConnectWithoutUserInput | Prisma.NotificationDeliveryCreateOrConnectWithoutUserInput[] upsert?: Prisma.NotificationDeliveryUpsertWithWhereUniqueWithoutUserInput | Prisma.NotificationDeliveryUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.NotificationDeliveryCreateManyUserInputEnvelope set?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] disconnect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] delete?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] connect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] update?: Prisma.NotificationDeliveryUpdateWithWhereUniqueWithoutUserInput | Prisma.NotificationDeliveryUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.NotificationDeliveryUpdateManyWithWhereWithoutUserInput | Prisma.NotificationDeliveryUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.NotificationDeliveryScalarWhereInput | Prisma.NotificationDeliveryScalarWhereInput[] } export type NotificationDeliveryCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.NotificationDeliveryCreateWithoutTenantInput[] | Prisma.NotificationDeliveryUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.NotificationDeliveryCreateOrConnectWithoutTenantInput | Prisma.NotificationDeliveryCreateOrConnectWithoutTenantInput[] createMany?: Prisma.NotificationDeliveryCreateManyTenantInputEnvelope connect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] } export type NotificationDeliveryUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.NotificationDeliveryCreateWithoutTenantInput[] | Prisma.NotificationDeliveryUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.NotificationDeliveryCreateOrConnectWithoutTenantInput | Prisma.NotificationDeliveryCreateOrConnectWithoutTenantInput[] createMany?: Prisma.NotificationDeliveryCreateManyTenantInputEnvelope connect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] } export type NotificationDeliveryUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.NotificationDeliveryCreateWithoutTenantInput[] | Prisma.NotificationDeliveryUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.NotificationDeliveryCreateOrConnectWithoutTenantInput | Prisma.NotificationDeliveryCreateOrConnectWithoutTenantInput[] upsert?: Prisma.NotificationDeliveryUpsertWithWhereUniqueWithoutTenantInput | Prisma.NotificationDeliveryUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.NotificationDeliveryCreateManyTenantInputEnvelope set?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] disconnect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] delete?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] connect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] update?: Prisma.NotificationDeliveryUpdateWithWhereUniqueWithoutTenantInput | Prisma.NotificationDeliveryUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.NotificationDeliveryUpdateManyWithWhereWithoutTenantInput | Prisma.NotificationDeliveryUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.NotificationDeliveryScalarWhereInput | Prisma.NotificationDeliveryScalarWhereInput[] } export type NotificationDeliveryUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.NotificationDeliveryCreateWithoutTenantInput[] | Prisma.NotificationDeliveryUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.NotificationDeliveryCreateOrConnectWithoutTenantInput | Prisma.NotificationDeliveryCreateOrConnectWithoutTenantInput[] upsert?: Prisma.NotificationDeliveryUpsertWithWhereUniqueWithoutTenantInput | Prisma.NotificationDeliveryUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.NotificationDeliveryCreateManyTenantInputEnvelope set?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] disconnect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] delete?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] connect?: Prisma.NotificationDeliveryWhereUniqueInput | Prisma.NotificationDeliveryWhereUniqueInput[] update?: Prisma.NotificationDeliveryUpdateWithWhereUniqueWithoutTenantInput | Prisma.NotificationDeliveryUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.NotificationDeliveryUpdateManyWithWhereWithoutTenantInput | Prisma.NotificationDeliveryUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.NotificationDeliveryScalarWhereInput | Prisma.NotificationDeliveryScalarWhereInput[] } export type EnumNotificationPreferenceChannelFieldUpdateOperationsInput = { set?: $Enums.NotificationPreferenceChannel } export type EnumNotificationDeliveryStatusFieldUpdateOperationsInput = { set?: $Enums.NotificationDeliveryStatus } export type NotificationDeliveryCreateWithoutUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey?: string | null status?: $Enums.NotificationDeliveryStatus attemptsMade?: number providerMessageId?: string | null lastError?: string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Date | string | null readAt?: Date | string | null tenant?: Prisma.TenantCreateNestedOneWithoutNotificationDeliveriesInput } export type NotificationDeliveryUncheckedCreateWithoutUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey?: string | null status?: $Enums.NotificationDeliveryStatus attemptsMade?: number providerMessageId?: string | null lastError?: string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Date | string | null readAt?: Date | string | null } export type NotificationDeliveryCreateOrConnectWithoutUserInput = { where: Prisma.NotificationDeliveryWhereUniqueInput create: Prisma.XOR } export type NotificationDeliveryCreateManyUserInputEnvelope = { data: Prisma.NotificationDeliveryCreateManyUserInput | Prisma.NotificationDeliveryCreateManyUserInput[] skipDuplicates?: boolean } export type NotificationDeliveryUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.NotificationDeliveryWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type NotificationDeliveryUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.NotificationDeliveryWhereUniqueInput data: Prisma.XOR } export type NotificationDeliveryUpdateManyWithWhereWithoutUserInput = { where: Prisma.NotificationDeliveryScalarWhereInput data: Prisma.XOR } export type NotificationDeliveryScalarWhereInput = { AND?: Prisma.NotificationDeliveryScalarWhereInput | Prisma.NotificationDeliveryScalarWhereInput[] OR?: Prisma.NotificationDeliveryScalarWhereInput[] NOT?: Prisma.NotificationDeliveryScalarWhereInput | Prisma.NotificationDeliveryScalarWhereInput[] id?: Prisma.StringFilter<"NotificationDelivery"> | string createdAt?: Prisma.DateTimeFilter<"NotificationDelivery"> | Date | string updatedAt?: Prisma.DateTimeFilter<"NotificationDelivery"> | Date | string tenantId?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null userId?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null channel?: Prisma.EnumNotificationPreferenceChannelFilter<"NotificationDelivery"> | $Enums.NotificationPreferenceChannel category?: Prisma.StringFilter<"NotificationDelivery"> | string messageKey?: Prisma.StringFilter<"NotificationDelivery"> | string sourceKey?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null status?: Prisma.EnumNotificationDeliveryStatusFilter<"NotificationDelivery"> | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFilter<"NotificationDelivery"> | number providerMessageId?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null lastError?: Prisma.StringNullableFilter<"NotificationDelivery"> | string | null payloadMetadata?: Prisma.JsonNullableFilter<"NotificationDelivery"> sentAt?: Prisma.DateTimeNullableFilter<"NotificationDelivery"> | Date | string | null readAt?: Prisma.DateTimeNullableFilter<"NotificationDelivery"> | Date | string | null } export type NotificationDeliveryCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey?: string | null status?: $Enums.NotificationDeliveryStatus attemptsMade?: number providerMessageId?: string | null lastError?: string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Date | string | null readAt?: Date | string | null user?: Prisma.UserCreateNestedOneWithoutNotificationDeliveriesInput } export type NotificationDeliveryUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string userId?: string | null channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey?: string | null status?: $Enums.NotificationDeliveryStatus attemptsMade?: number providerMessageId?: string | null lastError?: string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Date | string | null readAt?: Date | string | null } export type NotificationDeliveryCreateOrConnectWithoutTenantInput = { where: Prisma.NotificationDeliveryWhereUniqueInput create: Prisma.XOR } export type NotificationDeliveryCreateManyTenantInputEnvelope = { data: Prisma.NotificationDeliveryCreateManyTenantInput | Prisma.NotificationDeliveryCreateManyTenantInput[] skipDuplicates?: boolean } export type NotificationDeliveryUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.NotificationDeliveryWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type NotificationDeliveryUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.NotificationDeliveryWhereUniqueInput data: Prisma.XOR } export type NotificationDeliveryUpdateManyWithWhereWithoutTenantInput = { where: Prisma.NotificationDeliveryScalarWhereInput data: Prisma.XOR } export type NotificationDeliveryCreateManyUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey?: string | null status?: $Enums.NotificationDeliveryStatus attemptsMade?: number providerMessageId?: string | null lastError?: string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Date | string | null readAt?: Date | string | null } export type NotificationDeliveryUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null tenant?: Prisma.TenantUpdateOneWithoutNotificationDeliveriesNestedInput } export type NotificationDeliveryUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationDeliveryUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationDeliveryCreateManyTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string userId?: string | null channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey?: string | null status?: $Enums.NotificationDeliveryStatus attemptsMade?: number providerMessageId?: string | null lastError?: string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Date | string | null readAt?: Date | string | null } export type NotificationDeliveryUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: Prisma.UserUpdateOneWithoutNotificationDeliveriesNestedInput } export type NotificationDeliveryUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationDeliveryUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null channel?: Prisma.EnumNotificationPreferenceChannelFieldUpdateOperationsInput | $Enums.NotificationPreferenceChannel category?: Prisma.StringFieldUpdateOperationsInput | string messageKey?: Prisma.StringFieldUpdateOperationsInput | string sourceKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.EnumNotificationDeliveryStatusFieldUpdateOperationsInput | $Enums.NotificationDeliveryStatus attemptsMade?: Prisma.IntFieldUpdateOperationsInput | number providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null payloadMetadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type NotificationDeliverySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean channel?: boolean category?: boolean messageKey?: boolean sourceKey?: boolean status?: boolean attemptsMade?: boolean providerMessageId?: boolean lastError?: boolean payloadMetadata?: boolean sentAt?: boolean readAt?: boolean tenant?: boolean | Prisma.NotificationDelivery$tenantArgs user?: boolean | Prisma.NotificationDelivery$userArgs }, ExtArgs["result"]["notificationDelivery"]> export type NotificationDeliverySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean channel?: boolean category?: boolean messageKey?: boolean sourceKey?: boolean status?: boolean attemptsMade?: boolean providerMessageId?: boolean lastError?: boolean payloadMetadata?: boolean sentAt?: boolean readAt?: boolean tenant?: boolean | Prisma.NotificationDelivery$tenantArgs user?: boolean | Prisma.NotificationDelivery$userArgs }, ExtArgs["result"]["notificationDelivery"]> export type NotificationDeliverySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean channel?: boolean category?: boolean messageKey?: boolean sourceKey?: boolean status?: boolean attemptsMade?: boolean providerMessageId?: boolean lastError?: boolean payloadMetadata?: boolean sentAt?: boolean readAt?: boolean tenant?: boolean | Prisma.NotificationDelivery$tenantArgs user?: boolean | Prisma.NotificationDelivery$userArgs }, ExtArgs["result"]["notificationDelivery"]> export type NotificationDeliverySelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean userId?: boolean channel?: boolean category?: boolean messageKey?: boolean sourceKey?: boolean status?: boolean attemptsMade?: boolean providerMessageId?: boolean lastError?: boolean payloadMetadata?: boolean sentAt?: boolean readAt?: boolean } export type NotificationDeliveryOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "userId" | "channel" | "category" | "messageKey" | "sourceKey" | "status" | "attemptsMade" | "providerMessageId" | "lastError" | "payloadMetadata" | "sentAt" | "readAt", ExtArgs["result"]["notificationDelivery"]> export type NotificationDeliveryInclude = { tenant?: boolean | Prisma.NotificationDelivery$tenantArgs user?: boolean | Prisma.NotificationDelivery$userArgs } export type NotificationDeliveryIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.NotificationDelivery$tenantArgs user?: boolean | Prisma.NotificationDelivery$userArgs } export type NotificationDeliveryIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.NotificationDelivery$tenantArgs user?: boolean | Prisma.NotificationDelivery$userArgs } export type $NotificationDeliveryPayload = { name: "NotificationDelivery" objects: { tenant: Prisma.$TenantPayload | null user: Prisma.$UserPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string | null userId: string | null channel: $Enums.NotificationPreferenceChannel category: string messageKey: string sourceKey: string | null status: $Enums.NotificationDeliveryStatus attemptsMade: number providerMessageId: string | null lastError: string | null payloadMetadata: runtime.JsonValue | null sentAt: Date | null readAt: Date | null }, ExtArgs["result"]["notificationDelivery"]> composites: {} } export type NotificationDeliveryGetPayload = runtime.Types.Result.GetResult export type NotificationDeliveryCountArgs = Omit & { select?: NotificationDeliveryCountAggregateInputType | true } export interface NotificationDeliveryDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['NotificationDelivery'], meta: { name: 'NotificationDelivery' } } /** * Find zero or one NotificationDelivery that matches the filter. * @param {NotificationDeliveryFindUniqueArgs} args - Arguments to find a NotificationDelivery * @example * // Get one NotificationDelivery * const notificationDelivery = await prisma.notificationDelivery.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationDeliveryClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one NotificationDelivery that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {NotificationDeliveryFindUniqueOrThrowArgs} args - Arguments to find a NotificationDelivery * @example * // Get one NotificationDelivery * const notificationDelivery = await prisma.notificationDelivery.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationDeliveryClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first NotificationDelivery 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 {NotificationDeliveryFindFirstArgs} args - Arguments to find a NotificationDelivery * @example * // Get one NotificationDelivery * const notificationDelivery = await prisma.notificationDelivery.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__NotificationDeliveryClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first NotificationDelivery 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 {NotificationDeliveryFindFirstOrThrowArgs} args - Arguments to find a NotificationDelivery * @example * // Get one NotificationDelivery * const notificationDelivery = await prisma.notificationDelivery.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__NotificationDeliveryClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more NotificationDeliveries 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 {NotificationDeliveryFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all NotificationDeliveries * const notificationDeliveries = await prisma.notificationDelivery.findMany() * * // Get first 10 NotificationDeliveries * const notificationDeliveries = await prisma.notificationDelivery.findMany({ take: 10 }) * * // Only select the `id` * const notificationDeliveryWithIdOnly = await prisma.notificationDelivery.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a NotificationDelivery. * @param {NotificationDeliveryCreateArgs} args - Arguments to create a NotificationDelivery. * @example * // Create one NotificationDelivery * const NotificationDelivery = await prisma.notificationDelivery.create({ * data: { * // ... data to create a NotificationDelivery * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationDeliveryClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many NotificationDeliveries. * @param {NotificationDeliveryCreateManyArgs} args - Arguments to create many NotificationDeliveries. * @example * // Create many NotificationDeliveries * const notificationDelivery = await prisma.notificationDelivery.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many NotificationDeliveries and returns the data saved in the database. * @param {NotificationDeliveryCreateManyAndReturnArgs} args - Arguments to create many NotificationDeliveries. * @example * // Create many NotificationDeliveries * const notificationDelivery = await prisma.notificationDelivery.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many NotificationDeliveries and only return the `id` * const notificationDeliveryWithIdOnly = await prisma.notificationDelivery.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 NotificationDelivery. * @param {NotificationDeliveryDeleteArgs} args - Arguments to delete one NotificationDelivery. * @example * // Delete one NotificationDelivery * const NotificationDelivery = await prisma.notificationDelivery.delete({ * where: { * // ... filter to delete one NotificationDelivery * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationDeliveryClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one NotificationDelivery. * @param {NotificationDeliveryUpdateArgs} args - Arguments to update one NotificationDelivery. * @example * // Update one NotificationDelivery * const notificationDelivery = await prisma.notificationDelivery.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationDeliveryClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more NotificationDeliveries. * @param {NotificationDeliveryDeleteManyArgs} args - Arguments to filter NotificationDeliveries to delete. * @example * // Delete a few NotificationDeliveries * const { count } = await prisma.notificationDelivery.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NotificationDeliveries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationDeliveryUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many NotificationDeliveries * const notificationDelivery = await prisma.notificationDelivery.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NotificationDeliveries and returns the data updated in the database. * @param {NotificationDeliveryUpdateManyAndReturnArgs} args - Arguments to update many NotificationDeliveries. * @example * // Update many NotificationDeliveries * const notificationDelivery = await prisma.notificationDelivery.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more NotificationDeliveries and only return the `id` * const notificationDeliveryWithIdOnly = await prisma.notificationDelivery.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 NotificationDelivery. * @param {NotificationDeliveryUpsertArgs} args - Arguments to update or create a NotificationDelivery. * @example * // Update or create a NotificationDelivery * const notificationDelivery = await prisma.notificationDelivery.upsert({ * create: { * // ... data to create a NotificationDelivery * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the NotificationDelivery we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__NotificationDeliveryClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of NotificationDeliveries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationDeliveryCountArgs} args - Arguments to filter NotificationDeliveries to count. * @example * // Count the number of NotificationDeliveries * const count = await prisma.notificationDelivery.count({ * where: { * // ... the filter for the NotificationDeliveries 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 NotificationDelivery. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationDeliveryAggregateArgs} 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 NotificationDelivery. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NotificationDeliveryGroupByArgs} 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 NotificationDeliveryGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: NotificationDeliveryGroupByArgs['orderBy'] } : { orderBy?: NotificationDeliveryGroupByArgs['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 ? GetNotificationDeliveryGroupByPayload : Prisma.PrismaPromise /** * Fields of the NotificationDelivery model */ readonly fields: NotificationDeliveryFieldRefs; } /** * The delegate class that acts as a "Promise-like" for NotificationDelivery. * 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__NotificationDeliveryClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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 NotificationDelivery model */ export interface NotificationDeliveryFieldRefs { readonly id: Prisma.FieldRef<"NotificationDelivery", 'String'> readonly createdAt: Prisma.FieldRef<"NotificationDelivery", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"NotificationDelivery", 'DateTime'> readonly tenantId: Prisma.FieldRef<"NotificationDelivery", 'String'> readonly userId: Prisma.FieldRef<"NotificationDelivery", 'String'> readonly channel: Prisma.FieldRef<"NotificationDelivery", 'NotificationPreferenceChannel'> readonly category: Prisma.FieldRef<"NotificationDelivery", 'String'> readonly messageKey: Prisma.FieldRef<"NotificationDelivery", 'String'> readonly sourceKey: Prisma.FieldRef<"NotificationDelivery", 'String'> readonly status: Prisma.FieldRef<"NotificationDelivery", 'NotificationDeliveryStatus'> readonly attemptsMade: Prisma.FieldRef<"NotificationDelivery", 'Int'> readonly providerMessageId: Prisma.FieldRef<"NotificationDelivery", 'String'> readonly lastError: Prisma.FieldRef<"NotificationDelivery", 'String'> readonly payloadMetadata: Prisma.FieldRef<"NotificationDelivery", 'Json'> readonly sentAt: Prisma.FieldRef<"NotificationDelivery", 'DateTime'> readonly readAt: Prisma.FieldRef<"NotificationDelivery", 'DateTime'> } // Custom InputTypes /** * NotificationDelivery findUnique */ export type NotificationDeliveryFindUniqueArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null /** * Filter, which NotificationDelivery to fetch. */ where: Prisma.NotificationDeliveryWhereUniqueInput } /** * NotificationDelivery findUniqueOrThrow */ export type NotificationDeliveryFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null /** * Filter, which NotificationDelivery to fetch. */ where: Prisma.NotificationDeliveryWhereUniqueInput } /** * NotificationDelivery findFirst */ export type NotificationDeliveryFindFirstArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null /** * Filter, which NotificationDelivery to fetch. */ where?: Prisma.NotificationDeliveryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NotificationDeliveries to fetch. */ orderBy?: Prisma.NotificationDeliveryOrderByWithRelationInput | Prisma.NotificationDeliveryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NotificationDeliveries. */ cursor?: Prisma.NotificationDeliveryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NotificationDeliveries 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` NotificationDeliveries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NotificationDeliveries. */ distinct?: Prisma.NotificationDeliveryScalarFieldEnum | Prisma.NotificationDeliveryScalarFieldEnum[] } /** * NotificationDelivery findFirstOrThrow */ export type NotificationDeliveryFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null /** * Filter, which NotificationDelivery to fetch. */ where?: Prisma.NotificationDeliveryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NotificationDeliveries to fetch. */ orderBy?: Prisma.NotificationDeliveryOrderByWithRelationInput | Prisma.NotificationDeliveryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NotificationDeliveries. */ cursor?: Prisma.NotificationDeliveryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NotificationDeliveries 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` NotificationDeliveries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NotificationDeliveries. */ distinct?: Prisma.NotificationDeliveryScalarFieldEnum | Prisma.NotificationDeliveryScalarFieldEnum[] } /** * NotificationDelivery findMany */ export type NotificationDeliveryFindManyArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null /** * Filter, which NotificationDeliveries to fetch. */ where?: Prisma.NotificationDeliveryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NotificationDeliveries to fetch. */ orderBy?: Prisma.NotificationDeliveryOrderByWithRelationInput | Prisma.NotificationDeliveryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing NotificationDeliveries. */ cursor?: Prisma.NotificationDeliveryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NotificationDeliveries 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` NotificationDeliveries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NotificationDeliveries. */ distinct?: Prisma.NotificationDeliveryScalarFieldEnum | Prisma.NotificationDeliveryScalarFieldEnum[] } /** * NotificationDelivery create */ export type NotificationDeliveryCreateArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null /** * The data needed to create a NotificationDelivery. */ data: Prisma.XOR } /** * NotificationDelivery createMany */ export type NotificationDeliveryCreateManyArgs = { /** * The data used to create many NotificationDeliveries. */ data: Prisma.NotificationDeliveryCreateManyInput | Prisma.NotificationDeliveryCreateManyInput[] skipDuplicates?: boolean } /** * NotificationDelivery createManyAndReturn */ export type NotificationDeliveryCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelectCreateManyAndReturn | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * The data used to create many NotificationDeliveries. */ data: Prisma.NotificationDeliveryCreateManyInput | Prisma.NotificationDeliveryCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryIncludeCreateManyAndReturn | null } /** * NotificationDelivery update */ export type NotificationDeliveryUpdateArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null /** * The data needed to update a NotificationDelivery. */ data: Prisma.XOR /** * Choose, which NotificationDelivery to update. */ where: Prisma.NotificationDeliveryWhereUniqueInput } /** * NotificationDelivery updateMany */ export type NotificationDeliveryUpdateManyArgs = { /** * The data used to update NotificationDeliveries. */ data: Prisma.XOR /** * Filter which NotificationDeliveries to update */ where?: Prisma.NotificationDeliveryWhereInput /** * Limit how many NotificationDeliveries to update. */ limit?: number } /** * NotificationDelivery updateManyAndReturn */ export type NotificationDeliveryUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelectUpdateManyAndReturn | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * The data used to update NotificationDeliveries. */ data: Prisma.XOR /** * Filter which NotificationDeliveries to update */ where?: Prisma.NotificationDeliveryWhereInput /** * Limit how many NotificationDeliveries to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryIncludeUpdateManyAndReturn | null } /** * NotificationDelivery upsert */ export type NotificationDeliveryUpsertArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null /** * The filter to search for the NotificationDelivery to update in case it exists. */ where: Prisma.NotificationDeliveryWhereUniqueInput /** * In case the NotificationDelivery found by the `where` argument doesn't exist, create a new NotificationDelivery with this data. */ create: Prisma.XOR /** * In case the NotificationDelivery was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * NotificationDelivery delete */ export type NotificationDeliveryDeleteArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null /** * Filter which NotificationDelivery to delete. */ where: Prisma.NotificationDeliveryWhereUniqueInput } /** * NotificationDelivery deleteMany */ export type NotificationDeliveryDeleteManyArgs = { /** * Filter which NotificationDeliveries to delete */ where?: Prisma.NotificationDeliveryWhereInput /** * Limit how many NotificationDeliveries to delete. */ limit?: number } /** * NotificationDelivery.tenant */ export type NotificationDelivery$tenantArgs = { /** * Select specific fields to fetch from the Tenant */ select?: Prisma.TenantSelect | null /** * Omit specific fields from the Tenant */ omit?: Prisma.TenantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInclude | null where?: Prisma.TenantWhereInput } /** * NotificationDelivery.user */ export type NotificationDelivery$userArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * NotificationDelivery without action */ export type NotificationDeliveryDefaultArgs = { /** * Select specific fields to fetch from the NotificationDelivery */ select?: Prisma.NotificationDeliverySelect | null /** * Omit specific fields from the NotificationDelivery */ omit?: Prisma.NotificationDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.NotificationDeliveryInclude | null }