Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/db/generated/prisma/client/models/AdminCallEvent.ts
T

1530 lines
60 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 `AdminCallEvent` 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 AdminCallEvent
*
*/
export type AdminCallEventModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminCallEventPayload>
export type AggregateAdminCallEvent = {
_count: AdminCallEventCountAggregateOutputType | null
_avg: AdminCallEventAvgAggregateOutputType | null
_sum: AdminCallEventSumAggregateOutputType | null
_min: AdminCallEventMinAggregateOutputType | null
_max: AdminCallEventMaxAggregateOutputType | null
}
export type AdminCallEventAvgAggregateOutputType = {
durationSeconds: number | null
}
export type AdminCallEventSumAggregateOutputType = {
durationSeconds: number | null
}
export type AdminCallEventMinAggregateOutputType = {
id: string | null
createdAt: Date | null
adminUserId: string | null
callSessionId: string | null
dedupeKey: string | null
providerEvent: string | null
status: $Enums.AdminCallStatus | null
occurredAt: Date | null
durationSeconds: number | null
}
export type AdminCallEventMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
adminUserId: string | null
callSessionId: string | null
dedupeKey: string | null
providerEvent: string | null
status: $Enums.AdminCallStatus | null
occurredAt: Date | null
durationSeconds: number | null
}
export type AdminCallEventCountAggregateOutputType = {
id: number
createdAt: number
adminUserId: number
callSessionId: number
dedupeKey: number
providerEvent: number
status: number
occurredAt: number
durationSeconds: number
_all: number
}
export type AdminCallEventAvgAggregateInputType = {
durationSeconds?: true
}
export type AdminCallEventSumAggregateInputType = {
durationSeconds?: true
}
export type AdminCallEventMinAggregateInputType = {
id?: true
createdAt?: true
adminUserId?: true
callSessionId?: true
dedupeKey?: true
providerEvent?: true
status?: true
occurredAt?: true
durationSeconds?: true
}
export type AdminCallEventMaxAggregateInputType = {
id?: true
createdAt?: true
adminUserId?: true
callSessionId?: true
dedupeKey?: true
providerEvent?: true
status?: true
occurredAt?: true
durationSeconds?: true
}
export type AdminCallEventCountAggregateInputType = {
id?: true
createdAt?: true
adminUserId?: true
callSessionId?: true
dedupeKey?: true
providerEvent?: true
status?: true
occurredAt?: true
durationSeconds?: true
_all?: true
}
export type AdminCallEventAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminCallEvent to aggregate.
*/
where?: Prisma.AdminCallEventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminCallEvents to fetch.
*/
orderBy?: Prisma.AdminCallEventOrderByWithRelationInput | Prisma.AdminCallEventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AdminCallEventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminCallEvents 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` AdminCallEvents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AdminCallEvents
**/
_count?: true | AdminCallEventCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: AdminCallEventAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: AdminCallEventSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AdminCallEventMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AdminCallEventMaxAggregateInputType
}
export type GetAdminCallEventAggregateType<T extends AdminCallEventAggregateArgs> = {
[P in keyof T & keyof AggregateAdminCallEvent]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAdminCallEvent[P]>
: Prisma.GetScalarType<T[P], AggregateAdminCallEvent[P]>
}
export type AdminCallEventGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AdminCallEventWhereInput
orderBy?: Prisma.AdminCallEventOrderByWithAggregationInput | Prisma.AdminCallEventOrderByWithAggregationInput[]
by: Prisma.AdminCallEventScalarFieldEnum[] | Prisma.AdminCallEventScalarFieldEnum
having?: Prisma.AdminCallEventScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AdminCallEventCountAggregateInputType | true
_avg?: AdminCallEventAvgAggregateInputType
_sum?: AdminCallEventSumAggregateInputType
_min?: AdminCallEventMinAggregateInputType
_max?: AdminCallEventMaxAggregateInputType
}
export type AdminCallEventGroupByOutputType = {
id: string
createdAt: Date
adminUserId: string
callSessionId: string
dedupeKey: string
providerEvent: string
status: $Enums.AdminCallStatus
occurredAt: Date
durationSeconds: number | null
_count: AdminCallEventCountAggregateOutputType | null
_avg: AdminCallEventAvgAggregateOutputType | null
_sum: AdminCallEventSumAggregateOutputType | null
_min: AdminCallEventMinAggregateOutputType | null
_max: AdminCallEventMaxAggregateOutputType | null
}
export type GetAdminCallEventGroupByPayload<T extends AdminCallEventGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AdminCallEventGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AdminCallEventGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AdminCallEventGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AdminCallEventGroupByOutputType[P]>
}
>
>
export type AdminCallEventWhereInput = {
AND?: Prisma.AdminCallEventWhereInput | Prisma.AdminCallEventWhereInput[]
OR?: Prisma.AdminCallEventWhereInput[]
NOT?: Prisma.AdminCallEventWhereInput | Prisma.AdminCallEventWhereInput[]
id?: Prisma.StringFilter<"AdminCallEvent"> | string
createdAt?: Prisma.DateTimeFilter<"AdminCallEvent"> | Date | string
adminUserId?: Prisma.StringFilter<"AdminCallEvent"> | string
callSessionId?: Prisma.StringFilter<"AdminCallEvent"> | string
dedupeKey?: Prisma.StringFilter<"AdminCallEvent"> | string
providerEvent?: Prisma.StringFilter<"AdminCallEvent"> | string
status?: Prisma.EnumAdminCallStatusFilter<"AdminCallEvent"> | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFilter<"AdminCallEvent"> | Date | string
durationSeconds?: Prisma.IntNullableFilter<"AdminCallEvent"> | number | null
callSession?: Prisma.XOR<Prisma.AdminCallSessionScalarRelationFilter, Prisma.AdminCallSessionWhereInput>
}
export type AdminCallEventOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
callSessionId?: Prisma.SortOrder
dedupeKey?: Prisma.SortOrder
providerEvent?: Prisma.SortOrder
status?: Prisma.SortOrder
occurredAt?: Prisma.SortOrder
durationSeconds?: Prisma.SortOrderInput | Prisma.SortOrder
callSession?: Prisma.AdminCallSessionOrderByWithRelationInput
}
export type AdminCallEventWhereUniqueInput = Prisma.AtLeast<{
id?: string
dedupeKey?: string
AND?: Prisma.AdminCallEventWhereInput | Prisma.AdminCallEventWhereInput[]
OR?: Prisma.AdminCallEventWhereInput[]
NOT?: Prisma.AdminCallEventWhereInput | Prisma.AdminCallEventWhereInput[]
createdAt?: Prisma.DateTimeFilter<"AdminCallEvent"> | Date | string
adminUserId?: Prisma.StringFilter<"AdminCallEvent"> | string
callSessionId?: Prisma.StringFilter<"AdminCallEvent"> | string
providerEvent?: Prisma.StringFilter<"AdminCallEvent"> | string
status?: Prisma.EnumAdminCallStatusFilter<"AdminCallEvent"> | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFilter<"AdminCallEvent"> | Date | string
durationSeconds?: Prisma.IntNullableFilter<"AdminCallEvent"> | number | null
callSession?: Prisma.XOR<Prisma.AdminCallSessionScalarRelationFilter, Prisma.AdminCallSessionWhereInput>
}, "id" | "dedupeKey">
export type AdminCallEventOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
callSessionId?: Prisma.SortOrder
dedupeKey?: Prisma.SortOrder
providerEvent?: Prisma.SortOrder
status?: Prisma.SortOrder
occurredAt?: Prisma.SortOrder
durationSeconds?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.AdminCallEventCountOrderByAggregateInput
_avg?: Prisma.AdminCallEventAvgOrderByAggregateInput
_max?: Prisma.AdminCallEventMaxOrderByAggregateInput
_min?: Prisma.AdminCallEventMinOrderByAggregateInput
_sum?: Prisma.AdminCallEventSumOrderByAggregateInput
}
export type AdminCallEventScalarWhereWithAggregatesInput = {
AND?: Prisma.AdminCallEventScalarWhereWithAggregatesInput | Prisma.AdminCallEventScalarWhereWithAggregatesInput[]
OR?: Prisma.AdminCallEventScalarWhereWithAggregatesInput[]
NOT?: Prisma.AdminCallEventScalarWhereWithAggregatesInput | Prisma.AdminCallEventScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"AdminCallEvent"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminCallEvent"> | Date | string
adminUserId?: Prisma.StringWithAggregatesFilter<"AdminCallEvent"> | string
callSessionId?: Prisma.StringWithAggregatesFilter<"AdminCallEvent"> | string
dedupeKey?: Prisma.StringWithAggregatesFilter<"AdminCallEvent"> | string
providerEvent?: Prisma.StringWithAggregatesFilter<"AdminCallEvent"> | string
status?: Prisma.EnumAdminCallStatusWithAggregatesFilter<"AdminCallEvent"> | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeWithAggregatesFilter<"AdminCallEvent"> | Date | string
durationSeconds?: Prisma.IntNullableWithAggregatesFilter<"AdminCallEvent"> | number | null
}
export type AdminCallEventCreateInput = {
id?: string
createdAt?: Date | string
adminUserId: string
dedupeKey: string
providerEvent: string
status: $Enums.AdminCallStatus
occurredAt: Date | string
durationSeconds?: number | null
callSession: Prisma.AdminCallSessionCreateNestedOneWithoutEventsInput
}
export type AdminCallEventUncheckedCreateInput = {
id?: string
createdAt?: Date | string
adminUserId: string
callSessionId: string
dedupeKey: string
providerEvent: string
status: $Enums.AdminCallStatus
occurredAt: Date | string
durationSeconds?: number | null
}
export type AdminCallEventUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
dedupeKey?: Prisma.StringFieldUpdateOperationsInput | string
providerEvent?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumAdminCallStatusFieldUpdateOperationsInput | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
callSession?: Prisma.AdminCallSessionUpdateOneRequiredWithoutEventsNestedInput
}
export type AdminCallEventUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
callSessionId?: Prisma.StringFieldUpdateOperationsInput | string
dedupeKey?: Prisma.StringFieldUpdateOperationsInput | string
providerEvent?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumAdminCallStatusFieldUpdateOperationsInput | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}
export type AdminCallEventCreateManyInput = {
id?: string
createdAt?: Date | string
adminUserId: string
callSessionId: string
dedupeKey: string
providerEvent: string
status: $Enums.AdminCallStatus
occurredAt: Date | string
durationSeconds?: number | null
}
export type AdminCallEventUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
dedupeKey?: Prisma.StringFieldUpdateOperationsInput | string
providerEvent?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumAdminCallStatusFieldUpdateOperationsInput | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}
export type AdminCallEventUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
callSessionId?: Prisma.StringFieldUpdateOperationsInput | string
dedupeKey?: Prisma.StringFieldUpdateOperationsInput | string
providerEvent?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumAdminCallStatusFieldUpdateOperationsInput | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}
export type AdminCallEventListRelationFilter = {
every?: Prisma.AdminCallEventWhereInput
some?: Prisma.AdminCallEventWhereInput
none?: Prisma.AdminCallEventWhereInput
}
export type AdminCallEventOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AdminCallEventCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
callSessionId?: Prisma.SortOrder
dedupeKey?: Prisma.SortOrder
providerEvent?: Prisma.SortOrder
status?: Prisma.SortOrder
occurredAt?: Prisma.SortOrder
durationSeconds?: Prisma.SortOrder
}
export type AdminCallEventAvgOrderByAggregateInput = {
durationSeconds?: Prisma.SortOrder
}
export type AdminCallEventMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
callSessionId?: Prisma.SortOrder
dedupeKey?: Prisma.SortOrder
providerEvent?: Prisma.SortOrder
status?: Prisma.SortOrder
occurredAt?: Prisma.SortOrder
durationSeconds?: Prisma.SortOrder
}
export type AdminCallEventMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
callSessionId?: Prisma.SortOrder
dedupeKey?: Prisma.SortOrder
providerEvent?: Prisma.SortOrder
status?: Prisma.SortOrder
occurredAt?: Prisma.SortOrder
durationSeconds?: Prisma.SortOrder
}
export type AdminCallEventSumOrderByAggregateInput = {
durationSeconds?: Prisma.SortOrder
}
export type AdminCallEventCreateNestedManyWithoutCallSessionInput = {
create?: Prisma.XOR<Prisma.AdminCallEventCreateWithoutCallSessionInput, Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput> | Prisma.AdminCallEventCreateWithoutCallSessionInput[] | Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput[]
connectOrCreate?: Prisma.AdminCallEventCreateOrConnectWithoutCallSessionInput | Prisma.AdminCallEventCreateOrConnectWithoutCallSessionInput[]
createMany?: Prisma.AdminCallEventCreateManyCallSessionInputEnvelope
connect?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
}
export type AdminCallEventUncheckedCreateNestedManyWithoutCallSessionInput = {
create?: Prisma.XOR<Prisma.AdminCallEventCreateWithoutCallSessionInput, Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput> | Prisma.AdminCallEventCreateWithoutCallSessionInput[] | Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput[]
connectOrCreate?: Prisma.AdminCallEventCreateOrConnectWithoutCallSessionInput | Prisma.AdminCallEventCreateOrConnectWithoutCallSessionInput[]
createMany?: Prisma.AdminCallEventCreateManyCallSessionInputEnvelope
connect?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
}
export type AdminCallEventUpdateManyWithoutCallSessionNestedInput = {
create?: Prisma.XOR<Prisma.AdminCallEventCreateWithoutCallSessionInput, Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput> | Prisma.AdminCallEventCreateWithoutCallSessionInput[] | Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput[]
connectOrCreate?: Prisma.AdminCallEventCreateOrConnectWithoutCallSessionInput | Prisma.AdminCallEventCreateOrConnectWithoutCallSessionInput[]
upsert?: Prisma.AdminCallEventUpsertWithWhereUniqueWithoutCallSessionInput | Prisma.AdminCallEventUpsertWithWhereUniqueWithoutCallSessionInput[]
createMany?: Prisma.AdminCallEventCreateManyCallSessionInputEnvelope
set?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
disconnect?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
delete?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
connect?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
update?: Prisma.AdminCallEventUpdateWithWhereUniqueWithoutCallSessionInput | Prisma.AdminCallEventUpdateWithWhereUniqueWithoutCallSessionInput[]
updateMany?: Prisma.AdminCallEventUpdateManyWithWhereWithoutCallSessionInput | Prisma.AdminCallEventUpdateManyWithWhereWithoutCallSessionInput[]
deleteMany?: Prisma.AdminCallEventScalarWhereInput | Prisma.AdminCallEventScalarWhereInput[]
}
export type AdminCallEventUncheckedUpdateManyWithoutCallSessionNestedInput = {
create?: Prisma.XOR<Prisma.AdminCallEventCreateWithoutCallSessionInput, Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput> | Prisma.AdminCallEventCreateWithoutCallSessionInput[] | Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput[]
connectOrCreate?: Prisma.AdminCallEventCreateOrConnectWithoutCallSessionInput | Prisma.AdminCallEventCreateOrConnectWithoutCallSessionInput[]
upsert?: Prisma.AdminCallEventUpsertWithWhereUniqueWithoutCallSessionInput | Prisma.AdminCallEventUpsertWithWhereUniqueWithoutCallSessionInput[]
createMany?: Prisma.AdminCallEventCreateManyCallSessionInputEnvelope
set?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
disconnect?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
delete?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
connect?: Prisma.AdminCallEventWhereUniqueInput | Prisma.AdminCallEventWhereUniqueInput[]
update?: Prisma.AdminCallEventUpdateWithWhereUniqueWithoutCallSessionInput | Prisma.AdminCallEventUpdateWithWhereUniqueWithoutCallSessionInput[]
updateMany?: Prisma.AdminCallEventUpdateManyWithWhereWithoutCallSessionInput | Prisma.AdminCallEventUpdateManyWithWhereWithoutCallSessionInput[]
deleteMany?: Prisma.AdminCallEventScalarWhereInput | Prisma.AdminCallEventScalarWhereInput[]
}
export type AdminCallEventCreateWithoutCallSessionInput = {
id?: string
createdAt?: Date | string
adminUserId: string
dedupeKey: string
providerEvent: string
status: $Enums.AdminCallStatus
occurredAt: Date | string
durationSeconds?: number | null
}
export type AdminCallEventUncheckedCreateWithoutCallSessionInput = {
id?: string
createdAt?: Date | string
adminUserId: string
dedupeKey: string
providerEvent: string
status: $Enums.AdminCallStatus
occurredAt: Date | string
durationSeconds?: number | null
}
export type AdminCallEventCreateOrConnectWithoutCallSessionInput = {
where: Prisma.AdminCallEventWhereUniqueInput
create: Prisma.XOR<Prisma.AdminCallEventCreateWithoutCallSessionInput, Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput>
}
export type AdminCallEventCreateManyCallSessionInputEnvelope = {
data: Prisma.AdminCallEventCreateManyCallSessionInput | Prisma.AdminCallEventCreateManyCallSessionInput[]
skipDuplicates?: boolean
}
export type AdminCallEventUpsertWithWhereUniqueWithoutCallSessionInput = {
where: Prisma.AdminCallEventWhereUniqueInput
update: Prisma.XOR<Prisma.AdminCallEventUpdateWithoutCallSessionInput, Prisma.AdminCallEventUncheckedUpdateWithoutCallSessionInput>
create: Prisma.XOR<Prisma.AdminCallEventCreateWithoutCallSessionInput, Prisma.AdminCallEventUncheckedCreateWithoutCallSessionInput>
}
export type AdminCallEventUpdateWithWhereUniqueWithoutCallSessionInput = {
where: Prisma.AdminCallEventWhereUniqueInput
data: Prisma.XOR<Prisma.AdminCallEventUpdateWithoutCallSessionInput, Prisma.AdminCallEventUncheckedUpdateWithoutCallSessionInput>
}
export type AdminCallEventUpdateManyWithWhereWithoutCallSessionInput = {
where: Prisma.AdminCallEventScalarWhereInput
data: Prisma.XOR<Prisma.AdminCallEventUpdateManyMutationInput, Prisma.AdminCallEventUncheckedUpdateManyWithoutCallSessionInput>
}
export type AdminCallEventScalarWhereInput = {
AND?: Prisma.AdminCallEventScalarWhereInput | Prisma.AdminCallEventScalarWhereInput[]
OR?: Prisma.AdminCallEventScalarWhereInput[]
NOT?: Prisma.AdminCallEventScalarWhereInput | Prisma.AdminCallEventScalarWhereInput[]
id?: Prisma.StringFilter<"AdminCallEvent"> | string
createdAt?: Prisma.DateTimeFilter<"AdminCallEvent"> | Date | string
adminUserId?: Prisma.StringFilter<"AdminCallEvent"> | string
callSessionId?: Prisma.StringFilter<"AdminCallEvent"> | string
dedupeKey?: Prisma.StringFilter<"AdminCallEvent"> | string
providerEvent?: Prisma.StringFilter<"AdminCallEvent"> | string
status?: Prisma.EnumAdminCallStatusFilter<"AdminCallEvent"> | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFilter<"AdminCallEvent"> | Date | string
durationSeconds?: Prisma.IntNullableFilter<"AdminCallEvent"> | number | null
}
export type AdminCallEventCreateManyCallSessionInput = {
id?: string
createdAt?: Date | string
adminUserId: string
dedupeKey: string
providerEvent: string
status: $Enums.AdminCallStatus
occurredAt: Date | string
durationSeconds?: number | null
}
export type AdminCallEventUpdateWithoutCallSessionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
dedupeKey?: Prisma.StringFieldUpdateOperationsInput | string
providerEvent?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumAdminCallStatusFieldUpdateOperationsInput | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}
export type AdminCallEventUncheckedUpdateWithoutCallSessionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
dedupeKey?: Prisma.StringFieldUpdateOperationsInput | string
providerEvent?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumAdminCallStatusFieldUpdateOperationsInput | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}
export type AdminCallEventUncheckedUpdateManyWithoutCallSessionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
dedupeKey?: Prisma.StringFieldUpdateOperationsInput | string
providerEvent?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumAdminCallStatusFieldUpdateOperationsInput | $Enums.AdminCallStatus
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}
export type AdminCallEventSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
adminUserId?: boolean
callSessionId?: boolean
dedupeKey?: boolean
providerEvent?: boolean
status?: boolean
occurredAt?: boolean
durationSeconds?: boolean
callSession?: boolean | Prisma.AdminCallSessionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminCallEvent"]>
export type AdminCallEventSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
adminUserId?: boolean
callSessionId?: boolean
dedupeKey?: boolean
providerEvent?: boolean
status?: boolean
occurredAt?: boolean
durationSeconds?: boolean
callSession?: boolean | Prisma.AdminCallSessionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminCallEvent"]>
export type AdminCallEventSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
adminUserId?: boolean
callSessionId?: boolean
dedupeKey?: boolean
providerEvent?: boolean
status?: boolean
occurredAt?: boolean
durationSeconds?: boolean
callSession?: boolean | Prisma.AdminCallSessionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["adminCallEvent"]>
export type AdminCallEventSelectScalar = {
id?: boolean
createdAt?: boolean
adminUserId?: boolean
callSessionId?: boolean
dedupeKey?: boolean
providerEvent?: boolean
status?: boolean
occurredAt?: boolean
durationSeconds?: boolean
}
export type AdminCallEventOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "adminUserId" | "callSessionId" | "dedupeKey" | "providerEvent" | "status" | "occurredAt" | "durationSeconds", ExtArgs["result"]["adminCallEvent"]>
export type AdminCallEventInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
callSession?: boolean | Prisma.AdminCallSessionDefaultArgs<ExtArgs>
}
export type AdminCallEventIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
callSession?: boolean | Prisma.AdminCallSessionDefaultArgs<ExtArgs>
}
export type AdminCallEventIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
callSession?: boolean | Prisma.AdminCallSessionDefaultArgs<ExtArgs>
}
export type $AdminCallEventPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AdminCallEvent"
objects: {
callSession: Prisma.$AdminCallSessionPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
adminUserId: string
callSessionId: string
dedupeKey: string
providerEvent: string
status: $Enums.AdminCallStatus
occurredAt: Date
durationSeconds: number | null
}, ExtArgs["result"]["adminCallEvent"]>
composites: {}
}
export type AdminCallEventGetPayload<S extends boolean | null | undefined | AdminCallEventDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload, S>
export type AdminCallEventCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AdminCallEventFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AdminCallEventCountAggregateInputType | true
}
export interface AdminCallEventDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminCallEvent'], meta: { name: 'AdminCallEvent' } }
/**
* Find zero or one AdminCallEvent that matches the filter.
* @param {AdminCallEventFindUniqueArgs} args - Arguments to find a AdminCallEvent
* @example
* // Get one AdminCallEvent
* const adminCallEvent = await prisma.adminCallEvent.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AdminCallEventFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminCallEventFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminCallEventClient<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AdminCallEvent that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AdminCallEventFindUniqueOrThrowArgs} args - Arguments to find a AdminCallEvent
* @example
* // Get one AdminCallEvent
* const adminCallEvent = await prisma.adminCallEvent.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AdminCallEventFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminCallEventFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminCallEventClient<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminCallEvent 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 {AdminCallEventFindFirstArgs} args - Arguments to find a AdminCallEvent
* @example
* // Get one AdminCallEvent
* const adminCallEvent = await prisma.adminCallEvent.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AdminCallEventFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminCallEventFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminCallEventClient<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminCallEvent 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 {AdminCallEventFindFirstOrThrowArgs} args - Arguments to find a AdminCallEvent
* @example
* // Get one AdminCallEvent
* const adminCallEvent = await prisma.adminCallEvent.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AdminCallEventFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminCallEventFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminCallEventClient<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AdminCallEvents 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 {AdminCallEventFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AdminCallEvents
* const adminCallEvents = await prisma.adminCallEvent.findMany()
*
* // Get first 10 AdminCallEvents
* const adminCallEvents = await prisma.adminCallEvent.findMany({ take: 10 })
*
* // Only select the `id`
* const adminCallEventWithIdOnly = await prisma.adminCallEvent.findMany({ select: { id: true } })
*
*/
findMany<T extends AdminCallEventFindManyArgs>(args?: Prisma.SelectSubset<T, AdminCallEventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AdminCallEvent.
* @param {AdminCallEventCreateArgs} args - Arguments to create a AdminCallEvent.
* @example
* // Create one AdminCallEvent
* const AdminCallEvent = await prisma.adminCallEvent.create({
* data: {
* // ... data to create a AdminCallEvent
* }
* })
*
*/
create<T extends AdminCallEventCreateArgs>(args: Prisma.SelectSubset<T, AdminCallEventCreateArgs<ExtArgs>>): Prisma.Prisma__AdminCallEventClient<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AdminCallEvents.
* @param {AdminCallEventCreateManyArgs} args - Arguments to create many AdminCallEvents.
* @example
* // Create many AdminCallEvents
* const adminCallEvent = await prisma.adminCallEvent.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AdminCallEventCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminCallEventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AdminCallEvents and returns the data saved in the database.
* @param {AdminCallEventCreateManyAndReturnArgs} args - Arguments to create many AdminCallEvents.
* @example
* // Create many AdminCallEvents
* const adminCallEvent = await prisma.adminCallEvent.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AdminCallEvents and only return the `id`
* const adminCallEventWithIdOnly = await prisma.adminCallEvent.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 AdminCallEventCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminCallEventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AdminCallEvent.
* @param {AdminCallEventDeleteArgs} args - Arguments to delete one AdminCallEvent.
* @example
* // Delete one AdminCallEvent
* const AdminCallEvent = await prisma.adminCallEvent.delete({
* where: {
* // ... filter to delete one AdminCallEvent
* }
* })
*
*/
delete<T extends AdminCallEventDeleteArgs>(args: Prisma.SelectSubset<T, AdminCallEventDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminCallEventClient<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AdminCallEvent.
* @param {AdminCallEventUpdateArgs} args - Arguments to update one AdminCallEvent.
* @example
* // Update one AdminCallEvent
* const adminCallEvent = await prisma.adminCallEvent.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AdminCallEventUpdateArgs>(args: Prisma.SelectSubset<T, AdminCallEventUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminCallEventClient<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AdminCallEvents.
* @param {AdminCallEventDeleteManyArgs} args - Arguments to filter AdminCallEvents to delete.
* @example
* // Delete a few AdminCallEvents
* const { count } = await prisma.adminCallEvent.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AdminCallEventDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminCallEventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminCallEvents.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminCallEventUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AdminCallEvents
* const adminCallEvent = await prisma.adminCallEvent.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AdminCallEventUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminCallEventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminCallEvents and returns the data updated in the database.
* @param {AdminCallEventUpdateManyAndReturnArgs} args - Arguments to update many AdminCallEvents.
* @example
* // Update many AdminCallEvents
* const adminCallEvent = await prisma.adminCallEvent.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AdminCallEvents and only return the `id`
* const adminCallEventWithIdOnly = await prisma.adminCallEvent.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 AdminCallEventUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminCallEventUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AdminCallEvent.
* @param {AdminCallEventUpsertArgs} args - Arguments to update or create a AdminCallEvent.
* @example
* // Update or create a AdminCallEvent
* const adminCallEvent = await prisma.adminCallEvent.upsert({
* create: {
* // ... data to create a AdminCallEvent
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AdminCallEvent we want to update
* }
* })
*/
upsert<T extends AdminCallEventUpsertArgs>(args: Prisma.SelectSubset<T, AdminCallEventUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminCallEventClient<runtime.Types.Result.GetResult<Prisma.$AdminCallEventPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AdminCallEvents.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminCallEventCountArgs} args - Arguments to filter AdminCallEvents to count.
* @example
* // Count the number of AdminCallEvents
* const count = await prisma.adminCallEvent.count({
* where: {
* // ... the filter for the AdminCallEvents we want to count
* }
* })
**/
count<T extends AdminCallEventCountArgs>(
args?: Prisma.Subset<T, AdminCallEventCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AdminCallEventCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AdminCallEvent.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminCallEventAggregateArgs} 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 AdminCallEventAggregateArgs>(args: Prisma.Subset<T, AdminCallEventAggregateArgs>): Prisma.PrismaPromise<GetAdminCallEventAggregateType<T>>
/**
* Group by AdminCallEvent.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminCallEventGroupByArgs} 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 AdminCallEventGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AdminCallEventGroupByArgs['orderBy'] }
: { orderBy?: AdminCallEventGroupByArgs['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, AdminCallEventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminCallEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AdminCallEvent model
*/
readonly fields: AdminCallEventFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AdminCallEvent.
* 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__AdminCallEventClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
callSession<T extends Prisma.AdminCallSessionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminCallSessionDefaultArgs<ExtArgs>>): Prisma.Prisma__AdminCallSessionClient<runtime.Types.Result.GetResult<Prisma.$AdminCallSessionPayload<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 AdminCallEvent model
*/
export interface AdminCallEventFieldRefs {
readonly id: Prisma.FieldRef<"AdminCallEvent", 'String'>
readonly createdAt: Prisma.FieldRef<"AdminCallEvent", 'DateTime'>
readonly adminUserId: Prisma.FieldRef<"AdminCallEvent", 'String'>
readonly callSessionId: Prisma.FieldRef<"AdminCallEvent", 'String'>
readonly dedupeKey: Prisma.FieldRef<"AdminCallEvent", 'String'>
readonly providerEvent: Prisma.FieldRef<"AdminCallEvent", 'String'>
readonly status: Prisma.FieldRef<"AdminCallEvent", 'AdminCallStatus'>
readonly occurredAt: Prisma.FieldRef<"AdminCallEvent", 'DateTime'>
readonly durationSeconds: Prisma.FieldRef<"AdminCallEvent", 'Int'>
}
// Custom InputTypes
/**
* AdminCallEvent findUnique
*/
export type AdminCallEventFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
/**
* Filter, which AdminCallEvent to fetch.
*/
where: Prisma.AdminCallEventWhereUniqueInput
}
/**
* AdminCallEvent findUniqueOrThrow
*/
export type AdminCallEventFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
/**
* Filter, which AdminCallEvent to fetch.
*/
where: Prisma.AdminCallEventWhereUniqueInput
}
/**
* AdminCallEvent findFirst
*/
export type AdminCallEventFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
/**
* Filter, which AdminCallEvent to fetch.
*/
where?: Prisma.AdminCallEventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminCallEvents to fetch.
*/
orderBy?: Prisma.AdminCallEventOrderByWithRelationInput | Prisma.AdminCallEventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminCallEvents.
*/
cursor?: Prisma.AdminCallEventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminCallEvents 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` AdminCallEvents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminCallEvents.
*/
distinct?: Prisma.AdminCallEventScalarFieldEnum | Prisma.AdminCallEventScalarFieldEnum[]
}
/**
* AdminCallEvent findFirstOrThrow
*/
export type AdminCallEventFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
/**
* Filter, which AdminCallEvent to fetch.
*/
where?: Prisma.AdminCallEventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminCallEvents to fetch.
*/
orderBy?: Prisma.AdminCallEventOrderByWithRelationInput | Prisma.AdminCallEventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminCallEvents.
*/
cursor?: Prisma.AdminCallEventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminCallEvents 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` AdminCallEvents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminCallEvents.
*/
distinct?: Prisma.AdminCallEventScalarFieldEnum | Prisma.AdminCallEventScalarFieldEnum[]
}
/**
* AdminCallEvent findMany
*/
export type AdminCallEventFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
/**
* Filter, which AdminCallEvents to fetch.
*/
where?: Prisma.AdminCallEventWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminCallEvents to fetch.
*/
orderBy?: Prisma.AdminCallEventOrderByWithRelationInput | Prisma.AdminCallEventOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AdminCallEvents.
*/
cursor?: Prisma.AdminCallEventWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminCallEvents 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` AdminCallEvents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminCallEvents.
*/
distinct?: Prisma.AdminCallEventScalarFieldEnum | Prisma.AdminCallEventScalarFieldEnum[]
}
/**
* AdminCallEvent create
*/
export type AdminCallEventCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
/**
* The data needed to create a AdminCallEvent.
*/
data: Prisma.XOR<Prisma.AdminCallEventCreateInput, Prisma.AdminCallEventUncheckedCreateInput>
}
/**
* AdminCallEvent createMany
*/
export type AdminCallEventCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AdminCallEvents.
*/
data: Prisma.AdminCallEventCreateManyInput | Prisma.AdminCallEventCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AdminCallEvent createManyAndReturn
*/
export type AdminCallEventCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* The data used to create many AdminCallEvents.
*/
data: Prisma.AdminCallEventCreateManyInput | Prisma.AdminCallEventCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* AdminCallEvent update
*/
export type AdminCallEventUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
/**
* The data needed to update a AdminCallEvent.
*/
data: Prisma.XOR<Prisma.AdminCallEventUpdateInput, Prisma.AdminCallEventUncheckedUpdateInput>
/**
* Choose, which AdminCallEvent to update.
*/
where: Prisma.AdminCallEventWhereUniqueInput
}
/**
* AdminCallEvent updateMany
*/
export type AdminCallEventUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AdminCallEvents.
*/
data: Prisma.XOR<Prisma.AdminCallEventUpdateManyMutationInput, Prisma.AdminCallEventUncheckedUpdateManyInput>
/**
* Filter which AdminCallEvents to update
*/
where?: Prisma.AdminCallEventWhereInput
/**
* Limit how many AdminCallEvents to update.
*/
limit?: number
}
/**
* AdminCallEvent updateManyAndReturn
*/
export type AdminCallEventUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* The data used to update AdminCallEvents.
*/
data: Prisma.XOR<Prisma.AdminCallEventUpdateManyMutationInput, Prisma.AdminCallEventUncheckedUpdateManyInput>
/**
* Filter which AdminCallEvents to update
*/
where?: Prisma.AdminCallEventWhereInput
/**
* Limit how many AdminCallEvents to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* AdminCallEvent upsert
*/
export type AdminCallEventUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
/**
* The filter to search for the AdminCallEvent to update in case it exists.
*/
where: Prisma.AdminCallEventWhereUniqueInput
/**
* In case the AdminCallEvent found by the `where` argument doesn't exist, create a new AdminCallEvent with this data.
*/
create: Prisma.XOR<Prisma.AdminCallEventCreateInput, Prisma.AdminCallEventUncheckedCreateInput>
/**
* In case the AdminCallEvent was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AdminCallEventUpdateInput, Prisma.AdminCallEventUncheckedUpdateInput>
}
/**
* AdminCallEvent delete
*/
export type AdminCallEventDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
/**
* Filter which AdminCallEvent to delete.
*/
where: Prisma.AdminCallEventWhereUniqueInput
}
/**
* AdminCallEvent deleteMany
*/
export type AdminCallEventDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminCallEvents to delete
*/
where?: Prisma.AdminCallEventWhereInput
/**
* Limit how many AdminCallEvents to delete.
*/
limit?: number
}
/**
* AdminCallEvent without action
*/
export type AdminCallEventDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminCallEvent
*/
select?: Prisma.AdminCallEventSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminCallEvent
*/
omit?: Prisma.AdminCallEventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminCallEventInclude<ExtArgs> | null
}