1001 lines
37 KiB
TypeScript
1001 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 `fibre_service_port` 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 fibre_service_port
|
|
*
|
|
*/
|
|
export type fibre_service_portModel = runtime.Types.Result.DefaultSelection<Prisma.$fibre_service_portPayload>
|
|
|
|
export type AggregateFibre_service_port = {
|
|
_count: Fibre_service_portCountAggregateOutputType | null
|
|
_avg: Fibre_service_portAvgAggregateOutputType | null
|
|
_sum: Fibre_service_portSumAggregateOutputType | null
|
|
_min: Fibre_service_portMinAggregateOutputType | null
|
|
_max: Fibre_service_portMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Fibre_service_portAvgAggregateOutputType = {
|
|
id: number | null
|
|
last_service_id: number | null
|
|
}
|
|
|
|
export type Fibre_service_portSumAggregateOutputType = {
|
|
id: number | null
|
|
last_service_id: number | null
|
|
}
|
|
|
|
export type Fibre_service_portMinAggregateOutputType = {
|
|
id: number | null
|
|
last_service_id: number | null
|
|
}
|
|
|
|
export type Fibre_service_portMaxAggregateOutputType = {
|
|
id: number | null
|
|
last_service_id: number | null
|
|
}
|
|
|
|
export type Fibre_service_portCountAggregateOutputType = {
|
|
id: number
|
|
last_service_id: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Fibre_service_portAvgAggregateInputType = {
|
|
id?: true
|
|
last_service_id?: true
|
|
}
|
|
|
|
export type Fibre_service_portSumAggregateInputType = {
|
|
id?: true
|
|
last_service_id?: true
|
|
}
|
|
|
|
export type Fibre_service_portMinAggregateInputType = {
|
|
id?: true
|
|
last_service_id?: true
|
|
}
|
|
|
|
export type Fibre_service_portMaxAggregateInputType = {
|
|
id?: true
|
|
last_service_id?: true
|
|
}
|
|
|
|
export type Fibre_service_portCountAggregateInputType = {
|
|
id?: true
|
|
last_service_id?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Fibre_service_portAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which fibre_service_port to aggregate.
|
|
*/
|
|
where?: Prisma.fibre_service_portWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of fibre_service_ports to fetch.
|
|
*/
|
|
orderBy?: Prisma.fibre_service_portOrderByWithRelationInput | Prisma.fibre_service_portOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.fibre_service_portWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` fibre_service_ports 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` fibre_service_ports.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned fibre_service_ports
|
|
**/
|
|
_count?: true | Fibre_service_portCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Fibre_service_portAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Fibre_service_portSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Fibre_service_portMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Fibre_service_portMaxAggregateInputType
|
|
}
|
|
|
|
export type GetFibre_service_portAggregateType<T extends Fibre_service_portAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateFibre_service_port]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateFibre_service_port[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateFibre_service_port[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type fibre_service_portGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.fibre_service_portWhereInput
|
|
orderBy?: Prisma.fibre_service_portOrderByWithAggregationInput | Prisma.fibre_service_portOrderByWithAggregationInput[]
|
|
by: Prisma.Fibre_service_portScalarFieldEnum[] | Prisma.Fibre_service_portScalarFieldEnum
|
|
having?: Prisma.fibre_service_portScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Fibre_service_portCountAggregateInputType | true
|
|
_avg?: Fibre_service_portAvgAggregateInputType
|
|
_sum?: Fibre_service_portSumAggregateInputType
|
|
_min?: Fibre_service_portMinAggregateInputType
|
|
_max?: Fibre_service_portMaxAggregateInputType
|
|
}
|
|
|
|
export type Fibre_service_portGroupByOutputType = {
|
|
id: number
|
|
last_service_id: number
|
|
_count: Fibre_service_portCountAggregateOutputType | null
|
|
_avg: Fibre_service_portAvgAggregateOutputType | null
|
|
_sum: Fibre_service_portSumAggregateOutputType | null
|
|
_min: Fibre_service_portMinAggregateOutputType | null
|
|
_max: Fibre_service_portMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetFibre_service_portGroupByPayload<T extends fibre_service_portGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Fibre_service_portGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Fibre_service_portGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Fibre_service_portGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Fibre_service_portGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type fibre_service_portWhereInput = {
|
|
AND?: Prisma.fibre_service_portWhereInput | Prisma.fibre_service_portWhereInput[]
|
|
OR?: Prisma.fibre_service_portWhereInput[]
|
|
NOT?: Prisma.fibre_service_portWhereInput | Prisma.fibre_service_portWhereInput[]
|
|
id?: Prisma.IntFilter<"fibre_service_port"> | number
|
|
last_service_id?: Prisma.IntFilter<"fibre_service_port"> | number
|
|
}
|
|
|
|
export type fibre_service_portOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
last_service_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type fibre_service_portWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.fibre_service_portWhereInput | Prisma.fibre_service_portWhereInput[]
|
|
OR?: Prisma.fibre_service_portWhereInput[]
|
|
NOT?: Prisma.fibre_service_portWhereInput | Prisma.fibre_service_portWhereInput[]
|
|
last_service_id?: Prisma.IntFilter<"fibre_service_port"> | number
|
|
}, "id">
|
|
|
|
export type fibre_service_portOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
last_service_id?: Prisma.SortOrder
|
|
_count?: Prisma.fibre_service_portCountOrderByAggregateInput
|
|
_avg?: Prisma.fibre_service_portAvgOrderByAggregateInput
|
|
_max?: Prisma.fibre_service_portMaxOrderByAggregateInput
|
|
_min?: Prisma.fibre_service_portMinOrderByAggregateInput
|
|
_sum?: Prisma.fibre_service_portSumOrderByAggregateInput
|
|
}
|
|
|
|
export type fibre_service_portScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.fibre_service_portScalarWhereWithAggregatesInput | Prisma.fibre_service_portScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.fibre_service_portScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.fibre_service_portScalarWhereWithAggregatesInput | Prisma.fibre_service_portScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"fibre_service_port"> | number
|
|
last_service_id?: Prisma.IntWithAggregatesFilter<"fibre_service_port"> | number
|
|
}
|
|
|
|
export type fibre_service_portCreateInput = {
|
|
last_service_id: number
|
|
}
|
|
|
|
export type fibre_service_portUncheckedCreateInput = {
|
|
id?: number
|
|
last_service_id: number
|
|
}
|
|
|
|
export type fibre_service_portUpdateInput = {
|
|
last_service_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type fibre_service_portUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_service_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type fibre_service_portCreateManyInput = {
|
|
id?: number
|
|
last_service_id: number
|
|
}
|
|
|
|
export type fibre_service_portUpdateManyMutationInput = {
|
|
last_service_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type fibre_service_portUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
last_service_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type fibre_service_portCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
last_service_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type fibre_service_portAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
last_service_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type fibre_service_portMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
last_service_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type fibre_service_portMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
last_service_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type fibre_service_portSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
last_service_id?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type fibre_service_portSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
last_service_id?: boolean
|
|
}, ExtArgs["result"]["fibre_service_port"]>
|
|
|
|
|
|
|
|
export type fibre_service_portSelectScalar = {
|
|
id?: boolean
|
|
last_service_id?: boolean
|
|
}
|
|
|
|
export type fibre_service_portOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "last_service_id", ExtArgs["result"]["fibre_service_port"]>
|
|
|
|
export type $fibre_service_portPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "fibre_service_port"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
last_service_id: number
|
|
}, ExtArgs["result"]["fibre_service_port"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type fibre_service_portGetPayload<S extends boolean | null | undefined | fibre_service_portDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload, S>
|
|
|
|
export type fibre_service_portCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<fibre_service_portFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Fibre_service_portCountAggregateInputType | true
|
|
}
|
|
|
|
export interface fibre_service_portDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['fibre_service_port'], meta: { name: 'fibre_service_port' } }
|
|
/**
|
|
* Find zero or one Fibre_service_port that matches the filter.
|
|
* @param {fibre_service_portFindUniqueArgs} args - Arguments to find a Fibre_service_port
|
|
* @example
|
|
* // Get one Fibre_service_port
|
|
* const fibre_service_port = await prisma.fibre_service_port.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends fibre_service_portFindUniqueArgs>(args: Prisma.SelectSubset<T, fibre_service_portFindUniqueArgs<ExtArgs>>): Prisma.Prisma__fibre_service_portClient<runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Fibre_service_port that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {fibre_service_portFindUniqueOrThrowArgs} args - Arguments to find a Fibre_service_port
|
|
* @example
|
|
* // Get one Fibre_service_port
|
|
* const fibre_service_port = await prisma.fibre_service_port.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends fibre_service_portFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, fibre_service_portFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__fibre_service_portClient<runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Fibre_service_port 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 {fibre_service_portFindFirstArgs} args - Arguments to find a Fibre_service_port
|
|
* @example
|
|
* // Get one Fibre_service_port
|
|
* const fibre_service_port = await prisma.fibre_service_port.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends fibre_service_portFindFirstArgs>(args?: Prisma.SelectSubset<T, fibre_service_portFindFirstArgs<ExtArgs>>): Prisma.Prisma__fibre_service_portClient<runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Fibre_service_port 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 {fibre_service_portFindFirstOrThrowArgs} args - Arguments to find a Fibre_service_port
|
|
* @example
|
|
* // Get one Fibre_service_port
|
|
* const fibre_service_port = await prisma.fibre_service_port.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends fibre_service_portFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, fibre_service_portFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__fibre_service_portClient<runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Fibre_service_ports 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 {fibre_service_portFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Fibre_service_ports
|
|
* const fibre_service_ports = await prisma.fibre_service_port.findMany()
|
|
*
|
|
* // Get first 10 Fibre_service_ports
|
|
* const fibre_service_ports = await prisma.fibre_service_port.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const fibre_service_portWithIdOnly = await prisma.fibre_service_port.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends fibre_service_portFindManyArgs>(args?: Prisma.SelectSubset<T, fibre_service_portFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Fibre_service_port.
|
|
* @param {fibre_service_portCreateArgs} args - Arguments to create a Fibre_service_port.
|
|
* @example
|
|
* // Create one Fibre_service_port
|
|
* const Fibre_service_port = await prisma.fibre_service_port.create({
|
|
* data: {
|
|
* // ... data to create a Fibre_service_port
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends fibre_service_portCreateArgs>(args: Prisma.SelectSubset<T, fibre_service_portCreateArgs<ExtArgs>>): Prisma.Prisma__fibre_service_portClient<runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Fibre_service_ports.
|
|
* @param {fibre_service_portCreateManyArgs} args - Arguments to create many Fibre_service_ports.
|
|
* @example
|
|
* // Create many Fibre_service_ports
|
|
* const fibre_service_port = await prisma.fibre_service_port.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends fibre_service_portCreateManyArgs>(args?: Prisma.SelectSubset<T, fibre_service_portCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a Fibre_service_port.
|
|
* @param {fibre_service_portDeleteArgs} args - Arguments to delete one Fibre_service_port.
|
|
* @example
|
|
* // Delete one Fibre_service_port
|
|
* const Fibre_service_port = await prisma.fibre_service_port.delete({
|
|
* where: {
|
|
* // ... filter to delete one Fibre_service_port
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends fibre_service_portDeleteArgs>(args: Prisma.SelectSubset<T, fibre_service_portDeleteArgs<ExtArgs>>): Prisma.Prisma__fibre_service_portClient<runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Fibre_service_port.
|
|
* @param {fibre_service_portUpdateArgs} args - Arguments to update one Fibre_service_port.
|
|
* @example
|
|
* // Update one Fibre_service_port
|
|
* const fibre_service_port = await prisma.fibre_service_port.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends fibre_service_portUpdateArgs>(args: Prisma.SelectSubset<T, fibre_service_portUpdateArgs<ExtArgs>>): Prisma.Prisma__fibre_service_portClient<runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Fibre_service_ports.
|
|
* @param {fibre_service_portDeleteManyArgs} args - Arguments to filter Fibre_service_ports to delete.
|
|
* @example
|
|
* // Delete a few Fibre_service_ports
|
|
* const { count } = await prisma.fibre_service_port.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends fibre_service_portDeleteManyArgs>(args?: Prisma.SelectSubset<T, fibre_service_portDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Fibre_service_ports.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {fibre_service_portUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Fibre_service_ports
|
|
* const fibre_service_port = await prisma.fibre_service_port.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends fibre_service_portUpdateManyArgs>(args: Prisma.SelectSubset<T, fibre_service_portUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Fibre_service_port.
|
|
* @param {fibre_service_portUpsertArgs} args - Arguments to update or create a Fibre_service_port.
|
|
* @example
|
|
* // Update or create a Fibre_service_port
|
|
* const fibre_service_port = await prisma.fibre_service_port.upsert({
|
|
* create: {
|
|
* // ... data to create a Fibre_service_port
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Fibre_service_port we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends fibre_service_portUpsertArgs>(args: Prisma.SelectSubset<T, fibre_service_portUpsertArgs<ExtArgs>>): Prisma.Prisma__fibre_service_portClient<runtime.Types.Result.GetResult<Prisma.$fibre_service_portPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Fibre_service_ports.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {fibre_service_portCountArgs} args - Arguments to filter Fibre_service_ports to count.
|
|
* @example
|
|
* // Count the number of Fibre_service_ports
|
|
* const count = await prisma.fibre_service_port.count({
|
|
* where: {
|
|
* // ... the filter for the Fibre_service_ports we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends fibre_service_portCountArgs>(
|
|
args?: Prisma.Subset<T, fibre_service_portCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Fibre_service_portCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Fibre_service_port.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Fibre_service_portAggregateArgs} 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 Fibre_service_portAggregateArgs>(args: Prisma.Subset<T, Fibre_service_portAggregateArgs>): Prisma.PrismaPromise<GetFibre_service_portAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Fibre_service_port.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {fibre_service_portGroupByArgs} 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 fibre_service_portGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: fibre_service_portGroupByArgs['orderBy'] }
|
|
: { orderBy?: fibre_service_portGroupByArgs['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, fibre_service_portGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFibre_service_portGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the fibre_service_port model
|
|
*/
|
|
readonly fields: fibre_service_portFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for fibre_service_port.
|
|
* 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__fibre_service_portClient<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 fibre_service_port model
|
|
*/
|
|
export interface fibre_service_portFieldRefs {
|
|
readonly id: Prisma.FieldRef<"fibre_service_port", 'Int'>
|
|
readonly last_service_id: Prisma.FieldRef<"fibre_service_port", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* fibre_service_port findUnique
|
|
*/
|
|
export type fibre_service_portFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which fibre_service_port to fetch.
|
|
*/
|
|
where: Prisma.fibre_service_portWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port findUniqueOrThrow
|
|
*/
|
|
export type fibre_service_portFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which fibre_service_port to fetch.
|
|
*/
|
|
where: Prisma.fibre_service_portWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port findFirst
|
|
*/
|
|
export type fibre_service_portFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which fibre_service_port to fetch.
|
|
*/
|
|
where?: Prisma.fibre_service_portWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of fibre_service_ports to fetch.
|
|
*/
|
|
orderBy?: Prisma.fibre_service_portOrderByWithRelationInput | Prisma.fibre_service_portOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for fibre_service_ports.
|
|
*/
|
|
cursor?: Prisma.fibre_service_portWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` fibre_service_ports 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` fibre_service_ports.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of fibre_service_ports.
|
|
*/
|
|
distinct?: Prisma.Fibre_service_portScalarFieldEnum | Prisma.Fibre_service_portScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port findFirstOrThrow
|
|
*/
|
|
export type fibre_service_portFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which fibre_service_port to fetch.
|
|
*/
|
|
where?: Prisma.fibre_service_portWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of fibre_service_ports to fetch.
|
|
*/
|
|
orderBy?: Prisma.fibre_service_portOrderByWithRelationInput | Prisma.fibre_service_portOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for fibre_service_ports.
|
|
*/
|
|
cursor?: Prisma.fibre_service_portWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` fibre_service_ports 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` fibre_service_ports.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of fibre_service_ports.
|
|
*/
|
|
distinct?: Prisma.Fibre_service_portScalarFieldEnum | Prisma.Fibre_service_portScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port findMany
|
|
*/
|
|
export type fibre_service_portFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which fibre_service_ports to fetch.
|
|
*/
|
|
where?: Prisma.fibre_service_portWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of fibre_service_ports to fetch.
|
|
*/
|
|
orderBy?: Prisma.fibre_service_portOrderByWithRelationInput | Prisma.fibre_service_portOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing fibre_service_ports.
|
|
*/
|
|
cursor?: Prisma.fibre_service_portWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` fibre_service_ports 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` fibre_service_ports.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.Fibre_service_portScalarFieldEnum | Prisma.Fibre_service_portScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port create
|
|
*/
|
|
export type fibre_service_portCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a fibre_service_port.
|
|
*/
|
|
data: Prisma.XOR<Prisma.fibre_service_portCreateInput, Prisma.fibre_service_portUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port createMany
|
|
*/
|
|
export type fibre_service_portCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many fibre_service_ports.
|
|
*/
|
|
data: Prisma.fibre_service_portCreateManyInput | Prisma.fibre_service_portCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port update
|
|
*/
|
|
export type fibre_service_portUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a fibre_service_port.
|
|
*/
|
|
data: Prisma.XOR<Prisma.fibre_service_portUpdateInput, Prisma.fibre_service_portUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which fibre_service_port to update.
|
|
*/
|
|
where: Prisma.fibre_service_portWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port updateMany
|
|
*/
|
|
export type fibre_service_portUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update fibre_service_ports.
|
|
*/
|
|
data: Prisma.XOR<Prisma.fibre_service_portUpdateManyMutationInput, Prisma.fibre_service_portUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which fibre_service_ports to update
|
|
*/
|
|
where?: Prisma.fibre_service_portWhereInput
|
|
/**
|
|
* Limit how many fibre_service_ports to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port upsert
|
|
*/
|
|
export type fibre_service_portUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the fibre_service_port to update in case it exists.
|
|
*/
|
|
where: Prisma.fibre_service_portWhereUniqueInput
|
|
/**
|
|
* In case the fibre_service_port found by the `where` argument doesn't exist, create a new fibre_service_port with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.fibre_service_portCreateInput, Prisma.fibre_service_portUncheckedCreateInput>
|
|
/**
|
|
* In case the fibre_service_port was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.fibre_service_portUpdateInput, Prisma.fibre_service_portUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port delete
|
|
*/
|
|
export type fibre_service_portDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which fibre_service_port to delete.
|
|
*/
|
|
where: Prisma.fibre_service_portWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port deleteMany
|
|
*/
|
|
export type fibre_service_portDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which fibre_service_ports to delete
|
|
*/
|
|
where?: Prisma.fibre_service_portWhereInput
|
|
/**
|
|
* Limit how many fibre_service_ports to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* fibre_service_port without action
|
|
*/
|
|
export type fibre_service_portDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the fibre_service_port
|
|
*/
|
|
select?: Prisma.fibre_service_portSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the fibre_service_port
|
|
*/
|
|
omit?: Prisma.fibre_service_portOmit<ExtArgs> | null
|
|
}
|