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

1066 lines
40 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 `intranet_doc_paths` 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 intranet_doc_paths
*
*/
export type intranet_doc_pathsModel = runtime.Types.Result.DefaultSelection<Prisma.$intranet_doc_pathsPayload>
export type AggregateIntranet_doc_paths = {
_count: Intranet_doc_pathsCountAggregateOutputType | null
_avg: Intranet_doc_pathsAvgAggregateOutputType | null
_sum: Intranet_doc_pathsSumAggregateOutputType | null
_min: Intranet_doc_pathsMinAggregateOutputType | null
_max: Intranet_doc_pathsMaxAggregateOutputType | null
}
export type Intranet_doc_pathsAvgAggregateOutputType = {
id: number | null
parent_id: number | null
priority_order: number | null
}
export type Intranet_doc_pathsSumAggregateOutputType = {
id: number | null
parent_id: number | null
priority_order: number | null
}
export type Intranet_doc_pathsMinAggregateOutputType = {
id: number | null
description: string | null
parent_id: number | null
priority_order: number | null
}
export type Intranet_doc_pathsMaxAggregateOutputType = {
id: number | null
description: string | null
parent_id: number | null
priority_order: number | null
}
export type Intranet_doc_pathsCountAggregateOutputType = {
id: number
description: number
parent_id: number
priority_order: number
_all: number
}
export type Intranet_doc_pathsAvgAggregateInputType = {
id?: true
parent_id?: true
priority_order?: true
}
export type Intranet_doc_pathsSumAggregateInputType = {
id?: true
parent_id?: true
priority_order?: true
}
export type Intranet_doc_pathsMinAggregateInputType = {
id?: true
description?: true
parent_id?: true
priority_order?: true
}
export type Intranet_doc_pathsMaxAggregateInputType = {
id?: true
description?: true
parent_id?: true
priority_order?: true
}
export type Intranet_doc_pathsCountAggregateInputType = {
id?: true
description?: true
parent_id?: true
priority_order?: true
_all?: true
}
export type Intranet_doc_pathsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which intranet_doc_paths to aggregate.
*/
where?: Prisma.intranet_doc_pathsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of intranet_doc_paths to fetch.
*/
orderBy?: Prisma.intranet_doc_pathsOrderByWithRelationInput | Prisma.intranet_doc_pathsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.intranet_doc_pathsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` intranet_doc_paths 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` intranet_doc_paths.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned intranet_doc_paths
**/
_count?: true | Intranet_doc_pathsCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Intranet_doc_pathsAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Intranet_doc_pathsSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Intranet_doc_pathsMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Intranet_doc_pathsMaxAggregateInputType
}
export type GetIntranet_doc_pathsAggregateType<T extends Intranet_doc_pathsAggregateArgs> = {
[P in keyof T & keyof AggregateIntranet_doc_paths]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateIntranet_doc_paths[P]>
: Prisma.GetScalarType<T[P], AggregateIntranet_doc_paths[P]>
}
export type intranet_doc_pathsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.intranet_doc_pathsWhereInput
orderBy?: Prisma.intranet_doc_pathsOrderByWithAggregationInput | Prisma.intranet_doc_pathsOrderByWithAggregationInput[]
by: Prisma.Intranet_doc_pathsScalarFieldEnum[] | Prisma.Intranet_doc_pathsScalarFieldEnum
having?: Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Intranet_doc_pathsCountAggregateInputType | true
_avg?: Intranet_doc_pathsAvgAggregateInputType
_sum?: Intranet_doc_pathsSumAggregateInputType
_min?: Intranet_doc_pathsMinAggregateInputType
_max?: Intranet_doc_pathsMaxAggregateInputType
}
export type Intranet_doc_pathsGroupByOutputType = {
id: number
description: string
parent_id: number | null
priority_order: number
_count: Intranet_doc_pathsCountAggregateOutputType | null
_avg: Intranet_doc_pathsAvgAggregateOutputType | null
_sum: Intranet_doc_pathsSumAggregateOutputType | null
_min: Intranet_doc_pathsMinAggregateOutputType | null
_max: Intranet_doc_pathsMaxAggregateOutputType | null
}
type GetIntranet_doc_pathsGroupByPayload<T extends intranet_doc_pathsGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Intranet_doc_pathsGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Intranet_doc_pathsGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Intranet_doc_pathsGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Intranet_doc_pathsGroupByOutputType[P]>
}
>
>
export type intranet_doc_pathsWhereInput = {
AND?: Prisma.intranet_doc_pathsWhereInput | Prisma.intranet_doc_pathsWhereInput[]
OR?: Prisma.intranet_doc_pathsWhereInput[]
NOT?: Prisma.intranet_doc_pathsWhereInput | Prisma.intranet_doc_pathsWhereInput[]
id?: Prisma.IntFilter<"intranet_doc_paths"> | number
description?: Prisma.StringFilter<"intranet_doc_paths"> | string
parent_id?: Prisma.IntNullableFilter<"intranet_doc_paths"> | number | null
priority_order?: Prisma.IntFilter<"intranet_doc_paths"> | number
}
export type intranet_doc_pathsOrderByWithRelationInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrder
parent_id?: Prisma.SortOrderInput | Prisma.SortOrder
priority_order?: Prisma.SortOrder
_relevance?: Prisma.intranet_doc_pathsOrderByRelevanceInput
}
export type intranet_doc_pathsWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.intranet_doc_pathsWhereInput | Prisma.intranet_doc_pathsWhereInput[]
OR?: Prisma.intranet_doc_pathsWhereInput[]
NOT?: Prisma.intranet_doc_pathsWhereInput | Prisma.intranet_doc_pathsWhereInput[]
description?: Prisma.StringFilter<"intranet_doc_paths"> | string
parent_id?: Prisma.IntNullableFilter<"intranet_doc_paths"> | number | null
priority_order?: Prisma.IntFilter<"intranet_doc_paths"> | number
}, "id">
export type intranet_doc_pathsOrderByWithAggregationInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrder
parent_id?: Prisma.SortOrderInput | Prisma.SortOrder
priority_order?: Prisma.SortOrder
_count?: Prisma.intranet_doc_pathsCountOrderByAggregateInput
_avg?: Prisma.intranet_doc_pathsAvgOrderByAggregateInput
_max?: Prisma.intranet_doc_pathsMaxOrderByAggregateInput
_min?: Prisma.intranet_doc_pathsMinOrderByAggregateInput
_sum?: Prisma.intranet_doc_pathsSumOrderByAggregateInput
}
export type intranet_doc_pathsScalarWhereWithAggregatesInput = {
AND?: Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput | Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput[]
OR?: Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput[]
NOT?: Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput | Prisma.intranet_doc_pathsScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"intranet_doc_paths"> | number
description?: Prisma.StringWithAggregatesFilter<"intranet_doc_paths"> | string
parent_id?: Prisma.IntNullableWithAggregatesFilter<"intranet_doc_paths"> | number | null
priority_order?: Prisma.IntWithAggregatesFilter<"intranet_doc_paths"> | number
}
export type intranet_doc_pathsCreateInput = {
description: string
parent_id?: number | null
priority_order?: number
}
export type intranet_doc_pathsUncheckedCreateInput = {
id?: number
description: string
parent_id?: number | null
priority_order?: number
}
export type intranet_doc_pathsUpdateInput = {
description?: Prisma.StringFieldUpdateOperationsInput | string
parent_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priority_order?: Prisma.IntFieldUpdateOperationsInput | number
}
export type intranet_doc_pathsUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.StringFieldUpdateOperationsInput | string
parent_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priority_order?: Prisma.IntFieldUpdateOperationsInput | number
}
export type intranet_doc_pathsCreateManyInput = {
id?: number
description: string
parent_id?: number | null
priority_order?: number
}
export type intranet_doc_pathsUpdateManyMutationInput = {
description?: Prisma.StringFieldUpdateOperationsInput | string
parent_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priority_order?: Prisma.IntFieldUpdateOperationsInput | number
}
export type intranet_doc_pathsUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.StringFieldUpdateOperationsInput | string
parent_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priority_order?: Prisma.IntFieldUpdateOperationsInput | number
}
export type intranet_doc_pathsOrderByRelevanceInput = {
fields: Prisma.intranet_doc_pathsOrderByRelevanceFieldEnum | Prisma.intranet_doc_pathsOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type intranet_doc_pathsCountOrderByAggregateInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrder
parent_id?: Prisma.SortOrder
priority_order?: Prisma.SortOrder
}
export type intranet_doc_pathsAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
parent_id?: Prisma.SortOrder
priority_order?: Prisma.SortOrder
}
export type intranet_doc_pathsMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrder
parent_id?: Prisma.SortOrder
priority_order?: Prisma.SortOrder
}
export type intranet_doc_pathsMinOrderByAggregateInput = {
id?: Prisma.SortOrder
description?: Prisma.SortOrder
parent_id?: Prisma.SortOrder
priority_order?: Prisma.SortOrder
}
export type intranet_doc_pathsSumOrderByAggregateInput = {
id?: Prisma.SortOrder
parent_id?: Prisma.SortOrder
priority_order?: Prisma.SortOrder
}
export type intranet_doc_pathsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
description?: boolean
parent_id?: boolean
priority_order?: boolean
}, ExtArgs["result"]["intranet_doc_paths"]>
export type intranet_doc_pathsSelectScalar = {
id?: boolean
description?: boolean
parent_id?: boolean
priority_order?: boolean
}
export type intranet_doc_pathsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "description" | "parent_id" | "priority_order", ExtArgs["result"]["intranet_doc_paths"]>
export type $intranet_doc_pathsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "intranet_doc_paths"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
description: string
parent_id: number | null
priority_order: number
}, ExtArgs["result"]["intranet_doc_paths"]>
composites: {}
}
export type intranet_doc_pathsGetPayload<S extends boolean | null | undefined | intranet_doc_pathsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload, S>
export type intranet_doc_pathsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<intranet_doc_pathsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Intranet_doc_pathsCountAggregateInputType | true
}
export interface intranet_doc_pathsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['intranet_doc_paths'], meta: { name: 'intranet_doc_paths' } }
/**
* Find zero or one Intranet_doc_paths that matches the filter.
* @param {intranet_doc_pathsFindUniqueArgs} args - Arguments to find a Intranet_doc_paths
* @example
* // Get one Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends intranet_doc_pathsFindUniqueArgs>(args: Prisma.SelectSubset<T, intranet_doc_pathsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__intranet_doc_pathsClient<runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Intranet_doc_paths that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {intranet_doc_pathsFindUniqueOrThrowArgs} args - Arguments to find a Intranet_doc_paths
* @example
* // Get one Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends intranet_doc_pathsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, intranet_doc_pathsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__intranet_doc_pathsClient<runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Intranet_doc_paths 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 {intranet_doc_pathsFindFirstArgs} args - Arguments to find a Intranet_doc_paths
* @example
* // Get one Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends intranet_doc_pathsFindFirstArgs>(args?: Prisma.SelectSubset<T, intranet_doc_pathsFindFirstArgs<ExtArgs>>): Prisma.Prisma__intranet_doc_pathsClient<runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Intranet_doc_paths 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 {intranet_doc_pathsFindFirstOrThrowArgs} args - Arguments to find a Intranet_doc_paths
* @example
* // Get one Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends intranet_doc_pathsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, intranet_doc_pathsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__intranet_doc_pathsClient<runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Intranet_doc_paths 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 {intranet_doc_pathsFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.findMany()
*
* // Get first 10 Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.findMany({ take: 10 })
*
* // Only select the `id`
* const intranet_doc_pathsWithIdOnly = await prisma.intranet_doc_paths.findMany({ select: { id: true } })
*
*/
findMany<T extends intranet_doc_pathsFindManyArgs>(args?: Prisma.SelectSubset<T, intranet_doc_pathsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Intranet_doc_paths.
* @param {intranet_doc_pathsCreateArgs} args - Arguments to create a Intranet_doc_paths.
* @example
* // Create one Intranet_doc_paths
* const Intranet_doc_paths = await prisma.intranet_doc_paths.create({
* data: {
* // ... data to create a Intranet_doc_paths
* }
* })
*
*/
create<T extends intranet_doc_pathsCreateArgs>(args: Prisma.SelectSubset<T, intranet_doc_pathsCreateArgs<ExtArgs>>): Prisma.Prisma__intranet_doc_pathsClient<runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Intranet_doc_paths.
* @param {intranet_doc_pathsCreateManyArgs} args - Arguments to create many Intranet_doc_paths.
* @example
* // Create many Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends intranet_doc_pathsCreateManyArgs>(args?: Prisma.SelectSubset<T, intranet_doc_pathsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Intranet_doc_paths.
* @param {intranet_doc_pathsDeleteArgs} args - Arguments to delete one Intranet_doc_paths.
* @example
* // Delete one Intranet_doc_paths
* const Intranet_doc_paths = await prisma.intranet_doc_paths.delete({
* where: {
* // ... filter to delete one Intranet_doc_paths
* }
* })
*
*/
delete<T extends intranet_doc_pathsDeleteArgs>(args: Prisma.SelectSubset<T, intranet_doc_pathsDeleteArgs<ExtArgs>>): Prisma.Prisma__intranet_doc_pathsClient<runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Intranet_doc_paths.
* @param {intranet_doc_pathsUpdateArgs} args - Arguments to update one Intranet_doc_paths.
* @example
* // Update one Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends intranet_doc_pathsUpdateArgs>(args: Prisma.SelectSubset<T, intranet_doc_pathsUpdateArgs<ExtArgs>>): Prisma.Prisma__intranet_doc_pathsClient<runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Intranet_doc_paths.
* @param {intranet_doc_pathsDeleteManyArgs} args - Arguments to filter Intranet_doc_paths to delete.
* @example
* // Delete a few Intranet_doc_paths
* const { count } = await prisma.intranet_doc_paths.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends intranet_doc_pathsDeleteManyArgs>(args?: Prisma.SelectSubset<T, intranet_doc_pathsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Intranet_doc_paths.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {intranet_doc_pathsUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends intranet_doc_pathsUpdateManyArgs>(args: Prisma.SelectSubset<T, intranet_doc_pathsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Intranet_doc_paths.
* @param {intranet_doc_pathsUpsertArgs} args - Arguments to update or create a Intranet_doc_paths.
* @example
* // Update or create a Intranet_doc_paths
* const intranet_doc_paths = await prisma.intranet_doc_paths.upsert({
* create: {
* // ... data to create a Intranet_doc_paths
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Intranet_doc_paths we want to update
* }
* })
*/
upsert<T extends intranet_doc_pathsUpsertArgs>(args: Prisma.SelectSubset<T, intranet_doc_pathsUpsertArgs<ExtArgs>>): Prisma.Prisma__intranet_doc_pathsClient<runtime.Types.Result.GetResult<Prisma.$intranet_doc_pathsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Intranet_doc_paths.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {intranet_doc_pathsCountArgs} args - Arguments to filter Intranet_doc_paths to count.
* @example
* // Count the number of Intranet_doc_paths
* const count = await prisma.intranet_doc_paths.count({
* where: {
* // ... the filter for the Intranet_doc_paths we want to count
* }
* })
**/
count<T extends intranet_doc_pathsCountArgs>(
args?: Prisma.Subset<T, intranet_doc_pathsCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Intranet_doc_pathsCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Intranet_doc_paths.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Intranet_doc_pathsAggregateArgs} 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 Intranet_doc_pathsAggregateArgs>(args: Prisma.Subset<T, Intranet_doc_pathsAggregateArgs>): Prisma.PrismaPromise<GetIntranet_doc_pathsAggregateType<T>>
/**
* Group by Intranet_doc_paths.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {intranet_doc_pathsGroupByArgs} 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 intranet_doc_pathsGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: intranet_doc_pathsGroupByArgs['orderBy'] }
: { orderBy?: intranet_doc_pathsGroupByArgs['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, intranet_doc_pathsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIntranet_doc_pathsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the intranet_doc_paths model
*/
readonly fields: intranet_doc_pathsFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for intranet_doc_paths.
* 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__intranet_doc_pathsClient<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 intranet_doc_paths model
*/
export interface intranet_doc_pathsFieldRefs {
readonly id: Prisma.FieldRef<"intranet_doc_paths", 'Int'>
readonly description: Prisma.FieldRef<"intranet_doc_paths", 'String'>
readonly parent_id: Prisma.FieldRef<"intranet_doc_paths", 'Int'>
readonly priority_order: Prisma.FieldRef<"intranet_doc_paths", 'Int'>
}
// Custom InputTypes
/**
* intranet_doc_paths findUnique
*/
export type intranet_doc_pathsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
/**
* Filter, which intranet_doc_paths to fetch.
*/
where: Prisma.intranet_doc_pathsWhereUniqueInput
}
/**
* intranet_doc_paths findUniqueOrThrow
*/
export type intranet_doc_pathsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
/**
* Filter, which intranet_doc_paths to fetch.
*/
where: Prisma.intranet_doc_pathsWhereUniqueInput
}
/**
* intranet_doc_paths findFirst
*/
export type intranet_doc_pathsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
/**
* Filter, which intranet_doc_paths to fetch.
*/
where?: Prisma.intranet_doc_pathsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of intranet_doc_paths to fetch.
*/
orderBy?: Prisma.intranet_doc_pathsOrderByWithRelationInput | Prisma.intranet_doc_pathsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for intranet_doc_paths.
*/
cursor?: Prisma.intranet_doc_pathsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` intranet_doc_paths 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` intranet_doc_paths.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of intranet_doc_paths.
*/
distinct?: Prisma.Intranet_doc_pathsScalarFieldEnum | Prisma.Intranet_doc_pathsScalarFieldEnum[]
}
/**
* intranet_doc_paths findFirstOrThrow
*/
export type intranet_doc_pathsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
/**
* Filter, which intranet_doc_paths to fetch.
*/
where?: Prisma.intranet_doc_pathsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of intranet_doc_paths to fetch.
*/
orderBy?: Prisma.intranet_doc_pathsOrderByWithRelationInput | Prisma.intranet_doc_pathsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for intranet_doc_paths.
*/
cursor?: Prisma.intranet_doc_pathsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` intranet_doc_paths 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` intranet_doc_paths.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of intranet_doc_paths.
*/
distinct?: Prisma.Intranet_doc_pathsScalarFieldEnum | Prisma.Intranet_doc_pathsScalarFieldEnum[]
}
/**
* intranet_doc_paths findMany
*/
export type intranet_doc_pathsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
/**
* Filter, which intranet_doc_paths to fetch.
*/
where?: Prisma.intranet_doc_pathsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of intranet_doc_paths to fetch.
*/
orderBy?: Prisma.intranet_doc_pathsOrderByWithRelationInput | Prisma.intranet_doc_pathsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing intranet_doc_paths.
*/
cursor?: Prisma.intranet_doc_pathsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` intranet_doc_paths 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` intranet_doc_paths.
*/
skip?: number
distinct?: Prisma.Intranet_doc_pathsScalarFieldEnum | Prisma.Intranet_doc_pathsScalarFieldEnum[]
}
/**
* intranet_doc_paths create
*/
export type intranet_doc_pathsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
/**
* The data needed to create a intranet_doc_paths.
*/
data: Prisma.XOR<Prisma.intranet_doc_pathsCreateInput, Prisma.intranet_doc_pathsUncheckedCreateInput>
}
/**
* intranet_doc_paths createMany
*/
export type intranet_doc_pathsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many intranet_doc_paths.
*/
data: Prisma.intranet_doc_pathsCreateManyInput | Prisma.intranet_doc_pathsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* intranet_doc_paths update
*/
export type intranet_doc_pathsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
/**
* The data needed to update a intranet_doc_paths.
*/
data: Prisma.XOR<Prisma.intranet_doc_pathsUpdateInput, Prisma.intranet_doc_pathsUncheckedUpdateInput>
/**
* Choose, which intranet_doc_paths to update.
*/
where: Prisma.intranet_doc_pathsWhereUniqueInput
}
/**
* intranet_doc_paths updateMany
*/
export type intranet_doc_pathsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update intranet_doc_paths.
*/
data: Prisma.XOR<Prisma.intranet_doc_pathsUpdateManyMutationInput, Prisma.intranet_doc_pathsUncheckedUpdateManyInput>
/**
* Filter which intranet_doc_paths to update
*/
where?: Prisma.intranet_doc_pathsWhereInput
/**
* Limit how many intranet_doc_paths to update.
*/
limit?: number
}
/**
* intranet_doc_paths upsert
*/
export type intranet_doc_pathsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
/**
* The filter to search for the intranet_doc_paths to update in case it exists.
*/
where: Prisma.intranet_doc_pathsWhereUniqueInput
/**
* In case the intranet_doc_paths found by the `where` argument doesn't exist, create a new intranet_doc_paths with this data.
*/
create: Prisma.XOR<Prisma.intranet_doc_pathsCreateInput, Prisma.intranet_doc_pathsUncheckedCreateInput>
/**
* In case the intranet_doc_paths was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.intranet_doc_pathsUpdateInput, Prisma.intranet_doc_pathsUncheckedUpdateInput>
}
/**
* intranet_doc_paths delete
*/
export type intranet_doc_pathsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
/**
* Filter which intranet_doc_paths to delete.
*/
where: Prisma.intranet_doc_pathsWhereUniqueInput
}
/**
* intranet_doc_paths deleteMany
*/
export type intranet_doc_pathsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which intranet_doc_paths to delete
*/
where?: Prisma.intranet_doc_pathsWhereInput
/**
* Limit how many intranet_doc_paths to delete.
*/
limit?: number
}
/**
* intranet_doc_paths without action
*/
export type intranet_doc_pathsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the intranet_doc_paths
*/
select?: Prisma.intranet_doc_pathsSelect<ExtArgs> | null
/**
* Omit specific fields from the intranet_doc_paths
*/
omit?: Prisma.intranet_doc_pathsOmit<ExtArgs> | null
}