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

1066 lines
36 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 `tele_carte` 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 tele_carte
*
*/
export type tele_carteModel = runtime.Types.Result.DefaultSelection<Prisma.$tele_cartePayload>
export type AggregateTele_carte = {
_count: Tele_carteCountAggregateOutputType | null
_avg: Tele_carteAvgAggregateOutputType | null
_sum: Tele_carteSumAggregateOutputType | null
_min: Tele_carteMinAggregateOutputType | null
_max: Tele_carteMaxAggregateOutputType | null
}
export type Tele_carteAvgAggregateOutputType = {
id: number | null
delivery_id: number | null
service_id: number | null
}
export type Tele_carteSumAggregateOutputType = {
id: number | null
delivery_id: number | null
service_id: number | null
}
export type Tele_carteMinAggregateOutputType = {
id: number | null
delivery_id: number | null
service_id: number | null
channels: string | null
}
export type Tele_carteMaxAggregateOutputType = {
id: number | null
delivery_id: number | null
service_id: number | null
channels: string | null
}
export type Tele_carteCountAggregateOutputType = {
id: number
delivery_id: number
service_id: number
channels: number
_all: number
}
export type Tele_carteAvgAggregateInputType = {
id?: true
delivery_id?: true
service_id?: true
}
export type Tele_carteSumAggregateInputType = {
id?: true
delivery_id?: true
service_id?: true
}
export type Tele_carteMinAggregateInputType = {
id?: true
delivery_id?: true
service_id?: true
channels?: true
}
export type Tele_carteMaxAggregateInputType = {
id?: true
delivery_id?: true
service_id?: true
channels?: true
}
export type Tele_carteCountAggregateInputType = {
id?: true
delivery_id?: true
service_id?: true
channels?: true
_all?: true
}
export type Tele_carteAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which tele_carte to aggregate.
*/
where?: Prisma.tele_carteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of tele_cartes to fetch.
*/
orderBy?: Prisma.tele_carteOrderByWithRelationInput | Prisma.tele_carteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.tele_carteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` tele_cartes 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` tele_cartes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned tele_cartes
**/
_count?: true | Tele_carteCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Tele_carteAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Tele_carteSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Tele_carteMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Tele_carteMaxAggregateInputType
}
export type GetTele_carteAggregateType<T extends Tele_carteAggregateArgs> = {
[P in keyof T & keyof AggregateTele_carte]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateTele_carte[P]>
: Prisma.GetScalarType<T[P], AggregateTele_carte[P]>
}
export type tele_carteGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.tele_carteWhereInput
orderBy?: Prisma.tele_carteOrderByWithAggregationInput | Prisma.tele_carteOrderByWithAggregationInput[]
by: Prisma.Tele_carteScalarFieldEnum[] | Prisma.Tele_carteScalarFieldEnum
having?: Prisma.tele_carteScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Tele_carteCountAggregateInputType | true
_avg?: Tele_carteAvgAggregateInputType
_sum?: Tele_carteSumAggregateInputType
_min?: Tele_carteMinAggregateInputType
_max?: Tele_carteMaxAggregateInputType
}
export type Tele_carteGroupByOutputType = {
id: number
delivery_id: number
service_id: number
channels: string
_count: Tele_carteCountAggregateOutputType | null
_avg: Tele_carteAvgAggregateOutputType | null
_sum: Tele_carteSumAggregateOutputType | null
_min: Tele_carteMinAggregateOutputType | null
_max: Tele_carteMaxAggregateOutputType | null
}
type GetTele_carteGroupByPayload<T extends tele_carteGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Tele_carteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Tele_carteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Tele_carteGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Tele_carteGroupByOutputType[P]>
}
>
>
export type tele_carteWhereInput = {
AND?: Prisma.tele_carteWhereInput | Prisma.tele_carteWhereInput[]
OR?: Prisma.tele_carteWhereInput[]
NOT?: Prisma.tele_carteWhereInput | Prisma.tele_carteWhereInput[]
id?: Prisma.IntFilter<"tele_carte"> | number
delivery_id?: Prisma.IntFilter<"tele_carte"> | number
service_id?: Prisma.IntFilter<"tele_carte"> | number
channels?: Prisma.StringFilter<"tele_carte"> | string
}
export type tele_carteOrderByWithRelationInput = {
id?: Prisma.SortOrder
delivery_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
channels?: Prisma.SortOrder
_relevance?: Prisma.tele_carteOrderByRelevanceInput
}
export type tele_carteWhereUniqueInput = Prisma.AtLeast<{
id?: number
delivery_id?: number
AND?: Prisma.tele_carteWhereInput | Prisma.tele_carteWhereInput[]
OR?: Prisma.tele_carteWhereInput[]
NOT?: Prisma.tele_carteWhereInput | Prisma.tele_carteWhereInput[]
service_id?: Prisma.IntFilter<"tele_carte"> | number
channels?: Prisma.StringFilter<"tele_carte"> | string
}, "id" | "delivery_id">
export type tele_carteOrderByWithAggregationInput = {
id?: Prisma.SortOrder
delivery_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
channels?: Prisma.SortOrder
_count?: Prisma.tele_carteCountOrderByAggregateInput
_avg?: Prisma.tele_carteAvgOrderByAggregateInput
_max?: Prisma.tele_carteMaxOrderByAggregateInput
_min?: Prisma.tele_carteMinOrderByAggregateInput
_sum?: Prisma.tele_carteSumOrderByAggregateInput
}
export type tele_carteScalarWhereWithAggregatesInput = {
AND?: Prisma.tele_carteScalarWhereWithAggregatesInput | Prisma.tele_carteScalarWhereWithAggregatesInput[]
OR?: Prisma.tele_carteScalarWhereWithAggregatesInput[]
NOT?: Prisma.tele_carteScalarWhereWithAggregatesInput | Prisma.tele_carteScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"tele_carte"> | number
delivery_id?: Prisma.IntWithAggregatesFilter<"tele_carte"> | number
service_id?: Prisma.IntWithAggregatesFilter<"tele_carte"> | number
channels?: Prisma.StringWithAggregatesFilter<"tele_carte"> | string
}
export type tele_carteCreateInput = {
delivery_id?: number
service_id: number
channels: string
}
export type tele_carteUncheckedCreateInput = {
id?: number
delivery_id?: number
service_id: number
channels: string
}
export type tele_carteUpdateInput = {
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
service_id?: Prisma.IntFieldUpdateOperationsInput | number
channels?: Prisma.StringFieldUpdateOperationsInput | string
}
export type tele_carteUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
service_id?: Prisma.IntFieldUpdateOperationsInput | number
channels?: Prisma.StringFieldUpdateOperationsInput | string
}
export type tele_carteCreateManyInput = {
id?: number
delivery_id?: number
service_id: number
channels: string
}
export type tele_carteUpdateManyMutationInput = {
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
service_id?: Prisma.IntFieldUpdateOperationsInput | number
channels?: Prisma.StringFieldUpdateOperationsInput | string
}
export type tele_carteUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
delivery_id?: Prisma.IntFieldUpdateOperationsInput | number
service_id?: Prisma.IntFieldUpdateOperationsInput | number
channels?: Prisma.StringFieldUpdateOperationsInput | string
}
export type tele_carteOrderByRelevanceInput = {
fields: Prisma.tele_carteOrderByRelevanceFieldEnum | Prisma.tele_carteOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type tele_carteCountOrderByAggregateInput = {
id?: Prisma.SortOrder
delivery_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
channels?: Prisma.SortOrder
}
export type tele_carteAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
delivery_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
}
export type tele_carteMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
delivery_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
channels?: Prisma.SortOrder
}
export type tele_carteMinOrderByAggregateInput = {
id?: Prisma.SortOrder
delivery_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
channels?: Prisma.SortOrder
}
export type tele_carteSumOrderByAggregateInput = {
id?: Prisma.SortOrder
delivery_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
}
export type tele_carteSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
delivery_id?: boolean
service_id?: boolean
channels?: boolean
}, ExtArgs["result"]["tele_carte"]>
export type tele_carteSelectScalar = {
id?: boolean
delivery_id?: boolean
service_id?: boolean
channels?: boolean
}
export type tele_carteOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "delivery_id" | "service_id" | "channels", ExtArgs["result"]["tele_carte"]>
export type $tele_cartePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "tele_carte"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
delivery_id: number
service_id: number
channels: string
}, ExtArgs["result"]["tele_carte"]>
composites: {}
}
export type tele_carteGetPayload<S extends boolean | null | undefined | tele_carteDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tele_cartePayload, S>
export type tele_carteCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<tele_carteFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Tele_carteCountAggregateInputType | true
}
export interface tele_carteDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['tele_carte'], meta: { name: 'tele_carte' } }
/**
* Find zero or one Tele_carte that matches the filter.
* @param {tele_carteFindUniqueArgs} args - Arguments to find a Tele_carte
* @example
* // Get one Tele_carte
* const tele_carte = await prisma.tele_carte.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends tele_carteFindUniqueArgs>(args: Prisma.SelectSubset<T, tele_carteFindUniqueArgs<ExtArgs>>): Prisma.Prisma__tele_carteClient<runtime.Types.Result.GetResult<Prisma.$tele_cartePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Tele_carte that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {tele_carteFindUniqueOrThrowArgs} args - Arguments to find a Tele_carte
* @example
* // Get one Tele_carte
* const tele_carte = await prisma.tele_carte.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends tele_carteFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, tele_carteFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__tele_carteClient<runtime.Types.Result.GetResult<Prisma.$tele_cartePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Tele_carte 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 {tele_carteFindFirstArgs} args - Arguments to find a Tele_carte
* @example
* // Get one Tele_carte
* const tele_carte = await prisma.tele_carte.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends tele_carteFindFirstArgs>(args?: Prisma.SelectSubset<T, tele_carteFindFirstArgs<ExtArgs>>): Prisma.Prisma__tele_carteClient<runtime.Types.Result.GetResult<Prisma.$tele_cartePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Tele_carte 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 {tele_carteFindFirstOrThrowArgs} args - Arguments to find a Tele_carte
* @example
* // Get one Tele_carte
* const tele_carte = await prisma.tele_carte.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends tele_carteFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, tele_carteFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__tele_carteClient<runtime.Types.Result.GetResult<Prisma.$tele_cartePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Tele_cartes 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 {tele_carteFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Tele_cartes
* const tele_cartes = await prisma.tele_carte.findMany()
*
* // Get first 10 Tele_cartes
* const tele_cartes = await prisma.tele_carte.findMany({ take: 10 })
*
* // Only select the `id`
* const tele_carteWithIdOnly = await prisma.tele_carte.findMany({ select: { id: true } })
*
*/
findMany<T extends tele_carteFindManyArgs>(args?: Prisma.SelectSubset<T, tele_carteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tele_cartePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Tele_carte.
* @param {tele_carteCreateArgs} args - Arguments to create a Tele_carte.
* @example
* // Create one Tele_carte
* const Tele_carte = await prisma.tele_carte.create({
* data: {
* // ... data to create a Tele_carte
* }
* })
*
*/
create<T extends tele_carteCreateArgs>(args: Prisma.SelectSubset<T, tele_carteCreateArgs<ExtArgs>>): Prisma.Prisma__tele_carteClient<runtime.Types.Result.GetResult<Prisma.$tele_cartePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Tele_cartes.
* @param {tele_carteCreateManyArgs} args - Arguments to create many Tele_cartes.
* @example
* // Create many Tele_cartes
* const tele_carte = await prisma.tele_carte.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends tele_carteCreateManyArgs>(args?: Prisma.SelectSubset<T, tele_carteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Tele_carte.
* @param {tele_carteDeleteArgs} args - Arguments to delete one Tele_carte.
* @example
* // Delete one Tele_carte
* const Tele_carte = await prisma.tele_carte.delete({
* where: {
* // ... filter to delete one Tele_carte
* }
* })
*
*/
delete<T extends tele_carteDeleteArgs>(args: Prisma.SelectSubset<T, tele_carteDeleteArgs<ExtArgs>>): Prisma.Prisma__tele_carteClient<runtime.Types.Result.GetResult<Prisma.$tele_cartePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Tele_carte.
* @param {tele_carteUpdateArgs} args - Arguments to update one Tele_carte.
* @example
* // Update one Tele_carte
* const tele_carte = await prisma.tele_carte.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends tele_carteUpdateArgs>(args: Prisma.SelectSubset<T, tele_carteUpdateArgs<ExtArgs>>): Prisma.Prisma__tele_carteClient<runtime.Types.Result.GetResult<Prisma.$tele_cartePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Tele_cartes.
* @param {tele_carteDeleteManyArgs} args - Arguments to filter Tele_cartes to delete.
* @example
* // Delete a few Tele_cartes
* const { count } = await prisma.tele_carte.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends tele_carteDeleteManyArgs>(args?: Prisma.SelectSubset<T, tele_carteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Tele_cartes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {tele_carteUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Tele_cartes
* const tele_carte = await prisma.tele_carte.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends tele_carteUpdateManyArgs>(args: Prisma.SelectSubset<T, tele_carteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Tele_carte.
* @param {tele_carteUpsertArgs} args - Arguments to update or create a Tele_carte.
* @example
* // Update or create a Tele_carte
* const tele_carte = await prisma.tele_carte.upsert({
* create: {
* // ... data to create a Tele_carte
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Tele_carte we want to update
* }
* })
*/
upsert<T extends tele_carteUpsertArgs>(args: Prisma.SelectSubset<T, tele_carteUpsertArgs<ExtArgs>>): Prisma.Prisma__tele_carteClient<runtime.Types.Result.GetResult<Prisma.$tele_cartePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Tele_cartes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {tele_carteCountArgs} args - Arguments to filter Tele_cartes to count.
* @example
* // Count the number of Tele_cartes
* const count = await prisma.tele_carte.count({
* where: {
* // ... the filter for the Tele_cartes we want to count
* }
* })
**/
count<T extends tele_carteCountArgs>(
args?: Prisma.Subset<T, tele_carteCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Tele_carteCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Tele_carte.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Tele_carteAggregateArgs} 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 Tele_carteAggregateArgs>(args: Prisma.Subset<T, Tele_carteAggregateArgs>): Prisma.PrismaPromise<GetTele_carteAggregateType<T>>
/**
* Group by Tele_carte.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {tele_carteGroupByArgs} 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 tele_carteGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: tele_carteGroupByArgs['orderBy'] }
: { orderBy?: tele_carteGroupByArgs['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, tele_carteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTele_carteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the tele_carte model
*/
readonly fields: tele_carteFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for tele_carte.
* 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__tele_carteClient<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 tele_carte model
*/
export interface tele_carteFieldRefs {
readonly id: Prisma.FieldRef<"tele_carte", 'Int'>
readonly delivery_id: Prisma.FieldRef<"tele_carte", 'Int'>
readonly service_id: Prisma.FieldRef<"tele_carte", 'Int'>
readonly channels: Prisma.FieldRef<"tele_carte", 'String'>
}
// Custom InputTypes
/**
* tele_carte findUnique
*/
export type tele_carteFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
/**
* Filter, which tele_carte to fetch.
*/
where: Prisma.tele_carteWhereUniqueInput
}
/**
* tele_carte findUniqueOrThrow
*/
export type tele_carteFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
/**
* Filter, which tele_carte to fetch.
*/
where: Prisma.tele_carteWhereUniqueInput
}
/**
* tele_carte findFirst
*/
export type tele_carteFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
/**
* Filter, which tele_carte to fetch.
*/
where?: Prisma.tele_carteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of tele_cartes to fetch.
*/
orderBy?: Prisma.tele_carteOrderByWithRelationInput | Prisma.tele_carteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for tele_cartes.
*/
cursor?: Prisma.tele_carteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` tele_cartes 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` tele_cartes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of tele_cartes.
*/
distinct?: Prisma.Tele_carteScalarFieldEnum | Prisma.Tele_carteScalarFieldEnum[]
}
/**
* tele_carte findFirstOrThrow
*/
export type tele_carteFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
/**
* Filter, which tele_carte to fetch.
*/
where?: Prisma.tele_carteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of tele_cartes to fetch.
*/
orderBy?: Prisma.tele_carteOrderByWithRelationInput | Prisma.tele_carteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for tele_cartes.
*/
cursor?: Prisma.tele_carteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` tele_cartes 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` tele_cartes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of tele_cartes.
*/
distinct?: Prisma.Tele_carteScalarFieldEnum | Prisma.Tele_carteScalarFieldEnum[]
}
/**
* tele_carte findMany
*/
export type tele_carteFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
/**
* Filter, which tele_cartes to fetch.
*/
where?: Prisma.tele_carteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of tele_cartes to fetch.
*/
orderBy?: Prisma.tele_carteOrderByWithRelationInput | Prisma.tele_carteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing tele_cartes.
*/
cursor?: Prisma.tele_carteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` tele_cartes 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` tele_cartes.
*/
skip?: number
distinct?: Prisma.Tele_carteScalarFieldEnum | Prisma.Tele_carteScalarFieldEnum[]
}
/**
* tele_carte create
*/
export type tele_carteCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
/**
* The data needed to create a tele_carte.
*/
data: Prisma.XOR<Prisma.tele_carteCreateInput, Prisma.tele_carteUncheckedCreateInput>
}
/**
* tele_carte createMany
*/
export type tele_carteCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many tele_cartes.
*/
data: Prisma.tele_carteCreateManyInput | Prisma.tele_carteCreateManyInput[]
skipDuplicates?: boolean
}
/**
* tele_carte update
*/
export type tele_carteUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
/**
* The data needed to update a tele_carte.
*/
data: Prisma.XOR<Prisma.tele_carteUpdateInput, Prisma.tele_carteUncheckedUpdateInput>
/**
* Choose, which tele_carte to update.
*/
where: Prisma.tele_carteWhereUniqueInput
}
/**
* tele_carte updateMany
*/
export type tele_carteUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update tele_cartes.
*/
data: Prisma.XOR<Prisma.tele_carteUpdateManyMutationInput, Prisma.tele_carteUncheckedUpdateManyInput>
/**
* Filter which tele_cartes to update
*/
where?: Prisma.tele_carteWhereInput
/**
* Limit how many tele_cartes to update.
*/
limit?: number
}
/**
* tele_carte upsert
*/
export type tele_carteUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
/**
* The filter to search for the tele_carte to update in case it exists.
*/
where: Prisma.tele_carteWhereUniqueInput
/**
* In case the tele_carte found by the `where` argument doesn't exist, create a new tele_carte with this data.
*/
create: Prisma.XOR<Prisma.tele_carteCreateInput, Prisma.tele_carteUncheckedCreateInput>
/**
* In case the tele_carte was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.tele_carteUpdateInput, Prisma.tele_carteUncheckedUpdateInput>
}
/**
* tele_carte delete
*/
export type tele_carteDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
/**
* Filter which tele_carte to delete.
*/
where: Prisma.tele_carteWhereUniqueInput
}
/**
* tele_carte deleteMany
*/
export type tele_carteDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which tele_cartes to delete
*/
where?: Prisma.tele_carteWhereInput
/**
* Limit how many tele_cartes to delete.
*/
limit?: number
}
/**
* tele_carte without action
*/
export type tele_carteDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tele_carte
*/
select?: Prisma.tele_carteSelect<ExtArgs> | null
/**
* Omit specific fields from the tele_carte
*/
omit?: Prisma.tele_carteOmit<ExtArgs> | null
}