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

1054 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 `fournisseur` 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 fournisseur
*
*/
export type fournisseurModel = runtime.Types.Result.DefaultSelection<Prisma.$fournisseurPayload>
export type AggregateFournisseur = {
_count: FournisseurCountAggregateOutputType | null
_avg: FournisseurAvgAggregateOutputType | null
_sum: FournisseurSumAggregateOutputType | null
_min: FournisseurMinAggregateOutputType | null
_max: FournisseurMaxAggregateOutputType | null
}
export type FournisseurAvgAggregateOutputType = {
id: number | null
}
export type FournisseurSumAggregateOutputType = {
id: number | null
}
export type FournisseurMinAggregateOutputType = {
id: number | null
nom: string | null
email: string | null
actif: boolean | null
}
export type FournisseurMaxAggregateOutputType = {
id: number | null
nom: string | null
email: string | null
actif: boolean | null
}
export type FournisseurCountAggregateOutputType = {
id: number
nom: number
email: number
actif: number
_all: number
}
export type FournisseurAvgAggregateInputType = {
id?: true
}
export type FournisseurSumAggregateInputType = {
id?: true
}
export type FournisseurMinAggregateInputType = {
id?: true
nom?: true
email?: true
actif?: true
}
export type FournisseurMaxAggregateInputType = {
id?: true
nom?: true
email?: true
actif?: true
}
export type FournisseurCountAggregateInputType = {
id?: true
nom?: true
email?: true
actif?: true
_all?: true
}
export type FournisseurAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which fournisseur to aggregate.
*/
where?: Prisma.fournisseurWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of fournisseurs to fetch.
*/
orderBy?: Prisma.fournisseurOrderByWithRelationInput | Prisma.fournisseurOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.fournisseurWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` fournisseurs 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` fournisseurs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned fournisseurs
**/
_count?: true | FournisseurCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: FournisseurAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: FournisseurSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: FournisseurMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: FournisseurMaxAggregateInputType
}
export type GetFournisseurAggregateType<T extends FournisseurAggregateArgs> = {
[P in keyof T & keyof AggregateFournisseur]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateFournisseur[P]>
: Prisma.GetScalarType<T[P], AggregateFournisseur[P]>
}
export type fournisseurGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.fournisseurWhereInput
orderBy?: Prisma.fournisseurOrderByWithAggregationInput | Prisma.fournisseurOrderByWithAggregationInput[]
by: Prisma.FournisseurScalarFieldEnum[] | Prisma.FournisseurScalarFieldEnum
having?: Prisma.fournisseurScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: FournisseurCountAggregateInputType | true
_avg?: FournisseurAvgAggregateInputType
_sum?: FournisseurSumAggregateInputType
_min?: FournisseurMinAggregateInputType
_max?: FournisseurMaxAggregateInputType
}
export type FournisseurGroupByOutputType = {
id: number
nom: string
email: string
actif: boolean
_count: FournisseurCountAggregateOutputType | null
_avg: FournisseurAvgAggregateOutputType | null
_sum: FournisseurSumAggregateOutputType | null
_min: FournisseurMinAggregateOutputType | null
_max: FournisseurMaxAggregateOutputType | null
}
type GetFournisseurGroupByPayload<T extends fournisseurGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<FournisseurGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof FournisseurGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], FournisseurGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], FournisseurGroupByOutputType[P]>
}
>
>
export type fournisseurWhereInput = {
AND?: Prisma.fournisseurWhereInput | Prisma.fournisseurWhereInput[]
OR?: Prisma.fournisseurWhereInput[]
NOT?: Prisma.fournisseurWhereInput | Prisma.fournisseurWhereInput[]
id?: Prisma.IntFilter<"fournisseur"> | number
nom?: Prisma.StringFilter<"fournisseur"> | string
email?: Prisma.StringFilter<"fournisseur"> | string
actif?: Prisma.BoolFilter<"fournisseur"> | boolean
}
export type fournisseurOrderByWithRelationInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
email?: Prisma.SortOrder
actif?: Prisma.SortOrder
_relevance?: Prisma.fournisseurOrderByRelevanceInput
}
export type fournisseurWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.fournisseurWhereInput | Prisma.fournisseurWhereInput[]
OR?: Prisma.fournisseurWhereInput[]
NOT?: Prisma.fournisseurWhereInput | Prisma.fournisseurWhereInput[]
nom?: Prisma.StringFilter<"fournisseur"> | string
email?: Prisma.StringFilter<"fournisseur"> | string
actif?: Prisma.BoolFilter<"fournisseur"> | boolean
}, "id">
export type fournisseurOrderByWithAggregationInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
email?: Prisma.SortOrder
actif?: Prisma.SortOrder
_count?: Prisma.fournisseurCountOrderByAggregateInput
_avg?: Prisma.fournisseurAvgOrderByAggregateInput
_max?: Prisma.fournisseurMaxOrderByAggregateInput
_min?: Prisma.fournisseurMinOrderByAggregateInput
_sum?: Prisma.fournisseurSumOrderByAggregateInput
}
export type fournisseurScalarWhereWithAggregatesInput = {
AND?: Prisma.fournisseurScalarWhereWithAggregatesInput | Prisma.fournisseurScalarWhereWithAggregatesInput[]
OR?: Prisma.fournisseurScalarWhereWithAggregatesInput[]
NOT?: Prisma.fournisseurScalarWhereWithAggregatesInput | Prisma.fournisseurScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"fournisseur"> | number
nom?: Prisma.StringWithAggregatesFilter<"fournisseur"> | string
email?: Prisma.StringWithAggregatesFilter<"fournisseur"> | string
actif?: Prisma.BoolWithAggregatesFilter<"fournisseur"> | boolean
}
export type fournisseurCreateInput = {
nom: string
email: string
actif?: boolean
}
export type fournisseurUncheckedCreateInput = {
id?: number
nom: string
email: string
actif?: boolean
}
export type fournisseurUpdateInput = {
nom?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
actif?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type fournisseurUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
nom?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
actif?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type fournisseurCreateManyInput = {
id?: number
nom: string
email: string
actif?: boolean
}
export type fournisseurUpdateManyMutationInput = {
nom?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
actif?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type fournisseurUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
nom?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
actif?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type fournisseurOrderByRelevanceInput = {
fields: Prisma.fournisseurOrderByRelevanceFieldEnum | Prisma.fournisseurOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type fournisseurCountOrderByAggregateInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
email?: Prisma.SortOrder
actif?: Prisma.SortOrder
}
export type fournisseurAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type fournisseurMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
email?: Prisma.SortOrder
actif?: Prisma.SortOrder
}
export type fournisseurMinOrderByAggregateInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
email?: Prisma.SortOrder
actif?: Prisma.SortOrder
}
export type fournisseurSumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type fournisseurSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
nom?: boolean
email?: boolean
actif?: boolean
}, ExtArgs["result"]["fournisseur"]>
export type fournisseurSelectScalar = {
id?: boolean
nom?: boolean
email?: boolean
actif?: boolean
}
export type fournisseurOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "nom" | "email" | "actif", ExtArgs["result"]["fournisseur"]>
export type $fournisseurPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "fournisseur"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
nom: string
email: string
actif: boolean
}, ExtArgs["result"]["fournisseur"]>
composites: {}
}
export type fournisseurGetPayload<S extends boolean | null | undefined | fournisseurDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$fournisseurPayload, S>
export type fournisseurCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<fournisseurFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: FournisseurCountAggregateInputType | true
}
export interface fournisseurDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['fournisseur'], meta: { name: 'fournisseur' } }
/**
* Find zero or one Fournisseur that matches the filter.
* @param {fournisseurFindUniqueArgs} args - Arguments to find a Fournisseur
* @example
* // Get one Fournisseur
* const fournisseur = await prisma.fournisseur.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends fournisseurFindUniqueArgs>(args: Prisma.SelectSubset<T, fournisseurFindUniqueArgs<ExtArgs>>): Prisma.Prisma__fournisseurClient<runtime.Types.Result.GetResult<Prisma.$fournisseurPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Fournisseur that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {fournisseurFindUniqueOrThrowArgs} args - Arguments to find a Fournisseur
* @example
* // Get one Fournisseur
* const fournisseur = await prisma.fournisseur.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends fournisseurFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, fournisseurFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__fournisseurClient<runtime.Types.Result.GetResult<Prisma.$fournisseurPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Fournisseur 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 {fournisseurFindFirstArgs} args - Arguments to find a Fournisseur
* @example
* // Get one Fournisseur
* const fournisseur = await prisma.fournisseur.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends fournisseurFindFirstArgs>(args?: Prisma.SelectSubset<T, fournisseurFindFirstArgs<ExtArgs>>): Prisma.Prisma__fournisseurClient<runtime.Types.Result.GetResult<Prisma.$fournisseurPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Fournisseur 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 {fournisseurFindFirstOrThrowArgs} args - Arguments to find a Fournisseur
* @example
* // Get one Fournisseur
* const fournisseur = await prisma.fournisseur.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends fournisseurFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, fournisseurFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__fournisseurClient<runtime.Types.Result.GetResult<Prisma.$fournisseurPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Fournisseurs 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 {fournisseurFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Fournisseurs
* const fournisseurs = await prisma.fournisseur.findMany()
*
* // Get first 10 Fournisseurs
* const fournisseurs = await prisma.fournisseur.findMany({ take: 10 })
*
* // Only select the `id`
* const fournisseurWithIdOnly = await prisma.fournisseur.findMany({ select: { id: true } })
*
*/
findMany<T extends fournisseurFindManyArgs>(args?: Prisma.SelectSubset<T, fournisseurFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$fournisseurPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Fournisseur.
* @param {fournisseurCreateArgs} args - Arguments to create a Fournisseur.
* @example
* // Create one Fournisseur
* const Fournisseur = await prisma.fournisseur.create({
* data: {
* // ... data to create a Fournisseur
* }
* })
*
*/
create<T extends fournisseurCreateArgs>(args: Prisma.SelectSubset<T, fournisseurCreateArgs<ExtArgs>>): Prisma.Prisma__fournisseurClient<runtime.Types.Result.GetResult<Prisma.$fournisseurPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Fournisseurs.
* @param {fournisseurCreateManyArgs} args - Arguments to create many Fournisseurs.
* @example
* // Create many Fournisseurs
* const fournisseur = await prisma.fournisseur.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends fournisseurCreateManyArgs>(args?: Prisma.SelectSubset<T, fournisseurCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Fournisseur.
* @param {fournisseurDeleteArgs} args - Arguments to delete one Fournisseur.
* @example
* // Delete one Fournisseur
* const Fournisseur = await prisma.fournisseur.delete({
* where: {
* // ... filter to delete one Fournisseur
* }
* })
*
*/
delete<T extends fournisseurDeleteArgs>(args: Prisma.SelectSubset<T, fournisseurDeleteArgs<ExtArgs>>): Prisma.Prisma__fournisseurClient<runtime.Types.Result.GetResult<Prisma.$fournisseurPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Fournisseur.
* @param {fournisseurUpdateArgs} args - Arguments to update one Fournisseur.
* @example
* // Update one Fournisseur
* const fournisseur = await prisma.fournisseur.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends fournisseurUpdateArgs>(args: Prisma.SelectSubset<T, fournisseurUpdateArgs<ExtArgs>>): Prisma.Prisma__fournisseurClient<runtime.Types.Result.GetResult<Prisma.$fournisseurPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Fournisseurs.
* @param {fournisseurDeleteManyArgs} args - Arguments to filter Fournisseurs to delete.
* @example
* // Delete a few Fournisseurs
* const { count } = await prisma.fournisseur.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends fournisseurDeleteManyArgs>(args?: Prisma.SelectSubset<T, fournisseurDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Fournisseurs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {fournisseurUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Fournisseurs
* const fournisseur = await prisma.fournisseur.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends fournisseurUpdateManyArgs>(args: Prisma.SelectSubset<T, fournisseurUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Fournisseur.
* @param {fournisseurUpsertArgs} args - Arguments to update or create a Fournisseur.
* @example
* // Update or create a Fournisseur
* const fournisseur = await prisma.fournisseur.upsert({
* create: {
* // ... data to create a Fournisseur
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Fournisseur we want to update
* }
* })
*/
upsert<T extends fournisseurUpsertArgs>(args: Prisma.SelectSubset<T, fournisseurUpsertArgs<ExtArgs>>): Prisma.Prisma__fournisseurClient<runtime.Types.Result.GetResult<Prisma.$fournisseurPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Fournisseurs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {fournisseurCountArgs} args - Arguments to filter Fournisseurs to count.
* @example
* // Count the number of Fournisseurs
* const count = await prisma.fournisseur.count({
* where: {
* // ... the filter for the Fournisseurs we want to count
* }
* })
**/
count<T extends fournisseurCountArgs>(
args?: Prisma.Subset<T, fournisseurCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], FournisseurCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Fournisseur.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FournisseurAggregateArgs} 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 FournisseurAggregateArgs>(args: Prisma.Subset<T, FournisseurAggregateArgs>): Prisma.PrismaPromise<GetFournisseurAggregateType<T>>
/**
* Group by Fournisseur.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {fournisseurGroupByArgs} 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 fournisseurGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: fournisseurGroupByArgs['orderBy'] }
: { orderBy?: fournisseurGroupByArgs['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, fournisseurGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFournisseurGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the fournisseur model
*/
readonly fields: fournisseurFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for fournisseur.
* 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__fournisseurClient<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 fournisseur model
*/
export interface fournisseurFieldRefs {
readonly id: Prisma.FieldRef<"fournisseur", 'Int'>
readonly nom: Prisma.FieldRef<"fournisseur", 'String'>
readonly email: Prisma.FieldRef<"fournisseur", 'String'>
readonly actif: Prisma.FieldRef<"fournisseur", 'Boolean'>
}
// Custom InputTypes
/**
* fournisseur findUnique
*/
export type fournisseurFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
/**
* Filter, which fournisseur to fetch.
*/
where: Prisma.fournisseurWhereUniqueInput
}
/**
* fournisseur findUniqueOrThrow
*/
export type fournisseurFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
/**
* Filter, which fournisseur to fetch.
*/
where: Prisma.fournisseurWhereUniqueInput
}
/**
* fournisseur findFirst
*/
export type fournisseurFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
/**
* Filter, which fournisseur to fetch.
*/
where?: Prisma.fournisseurWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of fournisseurs to fetch.
*/
orderBy?: Prisma.fournisseurOrderByWithRelationInput | Prisma.fournisseurOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for fournisseurs.
*/
cursor?: Prisma.fournisseurWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` fournisseurs 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` fournisseurs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of fournisseurs.
*/
distinct?: Prisma.FournisseurScalarFieldEnum | Prisma.FournisseurScalarFieldEnum[]
}
/**
* fournisseur findFirstOrThrow
*/
export type fournisseurFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
/**
* Filter, which fournisseur to fetch.
*/
where?: Prisma.fournisseurWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of fournisseurs to fetch.
*/
orderBy?: Prisma.fournisseurOrderByWithRelationInput | Prisma.fournisseurOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for fournisseurs.
*/
cursor?: Prisma.fournisseurWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` fournisseurs 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` fournisseurs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of fournisseurs.
*/
distinct?: Prisma.FournisseurScalarFieldEnum | Prisma.FournisseurScalarFieldEnum[]
}
/**
* fournisseur findMany
*/
export type fournisseurFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
/**
* Filter, which fournisseurs to fetch.
*/
where?: Prisma.fournisseurWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of fournisseurs to fetch.
*/
orderBy?: Prisma.fournisseurOrderByWithRelationInput | Prisma.fournisseurOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing fournisseurs.
*/
cursor?: Prisma.fournisseurWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` fournisseurs 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` fournisseurs.
*/
skip?: number
distinct?: Prisma.FournisseurScalarFieldEnum | Prisma.FournisseurScalarFieldEnum[]
}
/**
* fournisseur create
*/
export type fournisseurCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
/**
* The data needed to create a fournisseur.
*/
data: Prisma.XOR<Prisma.fournisseurCreateInput, Prisma.fournisseurUncheckedCreateInput>
}
/**
* fournisseur createMany
*/
export type fournisseurCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many fournisseurs.
*/
data: Prisma.fournisseurCreateManyInput | Prisma.fournisseurCreateManyInput[]
skipDuplicates?: boolean
}
/**
* fournisseur update
*/
export type fournisseurUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
/**
* The data needed to update a fournisseur.
*/
data: Prisma.XOR<Prisma.fournisseurUpdateInput, Prisma.fournisseurUncheckedUpdateInput>
/**
* Choose, which fournisseur to update.
*/
where: Prisma.fournisseurWhereUniqueInput
}
/**
* fournisseur updateMany
*/
export type fournisseurUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update fournisseurs.
*/
data: Prisma.XOR<Prisma.fournisseurUpdateManyMutationInput, Prisma.fournisseurUncheckedUpdateManyInput>
/**
* Filter which fournisseurs to update
*/
where?: Prisma.fournisseurWhereInput
/**
* Limit how many fournisseurs to update.
*/
limit?: number
}
/**
* fournisseur upsert
*/
export type fournisseurUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
/**
* The filter to search for the fournisseur to update in case it exists.
*/
where: Prisma.fournisseurWhereUniqueInput
/**
* In case the fournisseur found by the `where` argument doesn't exist, create a new fournisseur with this data.
*/
create: Prisma.XOR<Prisma.fournisseurCreateInput, Prisma.fournisseurUncheckedCreateInput>
/**
* In case the fournisseur was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.fournisseurUpdateInput, Prisma.fournisseurUncheckedUpdateInput>
}
/**
* fournisseur delete
*/
export type fournisseurDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
/**
* Filter which fournisseur to delete.
*/
where: Prisma.fournisseurWhereUniqueInput
}
/**
* fournisseur deleteMany
*/
export type fournisseurDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which fournisseurs to delete
*/
where?: Prisma.fournisseurWhereInput
/**
* Limit how many fournisseurs to delete.
*/
limit?: number
}
/**
* fournisseur without action
*/
export type fournisseurDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the fournisseur
*/
select?: Prisma.fournisseurSelect<ExtArgs> | null
/**
* Omit specific fields from the fournisseur
*/
omit?: Prisma.fournisseurOmit<ExtArgs> | null
}