1033 lines
35 KiB
TypeScript
1033 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 `device_link` 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 device_link
|
|
*
|
|
*/
|
|
export type device_linkModel = runtime.Types.Result.DefaultSelection<Prisma.$device_linkPayload>
|
|
|
|
export type AggregateDevice_link = {
|
|
_count: Device_linkCountAggregateOutputType | null
|
|
_avg: Device_linkAvgAggregateOutputType | null
|
|
_sum: Device_linkSumAggregateOutputType | null
|
|
_min: Device_linkMinAggregateOutputType | null
|
|
_max: Device_linkMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Device_linkAvgAggregateOutputType = {
|
|
id: number | null
|
|
parent: number | null
|
|
child: number | null
|
|
}
|
|
|
|
export type Device_linkSumAggregateOutputType = {
|
|
id: number | null
|
|
parent: number | null
|
|
child: number | null
|
|
}
|
|
|
|
export type Device_linkMinAggregateOutputType = {
|
|
id: number | null
|
|
parent: number | null
|
|
child: number | null
|
|
}
|
|
|
|
export type Device_linkMaxAggregateOutputType = {
|
|
id: number | null
|
|
parent: number | null
|
|
child: number | null
|
|
}
|
|
|
|
export type Device_linkCountAggregateOutputType = {
|
|
id: number
|
|
parent: number
|
|
child: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Device_linkAvgAggregateInputType = {
|
|
id?: true
|
|
parent?: true
|
|
child?: true
|
|
}
|
|
|
|
export type Device_linkSumAggregateInputType = {
|
|
id?: true
|
|
parent?: true
|
|
child?: true
|
|
}
|
|
|
|
export type Device_linkMinAggregateInputType = {
|
|
id?: true
|
|
parent?: true
|
|
child?: true
|
|
}
|
|
|
|
export type Device_linkMaxAggregateInputType = {
|
|
id?: true
|
|
parent?: true
|
|
child?: true
|
|
}
|
|
|
|
export type Device_linkCountAggregateInputType = {
|
|
id?: true
|
|
parent?: true
|
|
child?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Device_linkAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which device_link to aggregate.
|
|
*/
|
|
where?: Prisma.device_linkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of device_links to fetch.
|
|
*/
|
|
orderBy?: Prisma.device_linkOrderByWithRelationInput | Prisma.device_linkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.device_linkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` device_links 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` device_links.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned device_links
|
|
**/
|
|
_count?: true | Device_linkCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Device_linkAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Device_linkSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Device_linkMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Device_linkMaxAggregateInputType
|
|
}
|
|
|
|
export type GetDevice_linkAggregateType<T extends Device_linkAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateDevice_link]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateDevice_link[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateDevice_link[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type device_linkGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.device_linkWhereInput
|
|
orderBy?: Prisma.device_linkOrderByWithAggregationInput | Prisma.device_linkOrderByWithAggregationInput[]
|
|
by: Prisma.Device_linkScalarFieldEnum[] | Prisma.Device_linkScalarFieldEnum
|
|
having?: Prisma.device_linkScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Device_linkCountAggregateInputType | true
|
|
_avg?: Device_linkAvgAggregateInputType
|
|
_sum?: Device_linkSumAggregateInputType
|
|
_min?: Device_linkMinAggregateInputType
|
|
_max?: Device_linkMaxAggregateInputType
|
|
}
|
|
|
|
export type Device_linkGroupByOutputType = {
|
|
id: number
|
|
parent: number
|
|
child: number
|
|
_count: Device_linkCountAggregateOutputType | null
|
|
_avg: Device_linkAvgAggregateOutputType | null
|
|
_sum: Device_linkSumAggregateOutputType | null
|
|
_min: Device_linkMinAggregateOutputType | null
|
|
_max: Device_linkMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetDevice_linkGroupByPayload<T extends device_linkGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Device_linkGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Device_linkGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Device_linkGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Device_linkGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type device_linkWhereInput = {
|
|
AND?: Prisma.device_linkWhereInput | Prisma.device_linkWhereInput[]
|
|
OR?: Prisma.device_linkWhereInput[]
|
|
NOT?: Prisma.device_linkWhereInput | Prisma.device_linkWhereInput[]
|
|
id?: Prisma.IntFilter<"device_link"> | number
|
|
parent?: Prisma.IntFilter<"device_link"> | number
|
|
child?: Prisma.IntFilter<"device_link"> | number
|
|
}
|
|
|
|
export type device_linkOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
parent?: Prisma.SortOrder
|
|
child?: Prisma.SortOrder
|
|
}
|
|
|
|
export type device_linkWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.device_linkWhereInput | Prisma.device_linkWhereInput[]
|
|
OR?: Prisma.device_linkWhereInput[]
|
|
NOT?: Prisma.device_linkWhereInput | Prisma.device_linkWhereInput[]
|
|
parent?: Prisma.IntFilter<"device_link"> | number
|
|
child?: Prisma.IntFilter<"device_link"> | number
|
|
}, "id">
|
|
|
|
export type device_linkOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
parent?: Prisma.SortOrder
|
|
child?: Prisma.SortOrder
|
|
_count?: Prisma.device_linkCountOrderByAggregateInput
|
|
_avg?: Prisma.device_linkAvgOrderByAggregateInput
|
|
_max?: Prisma.device_linkMaxOrderByAggregateInput
|
|
_min?: Prisma.device_linkMinOrderByAggregateInput
|
|
_sum?: Prisma.device_linkSumOrderByAggregateInput
|
|
}
|
|
|
|
export type device_linkScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.device_linkScalarWhereWithAggregatesInput | Prisma.device_linkScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.device_linkScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.device_linkScalarWhereWithAggregatesInput | Prisma.device_linkScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"device_link"> | number
|
|
parent?: Prisma.IntWithAggregatesFilter<"device_link"> | number
|
|
child?: Prisma.IntWithAggregatesFilter<"device_link"> | number
|
|
}
|
|
|
|
export type device_linkCreateInput = {
|
|
parent: number
|
|
child: number
|
|
}
|
|
|
|
export type device_linkUncheckedCreateInput = {
|
|
id?: number
|
|
parent: number
|
|
child: number
|
|
}
|
|
|
|
export type device_linkUpdateInput = {
|
|
parent?: Prisma.IntFieldUpdateOperationsInput | number
|
|
child?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type device_linkUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
parent?: Prisma.IntFieldUpdateOperationsInput | number
|
|
child?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type device_linkCreateManyInput = {
|
|
id?: number
|
|
parent: number
|
|
child: number
|
|
}
|
|
|
|
export type device_linkUpdateManyMutationInput = {
|
|
parent?: Prisma.IntFieldUpdateOperationsInput | number
|
|
child?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type device_linkUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
parent?: Prisma.IntFieldUpdateOperationsInput | number
|
|
child?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type device_linkCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
parent?: Prisma.SortOrder
|
|
child?: Prisma.SortOrder
|
|
}
|
|
|
|
export type device_linkAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
parent?: Prisma.SortOrder
|
|
child?: Prisma.SortOrder
|
|
}
|
|
|
|
export type device_linkMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
parent?: Prisma.SortOrder
|
|
child?: Prisma.SortOrder
|
|
}
|
|
|
|
export type device_linkMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
parent?: Prisma.SortOrder
|
|
child?: Prisma.SortOrder
|
|
}
|
|
|
|
export type device_linkSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
parent?: Prisma.SortOrder
|
|
child?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type device_linkSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
parent?: boolean
|
|
child?: boolean
|
|
}, ExtArgs["result"]["device_link"]>
|
|
|
|
|
|
|
|
export type device_linkSelectScalar = {
|
|
id?: boolean
|
|
parent?: boolean
|
|
child?: boolean
|
|
}
|
|
|
|
export type device_linkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "parent" | "child", ExtArgs["result"]["device_link"]>
|
|
|
|
export type $device_linkPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "device_link"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
parent: number
|
|
child: number
|
|
}, ExtArgs["result"]["device_link"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type device_linkGetPayload<S extends boolean | null | undefined | device_linkDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$device_linkPayload, S>
|
|
|
|
export type device_linkCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<device_linkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Device_linkCountAggregateInputType | true
|
|
}
|
|
|
|
export interface device_linkDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['device_link'], meta: { name: 'device_link' } }
|
|
/**
|
|
* Find zero or one Device_link that matches the filter.
|
|
* @param {device_linkFindUniqueArgs} args - Arguments to find a Device_link
|
|
* @example
|
|
* // Get one Device_link
|
|
* const device_link = await prisma.device_link.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends device_linkFindUniqueArgs>(args: Prisma.SelectSubset<T, device_linkFindUniqueArgs<ExtArgs>>): Prisma.Prisma__device_linkClient<runtime.Types.Result.GetResult<Prisma.$device_linkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Device_link that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {device_linkFindUniqueOrThrowArgs} args - Arguments to find a Device_link
|
|
* @example
|
|
* // Get one Device_link
|
|
* const device_link = await prisma.device_link.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends device_linkFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, device_linkFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__device_linkClient<runtime.Types.Result.GetResult<Prisma.$device_linkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Device_link 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 {device_linkFindFirstArgs} args - Arguments to find a Device_link
|
|
* @example
|
|
* // Get one Device_link
|
|
* const device_link = await prisma.device_link.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends device_linkFindFirstArgs>(args?: Prisma.SelectSubset<T, device_linkFindFirstArgs<ExtArgs>>): Prisma.Prisma__device_linkClient<runtime.Types.Result.GetResult<Prisma.$device_linkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Device_link 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 {device_linkFindFirstOrThrowArgs} args - Arguments to find a Device_link
|
|
* @example
|
|
* // Get one Device_link
|
|
* const device_link = await prisma.device_link.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends device_linkFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, device_linkFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__device_linkClient<runtime.Types.Result.GetResult<Prisma.$device_linkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Device_links 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 {device_linkFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Device_links
|
|
* const device_links = await prisma.device_link.findMany()
|
|
*
|
|
* // Get first 10 Device_links
|
|
* const device_links = await prisma.device_link.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const device_linkWithIdOnly = await prisma.device_link.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends device_linkFindManyArgs>(args?: Prisma.SelectSubset<T, device_linkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$device_linkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Device_link.
|
|
* @param {device_linkCreateArgs} args - Arguments to create a Device_link.
|
|
* @example
|
|
* // Create one Device_link
|
|
* const Device_link = await prisma.device_link.create({
|
|
* data: {
|
|
* // ... data to create a Device_link
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends device_linkCreateArgs>(args: Prisma.SelectSubset<T, device_linkCreateArgs<ExtArgs>>): Prisma.Prisma__device_linkClient<runtime.Types.Result.GetResult<Prisma.$device_linkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Device_links.
|
|
* @param {device_linkCreateManyArgs} args - Arguments to create many Device_links.
|
|
* @example
|
|
* // Create many Device_links
|
|
* const device_link = await prisma.device_link.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends device_linkCreateManyArgs>(args?: Prisma.SelectSubset<T, device_linkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a Device_link.
|
|
* @param {device_linkDeleteArgs} args - Arguments to delete one Device_link.
|
|
* @example
|
|
* // Delete one Device_link
|
|
* const Device_link = await prisma.device_link.delete({
|
|
* where: {
|
|
* // ... filter to delete one Device_link
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends device_linkDeleteArgs>(args: Prisma.SelectSubset<T, device_linkDeleteArgs<ExtArgs>>): Prisma.Prisma__device_linkClient<runtime.Types.Result.GetResult<Prisma.$device_linkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Device_link.
|
|
* @param {device_linkUpdateArgs} args - Arguments to update one Device_link.
|
|
* @example
|
|
* // Update one Device_link
|
|
* const device_link = await prisma.device_link.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends device_linkUpdateArgs>(args: Prisma.SelectSubset<T, device_linkUpdateArgs<ExtArgs>>): Prisma.Prisma__device_linkClient<runtime.Types.Result.GetResult<Prisma.$device_linkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Device_links.
|
|
* @param {device_linkDeleteManyArgs} args - Arguments to filter Device_links to delete.
|
|
* @example
|
|
* // Delete a few Device_links
|
|
* const { count } = await prisma.device_link.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends device_linkDeleteManyArgs>(args?: Prisma.SelectSubset<T, device_linkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Device_links.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {device_linkUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Device_links
|
|
* const device_link = await prisma.device_link.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends device_linkUpdateManyArgs>(args: Prisma.SelectSubset<T, device_linkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Device_link.
|
|
* @param {device_linkUpsertArgs} args - Arguments to update or create a Device_link.
|
|
* @example
|
|
* // Update or create a Device_link
|
|
* const device_link = await prisma.device_link.upsert({
|
|
* create: {
|
|
* // ... data to create a Device_link
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Device_link we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends device_linkUpsertArgs>(args: Prisma.SelectSubset<T, device_linkUpsertArgs<ExtArgs>>): Prisma.Prisma__device_linkClient<runtime.Types.Result.GetResult<Prisma.$device_linkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Device_links.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {device_linkCountArgs} args - Arguments to filter Device_links to count.
|
|
* @example
|
|
* // Count the number of Device_links
|
|
* const count = await prisma.device_link.count({
|
|
* where: {
|
|
* // ... the filter for the Device_links we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends device_linkCountArgs>(
|
|
args?: Prisma.Subset<T, device_linkCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Device_linkCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Device_link.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Device_linkAggregateArgs} 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 Device_linkAggregateArgs>(args: Prisma.Subset<T, Device_linkAggregateArgs>): Prisma.PrismaPromise<GetDevice_linkAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Device_link.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {device_linkGroupByArgs} 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 device_linkGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: device_linkGroupByArgs['orderBy'] }
|
|
: { orderBy?: device_linkGroupByArgs['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, device_linkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDevice_linkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the device_link model
|
|
*/
|
|
readonly fields: device_linkFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for device_link.
|
|
* 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__device_linkClient<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 device_link model
|
|
*/
|
|
export interface device_linkFieldRefs {
|
|
readonly id: Prisma.FieldRef<"device_link", 'Int'>
|
|
readonly parent: Prisma.FieldRef<"device_link", 'Int'>
|
|
readonly child: Prisma.FieldRef<"device_link", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* device_link findUnique
|
|
*/
|
|
export type device_linkFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which device_link to fetch.
|
|
*/
|
|
where: Prisma.device_linkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* device_link findUniqueOrThrow
|
|
*/
|
|
export type device_linkFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which device_link to fetch.
|
|
*/
|
|
where: Prisma.device_linkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* device_link findFirst
|
|
*/
|
|
export type device_linkFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which device_link to fetch.
|
|
*/
|
|
where?: Prisma.device_linkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of device_links to fetch.
|
|
*/
|
|
orderBy?: Prisma.device_linkOrderByWithRelationInput | Prisma.device_linkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for device_links.
|
|
*/
|
|
cursor?: Prisma.device_linkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` device_links 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` device_links.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of device_links.
|
|
*/
|
|
distinct?: Prisma.Device_linkScalarFieldEnum | Prisma.Device_linkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* device_link findFirstOrThrow
|
|
*/
|
|
export type device_linkFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which device_link to fetch.
|
|
*/
|
|
where?: Prisma.device_linkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of device_links to fetch.
|
|
*/
|
|
orderBy?: Prisma.device_linkOrderByWithRelationInput | Prisma.device_linkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for device_links.
|
|
*/
|
|
cursor?: Prisma.device_linkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` device_links 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` device_links.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of device_links.
|
|
*/
|
|
distinct?: Prisma.Device_linkScalarFieldEnum | Prisma.Device_linkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* device_link findMany
|
|
*/
|
|
export type device_linkFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which device_links to fetch.
|
|
*/
|
|
where?: Prisma.device_linkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of device_links to fetch.
|
|
*/
|
|
orderBy?: Prisma.device_linkOrderByWithRelationInput | Prisma.device_linkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing device_links.
|
|
*/
|
|
cursor?: Prisma.device_linkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` device_links 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` device_links.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.Device_linkScalarFieldEnum | Prisma.Device_linkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* device_link create
|
|
*/
|
|
export type device_linkCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a device_link.
|
|
*/
|
|
data: Prisma.XOR<Prisma.device_linkCreateInput, Prisma.device_linkUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* device_link createMany
|
|
*/
|
|
export type device_linkCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many device_links.
|
|
*/
|
|
data: Prisma.device_linkCreateManyInput | Prisma.device_linkCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* device_link update
|
|
*/
|
|
export type device_linkUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a device_link.
|
|
*/
|
|
data: Prisma.XOR<Prisma.device_linkUpdateInput, Prisma.device_linkUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which device_link to update.
|
|
*/
|
|
where: Prisma.device_linkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* device_link updateMany
|
|
*/
|
|
export type device_linkUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update device_links.
|
|
*/
|
|
data: Prisma.XOR<Prisma.device_linkUpdateManyMutationInput, Prisma.device_linkUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which device_links to update
|
|
*/
|
|
where?: Prisma.device_linkWhereInput
|
|
/**
|
|
* Limit how many device_links to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* device_link upsert
|
|
*/
|
|
export type device_linkUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the device_link to update in case it exists.
|
|
*/
|
|
where: Prisma.device_linkWhereUniqueInput
|
|
/**
|
|
* In case the device_link found by the `where` argument doesn't exist, create a new device_link with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.device_linkCreateInput, Prisma.device_linkUncheckedCreateInput>
|
|
/**
|
|
* In case the device_link was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.device_linkUpdateInput, Prisma.device_linkUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* device_link delete
|
|
*/
|
|
export type device_linkDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which device_link to delete.
|
|
*/
|
|
where: Prisma.device_linkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* device_link deleteMany
|
|
*/
|
|
export type device_linkDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which device_links to delete
|
|
*/
|
|
where?: Prisma.device_linkWhereInput
|
|
/**
|
|
* Limit how many device_links to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* device_link without action
|
|
*/
|
|
export type device_linkDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the device_link
|
|
*/
|
|
select?: Prisma.device_linkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the device_link
|
|
*/
|
|
omit?: Prisma.device_linkOmit<ExtArgs> | null
|
|
}
|