warmbox/apps/api/src/generated/prisma/models/SendJob.ts

1494 lines
55 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `SendJob` 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"
import type * as Prisma from "../internal/prismaNamespace"
/**
* Model SendJob
*
*/
export type SendJobModel = runtime.Types.Result.DefaultSelection<Prisma.$SendJobPayload>
export type AggregateSendJob = {
_count: SendJobCountAggregateOutputType | null
_min: SendJobMinAggregateOutputType | null
_max: SendJobMaxAggregateOutputType | null
}
export type SendJobMinAggregateOutputType = {
id: string | null
campaignId: string | null
scheduledAt: Date | null
status: $Enums.SendJobStatus | null
idempotencyKey: string | null
processedAt: Date | null
errorMessage: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type SendJobMaxAggregateOutputType = {
id: string | null
campaignId: string | null
scheduledAt: Date | null
status: $Enums.SendJobStatus | null
idempotencyKey: string | null
processedAt: Date | null
errorMessage: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type SendJobCountAggregateOutputType = {
id: number
campaignId: number
scheduledAt: number
status: number
idempotencyKey: number
processedAt: number
errorMessage: number
createdAt: number
updatedAt: number
_all: number
}
export type SendJobMinAggregateInputType = {
id?: true
campaignId?: true
scheduledAt?: true
status?: true
idempotencyKey?: true
processedAt?: true
errorMessage?: true
createdAt?: true
updatedAt?: true
}
export type SendJobMaxAggregateInputType = {
id?: true
campaignId?: true
scheduledAt?: true
status?: true
idempotencyKey?: true
processedAt?: true
errorMessage?: true
createdAt?: true
updatedAt?: true
}
export type SendJobCountAggregateInputType = {
id?: true
campaignId?: true
scheduledAt?: true
status?: true
idempotencyKey?: true
processedAt?: true
errorMessage?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type SendJobAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SendJob to aggregate.
*/
where?: Prisma.SendJobWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SendJobs to fetch.
*/
orderBy?: Prisma.SendJobOrderByWithRelationInput | Prisma.SendJobOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.SendJobWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SendJobs 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` SendJobs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned SendJobs
**/
_count?: true | SendJobCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: SendJobMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: SendJobMaxAggregateInputType
}
export type GetSendJobAggregateType<T extends SendJobAggregateArgs> = {
[P in keyof T & keyof AggregateSendJob]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateSendJob[P]>
: Prisma.GetScalarType<T[P], AggregateSendJob[P]>
}
export type SendJobGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SendJobWhereInput
orderBy?: Prisma.SendJobOrderByWithAggregationInput | Prisma.SendJobOrderByWithAggregationInput[]
by: Prisma.SendJobScalarFieldEnum[] | Prisma.SendJobScalarFieldEnum
having?: Prisma.SendJobScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: SendJobCountAggregateInputType | true
_min?: SendJobMinAggregateInputType
_max?: SendJobMaxAggregateInputType
}
export type SendJobGroupByOutputType = {
id: string
campaignId: string
scheduledAt: Date
status: $Enums.SendJobStatus
idempotencyKey: string
processedAt: Date | null
errorMessage: string | null
createdAt: Date
updatedAt: Date
_count: SendJobCountAggregateOutputType | null
_min: SendJobMinAggregateOutputType | null
_max: SendJobMaxAggregateOutputType | null
}
export type GetSendJobGroupByPayload<T extends SendJobGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<SendJobGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof SendJobGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], SendJobGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], SendJobGroupByOutputType[P]>
}
>
>
export type SendJobWhereInput = {
AND?: Prisma.SendJobWhereInput | Prisma.SendJobWhereInput[]
OR?: Prisma.SendJobWhereInput[]
NOT?: Prisma.SendJobWhereInput | Prisma.SendJobWhereInput[]
id?: Prisma.StringFilter<"SendJob"> | string
campaignId?: Prisma.StringFilter<"SendJob"> | string
scheduledAt?: Prisma.DateTimeFilter<"SendJob"> | Date | string
status?: Prisma.EnumSendJobStatusFilter<"SendJob"> | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringFilter<"SendJob"> | string
processedAt?: Prisma.DateTimeNullableFilter<"SendJob"> | Date | string | null
errorMessage?: Prisma.StringNullableFilter<"SendJob"> | string | null
createdAt?: Prisma.DateTimeFilter<"SendJob"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"SendJob"> | Date | string
campaign?: Prisma.XOR<Prisma.WarmupCampaignScalarRelationFilter, Prisma.WarmupCampaignWhereInput>
}
export type SendJobOrderByWithRelationInput = {
id?: Prisma.SortOrder
campaignId?: Prisma.SortOrder
scheduledAt?: Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
processedAt?: Prisma.SortOrderInput | Prisma.SortOrder
errorMessage?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
campaign?: Prisma.WarmupCampaignOrderByWithRelationInput
}
export type SendJobWhereUniqueInput = Prisma.AtLeast<{
id?: string
idempotencyKey?: string
AND?: Prisma.SendJobWhereInput | Prisma.SendJobWhereInput[]
OR?: Prisma.SendJobWhereInput[]
NOT?: Prisma.SendJobWhereInput | Prisma.SendJobWhereInput[]
campaignId?: Prisma.StringFilter<"SendJob"> | string
scheduledAt?: Prisma.DateTimeFilter<"SendJob"> | Date | string
status?: Prisma.EnumSendJobStatusFilter<"SendJob"> | $Enums.SendJobStatus
processedAt?: Prisma.DateTimeNullableFilter<"SendJob"> | Date | string | null
errorMessage?: Prisma.StringNullableFilter<"SendJob"> | string | null
createdAt?: Prisma.DateTimeFilter<"SendJob"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"SendJob"> | Date | string
campaign?: Prisma.XOR<Prisma.WarmupCampaignScalarRelationFilter, Prisma.WarmupCampaignWhereInput>
}, "id" | "idempotencyKey">
export type SendJobOrderByWithAggregationInput = {
id?: Prisma.SortOrder
campaignId?: Prisma.SortOrder
scheduledAt?: Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
processedAt?: Prisma.SortOrderInput | Prisma.SortOrder
errorMessage?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.SendJobCountOrderByAggregateInput
_max?: Prisma.SendJobMaxOrderByAggregateInput
_min?: Prisma.SendJobMinOrderByAggregateInput
}
export type SendJobScalarWhereWithAggregatesInput = {
AND?: Prisma.SendJobScalarWhereWithAggregatesInput | Prisma.SendJobScalarWhereWithAggregatesInput[]
OR?: Prisma.SendJobScalarWhereWithAggregatesInput[]
NOT?: Prisma.SendJobScalarWhereWithAggregatesInput | Prisma.SendJobScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"SendJob"> | string
campaignId?: Prisma.StringWithAggregatesFilter<"SendJob"> | string
scheduledAt?: Prisma.DateTimeWithAggregatesFilter<"SendJob"> | Date | string
status?: Prisma.EnumSendJobStatusWithAggregatesFilter<"SendJob"> | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringWithAggregatesFilter<"SendJob"> | string
processedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"SendJob"> | Date | string | null
errorMessage?: Prisma.StringNullableWithAggregatesFilter<"SendJob"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SendJob"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SendJob"> | Date | string
}
export type SendJobCreateInput = {
id?: string
scheduledAt: Date | string
status?: $Enums.SendJobStatus
idempotencyKey: string
processedAt?: Date | string | null
errorMessage?: string | null
createdAt?: Date | string
updatedAt?: Date | string
campaign: Prisma.WarmupCampaignCreateNestedOneWithoutSendJobsInput
}
export type SendJobUncheckedCreateInput = {
id?: string
campaignId: string
scheduledAt: Date | string
status?: $Enums.SendJobStatus
idempotencyKey: string
processedAt?: Date | string | null
errorMessage?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type SendJobUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
status?: Prisma.EnumSendJobStatusFieldUpdateOperationsInput | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
campaign?: Prisma.WarmupCampaignUpdateOneRequiredWithoutSendJobsNestedInput
}
export type SendJobUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
campaignId?: Prisma.StringFieldUpdateOperationsInput | string
scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
status?: Prisma.EnumSendJobStatusFieldUpdateOperationsInput | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SendJobCreateManyInput = {
id?: string
campaignId: string
scheduledAt: Date | string
status?: $Enums.SendJobStatus
idempotencyKey: string
processedAt?: Date | string | null
errorMessage?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type SendJobUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
status?: Prisma.EnumSendJobStatusFieldUpdateOperationsInput | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SendJobUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
campaignId?: Prisma.StringFieldUpdateOperationsInput | string
scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
status?: Prisma.EnumSendJobStatusFieldUpdateOperationsInput | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SendJobCountOrderByAggregateInput = {
id?: Prisma.SortOrder
campaignId?: Prisma.SortOrder
scheduledAt?: Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
processedAt?: Prisma.SortOrder
errorMessage?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type SendJobMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
campaignId?: Prisma.SortOrder
scheduledAt?: Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
processedAt?: Prisma.SortOrder
errorMessage?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type SendJobMinOrderByAggregateInput = {
id?: Prisma.SortOrder
campaignId?: Prisma.SortOrder
scheduledAt?: Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
processedAt?: Prisma.SortOrder
errorMessage?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type SendJobListRelationFilter = {
every?: Prisma.SendJobWhereInput
some?: Prisma.SendJobWhereInput
none?: Prisma.SendJobWhereInput
}
export type SendJobOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type EnumSendJobStatusFieldUpdateOperationsInput = {
set?: $Enums.SendJobStatus
}
export type NullableDateTimeFieldUpdateOperationsInput = {
set?: Date | string | null
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type SendJobCreateNestedManyWithoutCampaignInput = {
create?: Prisma.XOR<Prisma.SendJobCreateWithoutCampaignInput, Prisma.SendJobUncheckedCreateWithoutCampaignInput> | Prisma.SendJobCreateWithoutCampaignInput[] | Prisma.SendJobUncheckedCreateWithoutCampaignInput[]
connectOrCreate?: Prisma.SendJobCreateOrConnectWithoutCampaignInput | Prisma.SendJobCreateOrConnectWithoutCampaignInput[]
createMany?: Prisma.SendJobCreateManyCampaignInputEnvelope
connect?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
}
export type SendJobUncheckedCreateNestedManyWithoutCampaignInput = {
create?: Prisma.XOR<Prisma.SendJobCreateWithoutCampaignInput, Prisma.SendJobUncheckedCreateWithoutCampaignInput> | Prisma.SendJobCreateWithoutCampaignInput[] | Prisma.SendJobUncheckedCreateWithoutCampaignInput[]
connectOrCreate?: Prisma.SendJobCreateOrConnectWithoutCampaignInput | Prisma.SendJobCreateOrConnectWithoutCampaignInput[]
createMany?: Prisma.SendJobCreateManyCampaignInputEnvelope
connect?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
}
export type SendJobUpdateManyWithoutCampaignNestedInput = {
create?: Prisma.XOR<Prisma.SendJobCreateWithoutCampaignInput, Prisma.SendJobUncheckedCreateWithoutCampaignInput> | Prisma.SendJobCreateWithoutCampaignInput[] | Prisma.SendJobUncheckedCreateWithoutCampaignInput[]
connectOrCreate?: Prisma.SendJobCreateOrConnectWithoutCampaignInput | Prisma.SendJobCreateOrConnectWithoutCampaignInput[]
upsert?: Prisma.SendJobUpsertWithWhereUniqueWithoutCampaignInput | Prisma.SendJobUpsertWithWhereUniqueWithoutCampaignInput[]
createMany?: Prisma.SendJobCreateManyCampaignInputEnvelope
set?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
disconnect?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
delete?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
connect?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
update?: Prisma.SendJobUpdateWithWhereUniqueWithoutCampaignInput | Prisma.SendJobUpdateWithWhereUniqueWithoutCampaignInput[]
updateMany?: Prisma.SendJobUpdateManyWithWhereWithoutCampaignInput | Prisma.SendJobUpdateManyWithWhereWithoutCampaignInput[]
deleteMany?: Prisma.SendJobScalarWhereInput | Prisma.SendJobScalarWhereInput[]
}
export type SendJobUncheckedUpdateManyWithoutCampaignNestedInput = {
create?: Prisma.XOR<Prisma.SendJobCreateWithoutCampaignInput, Prisma.SendJobUncheckedCreateWithoutCampaignInput> | Prisma.SendJobCreateWithoutCampaignInput[] | Prisma.SendJobUncheckedCreateWithoutCampaignInput[]
connectOrCreate?: Prisma.SendJobCreateOrConnectWithoutCampaignInput | Prisma.SendJobCreateOrConnectWithoutCampaignInput[]
upsert?: Prisma.SendJobUpsertWithWhereUniqueWithoutCampaignInput | Prisma.SendJobUpsertWithWhereUniqueWithoutCampaignInput[]
createMany?: Prisma.SendJobCreateManyCampaignInputEnvelope
set?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
disconnect?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
delete?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
connect?: Prisma.SendJobWhereUniqueInput | Prisma.SendJobWhereUniqueInput[]
update?: Prisma.SendJobUpdateWithWhereUniqueWithoutCampaignInput | Prisma.SendJobUpdateWithWhereUniqueWithoutCampaignInput[]
updateMany?: Prisma.SendJobUpdateManyWithWhereWithoutCampaignInput | Prisma.SendJobUpdateManyWithWhereWithoutCampaignInput[]
deleteMany?: Prisma.SendJobScalarWhereInput | Prisma.SendJobScalarWhereInput[]
}
export type SendJobCreateWithoutCampaignInput = {
id?: string
scheduledAt: Date | string
status?: $Enums.SendJobStatus
idempotencyKey: string
processedAt?: Date | string | null
errorMessage?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type SendJobUncheckedCreateWithoutCampaignInput = {
id?: string
scheduledAt: Date | string
status?: $Enums.SendJobStatus
idempotencyKey: string
processedAt?: Date | string | null
errorMessage?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type SendJobCreateOrConnectWithoutCampaignInput = {
where: Prisma.SendJobWhereUniqueInput
create: Prisma.XOR<Prisma.SendJobCreateWithoutCampaignInput, Prisma.SendJobUncheckedCreateWithoutCampaignInput>
}
export type SendJobCreateManyCampaignInputEnvelope = {
data: Prisma.SendJobCreateManyCampaignInput | Prisma.SendJobCreateManyCampaignInput[]
}
export type SendJobUpsertWithWhereUniqueWithoutCampaignInput = {
where: Prisma.SendJobWhereUniqueInput
update: Prisma.XOR<Prisma.SendJobUpdateWithoutCampaignInput, Prisma.SendJobUncheckedUpdateWithoutCampaignInput>
create: Prisma.XOR<Prisma.SendJobCreateWithoutCampaignInput, Prisma.SendJobUncheckedCreateWithoutCampaignInput>
}
export type SendJobUpdateWithWhereUniqueWithoutCampaignInput = {
where: Prisma.SendJobWhereUniqueInput
data: Prisma.XOR<Prisma.SendJobUpdateWithoutCampaignInput, Prisma.SendJobUncheckedUpdateWithoutCampaignInput>
}
export type SendJobUpdateManyWithWhereWithoutCampaignInput = {
where: Prisma.SendJobScalarWhereInput
data: Prisma.XOR<Prisma.SendJobUpdateManyMutationInput, Prisma.SendJobUncheckedUpdateManyWithoutCampaignInput>
}
export type SendJobScalarWhereInput = {
AND?: Prisma.SendJobScalarWhereInput | Prisma.SendJobScalarWhereInput[]
OR?: Prisma.SendJobScalarWhereInput[]
NOT?: Prisma.SendJobScalarWhereInput | Prisma.SendJobScalarWhereInput[]
id?: Prisma.StringFilter<"SendJob"> | string
campaignId?: Prisma.StringFilter<"SendJob"> | string
scheduledAt?: Prisma.DateTimeFilter<"SendJob"> | Date | string
status?: Prisma.EnumSendJobStatusFilter<"SendJob"> | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringFilter<"SendJob"> | string
processedAt?: Prisma.DateTimeNullableFilter<"SendJob"> | Date | string | null
errorMessage?: Prisma.StringNullableFilter<"SendJob"> | string | null
createdAt?: Prisma.DateTimeFilter<"SendJob"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"SendJob"> | Date | string
}
export type SendJobCreateManyCampaignInput = {
id?: string
scheduledAt: Date | string
status?: $Enums.SendJobStatus
idempotencyKey: string
processedAt?: Date | string | null
errorMessage?: string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type SendJobUpdateWithoutCampaignInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
status?: Prisma.EnumSendJobStatusFieldUpdateOperationsInput | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SendJobUncheckedUpdateWithoutCampaignInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
status?: Prisma.EnumSendJobStatusFieldUpdateOperationsInput | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SendJobUncheckedUpdateManyWithoutCampaignInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
scheduledAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
status?: Prisma.EnumSendJobStatusFieldUpdateOperationsInput | $Enums.SendJobStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SendJobSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
campaignId?: boolean
scheduledAt?: boolean
status?: boolean
idempotencyKey?: boolean
processedAt?: boolean
errorMessage?: boolean
createdAt?: boolean
updatedAt?: boolean
campaign?: boolean | Prisma.WarmupCampaignDefaultArgs<ExtArgs>
}, ExtArgs["result"]["sendJob"]>
export type SendJobSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
campaignId?: boolean
scheduledAt?: boolean
status?: boolean
idempotencyKey?: boolean
processedAt?: boolean
errorMessage?: boolean
createdAt?: boolean
updatedAt?: boolean
campaign?: boolean | Prisma.WarmupCampaignDefaultArgs<ExtArgs>
}, ExtArgs["result"]["sendJob"]>
export type SendJobSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
campaignId?: boolean
scheduledAt?: boolean
status?: boolean
idempotencyKey?: boolean
processedAt?: boolean
errorMessage?: boolean
createdAt?: boolean
updatedAt?: boolean
campaign?: boolean | Prisma.WarmupCampaignDefaultArgs<ExtArgs>
}, ExtArgs["result"]["sendJob"]>
export type SendJobSelectScalar = {
id?: boolean
campaignId?: boolean
scheduledAt?: boolean
status?: boolean
idempotencyKey?: boolean
processedAt?: boolean
errorMessage?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type SendJobOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "campaignId" | "scheduledAt" | "status" | "idempotencyKey" | "processedAt" | "errorMessage" | "createdAt" | "updatedAt", ExtArgs["result"]["sendJob"]>
export type SendJobInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
campaign?: boolean | Prisma.WarmupCampaignDefaultArgs<ExtArgs>
}
export type SendJobIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
campaign?: boolean | Prisma.WarmupCampaignDefaultArgs<ExtArgs>
}
export type SendJobIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
campaign?: boolean | Prisma.WarmupCampaignDefaultArgs<ExtArgs>
}
export type $SendJobPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "SendJob"
objects: {
campaign: Prisma.$WarmupCampaignPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
campaignId: string
scheduledAt: Date
status: $Enums.SendJobStatus
idempotencyKey: string
processedAt: Date | null
errorMessage: string | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["sendJob"]>
composites: {}
}
export type SendJobGetPayload<S extends boolean | null | undefined | SendJobDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SendJobPayload, S>
export type SendJobCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<SendJobFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: SendJobCountAggregateInputType | true
}
export interface SendJobDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SendJob'], meta: { name: 'SendJob' } }
/**
* Find zero or one SendJob that matches the filter.
* @param {SendJobFindUniqueArgs} args - Arguments to find a SendJob
* @example
* // Get one SendJob
* const sendJob = await prisma.sendJob.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends SendJobFindUniqueArgs>(args: Prisma.SelectSubset<T, SendJobFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SendJobClient<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one SendJob that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {SendJobFindUniqueOrThrowArgs} args - Arguments to find a SendJob
* @example
* // Get one SendJob
* const sendJob = await prisma.sendJob.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends SendJobFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SendJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SendJobClient<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first SendJob 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 {SendJobFindFirstArgs} args - Arguments to find a SendJob
* @example
* // Get one SendJob
* const sendJob = await prisma.sendJob.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends SendJobFindFirstArgs>(args?: Prisma.SelectSubset<T, SendJobFindFirstArgs<ExtArgs>>): Prisma.Prisma__SendJobClient<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first SendJob 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 {SendJobFindFirstOrThrowArgs} args - Arguments to find a SendJob
* @example
* // Get one SendJob
* const sendJob = await prisma.sendJob.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends SendJobFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SendJobFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SendJobClient<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more SendJobs 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 {SendJobFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all SendJobs
* const sendJobs = await prisma.sendJob.findMany()
*
* // Get first 10 SendJobs
* const sendJobs = await prisma.sendJob.findMany({ take: 10 })
*
* // Only select the `id`
* const sendJobWithIdOnly = await prisma.sendJob.findMany({ select: { id: true } })
*
*/
findMany<T extends SendJobFindManyArgs>(args?: Prisma.SelectSubset<T, SendJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a SendJob.
* @param {SendJobCreateArgs} args - Arguments to create a SendJob.
* @example
* // Create one SendJob
* const SendJob = await prisma.sendJob.create({
* data: {
* // ... data to create a SendJob
* }
* })
*
*/
create<T extends SendJobCreateArgs>(args: Prisma.SelectSubset<T, SendJobCreateArgs<ExtArgs>>): Prisma.Prisma__SendJobClient<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many SendJobs.
* @param {SendJobCreateManyArgs} args - Arguments to create many SendJobs.
* @example
* // Create many SendJobs
* const sendJob = await prisma.sendJob.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends SendJobCreateManyArgs>(args?: Prisma.SelectSubset<T, SendJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many SendJobs and returns the data saved in the database.
* @param {SendJobCreateManyAndReturnArgs} args - Arguments to create many SendJobs.
* @example
* // Create many SendJobs
* const sendJob = await prisma.sendJob.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many SendJobs and only return the `id`
* const sendJobWithIdOnly = await prisma.sendJob.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<T extends SendJobCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SendJobCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a SendJob.
* @param {SendJobDeleteArgs} args - Arguments to delete one SendJob.
* @example
* // Delete one SendJob
* const SendJob = await prisma.sendJob.delete({
* where: {
* // ... filter to delete one SendJob
* }
* })
*
*/
delete<T extends SendJobDeleteArgs>(args: Prisma.SelectSubset<T, SendJobDeleteArgs<ExtArgs>>): Prisma.Prisma__SendJobClient<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one SendJob.
* @param {SendJobUpdateArgs} args - Arguments to update one SendJob.
* @example
* // Update one SendJob
* const sendJob = await prisma.sendJob.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends SendJobUpdateArgs>(args: Prisma.SelectSubset<T, SendJobUpdateArgs<ExtArgs>>): Prisma.Prisma__SendJobClient<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more SendJobs.
* @param {SendJobDeleteManyArgs} args - Arguments to filter SendJobs to delete.
* @example
* // Delete a few SendJobs
* const { count } = await prisma.sendJob.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends SendJobDeleteManyArgs>(args?: Prisma.SelectSubset<T, SendJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more SendJobs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SendJobUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many SendJobs
* const sendJob = await prisma.sendJob.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends SendJobUpdateManyArgs>(args: Prisma.SelectSubset<T, SendJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more SendJobs and returns the data updated in the database.
* @param {SendJobUpdateManyAndReturnArgs} args - Arguments to update many SendJobs.
* @example
* // Update many SendJobs
* const sendJob = await prisma.sendJob.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more SendJobs and only return the `id`
* const sendJobWithIdOnly = await prisma.sendJob.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<T extends SendJobUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SendJobUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one SendJob.
* @param {SendJobUpsertArgs} args - Arguments to update or create a SendJob.
* @example
* // Update or create a SendJob
* const sendJob = await prisma.sendJob.upsert({
* create: {
* // ... data to create a SendJob
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the SendJob we want to update
* }
* })
*/
upsert<T extends SendJobUpsertArgs>(args: Prisma.SelectSubset<T, SendJobUpsertArgs<ExtArgs>>): Prisma.Prisma__SendJobClient<runtime.Types.Result.GetResult<Prisma.$SendJobPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of SendJobs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SendJobCountArgs} args - Arguments to filter SendJobs to count.
* @example
* // Count the number of SendJobs
* const count = await prisma.sendJob.count({
* where: {
* // ... the filter for the SendJobs we want to count
* }
* })
**/
count<T extends SendJobCountArgs>(
args?: Prisma.Subset<T, SendJobCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], SendJobCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a SendJob.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SendJobAggregateArgs} 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<T extends SendJobAggregateArgs>(args: Prisma.Subset<T, SendJobAggregateArgs>): Prisma.PrismaPromise<GetSendJobAggregateType<T>>
/**
* Group by SendJob.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {SendJobGroupByArgs} 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 SendJobGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: SendJobGroupByArgs['orderBy'] }
: { orderBy?: SendJobGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, SendJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSendJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the SendJob model
*/
readonly fields: SendJobFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for SendJob.
* 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__SendJobClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
campaign<T extends Prisma.WarmupCampaignDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WarmupCampaignDefaultArgs<ExtArgs>>): Prisma.Prisma__WarmupCampaignClient<runtime.Types.Result.GetResult<Prisma.$WarmupCampaignPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* Fields of the SendJob model
*/
export interface SendJobFieldRefs {
readonly id: Prisma.FieldRef<"SendJob", 'String'>
readonly campaignId: Prisma.FieldRef<"SendJob", 'String'>
readonly scheduledAt: Prisma.FieldRef<"SendJob", 'DateTime'>
readonly status: Prisma.FieldRef<"SendJob", 'SendJobStatus'>
readonly idempotencyKey: Prisma.FieldRef<"SendJob", 'String'>
readonly processedAt: Prisma.FieldRef<"SendJob", 'DateTime'>
readonly errorMessage: Prisma.FieldRef<"SendJob", 'String'>
readonly createdAt: Prisma.FieldRef<"SendJob", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"SendJob", 'DateTime'>
}
// Custom InputTypes
/**
* SendJob findUnique
*/
export type SendJobFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
/**
* Filter, which SendJob to fetch.
*/
where: Prisma.SendJobWhereUniqueInput
}
/**
* SendJob findUniqueOrThrow
*/
export type SendJobFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
/**
* Filter, which SendJob to fetch.
*/
where: Prisma.SendJobWhereUniqueInput
}
/**
* SendJob findFirst
*/
export type SendJobFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
/**
* Filter, which SendJob to fetch.
*/
where?: Prisma.SendJobWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SendJobs to fetch.
*/
orderBy?: Prisma.SendJobOrderByWithRelationInput | Prisma.SendJobOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SendJobs.
*/
cursor?: Prisma.SendJobWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SendJobs 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` SendJobs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SendJobs.
*/
distinct?: Prisma.SendJobScalarFieldEnum | Prisma.SendJobScalarFieldEnum[]
}
/**
* SendJob findFirstOrThrow
*/
export type SendJobFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
/**
* Filter, which SendJob to fetch.
*/
where?: Prisma.SendJobWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SendJobs to fetch.
*/
orderBy?: Prisma.SendJobOrderByWithRelationInput | Prisma.SendJobOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for SendJobs.
*/
cursor?: Prisma.SendJobWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SendJobs 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` SendJobs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SendJobs.
*/
distinct?: Prisma.SendJobScalarFieldEnum | Prisma.SendJobScalarFieldEnum[]
}
/**
* SendJob findMany
*/
export type SendJobFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
/**
* Filter, which SendJobs to fetch.
*/
where?: Prisma.SendJobWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of SendJobs to fetch.
*/
orderBy?: Prisma.SendJobOrderByWithRelationInput | Prisma.SendJobOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing SendJobs.
*/
cursor?: Prisma.SendJobWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` SendJobs 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` SendJobs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of SendJobs.
*/
distinct?: Prisma.SendJobScalarFieldEnum | Prisma.SendJobScalarFieldEnum[]
}
/**
* SendJob create
*/
export type SendJobCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
/**
* The data needed to create a SendJob.
*/
data: Prisma.XOR<Prisma.SendJobCreateInput, Prisma.SendJobUncheckedCreateInput>
}
/**
* SendJob createMany
*/
export type SendJobCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many SendJobs.
*/
data: Prisma.SendJobCreateManyInput | Prisma.SendJobCreateManyInput[]
}
/**
* SendJob createManyAndReturn
*/
export type SendJobCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* The data used to create many SendJobs.
*/
data: Prisma.SendJobCreateManyInput | Prisma.SendJobCreateManyInput[]
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* SendJob update
*/
export type SendJobUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
/**
* The data needed to update a SendJob.
*/
data: Prisma.XOR<Prisma.SendJobUpdateInput, Prisma.SendJobUncheckedUpdateInput>
/**
* Choose, which SendJob to update.
*/
where: Prisma.SendJobWhereUniqueInput
}
/**
* SendJob updateMany
*/
export type SendJobUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update SendJobs.
*/
data: Prisma.XOR<Prisma.SendJobUpdateManyMutationInput, Prisma.SendJobUncheckedUpdateManyInput>
/**
* Filter which SendJobs to update
*/
where?: Prisma.SendJobWhereInput
/**
* Limit how many SendJobs to update.
*/
limit?: number
}
/**
* SendJob updateManyAndReturn
*/
export type SendJobUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* The data used to update SendJobs.
*/
data: Prisma.XOR<Prisma.SendJobUpdateManyMutationInput, Prisma.SendJobUncheckedUpdateManyInput>
/**
* Filter which SendJobs to update
*/
where?: Prisma.SendJobWhereInput
/**
* Limit how many SendJobs to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* SendJob upsert
*/
export type SendJobUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
/**
* The filter to search for the SendJob to update in case it exists.
*/
where: Prisma.SendJobWhereUniqueInput
/**
* In case the SendJob found by the `where` argument doesn't exist, create a new SendJob with this data.
*/
create: Prisma.XOR<Prisma.SendJobCreateInput, Prisma.SendJobUncheckedCreateInput>
/**
* In case the SendJob was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.SendJobUpdateInput, Prisma.SendJobUncheckedUpdateInput>
}
/**
* SendJob delete
*/
export type SendJobDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
/**
* Filter which SendJob to delete.
*/
where: Prisma.SendJobWhereUniqueInput
}
/**
* SendJob deleteMany
*/
export type SendJobDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which SendJobs to delete
*/
where?: Prisma.SendJobWhereInput
/**
* Limit how many SendJobs to delete.
*/
limit?: number
}
/**
* SendJob without action
*/
export type SendJobDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SendJob
*/
select?: Prisma.SendJobSelect<ExtArgs> | null
/**
* Omit specific fields from the SendJob
*/
omit?: Prisma.SendJobOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SendJobInclude<ExtArgs> | null
}