2366 lines
106 KiB
TypeScript
2366 lines
106 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 `TelephonyCallSession` 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 TelephonyCallSession
|
|
* Normalized inbound or outbound call, optionally matched to one CRM entity.
|
|
*/
|
|
export type TelephonyCallSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$TelephonyCallSessionPayload>
|
|
|
|
export type AggregateTelephonyCallSession = {
|
|
_count: TelephonyCallSessionCountAggregateOutputType | null
|
|
_avg: TelephonyCallSessionAvgAggregateOutputType | null
|
|
_sum: TelephonyCallSessionSumAggregateOutputType | null
|
|
_min: TelephonyCallSessionMinAggregateOutputType | null
|
|
_max: TelephonyCallSessionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TelephonyCallSessionAvgAggregateOutputType = {
|
|
durationSeconds: number | null
|
|
}
|
|
|
|
export type TelephonyCallSessionSumAggregateOutputType = {
|
|
durationSeconds: number | null
|
|
}
|
|
|
|
export type TelephonyCallSessionMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
connectionId: string | null
|
|
providerCallId: string | null
|
|
providerUserId: string | null
|
|
tenantUserId: string | null
|
|
direction: $Enums.TelephonyCallDirection | null
|
|
status: $Enums.TelephonyCallStatus | null
|
|
fromNumber: string | null
|
|
toNumber: string | null
|
|
startedAt: Date | null
|
|
answeredAt: Date | null
|
|
endedAt: Date | null
|
|
durationSeconds: number | null
|
|
matchedKontaktId: string | null
|
|
matchedLeadId: string | null
|
|
matchedProjektId: string | null
|
|
matchConfidence: $Enums.TelephonyMatchConfidence | null
|
|
manualOverrideAt: Date | null
|
|
manualOverrideUserId: string | null
|
|
noteMarkdown: string | null
|
|
recordingUrl: string | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type TelephonyCallSessionMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
connectionId: string | null
|
|
providerCallId: string | null
|
|
providerUserId: string | null
|
|
tenantUserId: string | null
|
|
direction: $Enums.TelephonyCallDirection | null
|
|
status: $Enums.TelephonyCallStatus | null
|
|
fromNumber: string | null
|
|
toNumber: string | null
|
|
startedAt: Date | null
|
|
answeredAt: Date | null
|
|
endedAt: Date | null
|
|
durationSeconds: number | null
|
|
matchedKontaktId: string | null
|
|
matchedLeadId: string | null
|
|
matchedProjektId: string | null
|
|
matchConfidence: $Enums.TelephonyMatchConfidence | null
|
|
manualOverrideAt: Date | null
|
|
manualOverrideUserId: string | null
|
|
noteMarkdown: string | null
|
|
recordingUrl: string | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type TelephonyCallSessionCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
connectionId: number
|
|
providerCallId: number
|
|
providerUserId: number
|
|
tenantUserId: number
|
|
direction: number
|
|
status: number
|
|
fromNumber: number
|
|
toNumber: number
|
|
startedAt: number
|
|
answeredAt: number
|
|
endedAt: number
|
|
durationSeconds: number
|
|
matchedKontaktId: number
|
|
matchedLeadId: number
|
|
matchedProjektId: number
|
|
matchConfidence: number
|
|
manualOverrideAt: number
|
|
manualOverrideUserId: number
|
|
noteMarkdown: number
|
|
recordingUrl: number
|
|
isDemoData: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TelephonyCallSessionAvgAggregateInputType = {
|
|
durationSeconds?: true
|
|
}
|
|
|
|
export type TelephonyCallSessionSumAggregateInputType = {
|
|
durationSeconds?: true
|
|
}
|
|
|
|
export type TelephonyCallSessionMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
connectionId?: true
|
|
providerCallId?: true
|
|
providerUserId?: true
|
|
tenantUserId?: true
|
|
direction?: true
|
|
status?: true
|
|
fromNumber?: true
|
|
toNumber?: true
|
|
startedAt?: true
|
|
answeredAt?: true
|
|
endedAt?: true
|
|
durationSeconds?: true
|
|
matchedKontaktId?: true
|
|
matchedLeadId?: true
|
|
matchedProjektId?: true
|
|
matchConfidence?: true
|
|
manualOverrideAt?: true
|
|
manualOverrideUserId?: true
|
|
noteMarkdown?: true
|
|
recordingUrl?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type TelephonyCallSessionMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
connectionId?: true
|
|
providerCallId?: true
|
|
providerUserId?: true
|
|
tenantUserId?: true
|
|
direction?: true
|
|
status?: true
|
|
fromNumber?: true
|
|
toNumber?: true
|
|
startedAt?: true
|
|
answeredAt?: true
|
|
endedAt?: true
|
|
durationSeconds?: true
|
|
matchedKontaktId?: true
|
|
matchedLeadId?: true
|
|
matchedProjektId?: true
|
|
matchConfidence?: true
|
|
manualOverrideAt?: true
|
|
manualOverrideUserId?: true
|
|
noteMarkdown?: true
|
|
recordingUrl?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type TelephonyCallSessionCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
connectionId?: true
|
|
providerCallId?: true
|
|
providerUserId?: true
|
|
tenantUserId?: true
|
|
direction?: true
|
|
status?: true
|
|
fromNumber?: true
|
|
toNumber?: true
|
|
startedAt?: true
|
|
answeredAt?: true
|
|
endedAt?: true
|
|
durationSeconds?: true
|
|
matchedKontaktId?: true
|
|
matchedLeadId?: true
|
|
matchedProjektId?: true
|
|
matchConfidence?: true
|
|
manualOverrideAt?: true
|
|
manualOverrideUserId?: true
|
|
noteMarkdown?: true
|
|
recordingUrl?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TelephonyCallSessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TelephonyCallSession to aggregate.
|
|
*/
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TelephonyCallSessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.TelephonyCallSessionOrderByWithRelationInput | Prisma.TelephonyCallSessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TelephonyCallSessions 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` TelephonyCallSessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned TelephonyCallSessions
|
|
**/
|
|
_count?: true | TelephonyCallSessionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: TelephonyCallSessionAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: TelephonyCallSessionSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TelephonyCallSessionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TelephonyCallSessionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTelephonyCallSessionAggregateType<T extends TelephonyCallSessionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTelephonyCallSession]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTelephonyCallSession[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTelephonyCallSession[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TelephonyCallSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
orderBy?: Prisma.TelephonyCallSessionOrderByWithAggregationInput | Prisma.TelephonyCallSessionOrderByWithAggregationInput[]
|
|
by: Prisma.TelephonyCallSessionScalarFieldEnum[] | Prisma.TelephonyCallSessionScalarFieldEnum
|
|
having?: Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TelephonyCallSessionCountAggregateInputType | true
|
|
_avg?: TelephonyCallSessionAvgAggregateInputType
|
|
_sum?: TelephonyCallSessionSumAggregateInputType
|
|
_min?: TelephonyCallSessionMinAggregateInputType
|
|
_max?: TelephonyCallSessionMaxAggregateInputType
|
|
}
|
|
|
|
export type TelephonyCallSessionGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
connectionId: string
|
|
providerCallId: string
|
|
providerUserId: string | null
|
|
tenantUserId: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date
|
|
answeredAt: Date | null
|
|
endedAt: Date | null
|
|
durationSeconds: number | null
|
|
matchedKontaktId: string | null
|
|
matchedLeadId: string | null
|
|
matchedProjektId: string | null
|
|
matchConfidence: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt: Date | null
|
|
manualOverrideUserId: string | null
|
|
noteMarkdown: string | null
|
|
recordingUrl: string | null
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
_count: TelephonyCallSessionCountAggregateOutputType | null
|
|
_avg: TelephonyCallSessionAvgAggregateOutputType | null
|
|
_sum: TelephonyCallSessionSumAggregateOutputType | null
|
|
_min: TelephonyCallSessionMinAggregateOutputType | null
|
|
_max: TelephonyCallSessionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetTelephonyCallSessionGroupByPayload<T extends TelephonyCallSessionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<TelephonyCallSessionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TelephonyCallSessionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], TelephonyCallSessionGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], TelephonyCallSessionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type TelephonyCallSessionWhereInput = {
|
|
AND?: Prisma.TelephonyCallSessionWhereInput | Prisma.TelephonyCallSessionWhereInput[]
|
|
OR?: Prisma.TelephonyCallSessionWhereInput[]
|
|
NOT?: Prisma.TelephonyCallSessionWhereInput | Prisma.TelephonyCallSessionWhereInput[]
|
|
id?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
connectionId?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
providerCallId?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
providerUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
tenantUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFilter<"TelephonyCallSession"> | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFilter<"TelephonyCallSession"> | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
toNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
startedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string
|
|
answeredAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
endedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
durationSeconds?: Prisma.IntNullableFilter<"TelephonyCallSession"> | number | null
|
|
matchedKontaktId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
matchedLeadId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
matchedProjektId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFilter<"TelephonyCallSession"> | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
manualOverrideUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
noteMarkdown?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
recordingUrl?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"TelephonyCallSession"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
connection?: Prisma.XOR<Prisma.TelephonyConnectionScalarRelationFilter, Prisma.TelephonyConnectionWhereInput>
|
|
webhookEvents?: Prisma.TelephonyWebhookEventListRelationFilter
|
|
}
|
|
|
|
export type TelephonyCallSessionOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
connectionId?: Prisma.SortOrder
|
|
providerCallId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
fromNumber?: Prisma.SortOrder
|
|
toNumber?: Prisma.SortOrder
|
|
startedAt?: Prisma.SortOrder
|
|
answeredAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
endedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
durationSeconds?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
noteMarkdown?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
recordingUrl?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
connection?: Prisma.TelephonyConnectionOrderByWithRelationInput
|
|
webhookEvents?: Prisma.TelephonyWebhookEventOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type TelephonyCallSessionWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
connectionId_providerCallId?: Prisma.TelephonyCallSessionConnectionIdProviderCallIdCompoundUniqueInput
|
|
AND?: Prisma.TelephonyCallSessionWhereInput | Prisma.TelephonyCallSessionWhereInput[]
|
|
OR?: Prisma.TelephonyCallSessionWhereInput[]
|
|
NOT?: Prisma.TelephonyCallSessionWhereInput | Prisma.TelephonyCallSessionWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
connectionId?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
providerCallId?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
providerUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
tenantUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFilter<"TelephonyCallSession"> | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFilter<"TelephonyCallSession"> | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
toNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
startedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string
|
|
answeredAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
endedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
durationSeconds?: Prisma.IntNullableFilter<"TelephonyCallSession"> | number | null
|
|
matchedKontaktId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
matchedLeadId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
matchedProjektId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFilter<"TelephonyCallSession"> | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
manualOverrideUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
noteMarkdown?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
recordingUrl?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"TelephonyCallSession"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
connection?: Prisma.XOR<Prisma.TelephonyConnectionScalarRelationFilter, Prisma.TelephonyConnectionWhereInput>
|
|
webhookEvents?: Prisma.TelephonyWebhookEventListRelationFilter
|
|
}, "id" | "connectionId_providerCallId">
|
|
|
|
export type TelephonyCallSessionOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
connectionId?: Prisma.SortOrder
|
|
providerCallId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
tenantUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
fromNumber?: Prisma.SortOrder
|
|
toNumber?: Prisma.SortOrder
|
|
startedAt?: Prisma.SortOrder
|
|
answeredAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
endedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
durationSeconds?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
noteMarkdown?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
recordingUrl?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.TelephonyCallSessionCountOrderByAggregateInput
|
|
_avg?: Prisma.TelephonyCallSessionAvgOrderByAggregateInput
|
|
_max?: Prisma.TelephonyCallSessionMaxOrderByAggregateInput
|
|
_min?: Prisma.TelephonyCallSessionMinOrderByAggregateInput
|
|
_sum?: Prisma.TelephonyCallSessionSumOrderByAggregateInput
|
|
}
|
|
|
|
export type TelephonyCallSessionScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput | Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput | Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"TelephonyCallSession"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"TelephonyCallSession"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string
|
|
connectionId?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string
|
|
providerCallId?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string
|
|
providerUserId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null
|
|
tenantUserId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionWithAggregatesFilter<"TelephonyCallSession"> | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusWithAggregatesFilter<"TelephonyCallSession"> | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string
|
|
toNumber?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string
|
|
startedAt?: Prisma.DateTimeWithAggregatesFilter<"TelephonyCallSession"> | Date | string
|
|
answeredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TelephonyCallSession"> | Date | string | null
|
|
endedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TelephonyCallSession"> | Date | string | null
|
|
durationSeconds?: Prisma.IntNullableWithAggregatesFilter<"TelephonyCallSession"> | number | null
|
|
matchedKontaktId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null
|
|
matchedLeadId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null
|
|
matchedProjektId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceWithAggregatesFilter<"TelephonyCallSession"> | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TelephonyCallSession"> | Date | string | null
|
|
manualOverrideUserId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null
|
|
noteMarkdown?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null
|
|
recordingUrl?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"TelephonyCallSession"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TelephonyCallSession"> | Date | string | null
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerCallId: string
|
|
providerUserId?: string | null
|
|
tenantUserId?: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date | string
|
|
answeredAt?: Date | string | null
|
|
endedAt?: Date | string | null
|
|
durationSeconds?: number | null
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
noteMarkdown?: string | null
|
|
recordingUrl?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
connection: Prisma.TelephonyConnectionCreateNestedOneWithoutCallSessionsInput
|
|
webhookEvents?: Prisma.TelephonyWebhookEventCreateNestedManyWithoutCallSessionInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
connectionId: string
|
|
providerCallId: string
|
|
providerUserId?: string | null
|
|
tenantUserId?: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date | string
|
|
answeredAt?: Date | string | null
|
|
endedAt?: Date | string | null
|
|
durationSeconds?: number | null
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
noteMarkdown?: string | null
|
|
recordingUrl?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
webhookEvents?: Prisma.TelephonyWebhookEventUncheckedCreateNestedManyWithoutCallSessionInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerCallId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
toNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
connection?: Prisma.TelephonyConnectionUpdateOneRequiredWithoutCallSessionsNestedInput
|
|
webhookEvents?: Prisma.TelephonyWebhookEventUpdateManyWithoutCallSessionNestedInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
connectionId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerCallId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
toNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
webhookEvents?: Prisma.TelephonyWebhookEventUncheckedUpdateManyWithoutCallSessionNestedInput
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
connectionId: string
|
|
providerCallId: string
|
|
providerUserId?: string | null
|
|
tenantUserId?: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date | string
|
|
answeredAt?: Date | string | null
|
|
endedAt?: Date | string | null
|
|
durationSeconds?: number | null
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
noteMarkdown?: string | null
|
|
recordingUrl?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type TelephonyCallSessionUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerCallId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
toNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
connectionId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerCallId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
toNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type TelephonyCallSessionListRelationFilter = {
|
|
every?: Prisma.TelephonyCallSessionWhereInput
|
|
some?: Prisma.TelephonyCallSessionWhereInput
|
|
none?: Prisma.TelephonyCallSessionWhereInput
|
|
}
|
|
|
|
export type TelephonyCallSessionOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TelephonyCallSessionConnectionIdProviderCallIdCompoundUniqueInput = {
|
|
connectionId: string
|
|
providerCallId: string
|
|
}
|
|
|
|
export type TelephonyCallSessionCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
connectionId?: Prisma.SortOrder
|
|
providerCallId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrder
|
|
tenantUserId?: Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
fromNumber?: Prisma.SortOrder
|
|
toNumber?: Prisma.SortOrder
|
|
startedAt?: Prisma.SortOrder
|
|
answeredAt?: Prisma.SortOrder
|
|
endedAt?: Prisma.SortOrder
|
|
durationSeconds?: Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrder
|
|
noteMarkdown?: Prisma.SortOrder
|
|
recordingUrl?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TelephonyCallSessionAvgOrderByAggregateInput = {
|
|
durationSeconds?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TelephonyCallSessionMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
connectionId?: Prisma.SortOrder
|
|
providerCallId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrder
|
|
tenantUserId?: Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
fromNumber?: Prisma.SortOrder
|
|
toNumber?: Prisma.SortOrder
|
|
startedAt?: Prisma.SortOrder
|
|
answeredAt?: Prisma.SortOrder
|
|
endedAt?: Prisma.SortOrder
|
|
durationSeconds?: Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrder
|
|
noteMarkdown?: Prisma.SortOrder
|
|
recordingUrl?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TelephonyCallSessionMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
connectionId?: Prisma.SortOrder
|
|
providerCallId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrder
|
|
tenantUserId?: Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
fromNumber?: Prisma.SortOrder
|
|
toNumber?: Prisma.SortOrder
|
|
startedAt?: Prisma.SortOrder
|
|
answeredAt?: Prisma.SortOrder
|
|
endedAt?: Prisma.SortOrder
|
|
durationSeconds?: Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrder
|
|
noteMarkdown?: Prisma.SortOrder
|
|
recordingUrl?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TelephonyCallSessionSumOrderByAggregateInput = {
|
|
durationSeconds?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TelephonyCallSessionNullableScalarRelationFilter = {
|
|
is?: Prisma.TelephonyCallSessionWhereInput | null
|
|
isNot?: Prisma.TelephonyCallSessionWhereInput | null
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateNestedManyWithoutConnectionInput = {
|
|
create?: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutConnectionInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput> | Prisma.TelephonyCallSessionCreateWithoutConnectionInput[] | Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput[]
|
|
connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput | Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput[]
|
|
createMany?: Prisma.TelephonyCallSessionCreateManyConnectionInputEnvelope
|
|
connect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedCreateNestedManyWithoutConnectionInput = {
|
|
create?: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutConnectionInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput> | Prisma.TelephonyCallSessionCreateWithoutConnectionInput[] | Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput[]
|
|
connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput | Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput[]
|
|
createMany?: Prisma.TelephonyCallSessionCreateManyConnectionInputEnvelope
|
|
connect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type TelephonyCallSessionUpdateManyWithoutConnectionNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutConnectionInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput> | Prisma.TelephonyCallSessionCreateWithoutConnectionInput[] | Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput[]
|
|
connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput | Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput[]
|
|
upsert?: Prisma.TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput | Prisma.TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput[]
|
|
createMany?: Prisma.TelephonyCallSessionCreateManyConnectionInputEnvelope
|
|
set?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
disconnect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
delete?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
connect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
update?: Prisma.TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput | Prisma.TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput[]
|
|
updateMany?: Prisma.TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput | Prisma.TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput[]
|
|
deleteMany?: Prisma.TelephonyCallSessionScalarWhereInput | Prisma.TelephonyCallSessionScalarWhereInput[]
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedUpdateManyWithoutConnectionNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutConnectionInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput> | Prisma.TelephonyCallSessionCreateWithoutConnectionInput[] | Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput[]
|
|
connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput | Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput[]
|
|
upsert?: Prisma.TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput | Prisma.TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput[]
|
|
createMany?: Prisma.TelephonyCallSessionCreateManyConnectionInputEnvelope
|
|
set?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
disconnect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
delete?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
connect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[]
|
|
update?: Prisma.TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput | Prisma.TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput[]
|
|
updateMany?: Prisma.TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput | Prisma.TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput[]
|
|
deleteMany?: Prisma.TelephonyCallSessionScalarWhereInput | Prisma.TelephonyCallSessionScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumTelephonyCallDirectionFieldUpdateOperationsInput = {
|
|
set?: $Enums.TelephonyCallDirection
|
|
}
|
|
|
|
export type EnumTelephonyCallStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.TelephonyCallStatus
|
|
}
|
|
|
|
export type EnumTelephonyMatchConfidenceFieldUpdateOperationsInput = {
|
|
set?: $Enums.TelephonyMatchConfidence
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateNestedOneWithoutWebhookEventsInput = {
|
|
create?: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutWebhookEventsInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutWebhookEventsInput>
|
|
connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutWebhookEventsInput
|
|
connect?: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUpdateOneWithoutWebhookEventsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutWebhookEventsInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutWebhookEventsInput>
|
|
connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutWebhookEventsInput
|
|
upsert?: Prisma.TelephonyCallSessionUpsertWithoutWebhookEventsInput
|
|
disconnect?: Prisma.TelephonyCallSessionWhereInput | boolean
|
|
delete?: Prisma.TelephonyCallSessionWhereInput | boolean
|
|
connect?: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.TelephonyCallSessionUpdateToOneWithWhereWithoutWebhookEventsInput, Prisma.TelephonyCallSessionUpdateWithoutWebhookEventsInput>, Prisma.TelephonyCallSessionUncheckedUpdateWithoutWebhookEventsInput>
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateWithoutConnectionInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerCallId: string
|
|
providerUserId?: string | null
|
|
tenantUserId?: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date | string
|
|
answeredAt?: Date | string | null
|
|
endedAt?: Date | string | null
|
|
durationSeconds?: number | null
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
noteMarkdown?: string | null
|
|
recordingUrl?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
webhookEvents?: Prisma.TelephonyWebhookEventCreateNestedManyWithoutCallSessionInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedCreateWithoutConnectionInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerCallId: string
|
|
providerUserId?: string | null
|
|
tenantUserId?: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date | string
|
|
answeredAt?: Date | string | null
|
|
endedAt?: Date | string | null
|
|
durationSeconds?: number | null
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
noteMarkdown?: string | null
|
|
recordingUrl?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
webhookEvents?: Prisma.TelephonyWebhookEventUncheckedCreateNestedManyWithoutCallSessionInput
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateOrConnectWithoutConnectionInput = {
|
|
where: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutConnectionInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput>
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateManyConnectionInputEnvelope = {
|
|
data: Prisma.TelephonyCallSessionCreateManyConnectionInput | Prisma.TelephonyCallSessionCreateManyConnectionInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput = {
|
|
where: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.TelephonyCallSessionUpdateWithoutConnectionInput, Prisma.TelephonyCallSessionUncheckedUpdateWithoutConnectionInput>
|
|
create: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutConnectionInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput>
|
|
}
|
|
|
|
export type TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput = {
|
|
where: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.TelephonyCallSessionUpdateWithoutConnectionInput, Prisma.TelephonyCallSessionUncheckedUpdateWithoutConnectionInput>
|
|
}
|
|
|
|
export type TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput = {
|
|
where: Prisma.TelephonyCallSessionScalarWhereInput
|
|
data: Prisma.XOR<Prisma.TelephonyCallSessionUpdateManyMutationInput, Prisma.TelephonyCallSessionUncheckedUpdateManyWithoutConnectionInput>
|
|
}
|
|
|
|
export type TelephonyCallSessionScalarWhereInput = {
|
|
AND?: Prisma.TelephonyCallSessionScalarWhereInput | Prisma.TelephonyCallSessionScalarWhereInput[]
|
|
OR?: Prisma.TelephonyCallSessionScalarWhereInput[]
|
|
NOT?: Prisma.TelephonyCallSessionScalarWhereInput | Prisma.TelephonyCallSessionScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
connectionId?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
providerCallId?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
providerUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
tenantUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFilter<"TelephonyCallSession"> | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFilter<"TelephonyCallSession"> | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
toNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string
|
|
startedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string
|
|
answeredAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
endedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
durationSeconds?: Prisma.IntNullableFilter<"TelephonyCallSession"> | number | null
|
|
matchedKontaktId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
matchedLeadId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
matchedProjektId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFilter<"TelephonyCallSession"> | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
manualOverrideUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
noteMarkdown?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
recordingUrl?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"TelephonyCallSession"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateWithoutWebhookEventsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerCallId: string
|
|
providerUserId?: string | null
|
|
tenantUserId?: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date | string
|
|
answeredAt?: Date | string | null
|
|
endedAt?: Date | string | null
|
|
durationSeconds?: number | null
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
noteMarkdown?: string | null
|
|
recordingUrl?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
connection: Prisma.TelephonyConnectionCreateNestedOneWithoutCallSessionsInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedCreateWithoutWebhookEventsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
connectionId: string
|
|
providerCallId: string
|
|
providerUserId?: string | null
|
|
tenantUserId?: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date | string
|
|
answeredAt?: Date | string | null
|
|
endedAt?: Date | string | null
|
|
durationSeconds?: number | null
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
noteMarkdown?: string | null
|
|
recordingUrl?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateOrConnectWithoutWebhookEventsInput = {
|
|
where: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutWebhookEventsInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutWebhookEventsInput>
|
|
}
|
|
|
|
export type TelephonyCallSessionUpsertWithoutWebhookEventsInput = {
|
|
update: Prisma.XOR<Prisma.TelephonyCallSessionUpdateWithoutWebhookEventsInput, Prisma.TelephonyCallSessionUncheckedUpdateWithoutWebhookEventsInput>
|
|
create: Prisma.XOR<Prisma.TelephonyCallSessionCreateWithoutWebhookEventsInput, Prisma.TelephonyCallSessionUncheckedCreateWithoutWebhookEventsInput>
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUpdateToOneWithWhereWithoutWebhookEventsInput = {
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
data: Prisma.XOR<Prisma.TelephonyCallSessionUpdateWithoutWebhookEventsInput, Prisma.TelephonyCallSessionUncheckedUpdateWithoutWebhookEventsInput>
|
|
}
|
|
|
|
export type TelephonyCallSessionUpdateWithoutWebhookEventsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerCallId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
toNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
connection?: Prisma.TelephonyConnectionUpdateOneRequiredWithoutCallSessionsNestedInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedUpdateWithoutWebhookEventsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
connectionId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerCallId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
toNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type TelephonyCallSessionCreateManyConnectionInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerCallId: string
|
|
providerUserId?: string | null
|
|
tenantUserId?: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date | string
|
|
answeredAt?: Date | string | null
|
|
endedAt?: Date | string | null
|
|
durationSeconds?: number | null
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
noteMarkdown?: string | null
|
|
recordingUrl?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type TelephonyCallSessionUpdateWithoutConnectionInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerCallId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
toNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
webhookEvents?: Prisma.TelephonyWebhookEventUpdateManyWithoutCallSessionNestedInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedUpdateWithoutConnectionInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerCallId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
toNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
webhookEvents?: Prisma.TelephonyWebhookEventUncheckedUpdateManyWithoutCallSessionNestedInput
|
|
}
|
|
|
|
export type TelephonyCallSessionUncheckedUpdateManyWithoutConnectionInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerCallId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection
|
|
status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus
|
|
fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
toNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type TelephonyCallSessionCountOutputType
|
|
*/
|
|
|
|
export type TelephonyCallSessionCountOutputType = {
|
|
webhookEvents: number
|
|
}
|
|
|
|
export type TelephonyCallSessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
webhookEvents?: boolean | TelephonyCallSessionCountOutputTypeCountWebhookEventsArgs
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSessionCountOutputType without action
|
|
*/
|
|
export type TelephonyCallSessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSessionCountOutputType
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSessionCountOutputType without action
|
|
*/
|
|
export type TelephonyCallSessionCountOutputTypeCountWebhookEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TelephonyWebhookEventWhereInput
|
|
}
|
|
|
|
|
|
export type TelephonyCallSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
connectionId?: boolean
|
|
providerCallId?: boolean
|
|
providerUserId?: boolean
|
|
tenantUserId?: boolean
|
|
direction?: boolean
|
|
status?: boolean
|
|
fromNumber?: boolean
|
|
toNumber?: boolean
|
|
startedAt?: boolean
|
|
answeredAt?: boolean
|
|
endedAt?: boolean
|
|
durationSeconds?: boolean
|
|
matchedKontaktId?: boolean
|
|
matchedLeadId?: boolean
|
|
matchedProjektId?: boolean
|
|
matchConfidence?: boolean
|
|
manualOverrideAt?: boolean
|
|
manualOverrideUserId?: boolean
|
|
noteMarkdown?: boolean
|
|
recordingUrl?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
connection?: boolean | Prisma.TelephonyConnectionDefaultArgs<ExtArgs>
|
|
webhookEvents?: boolean | Prisma.TelephonyCallSession$webhookEventsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.TelephonyCallSessionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["telephonyCallSession"]>
|
|
|
|
export type TelephonyCallSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
connectionId?: boolean
|
|
providerCallId?: boolean
|
|
providerUserId?: boolean
|
|
tenantUserId?: boolean
|
|
direction?: boolean
|
|
status?: boolean
|
|
fromNumber?: boolean
|
|
toNumber?: boolean
|
|
startedAt?: boolean
|
|
answeredAt?: boolean
|
|
endedAt?: boolean
|
|
durationSeconds?: boolean
|
|
matchedKontaktId?: boolean
|
|
matchedLeadId?: boolean
|
|
matchedProjektId?: boolean
|
|
matchConfidence?: boolean
|
|
manualOverrideAt?: boolean
|
|
manualOverrideUserId?: boolean
|
|
noteMarkdown?: boolean
|
|
recordingUrl?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
connection?: boolean | Prisma.TelephonyConnectionDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["telephonyCallSession"]>
|
|
|
|
export type TelephonyCallSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
connectionId?: boolean
|
|
providerCallId?: boolean
|
|
providerUserId?: boolean
|
|
tenantUserId?: boolean
|
|
direction?: boolean
|
|
status?: boolean
|
|
fromNumber?: boolean
|
|
toNumber?: boolean
|
|
startedAt?: boolean
|
|
answeredAt?: boolean
|
|
endedAt?: boolean
|
|
durationSeconds?: boolean
|
|
matchedKontaktId?: boolean
|
|
matchedLeadId?: boolean
|
|
matchedProjektId?: boolean
|
|
matchConfidence?: boolean
|
|
manualOverrideAt?: boolean
|
|
manualOverrideUserId?: boolean
|
|
noteMarkdown?: boolean
|
|
recordingUrl?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
connection?: boolean | Prisma.TelephonyConnectionDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["telephonyCallSession"]>
|
|
|
|
export type TelephonyCallSessionSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
connectionId?: boolean
|
|
providerCallId?: boolean
|
|
providerUserId?: boolean
|
|
tenantUserId?: boolean
|
|
direction?: boolean
|
|
status?: boolean
|
|
fromNumber?: boolean
|
|
toNumber?: boolean
|
|
startedAt?: boolean
|
|
answeredAt?: boolean
|
|
endedAt?: boolean
|
|
durationSeconds?: boolean
|
|
matchedKontaktId?: boolean
|
|
matchedLeadId?: boolean
|
|
matchedProjektId?: boolean
|
|
matchConfidence?: boolean
|
|
manualOverrideAt?: boolean
|
|
manualOverrideUserId?: boolean
|
|
noteMarkdown?: boolean
|
|
recordingUrl?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type TelephonyCallSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "connectionId" | "providerCallId" | "providerUserId" | "tenantUserId" | "direction" | "status" | "fromNumber" | "toNumber" | "startedAt" | "answeredAt" | "endedAt" | "durationSeconds" | "matchedKontaktId" | "matchedLeadId" | "matchedProjektId" | "matchConfidence" | "manualOverrideAt" | "manualOverrideUserId" | "noteMarkdown" | "recordingUrl" | "isDemoData" | "archivedAt", ExtArgs["result"]["telephonyCallSession"]>
|
|
export type TelephonyCallSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
connection?: boolean | Prisma.TelephonyConnectionDefaultArgs<ExtArgs>
|
|
webhookEvents?: boolean | Prisma.TelephonyCallSession$webhookEventsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.TelephonyCallSessionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type TelephonyCallSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
connection?: boolean | Prisma.TelephonyConnectionDefaultArgs<ExtArgs>
|
|
}
|
|
export type TelephonyCallSessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
connection?: boolean | Prisma.TelephonyConnectionDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $TelephonyCallSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "TelephonyCallSession"
|
|
objects: {
|
|
connection: Prisma.$TelephonyConnectionPayload<ExtArgs>
|
|
webhookEvents: Prisma.$TelephonyWebhookEventPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
connectionId: string
|
|
providerCallId: string
|
|
providerUserId: string | null
|
|
tenantUserId: string | null
|
|
direction: $Enums.TelephonyCallDirection
|
|
status: $Enums.TelephonyCallStatus
|
|
fromNumber: string
|
|
toNumber: string
|
|
startedAt: Date
|
|
answeredAt: Date | null
|
|
endedAt: Date | null
|
|
durationSeconds: number | null
|
|
matchedKontaktId: string | null
|
|
matchedLeadId: string | null
|
|
matchedProjektId: string | null
|
|
matchConfidence: $Enums.TelephonyMatchConfidence
|
|
manualOverrideAt: Date | null
|
|
manualOverrideUserId: string | null
|
|
noteMarkdown: string | null
|
|
recordingUrl: string | null
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["telephonyCallSession"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type TelephonyCallSessionGetPayload<S extends boolean | null | undefined | TelephonyCallSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload, S>
|
|
|
|
export type TelephonyCallSessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<TelephonyCallSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: TelephonyCallSessionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TelephonyCallSessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TelephonyCallSession'], meta: { name: 'TelephonyCallSession' } }
|
|
/**
|
|
* Find zero or one TelephonyCallSession that matches the filter.
|
|
* @param {TelephonyCallSessionFindUniqueArgs} args - Arguments to find a TelephonyCallSession
|
|
* @example
|
|
* // Get one TelephonyCallSession
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends TelephonyCallSessionFindUniqueArgs>(args: Prisma.SelectSubset<T, TelephonyCallSessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TelephonyCallSessionClient<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one TelephonyCallSession that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {TelephonyCallSessionFindUniqueOrThrowArgs} args - Arguments to find a TelephonyCallSession
|
|
* @example
|
|
* // Get one TelephonyCallSession
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends TelephonyCallSessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TelephonyCallSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TelephonyCallSessionClient<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TelephonyCallSession 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 {TelephonyCallSessionFindFirstArgs} args - Arguments to find a TelephonyCallSession
|
|
* @example
|
|
* // Get one TelephonyCallSession
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends TelephonyCallSessionFindFirstArgs>(args?: Prisma.SelectSubset<T, TelephonyCallSessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__TelephonyCallSessionClient<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TelephonyCallSession 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 {TelephonyCallSessionFindFirstOrThrowArgs} args - Arguments to find a TelephonyCallSession
|
|
* @example
|
|
* // Get one TelephonyCallSession
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends TelephonyCallSessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TelephonyCallSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TelephonyCallSessionClient<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more TelephonyCallSessions 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 {TelephonyCallSessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all TelephonyCallSessions
|
|
* const telephonyCallSessions = await prisma.telephonyCallSession.findMany()
|
|
*
|
|
* // Get first 10 TelephonyCallSessions
|
|
* const telephonyCallSessions = await prisma.telephonyCallSession.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const telephonyCallSessionWithIdOnly = await prisma.telephonyCallSession.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends TelephonyCallSessionFindManyArgs>(args?: Prisma.SelectSubset<T, TelephonyCallSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a TelephonyCallSession.
|
|
* @param {TelephonyCallSessionCreateArgs} args - Arguments to create a TelephonyCallSession.
|
|
* @example
|
|
* // Create one TelephonyCallSession
|
|
* const TelephonyCallSession = await prisma.telephonyCallSession.create({
|
|
* data: {
|
|
* // ... data to create a TelephonyCallSession
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends TelephonyCallSessionCreateArgs>(args: Prisma.SelectSubset<T, TelephonyCallSessionCreateArgs<ExtArgs>>): Prisma.Prisma__TelephonyCallSessionClient<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many TelephonyCallSessions.
|
|
* @param {TelephonyCallSessionCreateManyArgs} args - Arguments to create many TelephonyCallSessions.
|
|
* @example
|
|
* // Create many TelephonyCallSessions
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends TelephonyCallSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, TelephonyCallSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many TelephonyCallSessions and returns the data saved in the database.
|
|
* @param {TelephonyCallSessionCreateManyAndReturnArgs} args - Arguments to create many TelephonyCallSessions.
|
|
* @example
|
|
* // Create many TelephonyCallSessions
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many TelephonyCallSessions and only return the `id`
|
|
* const telephonyCallSessionWithIdOnly = await prisma.telephonyCallSession.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 TelephonyCallSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TelephonyCallSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a TelephonyCallSession.
|
|
* @param {TelephonyCallSessionDeleteArgs} args - Arguments to delete one TelephonyCallSession.
|
|
* @example
|
|
* // Delete one TelephonyCallSession
|
|
* const TelephonyCallSession = await prisma.telephonyCallSession.delete({
|
|
* where: {
|
|
* // ... filter to delete one TelephonyCallSession
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends TelephonyCallSessionDeleteArgs>(args: Prisma.SelectSubset<T, TelephonyCallSessionDeleteArgs<ExtArgs>>): Prisma.Prisma__TelephonyCallSessionClient<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one TelephonyCallSession.
|
|
* @param {TelephonyCallSessionUpdateArgs} args - Arguments to update one TelephonyCallSession.
|
|
* @example
|
|
* // Update one TelephonyCallSession
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends TelephonyCallSessionUpdateArgs>(args: Prisma.SelectSubset<T, TelephonyCallSessionUpdateArgs<ExtArgs>>): Prisma.Prisma__TelephonyCallSessionClient<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more TelephonyCallSessions.
|
|
* @param {TelephonyCallSessionDeleteManyArgs} args - Arguments to filter TelephonyCallSessions to delete.
|
|
* @example
|
|
* // Delete a few TelephonyCallSessions
|
|
* const { count } = await prisma.telephonyCallSession.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends TelephonyCallSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, TelephonyCallSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TelephonyCallSessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TelephonyCallSessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many TelephonyCallSessions
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends TelephonyCallSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, TelephonyCallSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TelephonyCallSessions and returns the data updated in the database.
|
|
* @param {TelephonyCallSessionUpdateManyAndReturnArgs} args - Arguments to update many TelephonyCallSessions.
|
|
* @example
|
|
* // Update many TelephonyCallSessions
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more TelephonyCallSessions and only return the `id`
|
|
* const telephonyCallSessionWithIdOnly = await prisma.telephonyCallSession.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 TelephonyCallSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TelephonyCallSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one TelephonyCallSession.
|
|
* @param {TelephonyCallSessionUpsertArgs} args - Arguments to update or create a TelephonyCallSession.
|
|
* @example
|
|
* // Update or create a TelephonyCallSession
|
|
* const telephonyCallSession = await prisma.telephonyCallSession.upsert({
|
|
* create: {
|
|
* // ... data to create a TelephonyCallSession
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the TelephonyCallSession we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends TelephonyCallSessionUpsertArgs>(args: Prisma.SelectSubset<T, TelephonyCallSessionUpsertArgs<ExtArgs>>): Prisma.Prisma__TelephonyCallSessionClient<runtime.Types.Result.GetResult<Prisma.$TelephonyCallSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of TelephonyCallSessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TelephonyCallSessionCountArgs} args - Arguments to filter TelephonyCallSessions to count.
|
|
* @example
|
|
* // Count the number of TelephonyCallSessions
|
|
* const count = await prisma.telephonyCallSession.count({
|
|
* where: {
|
|
* // ... the filter for the TelephonyCallSessions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends TelephonyCallSessionCountArgs>(
|
|
args?: Prisma.Subset<T, TelephonyCallSessionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], TelephonyCallSessionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a TelephonyCallSession.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TelephonyCallSessionAggregateArgs} 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 TelephonyCallSessionAggregateArgs>(args: Prisma.Subset<T, TelephonyCallSessionAggregateArgs>): Prisma.PrismaPromise<GetTelephonyCallSessionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by TelephonyCallSession.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TelephonyCallSessionGroupByArgs} 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 TelephonyCallSessionGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: TelephonyCallSessionGroupByArgs['orderBy'] }
|
|
: { orderBy?: TelephonyCallSessionGroupByArgs['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, TelephonyCallSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTelephonyCallSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the TelephonyCallSession model
|
|
*/
|
|
readonly fields: TelephonyCallSessionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for TelephonyCallSession.
|
|
* 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__TelephonyCallSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
connection<T extends Prisma.TelephonyConnectionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TelephonyConnectionDefaultArgs<ExtArgs>>): Prisma.Prisma__TelephonyConnectionClient<runtime.Types.Result.GetResult<Prisma.$TelephonyConnectionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
webhookEvents<T extends Prisma.TelephonyCallSession$webhookEventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TelephonyCallSession$webhookEventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TelephonyWebhookEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<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 TelephonyCallSession model
|
|
*/
|
|
export interface TelephonyCallSessionFieldRefs {
|
|
readonly id: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly connectionId: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly providerCallId: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly providerUserId: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly tenantUserId: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly direction: Prisma.FieldRef<"TelephonyCallSession", 'TelephonyCallDirection'>
|
|
readonly status: Prisma.FieldRef<"TelephonyCallSession", 'TelephonyCallStatus'>
|
|
readonly fromNumber: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly toNumber: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly startedAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'>
|
|
readonly answeredAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'>
|
|
readonly endedAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'>
|
|
readonly durationSeconds: Prisma.FieldRef<"TelephonyCallSession", 'Int'>
|
|
readonly matchedKontaktId: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly matchedLeadId: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly matchedProjektId: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly matchConfidence: Prisma.FieldRef<"TelephonyCallSession", 'TelephonyMatchConfidence'>
|
|
readonly manualOverrideAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'>
|
|
readonly manualOverrideUserId: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly noteMarkdown: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly recordingUrl: Prisma.FieldRef<"TelephonyCallSession", 'String'>
|
|
readonly isDemoData: Prisma.FieldRef<"TelephonyCallSession", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* TelephonyCallSession findUnique
|
|
*/
|
|
export type TelephonyCallSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TelephonyCallSession to fetch.
|
|
*/
|
|
where: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession findUniqueOrThrow
|
|
*/
|
|
export type TelephonyCallSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TelephonyCallSession to fetch.
|
|
*/
|
|
where: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession findFirst
|
|
*/
|
|
export type TelephonyCallSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TelephonyCallSession to fetch.
|
|
*/
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TelephonyCallSessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.TelephonyCallSessionOrderByWithRelationInput | Prisma.TelephonyCallSessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TelephonyCallSessions.
|
|
*/
|
|
cursor?: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TelephonyCallSessions 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` TelephonyCallSessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TelephonyCallSessions.
|
|
*/
|
|
distinct?: Prisma.TelephonyCallSessionScalarFieldEnum | Prisma.TelephonyCallSessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession findFirstOrThrow
|
|
*/
|
|
export type TelephonyCallSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TelephonyCallSession to fetch.
|
|
*/
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TelephonyCallSessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.TelephonyCallSessionOrderByWithRelationInput | Prisma.TelephonyCallSessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TelephonyCallSessions.
|
|
*/
|
|
cursor?: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TelephonyCallSessions 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` TelephonyCallSessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TelephonyCallSessions.
|
|
*/
|
|
distinct?: Prisma.TelephonyCallSessionScalarFieldEnum | Prisma.TelephonyCallSessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession findMany
|
|
*/
|
|
export type TelephonyCallSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TelephonyCallSessions to fetch.
|
|
*/
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TelephonyCallSessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.TelephonyCallSessionOrderByWithRelationInput | Prisma.TelephonyCallSessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing TelephonyCallSessions.
|
|
*/
|
|
cursor?: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TelephonyCallSessions 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` TelephonyCallSessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TelephonyCallSessions.
|
|
*/
|
|
distinct?: Prisma.TelephonyCallSessionScalarFieldEnum | Prisma.TelephonyCallSessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession create
|
|
*/
|
|
export type TelephonyCallSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a TelephonyCallSession.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TelephonyCallSessionCreateInput, Prisma.TelephonyCallSessionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession createMany
|
|
*/
|
|
export type TelephonyCallSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many TelephonyCallSessions.
|
|
*/
|
|
data: Prisma.TelephonyCallSessionCreateManyInput | Prisma.TelephonyCallSessionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession createManyAndReturn
|
|
*/
|
|
export type TelephonyCallSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many TelephonyCallSessions.
|
|
*/
|
|
data: Prisma.TelephonyCallSessionCreateManyInput | Prisma.TelephonyCallSessionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession update
|
|
*/
|
|
export type TelephonyCallSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a TelephonyCallSession.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TelephonyCallSessionUpdateInput, Prisma.TelephonyCallSessionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which TelephonyCallSession to update.
|
|
*/
|
|
where: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession updateMany
|
|
*/
|
|
export type TelephonyCallSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update TelephonyCallSessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TelephonyCallSessionUpdateManyMutationInput, Prisma.TelephonyCallSessionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TelephonyCallSessions to update
|
|
*/
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
/**
|
|
* Limit how many TelephonyCallSessions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession updateManyAndReturn
|
|
*/
|
|
export type TelephonyCallSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update TelephonyCallSessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TelephonyCallSessionUpdateManyMutationInput, Prisma.TelephonyCallSessionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TelephonyCallSessions to update
|
|
*/
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
/**
|
|
* Limit how many TelephonyCallSessions to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession upsert
|
|
*/
|
|
export type TelephonyCallSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the TelephonyCallSession to update in case it exists.
|
|
*/
|
|
where: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
/**
|
|
* In case the TelephonyCallSession found by the `where` argument doesn't exist, create a new TelephonyCallSession with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.TelephonyCallSessionCreateInput, Prisma.TelephonyCallSessionUncheckedCreateInput>
|
|
/**
|
|
* In case the TelephonyCallSession was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.TelephonyCallSessionUpdateInput, Prisma.TelephonyCallSessionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession delete
|
|
*/
|
|
export type TelephonyCallSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which TelephonyCallSession to delete.
|
|
*/
|
|
where: Prisma.TelephonyCallSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession deleteMany
|
|
*/
|
|
export type TelephonyCallSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TelephonyCallSessions to delete
|
|
*/
|
|
where?: Prisma.TelephonyCallSessionWhereInput
|
|
/**
|
|
* Limit how many TelephonyCallSessions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession.webhookEvents
|
|
*/
|
|
export type TelephonyCallSession$webhookEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyWebhookEvent
|
|
*/
|
|
select?: Prisma.TelephonyWebhookEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyWebhookEvent
|
|
*/
|
|
omit?: Prisma.TelephonyWebhookEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyWebhookEventInclude<ExtArgs> | null
|
|
where?: Prisma.TelephonyWebhookEventWhereInput
|
|
orderBy?: Prisma.TelephonyWebhookEventOrderByWithRelationInput | Prisma.TelephonyWebhookEventOrderByWithRelationInput[]
|
|
cursor?: Prisma.TelephonyWebhookEventWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TelephonyWebhookEventScalarFieldEnum | Prisma.TelephonyWebhookEventScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TelephonyCallSession without action
|
|
*/
|
|
export type TelephonyCallSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TelephonyCallSession
|
|
*/
|
|
select?: Prisma.TelephonyCallSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TelephonyCallSession
|
|
*/
|
|
omit?: Prisma.TelephonyCallSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TelephonyCallSessionInclude<ExtArgs> | null
|
|
}
|