/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `EmailSequenceRun` 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 EmailSequenceRun * */ export type EmailSequenceRunModel = runtime.Types.Result.DefaultSelection export type AggregateEmailSequenceRun = { _count: EmailSequenceRunCountAggregateOutputType | null _min: EmailSequenceRunMinAggregateOutputType | null _max: EmailSequenceRunMaxAggregateOutputType | null } export type EmailSequenceRunMinAggregateOutputType = { id: string | null sequenceId: string | null leadId: string | null tenantId: string | null triggerEventId: string | null status: string | null startedAt: Date | null completedAt: Date | null } export type EmailSequenceRunMaxAggregateOutputType = { id: string | null sequenceId: string | null leadId: string | null tenantId: string | null triggerEventId: string | null status: string | null startedAt: Date | null completedAt: Date | null } export type EmailSequenceRunCountAggregateOutputType = { id: number sequenceId: number leadId: number tenantId: number triggerEventId: number status: number startedAt: number completedAt: number stepStateJson: number _all: number } export type EmailSequenceRunMinAggregateInputType = { id?: true sequenceId?: true leadId?: true tenantId?: true triggerEventId?: true status?: true startedAt?: true completedAt?: true } export type EmailSequenceRunMaxAggregateInputType = { id?: true sequenceId?: true leadId?: true tenantId?: true triggerEventId?: true status?: true startedAt?: true completedAt?: true } export type EmailSequenceRunCountAggregateInputType = { id?: true sequenceId?: true leadId?: true tenantId?: true triggerEventId?: true status?: true startedAt?: true completedAt?: true stepStateJson?: true _all?: true } export type EmailSequenceRunAggregateArgs = { /** * Filter which EmailSequenceRun to aggregate. */ where?: Prisma.EmailSequenceRunWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailSequenceRuns to fetch. */ orderBy?: Prisma.EmailSequenceRunOrderByWithRelationInput | Prisma.EmailSequenceRunOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EmailSequenceRunWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailSequenceRuns 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` EmailSequenceRuns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EmailSequenceRuns **/ _count?: true | EmailSequenceRunCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EmailSequenceRunMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EmailSequenceRunMaxAggregateInputType } export type GetEmailSequenceRunAggregateType = { [P in keyof T & keyof AggregateEmailSequenceRun]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type EmailSequenceRunGroupByArgs = { where?: Prisma.EmailSequenceRunWhereInput orderBy?: Prisma.EmailSequenceRunOrderByWithAggregationInput | Prisma.EmailSequenceRunOrderByWithAggregationInput[] by: Prisma.EmailSequenceRunScalarFieldEnum[] | Prisma.EmailSequenceRunScalarFieldEnum having?: Prisma.EmailSequenceRunScalarWhereWithAggregatesInput take?: number skip?: number _count?: EmailSequenceRunCountAggregateInputType | true _min?: EmailSequenceRunMinAggregateInputType _max?: EmailSequenceRunMaxAggregateInputType } export type EmailSequenceRunGroupByOutputType = { id: string sequenceId: string leadId: string | null tenantId: string | null triggerEventId: string | null status: string startedAt: Date completedAt: Date | null stepStateJson: runtime.JsonValue | null _count: EmailSequenceRunCountAggregateOutputType | null _min: EmailSequenceRunMinAggregateOutputType | null _max: EmailSequenceRunMaxAggregateOutputType | null } export type GetEmailSequenceRunGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof EmailSequenceRunGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type EmailSequenceRunWhereInput = { AND?: Prisma.EmailSequenceRunWhereInput | Prisma.EmailSequenceRunWhereInput[] OR?: Prisma.EmailSequenceRunWhereInput[] NOT?: Prisma.EmailSequenceRunWhereInput | Prisma.EmailSequenceRunWhereInput[] id?: Prisma.StringFilter<"EmailSequenceRun"> | string sequenceId?: Prisma.StringFilter<"EmailSequenceRun"> | string leadId?: Prisma.StringNullableFilter<"EmailSequenceRun"> | string | null tenantId?: Prisma.StringNullableFilter<"EmailSequenceRun"> | string | null triggerEventId?: Prisma.StringNullableFilter<"EmailSequenceRun"> | string | null status?: Prisma.StringFilter<"EmailSequenceRun"> | string startedAt?: Prisma.DateTimeFilter<"EmailSequenceRun"> | Date | string completedAt?: Prisma.DateTimeNullableFilter<"EmailSequenceRun"> | Date | string | null stepStateJson?: Prisma.JsonNullableFilter<"EmailSequenceRun"> sequence?: Prisma.XOR deliveries?: Prisma.EmailSequenceStepDeliveryListRelationFilter } export type EmailSequenceRunOrderByWithRelationInput = { id?: Prisma.SortOrder sequenceId?: Prisma.SortOrder leadId?: Prisma.SortOrderInput | Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder triggerEventId?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrder startedAt?: Prisma.SortOrder completedAt?: Prisma.SortOrderInput | Prisma.SortOrder stepStateJson?: Prisma.SortOrderInput | Prisma.SortOrder sequence?: Prisma.EmailSequenceOrderByWithRelationInput deliveries?: Prisma.EmailSequenceStepDeliveryOrderByRelationAggregateInput } export type EmailSequenceRunWhereUniqueInput = Prisma.AtLeast<{ id?: string sequenceId_triggerEventId?: Prisma.EmailSequenceRunSequenceIdTriggerEventIdCompoundUniqueInput AND?: Prisma.EmailSequenceRunWhereInput | Prisma.EmailSequenceRunWhereInput[] OR?: Prisma.EmailSequenceRunWhereInput[] NOT?: Prisma.EmailSequenceRunWhereInput | Prisma.EmailSequenceRunWhereInput[] sequenceId?: Prisma.StringFilter<"EmailSequenceRun"> | string leadId?: Prisma.StringNullableFilter<"EmailSequenceRun"> | string | null tenantId?: Prisma.StringNullableFilter<"EmailSequenceRun"> | string | null triggerEventId?: Prisma.StringNullableFilter<"EmailSequenceRun"> | string | null status?: Prisma.StringFilter<"EmailSequenceRun"> | string startedAt?: Prisma.DateTimeFilter<"EmailSequenceRun"> | Date | string completedAt?: Prisma.DateTimeNullableFilter<"EmailSequenceRun"> | Date | string | null stepStateJson?: Prisma.JsonNullableFilter<"EmailSequenceRun"> sequence?: Prisma.XOR deliveries?: Prisma.EmailSequenceStepDeliveryListRelationFilter }, "id" | "sequenceId_triggerEventId"> export type EmailSequenceRunOrderByWithAggregationInput = { id?: Prisma.SortOrder sequenceId?: Prisma.SortOrder leadId?: Prisma.SortOrderInput | Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder triggerEventId?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrder startedAt?: Prisma.SortOrder completedAt?: Prisma.SortOrderInput | Prisma.SortOrder stepStateJson?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.EmailSequenceRunCountOrderByAggregateInput _max?: Prisma.EmailSequenceRunMaxOrderByAggregateInput _min?: Prisma.EmailSequenceRunMinOrderByAggregateInput } export type EmailSequenceRunScalarWhereWithAggregatesInput = { AND?: Prisma.EmailSequenceRunScalarWhereWithAggregatesInput | Prisma.EmailSequenceRunScalarWhereWithAggregatesInput[] OR?: Prisma.EmailSequenceRunScalarWhereWithAggregatesInput[] NOT?: Prisma.EmailSequenceRunScalarWhereWithAggregatesInput | Prisma.EmailSequenceRunScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"EmailSequenceRun"> | string sequenceId?: Prisma.StringWithAggregatesFilter<"EmailSequenceRun"> | string leadId?: Prisma.StringNullableWithAggregatesFilter<"EmailSequenceRun"> | string | null tenantId?: Prisma.StringNullableWithAggregatesFilter<"EmailSequenceRun"> | string | null triggerEventId?: Prisma.StringNullableWithAggregatesFilter<"EmailSequenceRun"> | string | null status?: Prisma.StringWithAggregatesFilter<"EmailSequenceRun"> | string startedAt?: Prisma.DateTimeWithAggregatesFilter<"EmailSequenceRun"> | Date | string completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EmailSequenceRun"> | Date | string | null stepStateJson?: Prisma.JsonNullableWithAggregatesFilter<"EmailSequenceRun"> } export type EmailSequenceRunCreateInput = { id?: string leadId?: string | null tenantId?: string | null triggerEventId?: string | null status?: string startedAt?: Date | string completedAt?: Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sequence: Prisma.EmailSequenceCreateNestedOneWithoutRunsInput deliveries?: Prisma.EmailSequenceStepDeliveryCreateNestedManyWithoutRunInput } export type EmailSequenceRunUncheckedCreateInput = { id?: string sequenceId: string leadId?: string | null tenantId?: string | null triggerEventId?: string | null status?: string startedAt?: Date | string completedAt?: Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue deliveries?: Prisma.EmailSequenceStepDeliveryUncheckedCreateNestedManyWithoutRunInput } export type EmailSequenceRunUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null triggerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sequence?: Prisma.EmailSequenceUpdateOneRequiredWithoutRunsNestedInput deliveries?: Prisma.EmailSequenceStepDeliveryUpdateManyWithoutRunNestedInput } export type EmailSequenceRunUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sequenceId?: Prisma.StringFieldUpdateOperationsInput | string leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null triggerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue deliveries?: Prisma.EmailSequenceStepDeliveryUncheckedUpdateManyWithoutRunNestedInput } export type EmailSequenceRunCreateManyInput = { id?: string sequenceId: string leadId?: string | null tenantId?: string | null triggerEventId?: string | null status?: string startedAt?: Date | string completedAt?: Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type EmailSequenceRunUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null triggerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type EmailSequenceRunUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sequenceId?: Prisma.StringFieldUpdateOperationsInput | string leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null triggerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type EmailSequenceRunListRelationFilter = { every?: Prisma.EmailSequenceRunWhereInput some?: Prisma.EmailSequenceRunWhereInput none?: Prisma.EmailSequenceRunWhereInput } export type EmailSequenceRunOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type EmailSequenceRunSequenceIdTriggerEventIdCompoundUniqueInput = { sequenceId: string triggerEventId: string } export type EmailSequenceRunCountOrderByAggregateInput = { id?: Prisma.SortOrder sequenceId?: Prisma.SortOrder leadId?: Prisma.SortOrder tenantId?: Prisma.SortOrder triggerEventId?: Prisma.SortOrder status?: Prisma.SortOrder startedAt?: Prisma.SortOrder completedAt?: Prisma.SortOrder stepStateJson?: Prisma.SortOrder } export type EmailSequenceRunMaxOrderByAggregateInput = { id?: Prisma.SortOrder sequenceId?: Prisma.SortOrder leadId?: Prisma.SortOrder tenantId?: Prisma.SortOrder triggerEventId?: Prisma.SortOrder status?: Prisma.SortOrder startedAt?: Prisma.SortOrder completedAt?: Prisma.SortOrder } export type EmailSequenceRunMinOrderByAggregateInput = { id?: Prisma.SortOrder sequenceId?: Prisma.SortOrder leadId?: Prisma.SortOrder tenantId?: Prisma.SortOrder triggerEventId?: Prisma.SortOrder status?: Prisma.SortOrder startedAt?: Prisma.SortOrder completedAt?: Prisma.SortOrder } export type EmailSequenceRunScalarRelationFilter = { is?: Prisma.EmailSequenceRunWhereInput isNot?: Prisma.EmailSequenceRunWhereInput } export type EmailSequenceRunCreateNestedManyWithoutSequenceInput = { create?: Prisma.XOR | Prisma.EmailSequenceRunCreateWithoutSequenceInput[] | Prisma.EmailSequenceRunUncheckedCreateWithoutSequenceInput[] connectOrCreate?: Prisma.EmailSequenceRunCreateOrConnectWithoutSequenceInput | Prisma.EmailSequenceRunCreateOrConnectWithoutSequenceInput[] createMany?: Prisma.EmailSequenceRunCreateManySequenceInputEnvelope connect?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] } export type EmailSequenceRunUncheckedCreateNestedManyWithoutSequenceInput = { create?: Prisma.XOR | Prisma.EmailSequenceRunCreateWithoutSequenceInput[] | Prisma.EmailSequenceRunUncheckedCreateWithoutSequenceInput[] connectOrCreate?: Prisma.EmailSequenceRunCreateOrConnectWithoutSequenceInput | Prisma.EmailSequenceRunCreateOrConnectWithoutSequenceInput[] createMany?: Prisma.EmailSequenceRunCreateManySequenceInputEnvelope connect?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] } export type EmailSequenceRunUpdateManyWithoutSequenceNestedInput = { create?: Prisma.XOR | Prisma.EmailSequenceRunCreateWithoutSequenceInput[] | Prisma.EmailSequenceRunUncheckedCreateWithoutSequenceInput[] connectOrCreate?: Prisma.EmailSequenceRunCreateOrConnectWithoutSequenceInput | Prisma.EmailSequenceRunCreateOrConnectWithoutSequenceInput[] upsert?: Prisma.EmailSequenceRunUpsertWithWhereUniqueWithoutSequenceInput | Prisma.EmailSequenceRunUpsertWithWhereUniqueWithoutSequenceInput[] createMany?: Prisma.EmailSequenceRunCreateManySequenceInputEnvelope set?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] disconnect?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] delete?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] connect?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] update?: Prisma.EmailSequenceRunUpdateWithWhereUniqueWithoutSequenceInput | Prisma.EmailSequenceRunUpdateWithWhereUniqueWithoutSequenceInput[] updateMany?: Prisma.EmailSequenceRunUpdateManyWithWhereWithoutSequenceInput | Prisma.EmailSequenceRunUpdateManyWithWhereWithoutSequenceInput[] deleteMany?: Prisma.EmailSequenceRunScalarWhereInput | Prisma.EmailSequenceRunScalarWhereInput[] } export type EmailSequenceRunUncheckedUpdateManyWithoutSequenceNestedInput = { create?: Prisma.XOR | Prisma.EmailSequenceRunCreateWithoutSequenceInput[] | Prisma.EmailSequenceRunUncheckedCreateWithoutSequenceInput[] connectOrCreate?: Prisma.EmailSequenceRunCreateOrConnectWithoutSequenceInput | Prisma.EmailSequenceRunCreateOrConnectWithoutSequenceInput[] upsert?: Prisma.EmailSequenceRunUpsertWithWhereUniqueWithoutSequenceInput | Prisma.EmailSequenceRunUpsertWithWhereUniqueWithoutSequenceInput[] createMany?: Prisma.EmailSequenceRunCreateManySequenceInputEnvelope set?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] disconnect?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] delete?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] connect?: Prisma.EmailSequenceRunWhereUniqueInput | Prisma.EmailSequenceRunWhereUniqueInput[] update?: Prisma.EmailSequenceRunUpdateWithWhereUniqueWithoutSequenceInput | Prisma.EmailSequenceRunUpdateWithWhereUniqueWithoutSequenceInput[] updateMany?: Prisma.EmailSequenceRunUpdateManyWithWhereWithoutSequenceInput | Prisma.EmailSequenceRunUpdateManyWithWhereWithoutSequenceInput[] deleteMany?: Prisma.EmailSequenceRunScalarWhereInput | Prisma.EmailSequenceRunScalarWhereInput[] } export type EmailSequenceRunCreateNestedOneWithoutDeliveriesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EmailSequenceRunCreateOrConnectWithoutDeliveriesInput connect?: Prisma.EmailSequenceRunWhereUniqueInput } export type EmailSequenceRunUpdateOneRequiredWithoutDeliveriesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EmailSequenceRunCreateOrConnectWithoutDeliveriesInput upsert?: Prisma.EmailSequenceRunUpsertWithoutDeliveriesInput connect?: Prisma.EmailSequenceRunWhereUniqueInput update?: Prisma.XOR, Prisma.EmailSequenceRunUncheckedUpdateWithoutDeliveriesInput> } export type EmailSequenceRunCreateWithoutSequenceInput = { id?: string leadId?: string | null tenantId?: string | null triggerEventId?: string | null status?: string startedAt?: Date | string completedAt?: Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue deliveries?: Prisma.EmailSequenceStepDeliveryCreateNestedManyWithoutRunInput } export type EmailSequenceRunUncheckedCreateWithoutSequenceInput = { id?: string leadId?: string | null tenantId?: string | null triggerEventId?: string | null status?: string startedAt?: Date | string completedAt?: Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue deliveries?: Prisma.EmailSequenceStepDeliveryUncheckedCreateNestedManyWithoutRunInput } export type EmailSequenceRunCreateOrConnectWithoutSequenceInput = { where: Prisma.EmailSequenceRunWhereUniqueInput create: Prisma.XOR } export type EmailSequenceRunCreateManySequenceInputEnvelope = { data: Prisma.EmailSequenceRunCreateManySequenceInput | Prisma.EmailSequenceRunCreateManySequenceInput[] skipDuplicates?: boolean } export type EmailSequenceRunUpsertWithWhereUniqueWithoutSequenceInput = { where: Prisma.EmailSequenceRunWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type EmailSequenceRunUpdateWithWhereUniqueWithoutSequenceInput = { where: Prisma.EmailSequenceRunWhereUniqueInput data: Prisma.XOR } export type EmailSequenceRunUpdateManyWithWhereWithoutSequenceInput = { where: Prisma.EmailSequenceRunScalarWhereInput data: Prisma.XOR } export type EmailSequenceRunScalarWhereInput = { AND?: Prisma.EmailSequenceRunScalarWhereInput | Prisma.EmailSequenceRunScalarWhereInput[] OR?: Prisma.EmailSequenceRunScalarWhereInput[] NOT?: Prisma.EmailSequenceRunScalarWhereInput | Prisma.EmailSequenceRunScalarWhereInput[] id?: Prisma.StringFilter<"EmailSequenceRun"> | string sequenceId?: Prisma.StringFilter<"EmailSequenceRun"> | string leadId?: Prisma.StringNullableFilter<"EmailSequenceRun"> | string | null tenantId?: Prisma.StringNullableFilter<"EmailSequenceRun"> | string | null triggerEventId?: Prisma.StringNullableFilter<"EmailSequenceRun"> | string | null status?: Prisma.StringFilter<"EmailSequenceRun"> | string startedAt?: Prisma.DateTimeFilter<"EmailSequenceRun"> | Date | string completedAt?: Prisma.DateTimeNullableFilter<"EmailSequenceRun"> | Date | string | null stepStateJson?: Prisma.JsonNullableFilter<"EmailSequenceRun"> } export type EmailSequenceRunCreateWithoutDeliveriesInput = { id?: string leadId?: string | null tenantId?: string | null triggerEventId?: string | null status?: string startedAt?: Date | string completedAt?: Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sequence: Prisma.EmailSequenceCreateNestedOneWithoutRunsInput } export type EmailSequenceRunUncheckedCreateWithoutDeliveriesInput = { id?: string sequenceId: string leadId?: string | null tenantId?: string | null triggerEventId?: string | null status?: string startedAt?: Date | string completedAt?: Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type EmailSequenceRunCreateOrConnectWithoutDeliveriesInput = { where: Prisma.EmailSequenceRunWhereUniqueInput create: Prisma.XOR } export type EmailSequenceRunUpsertWithoutDeliveriesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.EmailSequenceRunWhereInput } export type EmailSequenceRunUpdateToOneWithWhereWithoutDeliveriesInput = { where?: Prisma.EmailSequenceRunWhereInput data: Prisma.XOR } export type EmailSequenceRunUpdateWithoutDeliveriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null triggerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue sequence?: Prisma.EmailSequenceUpdateOneRequiredWithoutRunsNestedInput } export type EmailSequenceRunUncheckedUpdateWithoutDeliveriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sequenceId?: Prisma.StringFieldUpdateOperationsInput | string leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null triggerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type EmailSequenceRunCreateManySequenceInput = { id?: string leadId?: string | null tenantId?: string | null triggerEventId?: string | null status?: string startedAt?: Date | string completedAt?: Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type EmailSequenceRunUpdateWithoutSequenceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null triggerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue deliveries?: Prisma.EmailSequenceStepDeliveryUpdateManyWithoutRunNestedInput } export type EmailSequenceRunUncheckedUpdateWithoutSequenceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null triggerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue deliveries?: Prisma.EmailSequenceStepDeliveryUncheckedUpdateManyWithoutRunNestedInput } export type EmailSequenceRunUncheckedUpdateManyWithoutSequenceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null triggerEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null stepStateJson?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } /** * Count Type EmailSequenceRunCountOutputType */ export type EmailSequenceRunCountOutputType = { deliveries: number } export type EmailSequenceRunCountOutputTypeSelect = { deliveries?: boolean | EmailSequenceRunCountOutputTypeCountDeliveriesArgs } /** * EmailSequenceRunCountOutputType without action */ export type EmailSequenceRunCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the EmailSequenceRunCountOutputType */ select?: Prisma.EmailSequenceRunCountOutputTypeSelect | null } /** * EmailSequenceRunCountOutputType without action */ export type EmailSequenceRunCountOutputTypeCountDeliveriesArgs = { where?: Prisma.EmailSequenceStepDeliveryWhereInput } export type EmailSequenceRunSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean sequenceId?: boolean leadId?: boolean tenantId?: boolean triggerEventId?: boolean status?: boolean startedAt?: boolean completedAt?: boolean stepStateJson?: boolean sequence?: boolean | Prisma.EmailSequenceDefaultArgs deliveries?: boolean | Prisma.EmailSequenceRun$deliveriesArgs _count?: boolean | Prisma.EmailSequenceRunCountOutputTypeDefaultArgs }, ExtArgs["result"]["emailSequenceRun"]> export type EmailSequenceRunSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sequenceId?: boolean leadId?: boolean tenantId?: boolean triggerEventId?: boolean status?: boolean startedAt?: boolean completedAt?: boolean stepStateJson?: boolean sequence?: boolean | Prisma.EmailSequenceDefaultArgs }, ExtArgs["result"]["emailSequenceRun"]> export type EmailSequenceRunSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sequenceId?: boolean leadId?: boolean tenantId?: boolean triggerEventId?: boolean status?: boolean startedAt?: boolean completedAt?: boolean stepStateJson?: boolean sequence?: boolean | Prisma.EmailSequenceDefaultArgs }, ExtArgs["result"]["emailSequenceRun"]> export type EmailSequenceRunSelectScalar = { id?: boolean sequenceId?: boolean leadId?: boolean tenantId?: boolean triggerEventId?: boolean status?: boolean startedAt?: boolean completedAt?: boolean stepStateJson?: boolean } export type EmailSequenceRunOmit = runtime.Types.Extensions.GetOmit<"id" | "sequenceId" | "leadId" | "tenantId" | "triggerEventId" | "status" | "startedAt" | "completedAt" | "stepStateJson", ExtArgs["result"]["emailSequenceRun"]> export type EmailSequenceRunInclude = { sequence?: boolean | Prisma.EmailSequenceDefaultArgs deliveries?: boolean | Prisma.EmailSequenceRun$deliveriesArgs _count?: boolean | Prisma.EmailSequenceRunCountOutputTypeDefaultArgs } export type EmailSequenceRunIncludeCreateManyAndReturn = { sequence?: boolean | Prisma.EmailSequenceDefaultArgs } export type EmailSequenceRunIncludeUpdateManyAndReturn = { sequence?: boolean | Prisma.EmailSequenceDefaultArgs } export type $EmailSequenceRunPayload = { name: "EmailSequenceRun" objects: { sequence: Prisma.$EmailSequencePayload deliveries: Prisma.$EmailSequenceStepDeliveryPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string sequenceId: string /** * Target lead — set when the trigger came from a Lead event. */ leadId: string | null /** * Target tenant — set when the trigger came from a Tenant event. */ tenantId: string | null /** * Outbox eventId that started this run, for idempotency / debugging. */ triggerEventId: string | null /** * Lifecycle: pending → running → (completed | cancelled | failed). * `unsubscribed` is a terminal status set when the recipient opted out. */ status: string startedAt: Date completedAt: Date | null /** * Free-form per-step state ({ lastStepIndex, lastScheduledAt, ... }). */ stepStateJson: runtime.JsonValue | null }, ExtArgs["result"]["emailSequenceRun"]> composites: {} } export type EmailSequenceRunGetPayload = runtime.Types.Result.GetResult export type EmailSequenceRunCountArgs = Omit & { select?: EmailSequenceRunCountAggregateInputType | true } export interface EmailSequenceRunDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EmailSequenceRun'], meta: { name: 'EmailSequenceRun' } } /** * Find zero or one EmailSequenceRun that matches the filter. * @param {EmailSequenceRunFindUniqueArgs} args - Arguments to find a EmailSequenceRun * @example * // Get one EmailSequenceRun * const emailSequenceRun = await prisma.emailSequenceRun.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EmailSequenceRunClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one EmailSequenceRun that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EmailSequenceRunFindUniqueOrThrowArgs} args - Arguments to find a EmailSequenceRun * @example * // Get one EmailSequenceRun * const emailSequenceRun = await prisma.emailSequenceRun.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EmailSequenceRunClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first EmailSequenceRun 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 {EmailSequenceRunFindFirstArgs} args - Arguments to find a EmailSequenceRun * @example * // Get one EmailSequenceRun * const emailSequenceRun = await prisma.emailSequenceRun.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailSequenceRunClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first EmailSequenceRun 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 {EmailSequenceRunFindFirstOrThrowArgs} args - Arguments to find a EmailSequenceRun * @example * // Get one EmailSequenceRun * const emailSequenceRun = await prisma.emailSequenceRun.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailSequenceRunClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more EmailSequenceRuns 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 {EmailSequenceRunFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EmailSequenceRuns * const emailSequenceRuns = await prisma.emailSequenceRun.findMany() * * // Get first 10 EmailSequenceRuns * const emailSequenceRuns = await prisma.emailSequenceRun.findMany({ take: 10 }) * * // Only select the `id` * const emailSequenceRunWithIdOnly = await prisma.emailSequenceRun.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a EmailSequenceRun. * @param {EmailSequenceRunCreateArgs} args - Arguments to create a EmailSequenceRun. * @example * // Create one EmailSequenceRun * const EmailSequenceRun = await prisma.emailSequenceRun.create({ * data: { * // ... data to create a EmailSequenceRun * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EmailSequenceRunClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many EmailSequenceRuns. * @param {EmailSequenceRunCreateManyArgs} args - Arguments to create many EmailSequenceRuns. * @example * // Create many EmailSequenceRuns * const emailSequenceRun = await prisma.emailSequenceRun.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many EmailSequenceRuns and returns the data saved in the database. * @param {EmailSequenceRunCreateManyAndReturnArgs} args - Arguments to create many EmailSequenceRuns. * @example * // Create many EmailSequenceRuns * const emailSequenceRun = await prisma.emailSequenceRun.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EmailSequenceRuns and only return the `id` * const emailSequenceRunWithIdOnly = await prisma.emailSequenceRun.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 EmailSequenceRun. * @param {EmailSequenceRunDeleteArgs} args - Arguments to delete one EmailSequenceRun. * @example * // Delete one EmailSequenceRun * const EmailSequenceRun = await prisma.emailSequenceRun.delete({ * where: { * // ... filter to delete one EmailSequenceRun * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EmailSequenceRunClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one EmailSequenceRun. * @param {EmailSequenceRunUpdateArgs} args - Arguments to update one EmailSequenceRun. * @example * // Update one EmailSequenceRun * const emailSequenceRun = await prisma.emailSequenceRun.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EmailSequenceRunClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more EmailSequenceRuns. * @param {EmailSequenceRunDeleteManyArgs} args - Arguments to filter EmailSequenceRuns to delete. * @example * // Delete a few EmailSequenceRuns * const { count } = await prisma.emailSequenceRun.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailSequenceRuns. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailSequenceRunUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EmailSequenceRuns * const emailSequenceRun = await prisma.emailSequenceRun.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailSequenceRuns and returns the data updated in the database. * @param {EmailSequenceRunUpdateManyAndReturnArgs} args - Arguments to update many EmailSequenceRuns. * @example * // Update many EmailSequenceRuns * const emailSequenceRun = await prisma.emailSequenceRun.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more EmailSequenceRuns and only return the `id` * const emailSequenceRunWithIdOnly = await prisma.emailSequenceRun.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 EmailSequenceRun. * @param {EmailSequenceRunUpsertArgs} args - Arguments to update or create a EmailSequenceRun. * @example * // Update or create a EmailSequenceRun * const emailSequenceRun = await prisma.emailSequenceRun.upsert({ * create: { * // ... data to create a EmailSequenceRun * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EmailSequenceRun we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EmailSequenceRunClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of EmailSequenceRuns. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailSequenceRunCountArgs} args - Arguments to filter EmailSequenceRuns to count. * @example * // Count the number of EmailSequenceRuns * const count = await prisma.emailSequenceRun.count({ * where: { * // ... the filter for the EmailSequenceRuns 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 EmailSequenceRun. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailSequenceRunAggregateArgs} 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 EmailSequenceRun. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailSequenceRunGroupByArgs} 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 EmailSequenceRunGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EmailSequenceRunGroupByArgs['orderBy'] } : { orderBy?: EmailSequenceRunGroupByArgs['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 ? GetEmailSequenceRunGroupByPayload : Prisma.PrismaPromise /** * Fields of the EmailSequenceRun model */ readonly fields: EmailSequenceRunFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EmailSequenceRun. * 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__EmailSequenceRunClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" sequence = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmailSequenceClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> deliveries = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 EmailSequenceRun model */ export interface EmailSequenceRunFieldRefs { readonly id: Prisma.FieldRef<"EmailSequenceRun", 'String'> readonly sequenceId: Prisma.FieldRef<"EmailSequenceRun", 'String'> readonly leadId: Prisma.FieldRef<"EmailSequenceRun", 'String'> readonly tenantId: Prisma.FieldRef<"EmailSequenceRun", 'String'> readonly triggerEventId: Prisma.FieldRef<"EmailSequenceRun", 'String'> readonly status: Prisma.FieldRef<"EmailSequenceRun", 'String'> readonly startedAt: Prisma.FieldRef<"EmailSequenceRun", 'DateTime'> readonly completedAt: Prisma.FieldRef<"EmailSequenceRun", 'DateTime'> readonly stepStateJson: Prisma.FieldRef<"EmailSequenceRun", 'Json'> } // Custom InputTypes /** * EmailSequenceRun findUnique */ export type EmailSequenceRunFindUniqueArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null /** * Filter, which EmailSequenceRun to fetch. */ where: Prisma.EmailSequenceRunWhereUniqueInput } /** * EmailSequenceRun findUniqueOrThrow */ export type EmailSequenceRunFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null /** * Filter, which EmailSequenceRun to fetch. */ where: Prisma.EmailSequenceRunWhereUniqueInput } /** * EmailSequenceRun findFirst */ export type EmailSequenceRunFindFirstArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null /** * Filter, which EmailSequenceRun to fetch. */ where?: Prisma.EmailSequenceRunWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailSequenceRuns to fetch. */ orderBy?: Prisma.EmailSequenceRunOrderByWithRelationInput | Prisma.EmailSequenceRunOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailSequenceRuns. */ cursor?: Prisma.EmailSequenceRunWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailSequenceRuns 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` EmailSequenceRuns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailSequenceRuns. */ distinct?: Prisma.EmailSequenceRunScalarFieldEnum | Prisma.EmailSequenceRunScalarFieldEnum[] } /** * EmailSequenceRun findFirstOrThrow */ export type EmailSequenceRunFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null /** * Filter, which EmailSequenceRun to fetch. */ where?: Prisma.EmailSequenceRunWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailSequenceRuns to fetch. */ orderBy?: Prisma.EmailSequenceRunOrderByWithRelationInput | Prisma.EmailSequenceRunOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailSequenceRuns. */ cursor?: Prisma.EmailSequenceRunWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailSequenceRuns 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` EmailSequenceRuns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailSequenceRuns. */ distinct?: Prisma.EmailSequenceRunScalarFieldEnum | Prisma.EmailSequenceRunScalarFieldEnum[] } /** * EmailSequenceRun findMany */ export type EmailSequenceRunFindManyArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null /** * Filter, which EmailSequenceRuns to fetch. */ where?: Prisma.EmailSequenceRunWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailSequenceRuns to fetch. */ orderBy?: Prisma.EmailSequenceRunOrderByWithRelationInput | Prisma.EmailSequenceRunOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EmailSequenceRuns. */ cursor?: Prisma.EmailSequenceRunWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailSequenceRuns 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` EmailSequenceRuns. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailSequenceRuns. */ distinct?: Prisma.EmailSequenceRunScalarFieldEnum | Prisma.EmailSequenceRunScalarFieldEnum[] } /** * EmailSequenceRun create */ export type EmailSequenceRunCreateArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null /** * The data needed to create a EmailSequenceRun. */ data: Prisma.XOR } /** * EmailSequenceRun createMany */ export type EmailSequenceRunCreateManyArgs = { /** * The data used to create many EmailSequenceRuns. */ data: Prisma.EmailSequenceRunCreateManyInput | Prisma.EmailSequenceRunCreateManyInput[] skipDuplicates?: boolean } /** * EmailSequenceRun createManyAndReturn */ export type EmailSequenceRunCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelectCreateManyAndReturn | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * The data used to create many EmailSequenceRuns. */ data: Prisma.EmailSequenceRunCreateManyInput | Prisma.EmailSequenceRunCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunIncludeCreateManyAndReturn | null } /** * EmailSequenceRun update */ export type EmailSequenceRunUpdateArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null /** * The data needed to update a EmailSequenceRun. */ data: Prisma.XOR /** * Choose, which EmailSequenceRun to update. */ where: Prisma.EmailSequenceRunWhereUniqueInput } /** * EmailSequenceRun updateMany */ export type EmailSequenceRunUpdateManyArgs = { /** * The data used to update EmailSequenceRuns. */ data: Prisma.XOR /** * Filter which EmailSequenceRuns to update */ where?: Prisma.EmailSequenceRunWhereInput /** * Limit how many EmailSequenceRuns to update. */ limit?: number } /** * EmailSequenceRun updateManyAndReturn */ export type EmailSequenceRunUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelectUpdateManyAndReturn | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * The data used to update EmailSequenceRuns. */ data: Prisma.XOR /** * Filter which EmailSequenceRuns to update */ where?: Prisma.EmailSequenceRunWhereInput /** * Limit how many EmailSequenceRuns to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunIncludeUpdateManyAndReturn | null } /** * EmailSequenceRun upsert */ export type EmailSequenceRunUpsertArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null /** * The filter to search for the EmailSequenceRun to update in case it exists. */ where: Prisma.EmailSequenceRunWhereUniqueInput /** * In case the EmailSequenceRun found by the `where` argument doesn't exist, create a new EmailSequenceRun with this data. */ create: Prisma.XOR /** * In case the EmailSequenceRun was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * EmailSequenceRun delete */ export type EmailSequenceRunDeleteArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null /** * Filter which EmailSequenceRun to delete. */ where: Prisma.EmailSequenceRunWhereUniqueInput } /** * EmailSequenceRun deleteMany */ export type EmailSequenceRunDeleteManyArgs = { /** * Filter which EmailSequenceRuns to delete */ where?: Prisma.EmailSequenceRunWhereInput /** * Limit how many EmailSequenceRuns to delete. */ limit?: number } /** * EmailSequenceRun.deliveries */ export type EmailSequenceRun$deliveriesArgs = { /** * Select specific fields to fetch from the EmailSequenceStepDelivery */ select?: Prisma.EmailSequenceStepDeliverySelect | null /** * Omit specific fields from the EmailSequenceStepDelivery */ omit?: Prisma.EmailSequenceStepDeliveryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceStepDeliveryInclude | null where?: Prisma.EmailSequenceStepDeliveryWhereInput orderBy?: Prisma.EmailSequenceStepDeliveryOrderByWithRelationInput | Prisma.EmailSequenceStepDeliveryOrderByWithRelationInput[] cursor?: Prisma.EmailSequenceStepDeliveryWhereUniqueInput take?: number skip?: number distinct?: Prisma.EmailSequenceStepDeliveryScalarFieldEnum | Prisma.EmailSequenceStepDeliveryScalarFieldEnum[] } /** * EmailSequenceRun without action */ export type EmailSequenceRunDefaultArgs = { /** * Select specific fields to fetch from the EmailSequenceRun */ select?: Prisma.EmailSequenceRunSelect | null /** * Omit specific fields from the EmailSequenceRun */ omit?: Prisma.EmailSequenceRunOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailSequenceRunInclude | null }