targo-backend/prisma/generated/mariadb/models/phonecall_channel.ts

1161 lines
43 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 `phonecall_channel` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums"
import type * as Prisma from "../internal/prismaNamespace"
/**
* Model phonecall_channel
*
*/
export type phonecall_channelModel = runtime.Types.Result.DefaultSelection<Prisma.$phonecall_channelPayload>
export type AggregatePhonecall_channel = {
_count: Phonecall_channelCountAggregateOutputType | null
_avg: Phonecall_channelAvgAggregateOutputType | null
_sum: Phonecall_channelSumAggregateOutputType | null
_min: Phonecall_channelMinAggregateOutputType | null
_max: Phonecall_channelMaxAggregateOutputType | null
}
export type Phonecall_channelAvgAggregateOutputType = {
id: number | null
timestamp: number | null
max_tinktell: number | null
max_outgoing_thinktell: number | null
max_comwave: number | null
max_outgoing_comwave: number | null
max_total: number | null
}
export type Phonecall_channelSumAggregateOutputType = {
id: number | null
timestamp: bigint | null
max_tinktell: number | null
max_outgoing_thinktell: number | null
max_comwave: number | null
max_outgoing_comwave: number | null
max_total: number | null
}
export type Phonecall_channelMinAggregateOutputType = {
id: number | null
timestamp: bigint | null
max_tinktell: number | null
max_outgoing_thinktell: number | null
max_comwave: number | null
max_outgoing_comwave: number | null
max_total: number | null
}
export type Phonecall_channelMaxAggregateOutputType = {
id: number | null
timestamp: bigint | null
max_tinktell: number | null
max_outgoing_thinktell: number | null
max_comwave: number | null
max_outgoing_comwave: number | null
max_total: number | null
}
export type Phonecall_channelCountAggregateOutputType = {
id: number
timestamp: number
max_tinktell: number
max_outgoing_thinktell: number
max_comwave: number
max_outgoing_comwave: number
max_total: number
_all: number
}
export type Phonecall_channelAvgAggregateInputType = {
id?: true
timestamp?: true
max_tinktell?: true
max_outgoing_thinktell?: true
max_comwave?: true
max_outgoing_comwave?: true
max_total?: true
}
export type Phonecall_channelSumAggregateInputType = {
id?: true
timestamp?: true
max_tinktell?: true
max_outgoing_thinktell?: true
max_comwave?: true
max_outgoing_comwave?: true
max_total?: true
}
export type Phonecall_channelMinAggregateInputType = {
id?: true
timestamp?: true
max_tinktell?: true
max_outgoing_thinktell?: true
max_comwave?: true
max_outgoing_comwave?: true
max_total?: true
}
export type Phonecall_channelMaxAggregateInputType = {
id?: true
timestamp?: true
max_tinktell?: true
max_outgoing_thinktell?: true
max_comwave?: true
max_outgoing_comwave?: true
max_total?: true
}
export type Phonecall_channelCountAggregateInputType = {
id?: true
timestamp?: true
max_tinktell?: true
max_outgoing_thinktell?: true
max_comwave?: true
max_outgoing_comwave?: true
max_total?: true
_all?: true
}
export type Phonecall_channelAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which phonecall_channel to aggregate.
*/
where?: Prisma.phonecall_channelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of phonecall_channels to fetch.
*/
orderBy?: Prisma.phonecall_channelOrderByWithRelationInput | Prisma.phonecall_channelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.phonecall_channelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` phonecall_channels 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` phonecall_channels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned phonecall_channels
**/
_count?: true | Phonecall_channelCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Phonecall_channelAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Phonecall_channelSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Phonecall_channelMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Phonecall_channelMaxAggregateInputType
}
export type GetPhonecall_channelAggregateType<T extends Phonecall_channelAggregateArgs> = {
[P in keyof T & keyof AggregatePhonecall_channel]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregatePhonecall_channel[P]>
: Prisma.GetScalarType<T[P], AggregatePhonecall_channel[P]>
}
export type phonecall_channelGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.phonecall_channelWhereInput
orderBy?: Prisma.phonecall_channelOrderByWithAggregationInput | Prisma.phonecall_channelOrderByWithAggregationInput[]
by: Prisma.Phonecall_channelScalarFieldEnum[] | Prisma.Phonecall_channelScalarFieldEnum
having?: Prisma.phonecall_channelScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Phonecall_channelCountAggregateInputType | true
_avg?: Phonecall_channelAvgAggregateInputType
_sum?: Phonecall_channelSumAggregateInputType
_min?: Phonecall_channelMinAggregateInputType
_max?: Phonecall_channelMaxAggregateInputType
}
export type Phonecall_channelGroupByOutputType = {
id: number
timestamp: bigint
max_tinktell: number
max_outgoing_thinktell: number
max_comwave: number
max_outgoing_comwave: number
max_total: number
_count: Phonecall_channelCountAggregateOutputType | null
_avg: Phonecall_channelAvgAggregateOutputType | null
_sum: Phonecall_channelSumAggregateOutputType | null
_min: Phonecall_channelMinAggregateOutputType | null
_max: Phonecall_channelMaxAggregateOutputType | null
}
type GetPhonecall_channelGroupByPayload<T extends phonecall_channelGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Phonecall_channelGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Phonecall_channelGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Phonecall_channelGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Phonecall_channelGroupByOutputType[P]>
}
>
>
export type phonecall_channelWhereInput = {
AND?: Prisma.phonecall_channelWhereInput | Prisma.phonecall_channelWhereInput[]
OR?: Prisma.phonecall_channelWhereInput[]
NOT?: Prisma.phonecall_channelWhereInput | Prisma.phonecall_channelWhereInput[]
id?: Prisma.IntFilter<"phonecall_channel"> | number
timestamp?: Prisma.BigIntFilter<"phonecall_channel"> | bigint | number
max_tinktell?: Prisma.IntFilter<"phonecall_channel"> | number
max_outgoing_thinktell?: Prisma.IntFilter<"phonecall_channel"> | number
max_comwave?: Prisma.IntFilter<"phonecall_channel"> | number
max_outgoing_comwave?: Prisma.IntFilter<"phonecall_channel"> | number
max_total?: Prisma.IntFilter<"phonecall_channel"> | number
}
export type phonecall_channelOrderByWithRelationInput = {
id?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
max_tinktell?: Prisma.SortOrder
max_outgoing_thinktell?: Prisma.SortOrder
max_comwave?: Prisma.SortOrder
max_outgoing_comwave?: Prisma.SortOrder
max_total?: Prisma.SortOrder
}
export type phonecall_channelWhereUniqueInput = Prisma.AtLeast<{
id?: number
timestamp?: bigint | number
AND?: Prisma.phonecall_channelWhereInput | Prisma.phonecall_channelWhereInput[]
OR?: Prisma.phonecall_channelWhereInput[]
NOT?: Prisma.phonecall_channelWhereInput | Prisma.phonecall_channelWhereInput[]
max_tinktell?: Prisma.IntFilter<"phonecall_channel"> | number
max_outgoing_thinktell?: Prisma.IntFilter<"phonecall_channel"> | number
max_comwave?: Prisma.IntFilter<"phonecall_channel"> | number
max_outgoing_comwave?: Prisma.IntFilter<"phonecall_channel"> | number
max_total?: Prisma.IntFilter<"phonecall_channel"> | number
}, "id" | "timestamp">
export type phonecall_channelOrderByWithAggregationInput = {
id?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
max_tinktell?: Prisma.SortOrder
max_outgoing_thinktell?: Prisma.SortOrder
max_comwave?: Prisma.SortOrder
max_outgoing_comwave?: Prisma.SortOrder
max_total?: Prisma.SortOrder
_count?: Prisma.phonecall_channelCountOrderByAggregateInput
_avg?: Prisma.phonecall_channelAvgOrderByAggregateInput
_max?: Prisma.phonecall_channelMaxOrderByAggregateInput
_min?: Prisma.phonecall_channelMinOrderByAggregateInput
_sum?: Prisma.phonecall_channelSumOrderByAggregateInput
}
export type phonecall_channelScalarWhereWithAggregatesInput = {
AND?: Prisma.phonecall_channelScalarWhereWithAggregatesInput | Prisma.phonecall_channelScalarWhereWithAggregatesInput[]
OR?: Prisma.phonecall_channelScalarWhereWithAggregatesInput[]
NOT?: Prisma.phonecall_channelScalarWhereWithAggregatesInput | Prisma.phonecall_channelScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number
timestamp?: Prisma.BigIntWithAggregatesFilter<"phonecall_channel"> | bigint | number
max_tinktell?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number
max_outgoing_thinktell?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number
max_comwave?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number
max_outgoing_comwave?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number
max_total?: Prisma.IntWithAggregatesFilter<"phonecall_channel"> | number
}
export type phonecall_channelCreateInput = {
timestamp: bigint | number
max_tinktell?: number
max_outgoing_thinktell?: number
max_comwave?: number
max_outgoing_comwave?: number
max_total?: number
}
export type phonecall_channelUncheckedCreateInput = {
id?: number
timestamp: bigint | number
max_tinktell?: number
max_outgoing_thinktell?: number
max_comwave?: number
max_outgoing_comwave?: number
max_total?: number
}
export type phonecall_channelUpdateInput = {
timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
max_tinktell?: Prisma.IntFieldUpdateOperationsInput | number
max_outgoing_thinktell?: Prisma.IntFieldUpdateOperationsInput | number
max_comwave?: Prisma.IntFieldUpdateOperationsInput | number
max_outgoing_comwave?: Prisma.IntFieldUpdateOperationsInput | number
max_total?: Prisma.IntFieldUpdateOperationsInput | number
}
export type phonecall_channelUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
max_tinktell?: Prisma.IntFieldUpdateOperationsInput | number
max_outgoing_thinktell?: Prisma.IntFieldUpdateOperationsInput | number
max_comwave?: Prisma.IntFieldUpdateOperationsInput | number
max_outgoing_comwave?: Prisma.IntFieldUpdateOperationsInput | number
max_total?: Prisma.IntFieldUpdateOperationsInput | number
}
export type phonecall_channelCreateManyInput = {
id?: number
timestamp: bigint | number
max_tinktell?: number
max_outgoing_thinktell?: number
max_comwave?: number
max_outgoing_comwave?: number
max_total?: number
}
export type phonecall_channelUpdateManyMutationInput = {
timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
max_tinktell?: Prisma.IntFieldUpdateOperationsInput | number
max_outgoing_thinktell?: Prisma.IntFieldUpdateOperationsInput | number
max_comwave?: Prisma.IntFieldUpdateOperationsInput | number
max_outgoing_comwave?: Prisma.IntFieldUpdateOperationsInput | number
max_total?: Prisma.IntFieldUpdateOperationsInput | number
}
export type phonecall_channelUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
max_tinktell?: Prisma.IntFieldUpdateOperationsInput | number
max_outgoing_thinktell?: Prisma.IntFieldUpdateOperationsInput | number
max_comwave?: Prisma.IntFieldUpdateOperationsInput | number
max_outgoing_comwave?: Prisma.IntFieldUpdateOperationsInput | number
max_total?: Prisma.IntFieldUpdateOperationsInput | number
}
export type phonecall_channelCountOrderByAggregateInput = {
id?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
max_tinktell?: Prisma.SortOrder
max_outgoing_thinktell?: Prisma.SortOrder
max_comwave?: Prisma.SortOrder
max_outgoing_comwave?: Prisma.SortOrder
max_total?: Prisma.SortOrder
}
export type phonecall_channelAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
max_tinktell?: Prisma.SortOrder
max_outgoing_thinktell?: Prisma.SortOrder
max_comwave?: Prisma.SortOrder
max_outgoing_comwave?: Prisma.SortOrder
max_total?: Prisma.SortOrder
}
export type phonecall_channelMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
max_tinktell?: Prisma.SortOrder
max_outgoing_thinktell?: Prisma.SortOrder
max_comwave?: Prisma.SortOrder
max_outgoing_comwave?: Prisma.SortOrder
max_total?: Prisma.SortOrder
}
export type phonecall_channelMinOrderByAggregateInput = {
id?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
max_tinktell?: Prisma.SortOrder
max_outgoing_thinktell?: Prisma.SortOrder
max_comwave?: Prisma.SortOrder
max_outgoing_comwave?: Prisma.SortOrder
max_total?: Prisma.SortOrder
}
export type phonecall_channelSumOrderByAggregateInput = {
id?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
max_tinktell?: Prisma.SortOrder
max_outgoing_thinktell?: Prisma.SortOrder
max_comwave?: Prisma.SortOrder
max_outgoing_comwave?: Prisma.SortOrder
max_total?: Prisma.SortOrder
}
export type phonecall_channelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
timestamp?: boolean
max_tinktell?: boolean
max_outgoing_thinktell?: boolean
max_comwave?: boolean
max_outgoing_comwave?: boolean
max_total?: boolean
}, ExtArgs["result"]["phonecall_channel"]>
export type phonecall_channelSelectScalar = {
id?: boolean
timestamp?: boolean
max_tinktell?: boolean
max_outgoing_thinktell?: boolean
max_comwave?: boolean
max_outgoing_comwave?: boolean
max_total?: boolean
}
export type phonecall_channelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "timestamp" | "max_tinktell" | "max_outgoing_thinktell" | "max_comwave" | "max_outgoing_comwave" | "max_total", ExtArgs["result"]["phonecall_channel"]>
export type $phonecall_channelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "phonecall_channel"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
timestamp: bigint
max_tinktell: number
max_outgoing_thinktell: number
max_comwave: number
max_outgoing_comwave: number
max_total: number
}, ExtArgs["result"]["phonecall_channel"]>
composites: {}
}
export type phonecall_channelGetPayload<S extends boolean | null | undefined | phonecall_channelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload, S>
export type phonecall_channelCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<phonecall_channelFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Phonecall_channelCountAggregateInputType | true
}
export interface phonecall_channelDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['phonecall_channel'], meta: { name: 'phonecall_channel' } }
/**
* Find zero or one Phonecall_channel that matches the filter.
* @param {phonecall_channelFindUniqueArgs} args - Arguments to find a Phonecall_channel
* @example
* // Get one Phonecall_channel
* const phonecall_channel = await prisma.phonecall_channel.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends phonecall_channelFindUniqueArgs>(args: Prisma.SelectSubset<T, phonecall_channelFindUniqueArgs<ExtArgs>>): Prisma.Prisma__phonecall_channelClient<runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Phonecall_channel that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {phonecall_channelFindUniqueOrThrowArgs} args - Arguments to find a Phonecall_channel
* @example
* // Get one Phonecall_channel
* const phonecall_channel = await prisma.phonecall_channel.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends phonecall_channelFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, phonecall_channelFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__phonecall_channelClient<runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Phonecall_channel 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 {phonecall_channelFindFirstArgs} args - Arguments to find a Phonecall_channel
* @example
* // Get one Phonecall_channel
* const phonecall_channel = await prisma.phonecall_channel.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends phonecall_channelFindFirstArgs>(args?: Prisma.SelectSubset<T, phonecall_channelFindFirstArgs<ExtArgs>>): Prisma.Prisma__phonecall_channelClient<runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Phonecall_channel 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 {phonecall_channelFindFirstOrThrowArgs} args - Arguments to find a Phonecall_channel
* @example
* // Get one Phonecall_channel
* const phonecall_channel = await prisma.phonecall_channel.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends phonecall_channelFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, phonecall_channelFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__phonecall_channelClient<runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Phonecall_channels 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 {phonecall_channelFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Phonecall_channels
* const phonecall_channels = await prisma.phonecall_channel.findMany()
*
* // Get first 10 Phonecall_channels
* const phonecall_channels = await prisma.phonecall_channel.findMany({ take: 10 })
*
* // Only select the `id`
* const phonecall_channelWithIdOnly = await prisma.phonecall_channel.findMany({ select: { id: true } })
*
*/
findMany<T extends phonecall_channelFindManyArgs>(args?: Prisma.SelectSubset<T, phonecall_channelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Phonecall_channel.
* @param {phonecall_channelCreateArgs} args - Arguments to create a Phonecall_channel.
* @example
* // Create one Phonecall_channel
* const Phonecall_channel = await prisma.phonecall_channel.create({
* data: {
* // ... data to create a Phonecall_channel
* }
* })
*
*/
create<T extends phonecall_channelCreateArgs>(args: Prisma.SelectSubset<T, phonecall_channelCreateArgs<ExtArgs>>): Prisma.Prisma__phonecall_channelClient<runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Phonecall_channels.
* @param {phonecall_channelCreateManyArgs} args - Arguments to create many Phonecall_channels.
* @example
* // Create many Phonecall_channels
* const phonecall_channel = await prisma.phonecall_channel.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends phonecall_channelCreateManyArgs>(args?: Prisma.SelectSubset<T, phonecall_channelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Phonecall_channel.
* @param {phonecall_channelDeleteArgs} args - Arguments to delete one Phonecall_channel.
* @example
* // Delete one Phonecall_channel
* const Phonecall_channel = await prisma.phonecall_channel.delete({
* where: {
* // ... filter to delete one Phonecall_channel
* }
* })
*
*/
delete<T extends phonecall_channelDeleteArgs>(args: Prisma.SelectSubset<T, phonecall_channelDeleteArgs<ExtArgs>>): Prisma.Prisma__phonecall_channelClient<runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Phonecall_channel.
* @param {phonecall_channelUpdateArgs} args - Arguments to update one Phonecall_channel.
* @example
* // Update one Phonecall_channel
* const phonecall_channel = await prisma.phonecall_channel.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends phonecall_channelUpdateArgs>(args: Prisma.SelectSubset<T, phonecall_channelUpdateArgs<ExtArgs>>): Prisma.Prisma__phonecall_channelClient<runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Phonecall_channels.
* @param {phonecall_channelDeleteManyArgs} args - Arguments to filter Phonecall_channels to delete.
* @example
* // Delete a few Phonecall_channels
* const { count } = await prisma.phonecall_channel.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends phonecall_channelDeleteManyArgs>(args?: Prisma.SelectSubset<T, phonecall_channelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Phonecall_channels.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {phonecall_channelUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Phonecall_channels
* const phonecall_channel = await prisma.phonecall_channel.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends phonecall_channelUpdateManyArgs>(args: Prisma.SelectSubset<T, phonecall_channelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Phonecall_channel.
* @param {phonecall_channelUpsertArgs} args - Arguments to update or create a Phonecall_channel.
* @example
* // Update or create a Phonecall_channel
* const phonecall_channel = await prisma.phonecall_channel.upsert({
* create: {
* // ... data to create a Phonecall_channel
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Phonecall_channel we want to update
* }
* })
*/
upsert<T extends phonecall_channelUpsertArgs>(args: Prisma.SelectSubset<T, phonecall_channelUpsertArgs<ExtArgs>>): Prisma.Prisma__phonecall_channelClient<runtime.Types.Result.GetResult<Prisma.$phonecall_channelPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Phonecall_channels.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {phonecall_channelCountArgs} args - Arguments to filter Phonecall_channels to count.
* @example
* // Count the number of Phonecall_channels
* const count = await prisma.phonecall_channel.count({
* where: {
* // ... the filter for the Phonecall_channels we want to count
* }
* })
**/
count<T extends phonecall_channelCountArgs>(
args?: Prisma.Subset<T, phonecall_channelCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Phonecall_channelCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Phonecall_channel.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Phonecall_channelAggregateArgs} 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 Phonecall_channelAggregateArgs>(args: Prisma.Subset<T, Phonecall_channelAggregateArgs>): Prisma.PrismaPromise<GetPhonecall_channelAggregateType<T>>
/**
* Group by Phonecall_channel.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {phonecall_channelGroupByArgs} 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 phonecall_channelGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: phonecall_channelGroupByArgs['orderBy'] }
: { orderBy?: phonecall_channelGroupByArgs['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, phonecall_channelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPhonecall_channelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the phonecall_channel model
*/
readonly fields: phonecall_channelFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for phonecall_channel.
* 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__phonecall_channelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* 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 phonecall_channel model
*/
export interface phonecall_channelFieldRefs {
readonly id: Prisma.FieldRef<"phonecall_channel", 'Int'>
readonly timestamp: Prisma.FieldRef<"phonecall_channel", 'BigInt'>
readonly max_tinktell: Prisma.FieldRef<"phonecall_channel", 'Int'>
readonly max_outgoing_thinktell: Prisma.FieldRef<"phonecall_channel", 'Int'>
readonly max_comwave: Prisma.FieldRef<"phonecall_channel", 'Int'>
readonly max_outgoing_comwave: Prisma.FieldRef<"phonecall_channel", 'Int'>
readonly max_total: Prisma.FieldRef<"phonecall_channel", 'Int'>
}
// Custom InputTypes
/**
* phonecall_channel findUnique
*/
export type phonecall_channelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
/**
* Filter, which phonecall_channel to fetch.
*/
where: Prisma.phonecall_channelWhereUniqueInput
}
/**
* phonecall_channel findUniqueOrThrow
*/
export type phonecall_channelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
/**
* Filter, which phonecall_channel to fetch.
*/
where: Prisma.phonecall_channelWhereUniqueInput
}
/**
* phonecall_channel findFirst
*/
export type phonecall_channelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
/**
* Filter, which phonecall_channel to fetch.
*/
where?: Prisma.phonecall_channelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of phonecall_channels to fetch.
*/
orderBy?: Prisma.phonecall_channelOrderByWithRelationInput | Prisma.phonecall_channelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for phonecall_channels.
*/
cursor?: Prisma.phonecall_channelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` phonecall_channels 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` phonecall_channels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of phonecall_channels.
*/
distinct?: Prisma.Phonecall_channelScalarFieldEnum | Prisma.Phonecall_channelScalarFieldEnum[]
}
/**
* phonecall_channel findFirstOrThrow
*/
export type phonecall_channelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
/**
* Filter, which phonecall_channel to fetch.
*/
where?: Prisma.phonecall_channelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of phonecall_channels to fetch.
*/
orderBy?: Prisma.phonecall_channelOrderByWithRelationInput | Prisma.phonecall_channelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for phonecall_channels.
*/
cursor?: Prisma.phonecall_channelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` phonecall_channels 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` phonecall_channels.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of phonecall_channels.
*/
distinct?: Prisma.Phonecall_channelScalarFieldEnum | Prisma.Phonecall_channelScalarFieldEnum[]
}
/**
* phonecall_channel findMany
*/
export type phonecall_channelFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
/**
* Filter, which phonecall_channels to fetch.
*/
where?: Prisma.phonecall_channelWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of phonecall_channels to fetch.
*/
orderBy?: Prisma.phonecall_channelOrderByWithRelationInput | Prisma.phonecall_channelOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing phonecall_channels.
*/
cursor?: Prisma.phonecall_channelWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` phonecall_channels 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` phonecall_channels.
*/
skip?: number
distinct?: Prisma.Phonecall_channelScalarFieldEnum | Prisma.Phonecall_channelScalarFieldEnum[]
}
/**
* phonecall_channel create
*/
export type phonecall_channelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
/**
* The data needed to create a phonecall_channel.
*/
data: Prisma.XOR<Prisma.phonecall_channelCreateInput, Prisma.phonecall_channelUncheckedCreateInput>
}
/**
* phonecall_channel createMany
*/
export type phonecall_channelCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many phonecall_channels.
*/
data: Prisma.phonecall_channelCreateManyInput | Prisma.phonecall_channelCreateManyInput[]
skipDuplicates?: boolean
}
/**
* phonecall_channel update
*/
export type phonecall_channelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
/**
* The data needed to update a phonecall_channel.
*/
data: Prisma.XOR<Prisma.phonecall_channelUpdateInput, Prisma.phonecall_channelUncheckedUpdateInput>
/**
* Choose, which phonecall_channel to update.
*/
where: Prisma.phonecall_channelWhereUniqueInput
}
/**
* phonecall_channel updateMany
*/
export type phonecall_channelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update phonecall_channels.
*/
data: Prisma.XOR<Prisma.phonecall_channelUpdateManyMutationInput, Prisma.phonecall_channelUncheckedUpdateManyInput>
/**
* Filter which phonecall_channels to update
*/
where?: Prisma.phonecall_channelWhereInput
/**
* Limit how many phonecall_channels to update.
*/
limit?: number
}
/**
* phonecall_channel upsert
*/
export type phonecall_channelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
/**
* The filter to search for the phonecall_channel to update in case it exists.
*/
where: Prisma.phonecall_channelWhereUniqueInput
/**
* In case the phonecall_channel found by the `where` argument doesn't exist, create a new phonecall_channel with this data.
*/
create: Prisma.XOR<Prisma.phonecall_channelCreateInput, Prisma.phonecall_channelUncheckedCreateInput>
/**
* In case the phonecall_channel was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.phonecall_channelUpdateInput, Prisma.phonecall_channelUncheckedUpdateInput>
}
/**
* phonecall_channel delete
*/
export type phonecall_channelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
/**
* Filter which phonecall_channel to delete.
*/
where: Prisma.phonecall_channelWhereUniqueInput
}
/**
* phonecall_channel deleteMany
*/
export type phonecall_channelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which phonecall_channels to delete
*/
where?: Prisma.phonecall_channelWhereInput
/**
* Limit how many phonecall_channels to delete.
*/
limit?: number
}
/**
* phonecall_channel without action
*/
export type phonecall_channelDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phonecall_channel
*/
select?: Prisma.phonecall_channelSelect<ExtArgs> | null
/**
* Omit specific fields from the phonecall_channel
*/
omit?: Prisma.phonecall_channelOmit<ExtArgs> | null
}