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

1086 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 `phone` 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 phone
*
*/
export type phoneModel = runtime.Types.Result.DefaultSelection<Prisma.$phonePayload>
export type AggregatePhone = {
_count: PhoneCountAggregateOutputType | null
_avg: PhoneAvgAggregateOutputType | null
_sum: PhoneSumAggregateOutputType | null
_min: PhoneMinAggregateOutputType | null
_max: PhoneMaxAggregateOutputType | null
}
export type PhoneAvgAggregateOutputType = {
id: number | null
service_id: number | null
}
export type PhoneSumAggregateOutputType = {
id: number | null
service_id: number | null
}
export type PhoneMinAggregateOutputType = {
id: number | null
service_id: number | null
phone_num: string | null
note: string | null
fournisseur: string | null
}
export type PhoneMaxAggregateOutputType = {
id: number | null
service_id: number | null
phone_num: string | null
note: string | null
fournisseur: string | null
}
export type PhoneCountAggregateOutputType = {
id: number
service_id: number
phone_num: number
note: number
fournisseur: number
_all: number
}
export type PhoneAvgAggregateInputType = {
id?: true
service_id?: true
}
export type PhoneSumAggregateInputType = {
id?: true
service_id?: true
}
export type PhoneMinAggregateInputType = {
id?: true
service_id?: true
phone_num?: true
note?: true
fournisseur?: true
}
export type PhoneMaxAggregateInputType = {
id?: true
service_id?: true
phone_num?: true
note?: true
fournisseur?: true
}
export type PhoneCountAggregateInputType = {
id?: true
service_id?: true
phone_num?: true
note?: true
fournisseur?: true
_all?: true
}
export type PhoneAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which phone to aggregate.
*/
where?: Prisma.phoneWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of phones to fetch.
*/
orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.phoneWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` phones 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` phones.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned phones
**/
_count?: true | PhoneCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: PhoneAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: PhoneSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: PhoneMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: PhoneMaxAggregateInputType
}
export type GetPhoneAggregateType<T extends PhoneAggregateArgs> = {
[P in keyof T & keyof AggregatePhone]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregatePhone[P]>
: Prisma.GetScalarType<T[P], AggregatePhone[P]>
}
export type phoneGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.phoneWhereInput
orderBy?: Prisma.phoneOrderByWithAggregationInput | Prisma.phoneOrderByWithAggregationInput[]
by: Prisma.PhoneScalarFieldEnum[] | Prisma.PhoneScalarFieldEnum
having?: Prisma.phoneScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: PhoneCountAggregateInputType | true
_avg?: PhoneAvgAggregateInputType
_sum?: PhoneSumAggregateInputType
_min?: PhoneMinAggregateInputType
_max?: PhoneMaxAggregateInputType
}
export type PhoneGroupByOutputType = {
id: number
service_id: number
phone_num: string
note: string | null
fournisseur: string | null
_count: PhoneCountAggregateOutputType | null
_avg: PhoneAvgAggregateOutputType | null
_sum: PhoneSumAggregateOutputType | null
_min: PhoneMinAggregateOutputType | null
_max: PhoneMaxAggregateOutputType | null
}
type GetPhoneGroupByPayload<T extends phoneGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<PhoneGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof PhoneGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], PhoneGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], PhoneGroupByOutputType[P]>
}
>
>
export type phoneWhereInput = {
AND?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[]
OR?: Prisma.phoneWhereInput[]
NOT?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[]
id?: Prisma.IntFilter<"phone"> | number
service_id?: Prisma.IntFilter<"phone"> | number
phone_num?: Prisma.StringFilter<"phone"> | string
note?: Prisma.StringNullableFilter<"phone"> | string | null
fournisseur?: Prisma.StringNullableFilter<"phone"> | string | null
}
export type phoneOrderByWithRelationInput = {
id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
phone_num?: Prisma.SortOrder
note?: Prisma.SortOrderInput | Prisma.SortOrder
fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.phoneOrderByRelevanceInput
}
export type phoneWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[]
OR?: Prisma.phoneWhereInput[]
NOT?: Prisma.phoneWhereInput | Prisma.phoneWhereInput[]
service_id?: Prisma.IntFilter<"phone"> | number
phone_num?: Prisma.StringFilter<"phone"> | string
note?: Prisma.StringNullableFilter<"phone"> | string | null
fournisseur?: Prisma.StringNullableFilter<"phone"> | string | null
}, "id">
export type phoneOrderByWithAggregationInput = {
id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
phone_num?: Prisma.SortOrder
note?: Prisma.SortOrderInput | Prisma.SortOrder
fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.phoneCountOrderByAggregateInput
_avg?: Prisma.phoneAvgOrderByAggregateInput
_max?: Prisma.phoneMaxOrderByAggregateInput
_min?: Prisma.phoneMinOrderByAggregateInput
_sum?: Prisma.phoneSumOrderByAggregateInput
}
export type phoneScalarWhereWithAggregatesInput = {
AND?: Prisma.phoneScalarWhereWithAggregatesInput | Prisma.phoneScalarWhereWithAggregatesInput[]
OR?: Prisma.phoneScalarWhereWithAggregatesInput[]
NOT?: Prisma.phoneScalarWhereWithAggregatesInput | Prisma.phoneScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"phone"> | number
service_id?: Prisma.IntWithAggregatesFilter<"phone"> | number
phone_num?: Prisma.StringWithAggregatesFilter<"phone"> | string
note?: Prisma.StringNullableWithAggregatesFilter<"phone"> | string | null
fournisseur?: Prisma.StringNullableWithAggregatesFilter<"phone"> | string | null
}
export type phoneCreateInput = {
service_id: number
phone_num: string
note?: string | null
fournisseur?: string | null
}
export type phoneUncheckedCreateInput = {
id?: number
service_id: number
phone_num: string
note?: string | null
fournisseur?: string | null
}
export type phoneUpdateInput = {
service_id?: Prisma.IntFieldUpdateOperationsInput | number
phone_num?: Prisma.StringFieldUpdateOperationsInput | string
note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type phoneUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
service_id?: Prisma.IntFieldUpdateOperationsInput | number
phone_num?: Prisma.StringFieldUpdateOperationsInput | string
note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type phoneCreateManyInput = {
id?: number
service_id: number
phone_num: string
note?: string | null
fournisseur?: string | null
}
export type phoneUpdateManyMutationInput = {
service_id?: Prisma.IntFieldUpdateOperationsInput | number
phone_num?: Prisma.StringFieldUpdateOperationsInput | string
note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type phoneUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
service_id?: Prisma.IntFieldUpdateOperationsInput | number
phone_num?: Prisma.StringFieldUpdateOperationsInput | string
note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type phoneOrderByRelevanceInput = {
fields: Prisma.phoneOrderByRelevanceFieldEnum | Prisma.phoneOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type phoneCountOrderByAggregateInput = {
id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
phone_num?: Prisma.SortOrder
note?: Prisma.SortOrder
fournisseur?: Prisma.SortOrder
}
export type phoneAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
}
export type phoneMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
phone_num?: Prisma.SortOrder
note?: Prisma.SortOrder
fournisseur?: Prisma.SortOrder
}
export type phoneMinOrderByAggregateInput = {
id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
phone_num?: Prisma.SortOrder
note?: Prisma.SortOrder
fournisseur?: Prisma.SortOrder
}
export type phoneSumOrderByAggregateInput = {
id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
}
export type phoneSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
service_id?: boolean
phone_num?: boolean
note?: boolean
fournisseur?: boolean
}, ExtArgs["result"]["phone"]>
export type phoneSelectScalar = {
id?: boolean
service_id?: boolean
phone_num?: boolean
note?: boolean
fournisseur?: boolean
}
export type phoneOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "phone_num" | "note" | "fournisseur", ExtArgs["result"]["phone"]>
export type $phonePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "phone"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
service_id: number
phone_num: string
note: string | null
fournisseur: string | null
}, ExtArgs["result"]["phone"]>
composites: {}
}
export type phoneGetPayload<S extends boolean | null | undefined | phoneDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$phonePayload, S>
export type phoneCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<phoneFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: PhoneCountAggregateInputType | true
}
export interface phoneDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['phone'], meta: { name: 'phone' } }
/**
* Find zero or one Phone that matches the filter.
* @param {phoneFindUniqueArgs} args - Arguments to find a Phone
* @example
* // Get one Phone
* const phone = await prisma.phone.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends phoneFindUniqueArgs>(args: Prisma.SelectSubset<T, phoneFindUniqueArgs<ExtArgs>>): Prisma.Prisma__phoneClient<runtime.Types.Result.GetResult<Prisma.$phonePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Phone that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {phoneFindUniqueOrThrowArgs} args - Arguments to find a Phone
* @example
* // Get one Phone
* const phone = await prisma.phone.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends phoneFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, phoneFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__phoneClient<runtime.Types.Result.GetResult<Prisma.$phonePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Phone 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 {phoneFindFirstArgs} args - Arguments to find a Phone
* @example
* // Get one Phone
* const phone = await prisma.phone.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends phoneFindFirstArgs>(args?: Prisma.SelectSubset<T, phoneFindFirstArgs<ExtArgs>>): Prisma.Prisma__phoneClient<runtime.Types.Result.GetResult<Prisma.$phonePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Phone 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 {phoneFindFirstOrThrowArgs} args - Arguments to find a Phone
* @example
* // Get one Phone
* const phone = await prisma.phone.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends phoneFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, phoneFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__phoneClient<runtime.Types.Result.GetResult<Prisma.$phonePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Phones 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 {phoneFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Phones
* const phones = await prisma.phone.findMany()
*
* // Get first 10 Phones
* const phones = await prisma.phone.findMany({ take: 10 })
*
* // Only select the `id`
* const phoneWithIdOnly = await prisma.phone.findMany({ select: { id: true } })
*
*/
findMany<T extends phoneFindManyArgs>(args?: Prisma.SelectSubset<T, phoneFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$phonePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Phone.
* @param {phoneCreateArgs} args - Arguments to create a Phone.
* @example
* // Create one Phone
* const Phone = await prisma.phone.create({
* data: {
* // ... data to create a Phone
* }
* })
*
*/
create<T extends phoneCreateArgs>(args: Prisma.SelectSubset<T, phoneCreateArgs<ExtArgs>>): Prisma.Prisma__phoneClient<runtime.Types.Result.GetResult<Prisma.$phonePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Phones.
* @param {phoneCreateManyArgs} args - Arguments to create many Phones.
* @example
* // Create many Phones
* const phone = await prisma.phone.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends phoneCreateManyArgs>(args?: Prisma.SelectSubset<T, phoneCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Phone.
* @param {phoneDeleteArgs} args - Arguments to delete one Phone.
* @example
* // Delete one Phone
* const Phone = await prisma.phone.delete({
* where: {
* // ... filter to delete one Phone
* }
* })
*
*/
delete<T extends phoneDeleteArgs>(args: Prisma.SelectSubset<T, phoneDeleteArgs<ExtArgs>>): Prisma.Prisma__phoneClient<runtime.Types.Result.GetResult<Prisma.$phonePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Phone.
* @param {phoneUpdateArgs} args - Arguments to update one Phone.
* @example
* // Update one Phone
* const phone = await prisma.phone.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends phoneUpdateArgs>(args: Prisma.SelectSubset<T, phoneUpdateArgs<ExtArgs>>): Prisma.Prisma__phoneClient<runtime.Types.Result.GetResult<Prisma.$phonePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Phones.
* @param {phoneDeleteManyArgs} args - Arguments to filter Phones to delete.
* @example
* // Delete a few Phones
* const { count } = await prisma.phone.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends phoneDeleteManyArgs>(args?: Prisma.SelectSubset<T, phoneDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Phones.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {phoneUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Phones
* const phone = await prisma.phone.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends phoneUpdateManyArgs>(args: Prisma.SelectSubset<T, phoneUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Phone.
* @param {phoneUpsertArgs} args - Arguments to update or create a Phone.
* @example
* // Update or create a Phone
* const phone = await prisma.phone.upsert({
* create: {
* // ... data to create a Phone
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Phone we want to update
* }
* })
*/
upsert<T extends phoneUpsertArgs>(args: Prisma.SelectSubset<T, phoneUpsertArgs<ExtArgs>>): Prisma.Prisma__phoneClient<runtime.Types.Result.GetResult<Prisma.$phonePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Phones.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {phoneCountArgs} args - Arguments to filter Phones to count.
* @example
* // Count the number of Phones
* const count = await prisma.phone.count({
* where: {
* // ... the filter for the Phones we want to count
* }
* })
**/
count<T extends phoneCountArgs>(
args?: Prisma.Subset<T, phoneCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], PhoneCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Phone.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PhoneAggregateArgs} 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 PhoneAggregateArgs>(args: Prisma.Subset<T, PhoneAggregateArgs>): Prisma.PrismaPromise<GetPhoneAggregateType<T>>
/**
* Group by Phone.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {phoneGroupByArgs} 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 phoneGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: phoneGroupByArgs['orderBy'] }
: { orderBy?: phoneGroupByArgs['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, phoneGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPhoneGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the phone model
*/
readonly fields: phoneFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for phone.
* 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__phoneClient<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 phone model
*/
export interface phoneFieldRefs {
readonly id: Prisma.FieldRef<"phone", 'Int'>
readonly service_id: Prisma.FieldRef<"phone", 'Int'>
readonly phone_num: Prisma.FieldRef<"phone", 'String'>
readonly note: Prisma.FieldRef<"phone", 'String'>
readonly fournisseur: Prisma.FieldRef<"phone", 'String'>
}
// Custom InputTypes
/**
* phone findUnique
*/
export type phoneFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
/**
* Filter, which phone to fetch.
*/
where: Prisma.phoneWhereUniqueInput
}
/**
* phone findUniqueOrThrow
*/
export type phoneFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
/**
* Filter, which phone to fetch.
*/
where: Prisma.phoneWhereUniqueInput
}
/**
* phone findFirst
*/
export type phoneFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
/**
* Filter, which phone to fetch.
*/
where?: Prisma.phoneWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of phones to fetch.
*/
orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for phones.
*/
cursor?: Prisma.phoneWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` phones 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` phones.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of phones.
*/
distinct?: Prisma.PhoneScalarFieldEnum | Prisma.PhoneScalarFieldEnum[]
}
/**
* phone findFirstOrThrow
*/
export type phoneFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
/**
* Filter, which phone to fetch.
*/
where?: Prisma.phoneWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of phones to fetch.
*/
orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for phones.
*/
cursor?: Prisma.phoneWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` phones 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` phones.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of phones.
*/
distinct?: Prisma.PhoneScalarFieldEnum | Prisma.PhoneScalarFieldEnum[]
}
/**
* phone findMany
*/
export type phoneFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
/**
* Filter, which phones to fetch.
*/
where?: Prisma.phoneWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of phones to fetch.
*/
orderBy?: Prisma.phoneOrderByWithRelationInput | Prisma.phoneOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing phones.
*/
cursor?: Prisma.phoneWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` phones 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` phones.
*/
skip?: number
distinct?: Prisma.PhoneScalarFieldEnum | Prisma.PhoneScalarFieldEnum[]
}
/**
* phone create
*/
export type phoneCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
/**
* The data needed to create a phone.
*/
data: Prisma.XOR<Prisma.phoneCreateInput, Prisma.phoneUncheckedCreateInput>
}
/**
* phone createMany
*/
export type phoneCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many phones.
*/
data: Prisma.phoneCreateManyInput | Prisma.phoneCreateManyInput[]
skipDuplicates?: boolean
}
/**
* phone update
*/
export type phoneUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
/**
* The data needed to update a phone.
*/
data: Prisma.XOR<Prisma.phoneUpdateInput, Prisma.phoneUncheckedUpdateInput>
/**
* Choose, which phone to update.
*/
where: Prisma.phoneWhereUniqueInput
}
/**
* phone updateMany
*/
export type phoneUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update phones.
*/
data: Prisma.XOR<Prisma.phoneUpdateManyMutationInput, Prisma.phoneUncheckedUpdateManyInput>
/**
* Filter which phones to update
*/
where?: Prisma.phoneWhereInput
/**
* Limit how many phones to update.
*/
limit?: number
}
/**
* phone upsert
*/
export type phoneUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
/**
* The filter to search for the phone to update in case it exists.
*/
where: Prisma.phoneWhereUniqueInput
/**
* In case the phone found by the `where` argument doesn't exist, create a new phone with this data.
*/
create: Prisma.XOR<Prisma.phoneCreateInput, Prisma.phoneUncheckedCreateInput>
/**
* In case the phone was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.phoneUpdateInput, Prisma.phoneUncheckedUpdateInput>
}
/**
* phone delete
*/
export type phoneDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
/**
* Filter which phone to delete.
*/
where: Prisma.phoneWhereUniqueInput
}
/**
* phone deleteMany
*/
export type phoneDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which phones to delete
*/
where?: Prisma.phoneWhereInput
/**
* Limit how many phones to delete.
*/
limit?: number
}
/**
* phone without action
*/
export type phoneDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the phone
*/
select?: Prisma.phoneSelect<ExtArgs> | null
/**
* Omit specific fields from the phone
*/
omit?: Prisma.phoneOmit<ExtArgs> | null
}