1028 lines
35 KiB
TypeScript
1028 lines
35 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_groupe` 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_groupe
|
|
*
|
|
*/
|
|
export type tele_groupeModel = runtime.Types.Result.DefaultSelection<Prisma.$tele_groupePayload>
|
|
|
|
export type AggregateTele_groupe = {
|
|
_count: Tele_groupeCountAggregateOutputType | null
|
|
_avg: Tele_groupeAvgAggregateOutputType | null
|
|
_sum: Tele_groupeSumAggregateOutputType | null
|
|
_min: Tele_groupeMinAggregateOutputType | null
|
|
_max: Tele_groupeMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Tele_groupeAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type Tele_groupeSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type Tele_groupeMinAggregateOutputType = {
|
|
id: number | null
|
|
nom: string | null
|
|
small_desc: string | null
|
|
}
|
|
|
|
export type Tele_groupeMaxAggregateOutputType = {
|
|
id: number | null
|
|
nom: string | null
|
|
small_desc: string | null
|
|
}
|
|
|
|
export type Tele_groupeCountAggregateOutputType = {
|
|
id: number
|
|
nom: number
|
|
small_desc: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Tele_groupeAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type Tele_groupeSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type Tele_groupeMinAggregateInputType = {
|
|
id?: true
|
|
nom?: true
|
|
small_desc?: true
|
|
}
|
|
|
|
export type Tele_groupeMaxAggregateInputType = {
|
|
id?: true
|
|
nom?: true
|
|
small_desc?: true
|
|
}
|
|
|
|
export type Tele_groupeCountAggregateInputType = {
|
|
id?: true
|
|
nom?: true
|
|
small_desc?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Tele_groupeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which tele_groupe to aggregate.
|
|
*/
|
|
where?: Prisma.tele_groupeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of tele_groupes to fetch.
|
|
*/
|
|
orderBy?: Prisma.tele_groupeOrderByWithRelationInput | Prisma.tele_groupeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.tele_groupeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` tele_groupes 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_groupes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned tele_groupes
|
|
**/
|
|
_count?: true | Tele_groupeCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Tele_groupeAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Tele_groupeSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Tele_groupeMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Tele_groupeMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTele_groupeAggregateType<T extends Tele_groupeAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTele_groupe]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTele_groupe[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTele_groupe[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type tele_groupeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.tele_groupeWhereInput
|
|
orderBy?: Prisma.tele_groupeOrderByWithAggregationInput | Prisma.tele_groupeOrderByWithAggregationInput[]
|
|
by: Prisma.Tele_groupeScalarFieldEnum[] | Prisma.Tele_groupeScalarFieldEnum
|
|
having?: Prisma.tele_groupeScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Tele_groupeCountAggregateInputType | true
|
|
_avg?: Tele_groupeAvgAggregateInputType
|
|
_sum?: Tele_groupeSumAggregateInputType
|
|
_min?: Tele_groupeMinAggregateInputType
|
|
_max?: Tele_groupeMaxAggregateInputType
|
|
}
|
|
|
|
export type Tele_groupeGroupByOutputType = {
|
|
id: number
|
|
nom: string
|
|
small_desc: string
|
|
_count: Tele_groupeCountAggregateOutputType | null
|
|
_avg: Tele_groupeAvgAggregateOutputType | null
|
|
_sum: Tele_groupeSumAggregateOutputType | null
|
|
_min: Tele_groupeMinAggregateOutputType | null
|
|
_max: Tele_groupeMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetTele_groupeGroupByPayload<T extends tele_groupeGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Tele_groupeGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Tele_groupeGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Tele_groupeGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Tele_groupeGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type tele_groupeWhereInput = {
|
|
AND?: Prisma.tele_groupeWhereInput | Prisma.tele_groupeWhereInput[]
|
|
OR?: Prisma.tele_groupeWhereInput[]
|
|
NOT?: Prisma.tele_groupeWhereInput | Prisma.tele_groupeWhereInput[]
|
|
id?: Prisma.IntFilter<"tele_groupe"> | number
|
|
nom?: Prisma.StringFilter<"tele_groupe"> | string
|
|
small_desc?: Prisma.StringFilter<"tele_groupe"> | string
|
|
}
|
|
|
|
export type tele_groupeOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
nom?: Prisma.SortOrder
|
|
small_desc?: Prisma.SortOrder
|
|
_relevance?: Prisma.tele_groupeOrderByRelevanceInput
|
|
}
|
|
|
|
export type tele_groupeWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.tele_groupeWhereInput | Prisma.tele_groupeWhereInput[]
|
|
OR?: Prisma.tele_groupeWhereInput[]
|
|
NOT?: Prisma.tele_groupeWhereInput | Prisma.tele_groupeWhereInput[]
|
|
nom?: Prisma.StringFilter<"tele_groupe"> | string
|
|
small_desc?: Prisma.StringFilter<"tele_groupe"> | string
|
|
}, "id">
|
|
|
|
export type tele_groupeOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
nom?: Prisma.SortOrder
|
|
small_desc?: Prisma.SortOrder
|
|
_count?: Prisma.tele_groupeCountOrderByAggregateInput
|
|
_avg?: Prisma.tele_groupeAvgOrderByAggregateInput
|
|
_max?: Prisma.tele_groupeMaxOrderByAggregateInput
|
|
_min?: Prisma.tele_groupeMinOrderByAggregateInput
|
|
_sum?: Prisma.tele_groupeSumOrderByAggregateInput
|
|
}
|
|
|
|
export type tele_groupeScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.tele_groupeScalarWhereWithAggregatesInput | Prisma.tele_groupeScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.tele_groupeScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.tele_groupeScalarWhereWithAggregatesInput | Prisma.tele_groupeScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"tele_groupe"> | number
|
|
nom?: Prisma.StringWithAggregatesFilter<"tele_groupe"> | string
|
|
small_desc?: Prisma.StringWithAggregatesFilter<"tele_groupe"> | string
|
|
}
|
|
|
|
export type tele_groupeCreateInput = {
|
|
nom: string
|
|
small_desc: string
|
|
}
|
|
|
|
export type tele_groupeUncheckedCreateInput = {
|
|
id?: number
|
|
nom: string
|
|
small_desc: string
|
|
}
|
|
|
|
export type tele_groupeUpdateInput = {
|
|
nom?: Prisma.StringFieldUpdateOperationsInput | string
|
|
small_desc?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type tele_groupeUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
nom?: Prisma.StringFieldUpdateOperationsInput | string
|
|
small_desc?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type tele_groupeCreateManyInput = {
|
|
id?: number
|
|
nom: string
|
|
small_desc: string
|
|
}
|
|
|
|
export type tele_groupeUpdateManyMutationInput = {
|
|
nom?: Prisma.StringFieldUpdateOperationsInput | string
|
|
small_desc?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type tele_groupeUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
nom?: Prisma.StringFieldUpdateOperationsInput | string
|
|
small_desc?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type tele_groupeOrderByRelevanceInput = {
|
|
fields: Prisma.tele_groupeOrderByRelevanceFieldEnum | Prisma.tele_groupeOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type tele_groupeCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
nom?: Prisma.SortOrder
|
|
small_desc?: Prisma.SortOrder
|
|
}
|
|
|
|
export type tele_groupeAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type tele_groupeMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
nom?: Prisma.SortOrder
|
|
small_desc?: Prisma.SortOrder
|
|
}
|
|
|
|
export type tele_groupeMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
nom?: Prisma.SortOrder
|
|
small_desc?: Prisma.SortOrder
|
|
}
|
|
|
|
export type tele_groupeSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type tele_groupeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
nom?: boolean
|
|
small_desc?: boolean
|
|
}, ExtArgs["result"]["tele_groupe"]>
|
|
|
|
|
|
|
|
export type tele_groupeSelectScalar = {
|
|
id?: boolean
|
|
nom?: boolean
|
|
small_desc?: boolean
|
|
}
|
|
|
|
export type tele_groupeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "nom" | "small_desc", ExtArgs["result"]["tele_groupe"]>
|
|
|
|
export type $tele_groupePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "tele_groupe"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
nom: string
|
|
small_desc: string
|
|
}, ExtArgs["result"]["tele_groupe"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type tele_groupeGetPayload<S extends boolean | null | undefined | tele_groupeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tele_groupePayload, S>
|
|
|
|
export type tele_groupeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<tele_groupeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Tele_groupeCountAggregateInputType | true
|
|
}
|
|
|
|
export interface tele_groupeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['tele_groupe'], meta: { name: 'tele_groupe' } }
|
|
/**
|
|
* Find zero or one Tele_groupe that matches the filter.
|
|
* @param {tele_groupeFindUniqueArgs} args - Arguments to find a Tele_groupe
|
|
* @example
|
|
* // Get one Tele_groupe
|
|
* const tele_groupe = await prisma.tele_groupe.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends tele_groupeFindUniqueArgs>(args: Prisma.SelectSubset<T, tele_groupeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__tele_groupeClient<runtime.Types.Result.GetResult<Prisma.$tele_groupePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Tele_groupe that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {tele_groupeFindUniqueOrThrowArgs} args - Arguments to find a Tele_groupe
|
|
* @example
|
|
* // Get one Tele_groupe
|
|
* const tele_groupe = await prisma.tele_groupe.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends tele_groupeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, tele_groupeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__tele_groupeClient<runtime.Types.Result.GetResult<Prisma.$tele_groupePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Tele_groupe 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_groupeFindFirstArgs} args - Arguments to find a Tele_groupe
|
|
* @example
|
|
* // Get one Tele_groupe
|
|
* const tele_groupe = await prisma.tele_groupe.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends tele_groupeFindFirstArgs>(args?: Prisma.SelectSubset<T, tele_groupeFindFirstArgs<ExtArgs>>): Prisma.Prisma__tele_groupeClient<runtime.Types.Result.GetResult<Prisma.$tele_groupePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Tele_groupe 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_groupeFindFirstOrThrowArgs} args - Arguments to find a Tele_groupe
|
|
* @example
|
|
* // Get one Tele_groupe
|
|
* const tele_groupe = await prisma.tele_groupe.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends tele_groupeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, tele_groupeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__tele_groupeClient<runtime.Types.Result.GetResult<Prisma.$tele_groupePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Tele_groupes 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_groupeFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Tele_groupes
|
|
* const tele_groupes = await prisma.tele_groupe.findMany()
|
|
*
|
|
* // Get first 10 Tele_groupes
|
|
* const tele_groupes = await prisma.tele_groupe.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const tele_groupeWithIdOnly = await prisma.tele_groupe.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends tele_groupeFindManyArgs>(args?: Prisma.SelectSubset<T, tele_groupeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tele_groupePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Tele_groupe.
|
|
* @param {tele_groupeCreateArgs} args - Arguments to create a Tele_groupe.
|
|
* @example
|
|
* // Create one Tele_groupe
|
|
* const Tele_groupe = await prisma.tele_groupe.create({
|
|
* data: {
|
|
* // ... data to create a Tele_groupe
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends tele_groupeCreateArgs>(args: Prisma.SelectSubset<T, tele_groupeCreateArgs<ExtArgs>>): Prisma.Prisma__tele_groupeClient<runtime.Types.Result.GetResult<Prisma.$tele_groupePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Tele_groupes.
|
|
* @param {tele_groupeCreateManyArgs} args - Arguments to create many Tele_groupes.
|
|
* @example
|
|
* // Create many Tele_groupes
|
|
* const tele_groupe = await prisma.tele_groupe.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends tele_groupeCreateManyArgs>(args?: Prisma.SelectSubset<T, tele_groupeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a Tele_groupe.
|
|
* @param {tele_groupeDeleteArgs} args - Arguments to delete one Tele_groupe.
|
|
* @example
|
|
* // Delete one Tele_groupe
|
|
* const Tele_groupe = await prisma.tele_groupe.delete({
|
|
* where: {
|
|
* // ... filter to delete one Tele_groupe
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends tele_groupeDeleteArgs>(args: Prisma.SelectSubset<T, tele_groupeDeleteArgs<ExtArgs>>): Prisma.Prisma__tele_groupeClient<runtime.Types.Result.GetResult<Prisma.$tele_groupePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Tele_groupe.
|
|
* @param {tele_groupeUpdateArgs} args - Arguments to update one Tele_groupe.
|
|
* @example
|
|
* // Update one Tele_groupe
|
|
* const tele_groupe = await prisma.tele_groupe.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends tele_groupeUpdateArgs>(args: Prisma.SelectSubset<T, tele_groupeUpdateArgs<ExtArgs>>): Prisma.Prisma__tele_groupeClient<runtime.Types.Result.GetResult<Prisma.$tele_groupePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Tele_groupes.
|
|
* @param {tele_groupeDeleteManyArgs} args - Arguments to filter Tele_groupes to delete.
|
|
* @example
|
|
* // Delete a few Tele_groupes
|
|
* const { count } = await prisma.tele_groupe.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends tele_groupeDeleteManyArgs>(args?: Prisma.SelectSubset<T, tele_groupeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Tele_groupes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {tele_groupeUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Tele_groupes
|
|
* const tele_groupe = await prisma.tele_groupe.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends tele_groupeUpdateManyArgs>(args: Prisma.SelectSubset<T, tele_groupeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Tele_groupe.
|
|
* @param {tele_groupeUpsertArgs} args - Arguments to update or create a Tele_groupe.
|
|
* @example
|
|
* // Update or create a Tele_groupe
|
|
* const tele_groupe = await prisma.tele_groupe.upsert({
|
|
* create: {
|
|
* // ... data to create a Tele_groupe
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Tele_groupe we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends tele_groupeUpsertArgs>(args: Prisma.SelectSubset<T, tele_groupeUpsertArgs<ExtArgs>>): Prisma.Prisma__tele_groupeClient<runtime.Types.Result.GetResult<Prisma.$tele_groupePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Tele_groupes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {tele_groupeCountArgs} args - Arguments to filter Tele_groupes to count.
|
|
* @example
|
|
* // Count the number of Tele_groupes
|
|
* const count = await prisma.tele_groupe.count({
|
|
* where: {
|
|
* // ... the filter for the Tele_groupes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends tele_groupeCountArgs>(
|
|
args?: Prisma.Subset<T, tele_groupeCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Tele_groupeCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Tele_groupe.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Tele_groupeAggregateArgs} 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_groupeAggregateArgs>(args: Prisma.Subset<T, Tele_groupeAggregateArgs>): Prisma.PrismaPromise<GetTele_groupeAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Tele_groupe.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {tele_groupeGroupByArgs} 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_groupeGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: tele_groupeGroupByArgs['orderBy'] }
|
|
: { orderBy?: tele_groupeGroupByArgs['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_groupeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTele_groupeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the tele_groupe model
|
|
*/
|
|
readonly fields: tele_groupeFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for tele_groupe.
|
|
* 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_groupeClient<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_groupe model
|
|
*/
|
|
export interface tele_groupeFieldRefs {
|
|
readonly id: Prisma.FieldRef<"tele_groupe", 'Int'>
|
|
readonly nom: Prisma.FieldRef<"tele_groupe", 'String'>
|
|
readonly small_desc: Prisma.FieldRef<"tele_groupe", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* tele_groupe findUnique
|
|
*/
|
|
export type tele_groupeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_groupe to fetch.
|
|
*/
|
|
where: Prisma.tele_groupeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tele_groupe findUniqueOrThrow
|
|
*/
|
|
export type tele_groupeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_groupe to fetch.
|
|
*/
|
|
where: Prisma.tele_groupeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tele_groupe findFirst
|
|
*/
|
|
export type tele_groupeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_groupe to fetch.
|
|
*/
|
|
where?: Prisma.tele_groupeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of tele_groupes to fetch.
|
|
*/
|
|
orderBy?: Prisma.tele_groupeOrderByWithRelationInput | Prisma.tele_groupeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for tele_groupes.
|
|
*/
|
|
cursor?: Prisma.tele_groupeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` tele_groupes 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_groupes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of tele_groupes.
|
|
*/
|
|
distinct?: Prisma.Tele_groupeScalarFieldEnum | Prisma.Tele_groupeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* tele_groupe findFirstOrThrow
|
|
*/
|
|
export type tele_groupeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_groupe to fetch.
|
|
*/
|
|
where?: Prisma.tele_groupeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of tele_groupes to fetch.
|
|
*/
|
|
orderBy?: Prisma.tele_groupeOrderByWithRelationInput | Prisma.tele_groupeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for tele_groupes.
|
|
*/
|
|
cursor?: Prisma.tele_groupeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` tele_groupes 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_groupes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of tele_groupes.
|
|
*/
|
|
distinct?: Prisma.Tele_groupeScalarFieldEnum | Prisma.Tele_groupeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* tele_groupe findMany
|
|
*/
|
|
export type tele_groupeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_groupes to fetch.
|
|
*/
|
|
where?: Prisma.tele_groupeWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of tele_groupes to fetch.
|
|
*/
|
|
orderBy?: Prisma.tele_groupeOrderByWithRelationInput | Prisma.tele_groupeOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing tele_groupes.
|
|
*/
|
|
cursor?: Prisma.tele_groupeWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` tele_groupes 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_groupes.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.Tele_groupeScalarFieldEnum | Prisma.Tele_groupeScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* tele_groupe create
|
|
*/
|
|
export type tele_groupeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a tele_groupe.
|
|
*/
|
|
data: Prisma.XOR<Prisma.tele_groupeCreateInput, Prisma.tele_groupeUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* tele_groupe createMany
|
|
*/
|
|
export type tele_groupeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many tele_groupes.
|
|
*/
|
|
data: Prisma.tele_groupeCreateManyInput | Prisma.tele_groupeCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* tele_groupe update
|
|
*/
|
|
export type tele_groupeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a tele_groupe.
|
|
*/
|
|
data: Prisma.XOR<Prisma.tele_groupeUpdateInput, Prisma.tele_groupeUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which tele_groupe to update.
|
|
*/
|
|
where: Prisma.tele_groupeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tele_groupe updateMany
|
|
*/
|
|
export type tele_groupeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update tele_groupes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.tele_groupeUpdateManyMutationInput, Prisma.tele_groupeUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which tele_groupes to update
|
|
*/
|
|
where?: Prisma.tele_groupeWhereInput
|
|
/**
|
|
* Limit how many tele_groupes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* tele_groupe upsert
|
|
*/
|
|
export type tele_groupeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the tele_groupe to update in case it exists.
|
|
*/
|
|
where: Prisma.tele_groupeWhereUniqueInput
|
|
/**
|
|
* In case the tele_groupe found by the `where` argument doesn't exist, create a new tele_groupe with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.tele_groupeCreateInput, Prisma.tele_groupeUncheckedCreateInput>
|
|
/**
|
|
* In case the tele_groupe was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.tele_groupeUpdateInput, Prisma.tele_groupeUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* tele_groupe delete
|
|
*/
|
|
export type tele_groupeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which tele_groupe to delete.
|
|
*/
|
|
where: Prisma.tele_groupeWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tele_groupe deleteMany
|
|
*/
|
|
export type tele_groupeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which tele_groupes to delete
|
|
*/
|
|
where?: Prisma.tele_groupeWhereInput
|
|
/**
|
|
* Limit how many tele_groupes to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* tele_groupe without action
|
|
*/
|
|
export type tele_groupeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_groupe
|
|
*/
|
|
select?: Prisma.tele_groupeSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_groupe
|
|
*/
|
|
omit?: Prisma.tele_groupeOmit<ExtArgs> | null
|
|
}
|