1028 lines
36 KiB
TypeScript
1028 lines
36 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `tele_network` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums"
|
|
import type * as Prisma from "../internal/prismaNamespace"
|
|
|
|
/**
|
|
* Model tele_network
|
|
*
|
|
*/
|
|
export type tele_networkModel = runtime.Types.Result.DefaultSelection<Prisma.$tele_networkPayload>
|
|
|
|
export type AggregateTele_network = {
|
|
_count: Tele_networkCountAggregateOutputType | null
|
|
_avg: Tele_networkAvgAggregateOutputType | null
|
|
_sum: Tele_networkSumAggregateOutputType | null
|
|
_min: Tele_networkMinAggregateOutputType | null
|
|
_max: Tele_networkMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Tele_networkAvgAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type Tele_networkSumAggregateOutputType = {
|
|
id: number | null
|
|
}
|
|
|
|
export type Tele_networkMinAggregateOutputType = {
|
|
id: number | null
|
|
network_name: string | null
|
|
fournisseur: string | null
|
|
}
|
|
|
|
export type Tele_networkMaxAggregateOutputType = {
|
|
id: number | null
|
|
network_name: string | null
|
|
fournisseur: string | null
|
|
}
|
|
|
|
export type Tele_networkCountAggregateOutputType = {
|
|
id: number
|
|
network_name: number
|
|
fournisseur: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Tele_networkAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type Tele_networkSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type Tele_networkMinAggregateInputType = {
|
|
id?: true
|
|
network_name?: true
|
|
fournisseur?: true
|
|
}
|
|
|
|
export type Tele_networkMaxAggregateInputType = {
|
|
id?: true
|
|
network_name?: true
|
|
fournisseur?: true
|
|
}
|
|
|
|
export type Tele_networkCountAggregateInputType = {
|
|
id?: true
|
|
network_name?: true
|
|
fournisseur?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Tele_networkAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which tele_network to aggregate.
|
|
*/
|
|
where?: Prisma.tele_networkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of tele_networks to fetch.
|
|
*/
|
|
orderBy?: Prisma.tele_networkOrderByWithRelationInput | Prisma.tele_networkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.tele_networkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` tele_networks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` tele_networks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned tele_networks
|
|
**/
|
|
_count?: true | Tele_networkCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Tele_networkAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Tele_networkSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Tele_networkMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Tele_networkMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTele_networkAggregateType<T extends Tele_networkAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTele_network]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTele_network[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTele_network[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type tele_networkGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.tele_networkWhereInput
|
|
orderBy?: Prisma.tele_networkOrderByWithAggregationInput | Prisma.tele_networkOrderByWithAggregationInput[]
|
|
by: Prisma.Tele_networkScalarFieldEnum[] | Prisma.Tele_networkScalarFieldEnum
|
|
having?: Prisma.tele_networkScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Tele_networkCountAggregateInputType | true
|
|
_avg?: Tele_networkAvgAggregateInputType
|
|
_sum?: Tele_networkSumAggregateInputType
|
|
_min?: Tele_networkMinAggregateInputType
|
|
_max?: Tele_networkMaxAggregateInputType
|
|
}
|
|
|
|
export type Tele_networkGroupByOutputType = {
|
|
id: number
|
|
network_name: string
|
|
fournisseur: string
|
|
_count: Tele_networkCountAggregateOutputType | null
|
|
_avg: Tele_networkAvgAggregateOutputType | null
|
|
_sum: Tele_networkSumAggregateOutputType | null
|
|
_min: Tele_networkMinAggregateOutputType | null
|
|
_max: Tele_networkMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetTele_networkGroupByPayload<T extends tele_networkGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Tele_networkGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Tele_networkGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Tele_networkGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Tele_networkGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type tele_networkWhereInput = {
|
|
AND?: Prisma.tele_networkWhereInput | Prisma.tele_networkWhereInput[]
|
|
OR?: Prisma.tele_networkWhereInput[]
|
|
NOT?: Prisma.tele_networkWhereInput | Prisma.tele_networkWhereInput[]
|
|
id?: Prisma.IntFilter<"tele_network"> | number
|
|
network_name?: Prisma.StringFilter<"tele_network"> | string
|
|
fournisseur?: Prisma.StringFilter<"tele_network"> | string
|
|
}
|
|
|
|
export type tele_networkOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
network_name?: Prisma.SortOrder
|
|
fournisseur?: Prisma.SortOrder
|
|
_relevance?: Prisma.tele_networkOrderByRelevanceInput
|
|
}
|
|
|
|
export type tele_networkWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.tele_networkWhereInput | Prisma.tele_networkWhereInput[]
|
|
OR?: Prisma.tele_networkWhereInput[]
|
|
NOT?: Prisma.tele_networkWhereInput | Prisma.tele_networkWhereInput[]
|
|
network_name?: Prisma.StringFilter<"tele_network"> | string
|
|
fournisseur?: Prisma.StringFilter<"tele_network"> | string
|
|
}, "id">
|
|
|
|
export type tele_networkOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
network_name?: Prisma.SortOrder
|
|
fournisseur?: Prisma.SortOrder
|
|
_count?: Prisma.tele_networkCountOrderByAggregateInput
|
|
_avg?: Prisma.tele_networkAvgOrderByAggregateInput
|
|
_max?: Prisma.tele_networkMaxOrderByAggregateInput
|
|
_min?: Prisma.tele_networkMinOrderByAggregateInput
|
|
_sum?: Prisma.tele_networkSumOrderByAggregateInput
|
|
}
|
|
|
|
export type tele_networkScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.tele_networkScalarWhereWithAggregatesInput | Prisma.tele_networkScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.tele_networkScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.tele_networkScalarWhereWithAggregatesInput | Prisma.tele_networkScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"tele_network"> | number
|
|
network_name?: Prisma.StringWithAggregatesFilter<"tele_network"> | string
|
|
fournisseur?: Prisma.StringWithAggregatesFilter<"tele_network"> | string
|
|
}
|
|
|
|
export type tele_networkCreateInput = {
|
|
network_name: string
|
|
fournisseur: string
|
|
}
|
|
|
|
export type tele_networkUncheckedCreateInput = {
|
|
id?: number
|
|
network_name: string
|
|
fournisseur: string
|
|
}
|
|
|
|
export type tele_networkUpdateInput = {
|
|
network_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fournisseur?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type tele_networkUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
network_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fournisseur?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type tele_networkCreateManyInput = {
|
|
id?: number
|
|
network_name: string
|
|
fournisseur: string
|
|
}
|
|
|
|
export type tele_networkUpdateManyMutationInput = {
|
|
network_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fournisseur?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type tele_networkUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
network_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fournisseur?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type tele_networkOrderByRelevanceInput = {
|
|
fields: Prisma.tele_networkOrderByRelevanceFieldEnum | Prisma.tele_networkOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type tele_networkCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
network_name?: Prisma.SortOrder
|
|
fournisseur?: Prisma.SortOrder
|
|
}
|
|
|
|
export type tele_networkAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type tele_networkMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
network_name?: Prisma.SortOrder
|
|
fournisseur?: Prisma.SortOrder
|
|
}
|
|
|
|
export type tele_networkMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
network_name?: Prisma.SortOrder
|
|
fournisseur?: Prisma.SortOrder
|
|
}
|
|
|
|
export type tele_networkSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type tele_networkSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
network_name?: boolean
|
|
fournisseur?: boolean
|
|
}, ExtArgs["result"]["tele_network"]>
|
|
|
|
|
|
|
|
export type tele_networkSelectScalar = {
|
|
id?: boolean
|
|
network_name?: boolean
|
|
fournisseur?: boolean
|
|
}
|
|
|
|
export type tele_networkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "network_name" | "fournisseur", ExtArgs["result"]["tele_network"]>
|
|
|
|
export type $tele_networkPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "tele_network"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
network_name: string
|
|
fournisseur: string
|
|
}, ExtArgs["result"]["tele_network"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type tele_networkGetPayload<S extends boolean | null | undefined | tele_networkDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tele_networkPayload, S>
|
|
|
|
export type tele_networkCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<tele_networkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Tele_networkCountAggregateInputType | true
|
|
}
|
|
|
|
export interface tele_networkDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['tele_network'], meta: { name: 'tele_network' } }
|
|
/**
|
|
* Find zero or one Tele_network that matches the filter.
|
|
* @param {tele_networkFindUniqueArgs} args - Arguments to find a Tele_network
|
|
* @example
|
|
* // Get one Tele_network
|
|
* const tele_network = await prisma.tele_network.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends tele_networkFindUniqueArgs>(args: Prisma.SelectSubset<T, tele_networkFindUniqueArgs<ExtArgs>>): Prisma.Prisma__tele_networkClient<runtime.Types.Result.GetResult<Prisma.$tele_networkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Tele_network that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {tele_networkFindUniqueOrThrowArgs} args - Arguments to find a Tele_network
|
|
* @example
|
|
* // Get one Tele_network
|
|
* const tele_network = await prisma.tele_network.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends tele_networkFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, tele_networkFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__tele_networkClient<runtime.Types.Result.GetResult<Prisma.$tele_networkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Tele_network that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {tele_networkFindFirstArgs} args - Arguments to find a Tele_network
|
|
* @example
|
|
* // Get one Tele_network
|
|
* const tele_network = await prisma.tele_network.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends tele_networkFindFirstArgs>(args?: Prisma.SelectSubset<T, tele_networkFindFirstArgs<ExtArgs>>): Prisma.Prisma__tele_networkClient<runtime.Types.Result.GetResult<Prisma.$tele_networkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Tele_network that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {tele_networkFindFirstOrThrowArgs} args - Arguments to find a Tele_network
|
|
* @example
|
|
* // Get one Tele_network
|
|
* const tele_network = await prisma.tele_network.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends tele_networkFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, tele_networkFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__tele_networkClient<runtime.Types.Result.GetResult<Prisma.$tele_networkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Tele_networks that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {tele_networkFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Tele_networks
|
|
* const tele_networks = await prisma.tele_network.findMany()
|
|
*
|
|
* // Get first 10 Tele_networks
|
|
* const tele_networks = await prisma.tele_network.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const tele_networkWithIdOnly = await prisma.tele_network.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends tele_networkFindManyArgs>(args?: Prisma.SelectSubset<T, tele_networkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tele_networkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Tele_network.
|
|
* @param {tele_networkCreateArgs} args - Arguments to create a Tele_network.
|
|
* @example
|
|
* // Create one Tele_network
|
|
* const Tele_network = await prisma.tele_network.create({
|
|
* data: {
|
|
* // ... data to create a Tele_network
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends tele_networkCreateArgs>(args: Prisma.SelectSubset<T, tele_networkCreateArgs<ExtArgs>>): Prisma.Prisma__tele_networkClient<runtime.Types.Result.GetResult<Prisma.$tele_networkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Tele_networks.
|
|
* @param {tele_networkCreateManyArgs} args - Arguments to create many Tele_networks.
|
|
* @example
|
|
* // Create many Tele_networks
|
|
* const tele_network = await prisma.tele_network.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends tele_networkCreateManyArgs>(args?: Prisma.SelectSubset<T, tele_networkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a Tele_network.
|
|
* @param {tele_networkDeleteArgs} args - Arguments to delete one Tele_network.
|
|
* @example
|
|
* // Delete one Tele_network
|
|
* const Tele_network = await prisma.tele_network.delete({
|
|
* where: {
|
|
* // ... filter to delete one Tele_network
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends tele_networkDeleteArgs>(args: Prisma.SelectSubset<T, tele_networkDeleteArgs<ExtArgs>>): Prisma.Prisma__tele_networkClient<runtime.Types.Result.GetResult<Prisma.$tele_networkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Tele_network.
|
|
* @param {tele_networkUpdateArgs} args - Arguments to update one Tele_network.
|
|
* @example
|
|
* // Update one Tele_network
|
|
* const tele_network = await prisma.tele_network.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends tele_networkUpdateArgs>(args: Prisma.SelectSubset<T, tele_networkUpdateArgs<ExtArgs>>): Prisma.Prisma__tele_networkClient<runtime.Types.Result.GetResult<Prisma.$tele_networkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Tele_networks.
|
|
* @param {tele_networkDeleteManyArgs} args - Arguments to filter Tele_networks to delete.
|
|
* @example
|
|
* // Delete a few Tele_networks
|
|
* const { count } = await prisma.tele_network.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends tele_networkDeleteManyArgs>(args?: Prisma.SelectSubset<T, tele_networkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Tele_networks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {tele_networkUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Tele_networks
|
|
* const tele_network = await prisma.tele_network.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends tele_networkUpdateManyArgs>(args: Prisma.SelectSubset<T, tele_networkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Tele_network.
|
|
* @param {tele_networkUpsertArgs} args - Arguments to update or create a Tele_network.
|
|
* @example
|
|
* // Update or create a Tele_network
|
|
* const tele_network = await prisma.tele_network.upsert({
|
|
* create: {
|
|
* // ... data to create a Tele_network
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Tele_network we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends tele_networkUpsertArgs>(args: Prisma.SelectSubset<T, tele_networkUpsertArgs<ExtArgs>>): Prisma.Prisma__tele_networkClient<runtime.Types.Result.GetResult<Prisma.$tele_networkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Tele_networks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {tele_networkCountArgs} args - Arguments to filter Tele_networks to count.
|
|
* @example
|
|
* // Count the number of Tele_networks
|
|
* const count = await prisma.tele_network.count({
|
|
* where: {
|
|
* // ... the filter for the Tele_networks we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends tele_networkCountArgs>(
|
|
args?: Prisma.Subset<T, tele_networkCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Tele_networkCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Tele_network.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Tele_networkAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends Tele_networkAggregateArgs>(args: Prisma.Subset<T, Tele_networkAggregateArgs>): Prisma.PrismaPromise<GetTele_networkAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Tele_network.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {tele_networkGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends tele_networkGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: tele_networkGroupByArgs['orderBy'] }
|
|
: { orderBy?: tele_networkGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, tele_networkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTele_networkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the tele_network model
|
|
*/
|
|
readonly fields: tele_networkFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for tele_network.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__tele_networkClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the tele_network model
|
|
*/
|
|
export interface tele_networkFieldRefs {
|
|
readonly id: Prisma.FieldRef<"tele_network", 'Int'>
|
|
readonly network_name: Prisma.FieldRef<"tele_network", 'String'>
|
|
readonly fournisseur: Prisma.FieldRef<"tele_network", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* tele_network findUnique
|
|
*/
|
|
export type tele_networkFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_network to fetch.
|
|
*/
|
|
where: Prisma.tele_networkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tele_network findUniqueOrThrow
|
|
*/
|
|
export type tele_networkFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_network to fetch.
|
|
*/
|
|
where: Prisma.tele_networkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tele_network findFirst
|
|
*/
|
|
export type tele_networkFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_network to fetch.
|
|
*/
|
|
where?: Prisma.tele_networkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of tele_networks to fetch.
|
|
*/
|
|
orderBy?: Prisma.tele_networkOrderByWithRelationInput | Prisma.tele_networkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for tele_networks.
|
|
*/
|
|
cursor?: Prisma.tele_networkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` tele_networks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` tele_networks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of tele_networks.
|
|
*/
|
|
distinct?: Prisma.Tele_networkScalarFieldEnum | Prisma.Tele_networkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* tele_network findFirstOrThrow
|
|
*/
|
|
export type tele_networkFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_network to fetch.
|
|
*/
|
|
where?: Prisma.tele_networkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of tele_networks to fetch.
|
|
*/
|
|
orderBy?: Prisma.tele_networkOrderByWithRelationInput | Prisma.tele_networkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for tele_networks.
|
|
*/
|
|
cursor?: Prisma.tele_networkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` tele_networks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` tele_networks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of tele_networks.
|
|
*/
|
|
distinct?: Prisma.Tele_networkScalarFieldEnum | Prisma.Tele_networkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* tele_network findMany
|
|
*/
|
|
export type tele_networkFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which tele_networks to fetch.
|
|
*/
|
|
where?: Prisma.tele_networkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of tele_networks to fetch.
|
|
*/
|
|
orderBy?: Prisma.tele_networkOrderByWithRelationInput | Prisma.tele_networkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing tele_networks.
|
|
*/
|
|
cursor?: Prisma.tele_networkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` tele_networks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` tele_networks.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.Tele_networkScalarFieldEnum | Prisma.Tele_networkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* tele_network create
|
|
*/
|
|
export type tele_networkCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a tele_network.
|
|
*/
|
|
data: Prisma.XOR<Prisma.tele_networkCreateInput, Prisma.tele_networkUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* tele_network createMany
|
|
*/
|
|
export type tele_networkCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many tele_networks.
|
|
*/
|
|
data: Prisma.tele_networkCreateManyInput | Prisma.tele_networkCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* tele_network update
|
|
*/
|
|
export type tele_networkUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a tele_network.
|
|
*/
|
|
data: Prisma.XOR<Prisma.tele_networkUpdateInput, Prisma.tele_networkUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which tele_network to update.
|
|
*/
|
|
where: Prisma.tele_networkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tele_network updateMany
|
|
*/
|
|
export type tele_networkUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update tele_networks.
|
|
*/
|
|
data: Prisma.XOR<Prisma.tele_networkUpdateManyMutationInput, Prisma.tele_networkUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which tele_networks to update
|
|
*/
|
|
where?: Prisma.tele_networkWhereInput
|
|
/**
|
|
* Limit how many tele_networks to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* tele_network upsert
|
|
*/
|
|
export type tele_networkUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the tele_network to update in case it exists.
|
|
*/
|
|
where: Prisma.tele_networkWhereUniqueInput
|
|
/**
|
|
* In case the tele_network found by the `where` argument doesn't exist, create a new tele_network with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.tele_networkCreateInput, Prisma.tele_networkUncheckedCreateInput>
|
|
/**
|
|
* In case the tele_network was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.tele_networkUpdateInput, Prisma.tele_networkUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* tele_network delete
|
|
*/
|
|
export type tele_networkDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which tele_network to delete.
|
|
*/
|
|
where: Prisma.tele_networkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* tele_network deleteMany
|
|
*/
|
|
export type tele_networkDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which tele_networks to delete
|
|
*/
|
|
where?: Prisma.tele_networkWhereInput
|
|
/**
|
|
* Limit how many tele_networks to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* tele_network without action
|
|
*/
|
|
export type tele_networkDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the tele_network
|
|
*/
|
|
select?: Prisma.tele_networkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the tele_network
|
|
*/
|
|
omit?: Prisma.tele_networkOmit<ExtArgs> | null
|
|
}
|