Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/EventWebhookAttempt.ts
T

1569 lines
63 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 `EventWebhookAttempt` 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 EventWebhookAttempt
*
*/
export type EventWebhookAttemptModel = runtime.Types.Result.DefaultSelection<Prisma.$EventWebhookAttemptPayload>
export type AggregateEventWebhookAttempt = {
_count: EventWebhookAttemptCountAggregateOutputType | null
_avg: EventWebhookAttemptAvgAggregateOutputType | null
_sum: EventWebhookAttemptSumAggregateOutputType | null
_min: EventWebhookAttemptMinAggregateOutputType | null
_max: EventWebhookAttemptMaxAggregateOutputType | null
}
export type EventWebhookAttemptAvgAggregateOutputType = {
status: number | null
}
export type EventWebhookAttemptSumAggregateOutputType = {
status: number | null
}
export type EventWebhookAttemptMinAggregateOutputType = {
id: string | null
createdAt: Date | null
startedAt: Date | null
finishedAt: Date | null
eventId: string | null
endpoint: string | null
success: boolean | null
status: number | null
message: string | null
body: string | null
}
export type EventWebhookAttemptMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
startedAt: Date | null
finishedAt: Date | null
eventId: string | null
endpoint: string | null
success: boolean | null
status: number | null
message: string | null
body: string | null
}
export type EventWebhookAttemptCountAggregateOutputType = {
id: number
createdAt: number
startedAt: number
finishedAt: number
eventId: number
endpoint: number
success: number
status: number
message: number
body: number
_all: number
}
export type EventWebhookAttemptAvgAggregateInputType = {
status?: true
}
export type EventWebhookAttemptSumAggregateInputType = {
status?: true
}
export type EventWebhookAttemptMinAggregateInputType = {
id?: true
createdAt?: true
startedAt?: true
finishedAt?: true
eventId?: true
endpoint?: true
success?: true
status?: true
message?: true
body?: true
}
export type EventWebhookAttemptMaxAggregateInputType = {
id?: true
createdAt?: true
startedAt?: true
finishedAt?: true
eventId?: true
endpoint?: true
success?: true
status?: true
message?: true
body?: true
}
export type EventWebhookAttemptCountAggregateInputType = {
id?: true
createdAt?: true
startedAt?: true
finishedAt?: true
eventId?: true
endpoint?: true
success?: true
status?: true
message?: true
body?: true
_all?: true
}
export type EventWebhookAttemptAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which EventWebhookAttempt to aggregate.
*/
where?: Prisma.EventWebhookAttemptWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EventWebhookAttempts to fetch.
*/
orderBy?: Prisma.EventWebhookAttemptOrderByWithRelationInput | Prisma.EventWebhookAttemptOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.EventWebhookAttemptWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EventWebhookAttempts 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` EventWebhookAttempts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned EventWebhookAttempts
**/
_count?: true | EventWebhookAttemptCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: EventWebhookAttemptAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: EventWebhookAttemptSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: EventWebhookAttemptMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: EventWebhookAttemptMaxAggregateInputType
}
export type GetEventWebhookAttemptAggregateType<T extends EventWebhookAttemptAggregateArgs> = {
[P in keyof T & keyof AggregateEventWebhookAttempt]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateEventWebhookAttempt[P]>
: Prisma.GetScalarType<T[P], AggregateEventWebhookAttempt[P]>
}
export type EventWebhookAttemptGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.EventWebhookAttemptWhereInput
orderBy?: Prisma.EventWebhookAttemptOrderByWithAggregationInput | Prisma.EventWebhookAttemptOrderByWithAggregationInput[]
by: Prisma.EventWebhookAttemptScalarFieldEnum[] | Prisma.EventWebhookAttemptScalarFieldEnum
having?: Prisma.EventWebhookAttemptScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: EventWebhookAttemptCountAggregateInputType | true
_avg?: EventWebhookAttemptAvgAggregateInputType
_sum?: EventWebhookAttemptSumAggregateInputType
_min?: EventWebhookAttemptMinAggregateInputType
_max?: EventWebhookAttemptMaxAggregateInputType
}
export type EventWebhookAttemptGroupByOutputType = {
id: string
createdAt: Date
startedAt: Date | null
finishedAt: Date | null
eventId: string
endpoint: string
success: boolean | null
status: number | null
message: string | null
body: string | null
_count: EventWebhookAttemptCountAggregateOutputType | null
_avg: EventWebhookAttemptAvgAggregateOutputType | null
_sum: EventWebhookAttemptSumAggregateOutputType | null
_min: EventWebhookAttemptMinAggregateOutputType | null
_max: EventWebhookAttemptMaxAggregateOutputType | null
}
export type GetEventWebhookAttemptGroupByPayload<T extends EventWebhookAttemptGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<EventWebhookAttemptGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof EventWebhookAttemptGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], EventWebhookAttemptGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], EventWebhookAttemptGroupByOutputType[P]>
}
>
>
export type EventWebhookAttemptWhereInput = {
AND?: Prisma.EventWebhookAttemptWhereInput | Prisma.EventWebhookAttemptWhereInput[]
OR?: Prisma.EventWebhookAttemptWhereInput[]
NOT?: Prisma.EventWebhookAttemptWhereInput | Prisma.EventWebhookAttemptWhereInput[]
id?: Prisma.StringFilter<"EventWebhookAttempt"> | string
createdAt?: Prisma.DateTimeFilter<"EventWebhookAttempt"> | Date | string
startedAt?: Prisma.DateTimeNullableFilter<"EventWebhookAttempt"> | Date | string | null
finishedAt?: Prisma.DateTimeNullableFilter<"EventWebhookAttempt"> | Date | string | null
eventId?: Prisma.StringFilter<"EventWebhookAttempt"> | string
endpoint?: Prisma.StringFilter<"EventWebhookAttempt"> | string
success?: Prisma.BoolNullableFilter<"EventWebhookAttempt"> | boolean | null
status?: Prisma.IntNullableFilter<"EventWebhookAttempt"> | number | null
message?: Prisma.StringNullableFilter<"EventWebhookAttempt"> | string | null
body?: Prisma.StringNullableFilter<"EventWebhookAttempt"> | string | null
event?: Prisma.XOR<Prisma.EventScalarRelationFilter, Prisma.EventWhereInput>
}
export type EventWebhookAttemptOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
startedAt?: Prisma.SortOrderInput | Prisma.SortOrder
finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
eventId?: Prisma.SortOrder
endpoint?: Prisma.SortOrder
success?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrderInput | Prisma.SortOrder
message?: Prisma.SortOrderInput | Prisma.SortOrder
body?: Prisma.SortOrderInput | Prisma.SortOrder
event?: Prisma.EventOrderByWithRelationInput
}
export type EventWebhookAttemptWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.EventWebhookAttemptWhereInput | Prisma.EventWebhookAttemptWhereInput[]
OR?: Prisma.EventWebhookAttemptWhereInput[]
NOT?: Prisma.EventWebhookAttemptWhereInput | Prisma.EventWebhookAttemptWhereInput[]
createdAt?: Prisma.DateTimeFilter<"EventWebhookAttempt"> | Date | string
startedAt?: Prisma.DateTimeNullableFilter<"EventWebhookAttempt"> | Date | string | null
finishedAt?: Prisma.DateTimeNullableFilter<"EventWebhookAttempt"> | Date | string | null
eventId?: Prisma.StringFilter<"EventWebhookAttempt"> | string
endpoint?: Prisma.StringFilter<"EventWebhookAttempt"> | string
success?: Prisma.BoolNullableFilter<"EventWebhookAttempt"> | boolean | null
status?: Prisma.IntNullableFilter<"EventWebhookAttempt"> | number | null
message?: Prisma.StringNullableFilter<"EventWebhookAttempt"> | string | null
body?: Prisma.StringNullableFilter<"EventWebhookAttempt"> | string | null
event?: Prisma.XOR<Prisma.EventScalarRelationFilter, Prisma.EventWhereInput>
}, "id">
export type EventWebhookAttemptOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
startedAt?: Prisma.SortOrderInput | Prisma.SortOrder
finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
eventId?: Prisma.SortOrder
endpoint?: Prisma.SortOrder
success?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrderInput | Prisma.SortOrder
message?: Prisma.SortOrderInput | Prisma.SortOrder
body?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.EventWebhookAttemptCountOrderByAggregateInput
_avg?: Prisma.EventWebhookAttemptAvgOrderByAggregateInput
_max?: Prisma.EventWebhookAttemptMaxOrderByAggregateInput
_min?: Prisma.EventWebhookAttemptMinOrderByAggregateInput
_sum?: Prisma.EventWebhookAttemptSumOrderByAggregateInput
}
export type EventWebhookAttemptScalarWhereWithAggregatesInput = {
AND?: Prisma.EventWebhookAttemptScalarWhereWithAggregatesInput | Prisma.EventWebhookAttemptScalarWhereWithAggregatesInput[]
OR?: Prisma.EventWebhookAttemptScalarWhereWithAggregatesInput[]
NOT?: Prisma.EventWebhookAttemptScalarWhereWithAggregatesInput | Prisma.EventWebhookAttemptScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"EventWebhookAttempt"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"EventWebhookAttempt"> | Date | string
startedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EventWebhookAttempt"> | Date | string | null
finishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EventWebhookAttempt"> | Date | string | null
eventId?: Prisma.StringWithAggregatesFilter<"EventWebhookAttempt"> | string
endpoint?: Prisma.StringWithAggregatesFilter<"EventWebhookAttempt"> | string
success?: Prisma.BoolNullableWithAggregatesFilter<"EventWebhookAttempt"> | boolean | null
status?: Prisma.IntNullableWithAggregatesFilter<"EventWebhookAttempt"> | number | null
message?: Prisma.StringNullableWithAggregatesFilter<"EventWebhookAttempt"> | string | null
body?: Prisma.StringNullableWithAggregatesFilter<"EventWebhookAttempt"> | string | null
}
export type EventWebhookAttemptCreateInput = {
id?: string
createdAt?: Date | string
startedAt?: Date | string | null
finishedAt?: Date | string | null
endpoint: string
success?: boolean | null
status?: number | null
message?: string | null
body?: string | null
event: Prisma.EventCreateNestedOneWithoutAttemptsInput
}
export type EventWebhookAttemptUncheckedCreateInput = {
id?: string
createdAt?: Date | string
startedAt?: Date | string | null
finishedAt?: Date | string | null
eventId: string
endpoint: string
success?: boolean | null
status?: number | null
message?: string | null
body?: string | null
}
export type EventWebhookAttemptUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
success?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
body?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
event?: Prisma.EventUpdateOneRequiredWithoutAttemptsNestedInput
}
export type EventWebhookAttemptUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
eventId?: Prisma.StringFieldUpdateOperationsInput | string
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
success?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
body?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type EventWebhookAttemptCreateManyInput = {
id?: string
createdAt?: Date | string
startedAt?: Date | string | null
finishedAt?: Date | string | null
eventId: string
endpoint: string
success?: boolean | null
status?: number | null
message?: string | null
body?: string | null
}
export type EventWebhookAttemptUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
success?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
body?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type EventWebhookAttemptUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
eventId?: Prisma.StringFieldUpdateOperationsInput | string
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
success?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
body?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type EventWebhookAttemptListRelationFilter = {
every?: Prisma.EventWebhookAttemptWhereInput
some?: Prisma.EventWebhookAttemptWhereInput
none?: Prisma.EventWebhookAttemptWhereInput
}
export type EventWebhookAttemptOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type EventWebhookAttemptCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
startedAt?: Prisma.SortOrder
finishedAt?: Prisma.SortOrder
eventId?: Prisma.SortOrder
endpoint?: Prisma.SortOrder
success?: Prisma.SortOrder
status?: Prisma.SortOrder
message?: Prisma.SortOrder
body?: Prisma.SortOrder
}
export type EventWebhookAttemptAvgOrderByAggregateInput = {
status?: Prisma.SortOrder
}
export type EventWebhookAttemptMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
startedAt?: Prisma.SortOrder
finishedAt?: Prisma.SortOrder
eventId?: Prisma.SortOrder
endpoint?: Prisma.SortOrder
success?: Prisma.SortOrder
status?: Prisma.SortOrder
message?: Prisma.SortOrder
body?: Prisma.SortOrder
}
export type EventWebhookAttemptMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
startedAt?: Prisma.SortOrder
finishedAt?: Prisma.SortOrder
eventId?: Prisma.SortOrder
endpoint?: Prisma.SortOrder
success?: Prisma.SortOrder
status?: Prisma.SortOrder
message?: Prisma.SortOrder
body?: Prisma.SortOrder
}
export type EventWebhookAttemptSumOrderByAggregateInput = {
status?: Prisma.SortOrder
}
export type EventWebhookAttemptCreateNestedManyWithoutEventInput = {
create?: Prisma.XOR<Prisma.EventWebhookAttemptCreateWithoutEventInput, Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput> | Prisma.EventWebhookAttemptCreateWithoutEventInput[] | Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput[]
connectOrCreate?: Prisma.EventWebhookAttemptCreateOrConnectWithoutEventInput | Prisma.EventWebhookAttemptCreateOrConnectWithoutEventInput[]
createMany?: Prisma.EventWebhookAttemptCreateManyEventInputEnvelope
connect?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
}
export type EventWebhookAttemptUncheckedCreateNestedManyWithoutEventInput = {
create?: Prisma.XOR<Prisma.EventWebhookAttemptCreateWithoutEventInput, Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput> | Prisma.EventWebhookAttemptCreateWithoutEventInput[] | Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput[]
connectOrCreate?: Prisma.EventWebhookAttemptCreateOrConnectWithoutEventInput | Prisma.EventWebhookAttemptCreateOrConnectWithoutEventInput[]
createMany?: Prisma.EventWebhookAttemptCreateManyEventInputEnvelope
connect?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
}
export type EventWebhookAttemptUpdateManyWithoutEventNestedInput = {
create?: Prisma.XOR<Prisma.EventWebhookAttemptCreateWithoutEventInput, Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput> | Prisma.EventWebhookAttemptCreateWithoutEventInput[] | Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput[]
connectOrCreate?: Prisma.EventWebhookAttemptCreateOrConnectWithoutEventInput | Prisma.EventWebhookAttemptCreateOrConnectWithoutEventInput[]
upsert?: Prisma.EventWebhookAttemptUpsertWithWhereUniqueWithoutEventInput | Prisma.EventWebhookAttemptUpsertWithWhereUniqueWithoutEventInput[]
createMany?: Prisma.EventWebhookAttemptCreateManyEventInputEnvelope
set?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
disconnect?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
delete?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
connect?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
update?: Prisma.EventWebhookAttemptUpdateWithWhereUniqueWithoutEventInput | Prisma.EventWebhookAttemptUpdateWithWhereUniqueWithoutEventInput[]
updateMany?: Prisma.EventWebhookAttemptUpdateManyWithWhereWithoutEventInput | Prisma.EventWebhookAttemptUpdateManyWithWhereWithoutEventInput[]
deleteMany?: Prisma.EventWebhookAttemptScalarWhereInput | Prisma.EventWebhookAttemptScalarWhereInput[]
}
export type EventWebhookAttemptUncheckedUpdateManyWithoutEventNestedInput = {
create?: Prisma.XOR<Prisma.EventWebhookAttemptCreateWithoutEventInput, Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput> | Prisma.EventWebhookAttemptCreateWithoutEventInput[] | Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput[]
connectOrCreate?: Prisma.EventWebhookAttemptCreateOrConnectWithoutEventInput | Prisma.EventWebhookAttemptCreateOrConnectWithoutEventInput[]
upsert?: Prisma.EventWebhookAttemptUpsertWithWhereUniqueWithoutEventInput | Prisma.EventWebhookAttemptUpsertWithWhereUniqueWithoutEventInput[]
createMany?: Prisma.EventWebhookAttemptCreateManyEventInputEnvelope
set?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
disconnect?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
delete?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
connect?: Prisma.EventWebhookAttemptWhereUniqueInput | Prisma.EventWebhookAttemptWhereUniqueInput[]
update?: Prisma.EventWebhookAttemptUpdateWithWhereUniqueWithoutEventInput | Prisma.EventWebhookAttemptUpdateWithWhereUniqueWithoutEventInput[]
updateMany?: Prisma.EventWebhookAttemptUpdateManyWithWhereWithoutEventInput | Prisma.EventWebhookAttemptUpdateManyWithWhereWithoutEventInput[]
deleteMany?: Prisma.EventWebhookAttemptScalarWhereInput | Prisma.EventWebhookAttemptScalarWhereInput[]
}
export type NullableBoolFieldUpdateOperationsInput = {
set?: boolean | null
}
export type EventWebhookAttemptCreateWithoutEventInput = {
id?: string
createdAt?: Date | string
startedAt?: Date | string | null
finishedAt?: Date | string | null
endpoint: string
success?: boolean | null
status?: number | null
message?: string | null
body?: string | null
}
export type EventWebhookAttemptUncheckedCreateWithoutEventInput = {
id?: string
createdAt?: Date | string
startedAt?: Date | string | null
finishedAt?: Date | string | null
endpoint: string
success?: boolean | null
status?: number | null
message?: string | null
body?: string | null
}
export type EventWebhookAttemptCreateOrConnectWithoutEventInput = {
where: Prisma.EventWebhookAttemptWhereUniqueInput
create: Prisma.XOR<Prisma.EventWebhookAttemptCreateWithoutEventInput, Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput>
}
export type EventWebhookAttemptCreateManyEventInputEnvelope = {
data: Prisma.EventWebhookAttemptCreateManyEventInput | Prisma.EventWebhookAttemptCreateManyEventInput[]
skipDuplicates?: boolean
}
export type EventWebhookAttemptUpsertWithWhereUniqueWithoutEventInput = {
where: Prisma.EventWebhookAttemptWhereUniqueInput
update: Prisma.XOR<Prisma.EventWebhookAttemptUpdateWithoutEventInput, Prisma.EventWebhookAttemptUncheckedUpdateWithoutEventInput>
create: Prisma.XOR<Prisma.EventWebhookAttemptCreateWithoutEventInput, Prisma.EventWebhookAttemptUncheckedCreateWithoutEventInput>
}
export type EventWebhookAttemptUpdateWithWhereUniqueWithoutEventInput = {
where: Prisma.EventWebhookAttemptWhereUniqueInput
data: Prisma.XOR<Prisma.EventWebhookAttemptUpdateWithoutEventInput, Prisma.EventWebhookAttemptUncheckedUpdateWithoutEventInput>
}
export type EventWebhookAttemptUpdateManyWithWhereWithoutEventInput = {
where: Prisma.EventWebhookAttemptScalarWhereInput
data: Prisma.XOR<Prisma.EventWebhookAttemptUpdateManyMutationInput, Prisma.EventWebhookAttemptUncheckedUpdateManyWithoutEventInput>
}
export type EventWebhookAttemptScalarWhereInput = {
AND?: Prisma.EventWebhookAttemptScalarWhereInput | Prisma.EventWebhookAttemptScalarWhereInput[]
OR?: Prisma.EventWebhookAttemptScalarWhereInput[]
NOT?: Prisma.EventWebhookAttemptScalarWhereInput | Prisma.EventWebhookAttemptScalarWhereInput[]
id?: Prisma.StringFilter<"EventWebhookAttempt"> | string
createdAt?: Prisma.DateTimeFilter<"EventWebhookAttempt"> | Date | string
startedAt?: Prisma.DateTimeNullableFilter<"EventWebhookAttempt"> | Date | string | null
finishedAt?: Prisma.DateTimeNullableFilter<"EventWebhookAttempt"> | Date | string | null
eventId?: Prisma.StringFilter<"EventWebhookAttempt"> | string
endpoint?: Prisma.StringFilter<"EventWebhookAttempt"> | string
success?: Prisma.BoolNullableFilter<"EventWebhookAttempt"> | boolean | null
status?: Prisma.IntNullableFilter<"EventWebhookAttempt"> | number | null
message?: Prisma.StringNullableFilter<"EventWebhookAttempt"> | string | null
body?: Prisma.StringNullableFilter<"EventWebhookAttempt"> | string | null
}
export type EventWebhookAttemptCreateManyEventInput = {
id?: string
createdAt?: Date | string
startedAt?: Date | string | null
finishedAt?: Date | string | null
endpoint: string
success?: boolean | null
status?: number | null
message?: string | null
body?: string | null
}
export type EventWebhookAttemptUpdateWithoutEventInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
success?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
body?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type EventWebhookAttemptUncheckedUpdateWithoutEventInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
success?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
body?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type EventWebhookAttemptUncheckedUpdateManyWithoutEventInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
endpoint?: Prisma.StringFieldUpdateOperationsInput | string
success?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
body?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type EventWebhookAttemptSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
startedAt?: boolean
finishedAt?: boolean
eventId?: boolean
endpoint?: boolean
success?: boolean
status?: boolean
message?: boolean
body?: boolean
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
}, ExtArgs["result"]["eventWebhookAttempt"]>
export type EventWebhookAttemptSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
startedAt?: boolean
finishedAt?: boolean
eventId?: boolean
endpoint?: boolean
success?: boolean
status?: boolean
message?: boolean
body?: boolean
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
}, ExtArgs["result"]["eventWebhookAttempt"]>
export type EventWebhookAttemptSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
startedAt?: boolean
finishedAt?: boolean
eventId?: boolean
endpoint?: boolean
success?: boolean
status?: boolean
message?: boolean
body?: boolean
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
}, ExtArgs["result"]["eventWebhookAttempt"]>
export type EventWebhookAttemptSelectScalar = {
id?: boolean
createdAt?: boolean
startedAt?: boolean
finishedAt?: boolean
eventId?: boolean
endpoint?: boolean
success?: boolean
status?: boolean
message?: boolean
body?: boolean
}
export type EventWebhookAttemptOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "startedAt" | "finishedAt" | "eventId" | "endpoint" | "success" | "status" | "message" | "body", ExtArgs["result"]["eventWebhookAttempt"]>
export type EventWebhookAttemptInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
}
export type EventWebhookAttemptIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
}
export type EventWebhookAttemptIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
}
export type $EventWebhookAttemptPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "EventWebhookAttempt"
objects: {
event: Prisma.$EventPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
startedAt: Date | null
finishedAt: Date | null
eventId: string
endpoint: string
success: boolean | null
status: number | null
message: string | null
body: string | null
}, ExtArgs["result"]["eventWebhookAttempt"]>
composites: {}
}
export type EventWebhookAttemptGetPayload<S extends boolean | null | undefined | EventWebhookAttemptDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload, S>
export type EventWebhookAttemptCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<EventWebhookAttemptFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: EventWebhookAttemptCountAggregateInputType | true
}
export interface EventWebhookAttemptDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EventWebhookAttempt'], meta: { name: 'EventWebhookAttempt' } }
/**
* Find zero or one EventWebhookAttempt that matches the filter.
* @param {EventWebhookAttemptFindUniqueArgs} args - Arguments to find a EventWebhookAttempt
* @example
* // Get one EventWebhookAttempt
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends EventWebhookAttemptFindUniqueArgs>(args: Prisma.SelectSubset<T, EventWebhookAttemptFindUniqueArgs<ExtArgs>>): Prisma.Prisma__EventWebhookAttemptClient<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one EventWebhookAttempt that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {EventWebhookAttemptFindUniqueOrThrowArgs} args - Arguments to find a EventWebhookAttempt
* @example
* // Get one EventWebhookAttempt
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends EventWebhookAttemptFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, EventWebhookAttemptFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__EventWebhookAttemptClient<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first EventWebhookAttempt 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 {EventWebhookAttemptFindFirstArgs} args - Arguments to find a EventWebhookAttempt
* @example
* // Get one EventWebhookAttempt
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends EventWebhookAttemptFindFirstArgs>(args?: Prisma.SelectSubset<T, EventWebhookAttemptFindFirstArgs<ExtArgs>>): Prisma.Prisma__EventWebhookAttemptClient<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first EventWebhookAttempt 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 {EventWebhookAttemptFindFirstOrThrowArgs} args - Arguments to find a EventWebhookAttempt
* @example
* // Get one EventWebhookAttempt
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends EventWebhookAttemptFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, EventWebhookAttemptFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__EventWebhookAttemptClient<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more EventWebhookAttempts 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 {EventWebhookAttemptFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all EventWebhookAttempts
* const eventWebhookAttempts = await prisma.eventWebhookAttempt.findMany()
*
* // Get first 10 EventWebhookAttempts
* const eventWebhookAttempts = await prisma.eventWebhookAttempt.findMany({ take: 10 })
*
* // Only select the `id`
* const eventWebhookAttemptWithIdOnly = await prisma.eventWebhookAttempt.findMany({ select: { id: true } })
*
*/
findMany<T extends EventWebhookAttemptFindManyArgs>(args?: Prisma.SelectSubset<T, EventWebhookAttemptFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a EventWebhookAttempt.
* @param {EventWebhookAttemptCreateArgs} args - Arguments to create a EventWebhookAttempt.
* @example
* // Create one EventWebhookAttempt
* const EventWebhookAttempt = await prisma.eventWebhookAttempt.create({
* data: {
* // ... data to create a EventWebhookAttempt
* }
* })
*
*/
create<T extends EventWebhookAttemptCreateArgs>(args: Prisma.SelectSubset<T, EventWebhookAttemptCreateArgs<ExtArgs>>): Prisma.Prisma__EventWebhookAttemptClient<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many EventWebhookAttempts.
* @param {EventWebhookAttemptCreateManyArgs} args - Arguments to create many EventWebhookAttempts.
* @example
* // Create many EventWebhookAttempts
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends EventWebhookAttemptCreateManyArgs>(args?: Prisma.SelectSubset<T, EventWebhookAttemptCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many EventWebhookAttempts and returns the data saved in the database.
* @param {EventWebhookAttemptCreateManyAndReturnArgs} args - Arguments to create many EventWebhookAttempts.
* @example
* // Create many EventWebhookAttempts
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many EventWebhookAttempts and only return the `id`
* const eventWebhookAttemptWithIdOnly = await prisma.eventWebhookAttempt.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 EventWebhookAttemptCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, EventWebhookAttemptCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a EventWebhookAttempt.
* @param {EventWebhookAttemptDeleteArgs} args - Arguments to delete one EventWebhookAttempt.
* @example
* // Delete one EventWebhookAttempt
* const EventWebhookAttempt = await prisma.eventWebhookAttempt.delete({
* where: {
* // ... filter to delete one EventWebhookAttempt
* }
* })
*
*/
delete<T extends EventWebhookAttemptDeleteArgs>(args: Prisma.SelectSubset<T, EventWebhookAttemptDeleteArgs<ExtArgs>>): Prisma.Prisma__EventWebhookAttemptClient<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one EventWebhookAttempt.
* @param {EventWebhookAttemptUpdateArgs} args - Arguments to update one EventWebhookAttempt.
* @example
* // Update one EventWebhookAttempt
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends EventWebhookAttemptUpdateArgs>(args: Prisma.SelectSubset<T, EventWebhookAttemptUpdateArgs<ExtArgs>>): Prisma.Prisma__EventWebhookAttemptClient<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more EventWebhookAttempts.
* @param {EventWebhookAttemptDeleteManyArgs} args - Arguments to filter EventWebhookAttempts to delete.
* @example
* // Delete a few EventWebhookAttempts
* const { count } = await prisma.eventWebhookAttempt.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends EventWebhookAttemptDeleteManyArgs>(args?: Prisma.SelectSubset<T, EventWebhookAttemptDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more EventWebhookAttempts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventWebhookAttemptUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many EventWebhookAttempts
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends EventWebhookAttemptUpdateManyArgs>(args: Prisma.SelectSubset<T, EventWebhookAttemptUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more EventWebhookAttempts and returns the data updated in the database.
* @param {EventWebhookAttemptUpdateManyAndReturnArgs} args - Arguments to update many EventWebhookAttempts.
* @example
* // Update many EventWebhookAttempts
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more EventWebhookAttempts and only return the `id`
* const eventWebhookAttemptWithIdOnly = await prisma.eventWebhookAttempt.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 EventWebhookAttemptUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, EventWebhookAttemptUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one EventWebhookAttempt.
* @param {EventWebhookAttemptUpsertArgs} args - Arguments to update or create a EventWebhookAttempt.
* @example
* // Update or create a EventWebhookAttempt
* const eventWebhookAttempt = await prisma.eventWebhookAttempt.upsert({
* create: {
* // ... data to create a EventWebhookAttempt
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the EventWebhookAttempt we want to update
* }
* })
*/
upsert<T extends EventWebhookAttemptUpsertArgs>(args: Prisma.SelectSubset<T, EventWebhookAttemptUpsertArgs<ExtArgs>>): Prisma.Prisma__EventWebhookAttemptClient<runtime.Types.Result.GetResult<Prisma.$EventWebhookAttemptPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of EventWebhookAttempts.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventWebhookAttemptCountArgs} args - Arguments to filter EventWebhookAttempts to count.
* @example
* // Count the number of EventWebhookAttempts
* const count = await prisma.eventWebhookAttempt.count({
* where: {
* // ... the filter for the EventWebhookAttempts we want to count
* }
* })
**/
count<T extends EventWebhookAttemptCountArgs>(
args?: Prisma.Subset<T, EventWebhookAttemptCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], EventWebhookAttemptCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a EventWebhookAttempt.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventWebhookAttemptAggregateArgs} 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 EventWebhookAttemptAggregateArgs>(args: Prisma.Subset<T, EventWebhookAttemptAggregateArgs>): Prisma.PrismaPromise<GetEventWebhookAttemptAggregateType<T>>
/**
* Group by EventWebhookAttempt.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {EventWebhookAttemptGroupByArgs} 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 EventWebhookAttemptGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: EventWebhookAttemptGroupByArgs['orderBy'] }
: { orderBy?: EventWebhookAttemptGroupByArgs['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, EventWebhookAttemptGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEventWebhookAttemptGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the EventWebhookAttempt model
*/
readonly fields: EventWebhookAttemptFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for EventWebhookAttempt.
* 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__EventWebhookAttemptClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
event<T extends Prisma.EventDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventDefaultArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<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 EventWebhookAttempt model
*/
export interface EventWebhookAttemptFieldRefs {
readonly id: Prisma.FieldRef<"EventWebhookAttempt", 'String'>
readonly createdAt: Prisma.FieldRef<"EventWebhookAttempt", 'DateTime'>
readonly startedAt: Prisma.FieldRef<"EventWebhookAttempt", 'DateTime'>
readonly finishedAt: Prisma.FieldRef<"EventWebhookAttempt", 'DateTime'>
readonly eventId: Prisma.FieldRef<"EventWebhookAttempt", 'String'>
readonly endpoint: Prisma.FieldRef<"EventWebhookAttempt", 'String'>
readonly success: Prisma.FieldRef<"EventWebhookAttempt", 'Boolean'>
readonly status: Prisma.FieldRef<"EventWebhookAttempt", 'Int'>
readonly message: Prisma.FieldRef<"EventWebhookAttempt", 'String'>
readonly body: Prisma.FieldRef<"EventWebhookAttempt", 'String'>
}
// Custom InputTypes
/**
* EventWebhookAttempt findUnique
*/
export type EventWebhookAttemptFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
/**
* Filter, which EventWebhookAttempt to fetch.
*/
where: Prisma.EventWebhookAttemptWhereUniqueInput
}
/**
* EventWebhookAttempt findUniqueOrThrow
*/
export type EventWebhookAttemptFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
/**
* Filter, which EventWebhookAttempt to fetch.
*/
where: Prisma.EventWebhookAttemptWhereUniqueInput
}
/**
* EventWebhookAttempt findFirst
*/
export type EventWebhookAttemptFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
/**
* Filter, which EventWebhookAttempt to fetch.
*/
where?: Prisma.EventWebhookAttemptWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EventWebhookAttempts to fetch.
*/
orderBy?: Prisma.EventWebhookAttemptOrderByWithRelationInput | Prisma.EventWebhookAttemptOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for EventWebhookAttempts.
*/
cursor?: Prisma.EventWebhookAttemptWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EventWebhookAttempts 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` EventWebhookAttempts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of EventWebhookAttempts.
*/
distinct?: Prisma.EventWebhookAttemptScalarFieldEnum | Prisma.EventWebhookAttemptScalarFieldEnum[]
}
/**
* EventWebhookAttempt findFirstOrThrow
*/
export type EventWebhookAttemptFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
/**
* Filter, which EventWebhookAttempt to fetch.
*/
where?: Prisma.EventWebhookAttemptWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EventWebhookAttempts to fetch.
*/
orderBy?: Prisma.EventWebhookAttemptOrderByWithRelationInput | Prisma.EventWebhookAttemptOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for EventWebhookAttempts.
*/
cursor?: Prisma.EventWebhookAttemptWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EventWebhookAttempts 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` EventWebhookAttempts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of EventWebhookAttempts.
*/
distinct?: Prisma.EventWebhookAttemptScalarFieldEnum | Prisma.EventWebhookAttemptScalarFieldEnum[]
}
/**
* EventWebhookAttempt findMany
*/
export type EventWebhookAttemptFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
/**
* Filter, which EventWebhookAttempts to fetch.
*/
where?: Prisma.EventWebhookAttemptWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of EventWebhookAttempts to fetch.
*/
orderBy?: Prisma.EventWebhookAttemptOrderByWithRelationInput | Prisma.EventWebhookAttemptOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing EventWebhookAttempts.
*/
cursor?: Prisma.EventWebhookAttemptWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` EventWebhookAttempts 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` EventWebhookAttempts.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of EventWebhookAttempts.
*/
distinct?: Prisma.EventWebhookAttemptScalarFieldEnum | Prisma.EventWebhookAttemptScalarFieldEnum[]
}
/**
* EventWebhookAttempt create
*/
export type EventWebhookAttemptCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
/**
* The data needed to create a EventWebhookAttempt.
*/
data: Prisma.XOR<Prisma.EventWebhookAttemptCreateInput, Prisma.EventWebhookAttemptUncheckedCreateInput>
}
/**
* EventWebhookAttempt createMany
*/
export type EventWebhookAttemptCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many EventWebhookAttempts.
*/
data: Prisma.EventWebhookAttemptCreateManyInput | Prisma.EventWebhookAttemptCreateManyInput[]
skipDuplicates?: boolean
}
/**
* EventWebhookAttempt createManyAndReturn
*/
export type EventWebhookAttemptCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* The data used to create many EventWebhookAttempts.
*/
data: Prisma.EventWebhookAttemptCreateManyInput | Prisma.EventWebhookAttemptCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* EventWebhookAttempt update
*/
export type EventWebhookAttemptUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
/**
* The data needed to update a EventWebhookAttempt.
*/
data: Prisma.XOR<Prisma.EventWebhookAttemptUpdateInput, Prisma.EventWebhookAttemptUncheckedUpdateInput>
/**
* Choose, which EventWebhookAttempt to update.
*/
where: Prisma.EventWebhookAttemptWhereUniqueInput
}
/**
* EventWebhookAttempt updateMany
*/
export type EventWebhookAttemptUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update EventWebhookAttempts.
*/
data: Prisma.XOR<Prisma.EventWebhookAttemptUpdateManyMutationInput, Prisma.EventWebhookAttemptUncheckedUpdateManyInput>
/**
* Filter which EventWebhookAttempts to update
*/
where?: Prisma.EventWebhookAttemptWhereInput
/**
* Limit how many EventWebhookAttempts to update.
*/
limit?: number
}
/**
* EventWebhookAttempt updateManyAndReturn
*/
export type EventWebhookAttemptUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* The data used to update EventWebhookAttempts.
*/
data: Prisma.XOR<Prisma.EventWebhookAttemptUpdateManyMutationInput, Prisma.EventWebhookAttemptUncheckedUpdateManyInput>
/**
* Filter which EventWebhookAttempts to update
*/
where?: Prisma.EventWebhookAttemptWhereInput
/**
* Limit how many EventWebhookAttempts to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* EventWebhookAttempt upsert
*/
export type EventWebhookAttemptUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
/**
* The filter to search for the EventWebhookAttempt to update in case it exists.
*/
where: Prisma.EventWebhookAttemptWhereUniqueInput
/**
* In case the EventWebhookAttempt found by the `where` argument doesn't exist, create a new EventWebhookAttempt with this data.
*/
create: Prisma.XOR<Prisma.EventWebhookAttemptCreateInput, Prisma.EventWebhookAttemptUncheckedCreateInput>
/**
* In case the EventWebhookAttempt was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.EventWebhookAttemptUpdateInput, Prisma.EventWebhookAttemptUncheckedUpdateInput>
}
/**
* EventWebhookAttempt delete
*/
export type EventWebhookAttemptDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
/**
* Filter which EventWebhookAttempt to delete.
*/
where: Prisma.EventWebhookAttemptWhereUniqueInput
}
/**
* EventWebhookAttempt deleteMany
*/
export type EventWebhookAttemptDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which EventWebhookAttempts to delete
*/
where?: Prisma.EventWebhookAttemptWhereInput
/**
* Limit how many EventWebhookAttempts to delete.
*/
limit?: number
}
/**
* EventWebhookAttempt without action
*/
export type EventWebhookAttemptDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EventWebhookAttempt
*/
select?: Prisma.EventWebhookAttemptSelect<ExtArgs> | null
/**
* Omit specific fields from the EventWebhookAttempt
*/
omit?: Prisma.EventWebhookAttemptOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EventWebhookAttemptInclude<ExtArgs> | null
}