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

1080 lines
37 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 `municipalite` 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 municipalite
*
*/
export type municipaliteModel = runtime.Types.Result.DefaultSelection<Prisma.$municipalitePayload>
export type AggregateMunicipalite = {
_count: MunicipaliteCountAggregateOutputType | null
_avg: MunicipaliteAvgAggregateOutputType | null
_sum: MunicipaliteSumAggregateOutputType | null
_min: MunicipaliteMinAggregateOutputType | null
_max: MunicipaliteMaxAggregateOutputType | null
}
export type MunicipaliteAvgAggregateOutputType = {
id: number | null
}
export type MunicipaliteSumAggregateOutputType = {
id: number | null
}
export type MunicipaliteMinAggregateOutputType = {
id: number | null
nom: string | null
code: string | null
administration: string | null
often_used: boolean | null
}
export type MunicipaliteMaxAggregateOutputType = {
id: number | null
nom: string | null
code: string | null
administration: string | null
often_used: boolean | null
}
export type MunicipaliteCountAggregateOutputType = {
id: number
nom: number
code: number
administration: number
often_used: number
_all: number
}
export type MunicipaliteAvgAggregateInputType = {
id?: true
}
export type MunicipaliteSumAggregateInputType = {
id?: true
}
export type MunicipaliteMinAggregateInputType = {
id?: true
nom?: true
code?: true
administration?: true
often_used?: true
}
export type MunicipaliteMaxAggregateInputType = {
id?: true
nom?: true
code?: true
administration?: true
often_used?: true
}
export type MunicipaliteCountAggregateInputType = {
id?: true
nom?: true
code?: true
administration?: true
often_used?: true
_all?: true
}
export type MunicipaliteAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which municipalite to aggregate.
*/
where?: Prisma.municipaliteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of municipalites to fetch.
*/
orderBy?: Prisma.municipaliteOrderByWithRelationInput | Prisma.municipaliteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.municipaliteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` municipalites 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` municipalites.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned municipalites
**/
_count?: true | MunicipaliteCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: MunicipaliteAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: MunicipaliteSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: MunicipaliteMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: MunicipaliteMaxAggregateInputType
}
export type GetMunicipaliteAggregateType<T extends MunicipaliteAggregateArgs> = {
[P in keyof T & keyof AggregateMunicipalite]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateMunicipalite[P]>
: Prisma.GetScalarType<T[P], AggregateMunicipalite[P]>
}
export type municipaliteGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.municipaliteWhereInput
orderBy?: Prisma.municipaliteOrderByWithAggregationInput | Prisma.municipaliteOrderByWithAggregationInput[]
by: Prisma.MunicipaliteScalarFieldEnum[] | Prisma.MunicipaliteScalarFieldEnum
having?: Prisma.municipaliteScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: MunicipaliteCountAggregateInputType | true
_avg?: MunicipaliteAvgAggregateInputType
_sum?: MunicipaliteSumAggregateInputType
_min?: MunicipaliteMinAggregateInputType
_max?: MunicipaliteMaxAggregateInputType
}
export type MunicipaliteGroupByOutputType = {
id: number
nom: string
code: string
administration: string
often_used: boolean
_count: MunicipaliteCountAggregateOutputType | null
_avg: MunicipaliteAvgAggregateOutputType | null
_sum: MunicipaliteSumAggregateOutputType | null
_min: MunicipaliteMinAggregateOutputType | null
_max: MunicipaliteMaxAggregateOutputType | null
}
type GetMunicipaliteGroupByPayload<T extends municipaliteGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<MunicipaliteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof MunicipaliteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], MunicipaliteGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], MunicipaliteGroupByOutputType[P]>
}
>
>
export type municipaliteWhereInput = {
AND?: Prisma.municipaliteWhereInput | Prisma.municipaliteWhereInput[]
OR?: Prisma.municipaliteWhereInput[]
NOT?: Prisma.municipaliteWhereInput | Prisma.municipaliteWhereInput[]
id?: Prisma.IntFilter<"municipalite"> | number
nom?: Prisma.StringFilter<"municipalite"> | string
code?: Prisma.StringFilter<"municipalite"> | string
administration?: Prisma.StringFilter<"municipalite"> | string
often_used?: Prisma.BoolFilter<"municipalite"> | boolean
}
export type municipaliteOrderByWithRelationInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
code?: Prisma.SortOrder
administration?: Prisma.SortOrder
often_used?: Prisma.SortOrder
_relevance?: Prisma.municipaliteOrderByRelevanceInput
}
export type municipaliteWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.municipaliteWhereInput | Prisma.municipaliteWhereInput[]
OR?: Prisma.municipaliteWhereInput[]
NOT?: Prisma.municipaliteWhereInput | Prisma.municipaliteWhereInput[]
nom?: Prisma.StringFilter<"municipalite"> | string
code?: Prisma.StringFilter<"municipalite"> | string
administration?: Prisma.StringFilter<"municipalite"> | string
often_used?: Prisma.BoolFilter<"municipalite"> | boolean
}, "id">
export type municipaliteOrderByWithAggregationInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
code?: Prisma.SortOrder
administration?: Prisma.SortOrder
often_used?: Prisma.SortOrder
_count?: Prisma.municipaliteCountOrderByAggregateInput
_avg?: Prisma.municipaliteAvgOrderByAggregateInput
_max?: Prisma.municipaliteMaxOrderByAggregateInput
_min?: Prisma.municipaliteMinOrderByAggregateInput
_sum?: Prisma.municipaliteSumOrderByAggregateInput
}
export type municipaliteScalarWhereWithAggregatesInput = {
AND?: Prisma.municipaliteScalarWhereWithAggregatesInput | Prisma.municipaliteScalarWhereWithAggregatesInput[]
OR?: Prisma.municipaliteScalarWhereWithAggregatesInput[]
NOT?: Prisma.municipaliteScalarWhereWithAggregatesInput | Prisma.municipaliteScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"municipalite"> | number
nom?: Prisma.StringWithAggregatesFilter<"municipalite"> | string
code?: Prisma.StringWithAggregatesFilter<"municipalite"> | string
administration?: Prisma.StringWithAggregatesFilter<"municipalite"> | string
often_used?: Prisma.BoolWithAggregatesFilter<"municipalite"> | boolean
}
export type municipaliteCreateInput = {
nom: string
code: string
administration: string
often_used?: boolean
}
export type municipaliteUncheckedCreateInput = {
id?: number
nom: string
code: string
administration: string
often_used?: boolean
}
export type municipaliteUpdateInput = {
nom?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
administration?: Prisma.StringFieldUpdateOperationsInput | string
often_used?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type municipaliteUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
nom?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
administration?: Prisma.StringFieldUpdateOperationsInput | string
often_used?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type municipaliteCreateManyInput = {
id?: number
nom: string
code: string
administration: string
often_used?: boolean
}
export type municipaliteUpdateManyMutationInput = {
nom?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
administration?: Prisma.StringFieldUpdateOperationsInput | string
often_used?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type municipaliteUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
nom?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
administration?: Prisma.StringFieldUpdateOperationsInput | string
often_used?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type municipaliteOrderByRelevanceInput = {
fields: Prisma.municipaliteOrderByRelevanceFieldEnum | Prisma.municipaliteOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type municipaliteCountOrderByAggregateInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
code?: Prisma.SortOrder
administration?: Prisma.SortOrder
often_used?: Prisma.SortOrder
}
export type municipaliteAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type municipaliteMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
code?: Prisma.SortOrder
administration?: Prisma.SortOrder
often_used?: Prisma.SortOrder
}
export type municipaliteMinOrderByAggregateInput = {
id?: Prisma.SortOrder
nom?: Prisma.SortOrder
code?: Prisma.SortOrder
administration?: Prisma.SortOrder
often_used?: Prisma.SortOrder
}
export type municipaliteSumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type municipaliteSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
nom?: boolean
code?: boolean
administration?: boolean
often_used?: boolean
}, ExtArgs["result"]["municipalite"]>
export type municipaliteSelectScalar = {
id?: boolean
nom?: boolean
code?: boolean
administration?: boolean
often_used?: boolean
}
export type municipaliteOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "nom" | "code" | "administration" | "often_used", ExtArgs["result"]["municipalite"]>
export type $municipalitePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "municipalite"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
nom: string
code: string
administration: string
often_used: boolean
}, ExtArgs["result"]["municipalite"]>
composites: {}
}
export type municipaliteGetPayload<S extends boolean | null | undefined | municipaliteDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$municipalitePayload, S>
export type municipaliteCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<municipaliteFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: MunicipaliteCountAggregateInputType | true
}
export interface municipaliteDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['municipalite'], meta: { name: 'municipalite' } }
/**
* Find zero or one Municipalite that matches the filter.
* @param {municipaliteFindUniqueArgs} args - Arguments to find a Municipalite
* @example
* // Get one Municipalite
* const municipalite = await prisma.municipalite.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends municipaliteFindUniqueArgs>(args: Prisma.SelectSubset<T, municipaliteFindUniqueArgs<ExtArgs>>): Prisma.Prisma__municipaliteClient<runtime.Types.Result.GetResult<Prisma.$municipalitePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Municipalite that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {municipaliteFindUniqueOrThrowArgs} args - Arguments to find a Municipalite
* @example
* // Get one Municipalite
* const municipalite = await prisma.municipalite.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends municipaliteFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, municipaliteFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__municipaliteClient<runtime.Types.Result.GetResult<Prisma.$municipalitePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Municipalite 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 {municipaliteFindFirstArgs} args - Arguments to find a Municipalite
* @example
* // Get one Municipalite
* const municipalite = await prisma.municipalite.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends municipaliteFindFirstArgs>(args?: Prisma.SelectSubset<T, municipaliteFindFirstArgs<ExtArgs>>): Prisma.Prisma__municipaliteClient<runtime.Types.Result.GetResult<Prisma.$municipalitePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Municipalite 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 {municipaliteFindFirstOrThrowArgs} args - Arguments to find a Municipalite
* @example
* // Get one Municipalite
* const municipalite = await prisma.municipalite.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends municipaliteFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, municipaliteFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__municipaliteClient<runtime.Types.Result.GetResult<Prisma.$municipalitePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Municipalites 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 {municipaliteFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Municipalites
* const municipalites = await prisma.municipalite.findMany()
*
* // Get first 10 Municipalites
* const municipalites = await prisma.municipalite.findMany({ take: 10 })
*
* // Only select the `id`
* const municipaliteWithIdOnly = await prisma.municipalite.findMany({ select: { id: true } })
*
*/
findMany<T extends municipaliteFindManyArgs>(args?: Prisma.SelectSubset<T, municipaliteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$municipalitePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Municipalite.
* @param {municipaliteCreateArgs} args - Arguments to create a Municipalite.
* @example
* // Create one Municipalite
* const Municipalite = await prisma.municipalite.create({
* data: {
* // ... data to create a Municipalite
* }
* })
*
*/
create<T extends municipaliteCreateArgs>(args: Prisma.SelectSubset<T, municipaliteCreateArgs<ExtArgs>>): Prisma.Prisma__municipaliteClient<runtime.Types.Result.GetResult<Prisma.$municipalitePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Municipalites.
* @param {municipaliteCreateManyArgs} args - Arguments to create many Municipalites.
* @example
* // Create many Municipalites
* const municipalite = await prisma.municipalite.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends municipaliteCreateManyArgs>(args?: Prisma.SelectSubset<T, municipaliteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Municipalite.
* @param {municipaliteDeleteArgs} args - Arguments to delete one Municipalite.
* @example
* // Delete one Municipalite
* const Municipalite = await prisma.municipalite.delete({
* where: {
* // ... filter to delete one Municipalite
* }
* })
*
*/
delete<T extends municipaliteDeleteArgs>(args: Prisma.SelectSubset<T, municipaliteDeleteArgs<ExtArgs>>): Prisma.Prisma__municipaliteClient<runtime.Types.Result.GetResult<Prisma.$municipalitePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Municipalite.
* @param {municipaliteUpdateArgs} args - Arguments to update one Municipalite.
* @example
* // Update one Municipalite
* const municipalite = await prisma.municipalite.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends municipaliteUpdateArgs>(args: Prisma.SelectSubset<T, municipaliteUpdateArgs<ExtArgs>>): Prisma.Prisma__municipaliteClient<runtime.Types.Result.GetResult<Prisma.$municipalitePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Municipalites.
* @param {municipaliteDeleteManyArgs} args - Arguments to filter Municipalites to delete.
* @example
* // Delete a few Municipalites
* const { count } = await prisma.municipalite.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends municipaliteDeleteManyArgs>(args?: Prisma.SelectSubset<T, municipaliteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Municipalites.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {municipaliteUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Municipalites
* const municipalite = await prisma.municipalite.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends municipaliteUpdateManyArgs>(args: Prisma.SelectSubset<T, municipaliteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Municipalite.
* @param {municipaliteUpsertArgs} args - Arguments to update or create a Municipalite.
* @example
* // Update or create a Municipalite
* const municipalite = await prisma.municipalite.upsert({
* create: {
* // ... data to create a Municipalite
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Municipalite we want to update
* }
* })
*/
upsert<T extends municipaliteUpsertArgs>(args: Prisma.SelectSubset<T, municipaliteUpsertArgs<ExtArgs>>): Prisma.Prisma__municipaliteClient<runtime.Types.Result.GetResult<Prisma.$municipalitePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Municipalites.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {municipaliteCountArgs} args - Arguments to filter Municipalites to count.
* @example
* // Count the number of Municipalites
* const count = await prisma.municipalite.count({
* where: {
* // ... the filter for the Municipalites we want to count
* }
* })
**/
count<T extends municipaliteCountArgs>(
args?: Prisma.Subset<T, municipaliteCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], MunicipaliteCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Municipalite.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {MunicipaliteAggregateArgs} 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 MunicipaliteAggregateArgs>(args: Prisma.Subset<T, MunicipaliteAggregateArgs>): Prisma.PrismaPromise<GetMunicipaliteAggregateType<T>>
/**
* Group by Municipalite.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {municipaliteGroupByArgs} 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 municipaliteGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: municipaliteGroupByArgs['orderBy'] }
: { orderBy?: municipaliteGroupByArgs['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, municipaliteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMunicipaliteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the municipalite model
*/
readonly fields: municipaliteFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for municipalite.
* 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__municipaliteClient<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 municipalite model
*/
export interface municipaliteFieldRefs {
readonly id: Prisma.FieldRef<"municipalite", 'Int'>
readonly nom: Prisma.FieldRef<"municipalite", 'String'>
readonly code: Prisma.FieldRef<"municipalite", 'String'>
readonly administration: Prisma.FieldRef<"municipalite", 'String'>
readonly often_used: Prisma.FieldRef<"municipalite", 'Boolean'>
}
// Custom InputTypes
/**
* municipalite findUnique
*/
export type municipaliteFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
/**
* Filter, which municipalite to fetch.
*/
where: Prisma.municipaliteWhereUniqueInput
}
/**
* municipalite findUniqueOrThrow
*/
export type municipaliteFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
/**
* Filter, which municipalite to fetch.
*/
where: Prisma.municipaliteWhereUniqueInput
}
/**
* municipalite findFirst
*/
export type municipaliteFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
/**
* Filter, which municipalite to fetch.
*/
where?: Prisma.municipaliteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of municipalites to fetch.
*/
orderBy?: Prisma.municipaliteOrderByWithRelationInput | Prisma.municipaliteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for municipalites.
*/
cursor?: Prisma.municipaliteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` municipalites 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` municipalites.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of municipalites.
*/
distinct?: Prisma.MunicipaliteScalarFieldEnum | Prisma.MunicipaliteScalarFieldEnum[]
}
/**
* municipalite findFirstOrThrow
*/
export type municipaliteFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
/**
* Filter, which municipalite to fetch.
*/
where?: Prisma.municipaliteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of municipalites to fetch.
*/
orderBy?: Prisma.municipaliteOrderByWithRelationInput | Prisma.municipaliteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for municipalites.
*/
cursor?: Prisma.municipaliteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` municipalites 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` municipalites.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of municipalites.
*/
distinct?: Prisma.MunicipaliteScalarFieldEnum | Prisma.MunicipaliteScalarFieldEnum[]
}
/**
* municipalite findMany
*/
export type municipaliteFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
/**
* Filter, which municipalites to fetch.
*/
where?: Prisma.municipaliteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of municipalites to fetch.
*/
orderBy?: Prisma.municipaliteOrderByWithRelationInput | Prisma.municipaliteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing municipalites.
*/
cursor?: Prisma.municipaliteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` municipalites 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` municipalites.
*/
skip?: number
distinct?: Prisma.MunicipaliteScalarFieldEnum | Prisma.MunicipaliteScalarFieldEnum[]
}
/**
* municipalite create
*/
export type municipaliteCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
/**
* The data needed to create a municipalite.
*/
data: Prisma.XOR<Prisma.municipaliteCreateInput, Prisma.municipaliteUncheckedCreateInput>
}
/**
* municipalite createMany
*/
export type municipaliteCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many municipalites.
*/
data: Prisma.municipaliteCreateManyInput | Prisma.municipaliteCreateManyInput[]
skipDuplicates?: boolean
}
/**
* municipalite update
*/
export type municipaliteUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
/**
* The data needed to update a municipalite.
*/
data: Prisma.XOR<Prisma.municipaliteUpdateInput, Prisma.municipaliteUncheckedUpdateInput>
/**
* Choose, which municipalite to update.
*/
where: Prisma.municipaliteWhereUniqueInput
}
/**
* municipalite updateMany
*/
export type municipaliteUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update municipalites.
*/
data: Prisma.XOR<Prisma.municipaliteUpdateManyMutationInput, Prisma.municipaliteUncheckedUpdateManyInput>
/**
* Filter which municipalites to update
*/
where?: Prisma.municipaliteWhereInput
/**
* Limit how many municipalites to update.
*/
limit?: number
}
/**
* municipalite upsert
*/
export type municipaliteUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
/**
* The filter to search for the municipalite to update in case it exists.
*/
where: Prisma.municipaliteWhereUniqueInput
/**
* In case the municipalite found by the `where` argument doesn't exist, create a new municipalite with this data.
*/
create: Prisma.XOR<Prisma.municipaliteCreateInput, Prisma.municipaliteUncheckedCreateInput>
/**
* In case the municipalite was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.municipaliteUpdateInput, Prisma.municipaliteUncheckedUpdateInput>
}
/**
* municipalite delete
*/
export type municipaliteDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
/**
* Filter which municipalite to delete.
*/
where: Prisma.municipaliteWhereUniqueInput
}
/**
* municipalite deleteMany
*/
export type municipaliteDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which municipalites to delete
*/
where?: Prisma.municipaliteWhereInput
/**
* Limit how many municipalites to delete.
*/
limit?: number
}
/**
* municipalite without action
*/
export type municipaliteDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the municipalite
*/
select?: Prisma.municipaliteSelect<ExtArgs> | null
/**
* Omit specific fields from the municipalite
*/
omit?: Prisma.municipaliteOmit<ExtArgs> | null
}