/* !!! 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` 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 * */ export type intranet_docModel = runtime.Types.Result.DefaultSelection export type AggregateIntranet_doc = { _count: Intranet_docCountAggregateOutputType | null _avg: Intranet_docAvgAggregateOutputType | null _sum: Intranet_docSumAggregateOutputType | null _min: Intranet_docMinAggregateOutputType | null _max: Intranet_docMaxAggregateOutputType | null } export type Intranet_docAvgAggregateOutputType = { id: number | null account_id: number | null date: number | null path_id: number | null priority_order: number | null } export type Intranet_docSumAggregateOutputType = { id: bigint | null account_id: bigint | null date: bigint | null path_id: number | null priority_order: number | null } export type Intranet_docMinAggregateOutputType = { id: bigint | null account_id: bigint | null date: bigint | null title: string | null msg: string | null attachment: string | null unread_csv: string | null path_id: number | null priority_order: number | null update_timestamp: Date | null } export type Intranet_docMaxAggregateOutputType = { id: bigint | null account_id: bigint | null date: bigint | null title: string | null msg: string | null attachment: string | null unread_csv: string | null path_id: number | null priority_order: number | null update_timestamp: Date | null } export type Intranet_docCountAggregateOutputType = { id: number account_id: number date: number title: number msg: number attachment: number unread_csv: number path_id: number priority_order: number update_timestamp: number _all: number } export type Intranet_docAvgAggregateInputType = { id?: true account_id?: true date?: true path_id?: true priority_order?: true } export type Intranet_docSumAggregateInputType = { id?: true account_id?: true date?: true path_id?: true priority_order?: true } export type Intranet_docMinAggregateInputType = { id?: true account_id?: true date?: true title?: true msg?: true attachment?: true unread_csv?: true path_id?: true priority_order?: true update_timestamp?: true } export type Intranet_docMaxAggregateInputType = { id?: true account_id?: true date?: true title?: true msg?: true attachment?: true unread_csv?: true path_id?: true priority_order?: true update_timestamp?: true } export type Intranet_docCountAggregateInputType = { id?: true account_id?: true date?: true title?: true msg?: true attachment?: true unread_csv?: true path_id?: true priority_order?: true update_timestamp?: true _all?: true } export type Intranet_docAggregateArgs = { /** * Filter which intranet_doc to aggregate. */ where?: Prisma.intranet_docWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of intranet_docs to fetch. */ orderBy?: Prisma.intranet_docOrderByWithRelationInput | Prisma.intranet_docOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.intranet_docWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` intranet_docs 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_docs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned intranet_docs **/ _count?: true | Intranet_docCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Intranet_docAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Intranet_docSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Intranet_docMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Intranet_docMaxAggregateInputType } export type GetIntranet_docAggregateType = { [P in keyof T & keyof AggregateIntranet_doc]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type intranet_docGroupByArgs = { where?: Prisma.intranet_docWhereInput orderBy?: Prisma.intranet_docOrderByWithAggregationInput | Prisma.intranet_docOrderByWithAggregationInput[] by: Prisma.Intranet_docScalarFieldEnum[] | Prisma.Intranet_docScalarFieldEnum having?: Prisma.intranet_docScalarWhereWithAggregatesInput take?: number skip?: number _count?: Intranet_docCountAggregateInputType | true _avg?: Intranet_docAvgAggregateInputType _sum?: Intranet_docSumAggregateInputType _min?: Intranet_docMinAggregateInputType _max?: Intranet_docMaxAggregateInputType } export type Intranet_docGroupByOutputType = { id: bigint account_id: bigint date: bigint title: string msg: string attachment: string unread_csv: string path_id: number priority_order: number update_timestamp: Date _count: Intranet_docCountAggregateOutputType | null _avg: Intranet_docAvgAggregateOutputType | null _sum: Intranet_docSumAggregateOutputType | null _min: Intranet_docMinAggregateOutputType | null _max: Intranet_docMaxAggregateOutputType | null } type GetIntranet_docGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Intranet_docGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type intranet_docWhereInput = { AND?: Prisma.intranet_docWhereInput | Prisma.intranet_docWhereInput[] OR?: Prisma.intranet_docWhereInput[] NOT?: Prisma.intranet_docWhereInput | Prisma.intranet_docWhereInput[] id?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number account_id?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number date?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number title?: Prisma.StringFilter<"intranet_doc"> | string msg?: Prisma.StringFilter<"intranet_doc"> | string attachment?: Prisma.StringFilter<"intranet_doc"> | string unread_csv?: Prisma.StringFilter<"intranet_doc"> | string path_id?: Prisma.IntFilter<"intranet_doc"> | number priority_order?: Prisma.IntFilter<"intranet_doc"> | number update_timestamp?: Prisma.DateTimeFilter<"intranet_doc"> | Date | string } export type intranet_docOrderByWithRelationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date?: Prisma.SortOrder title?: Prisma.SortOrder msg?: Prisma.SortOrder attachment?: Prisma.SortOrder unread_csv?: Prisma.SortOrder path_id?: Prisma.SortOrder priority_order?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder _relevance?: Prisma.intranet_docOrderByRelevanceInput } export type intranet_docWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: Prisma.intranet_docWhereInput | Prisma.intranet_docWhereInput[] OR?: Prisma.intranet_docWhereInput[] NOT?: Prisma.intranet_docWhereInput | Prisma.intranet_docWhereInput[] account_id?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number date?: Prisma.BigIntFilter<"intranet_doc"> | bigint | number title?: Prisma.StringFilter<"intranet_doc"> | string msg?: Prisma.StringFilter<"intranet_doc"> | string attachment?: Prisma.StringFilter<"intranet_doc"> | string unread_csv?: Prisma.StringFilter<"intranet_doc"> | string path_id?: Prisma.IntFilter<"intranet_doc"> | number priority_order?: Prisma.IntFilter<"intranet_doc"> | number update_timestamp?: Prisma.DateTimeFilter<"intranet_doc"> | Date | string }, "id"> export type intranet_docOrderByWithAggregationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date?: Prisma.SortOrder title?: Prisma.SortOrder msg?: Prisma.SortOrder attachment?: Prisma.SortOrder unread_csv?: Prisma.SortOrder path_id?: Prisma.SortOrder priority_order?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder _count?: Prisma.intranet_docCountOrderByAggregateInput _avg?: Prisma.intranet_docAvgOrderByAggregateInput _max?: Prisma.intranet_docMaxOrderByAggregateInput _min?: Prisma.intranet_docMinOrderByAggregateInput _sum?: Prisma.intranet_docSumOrderByAggregateInput } export type intranet_docScalarWhereWithAggregatesInput = { AND?: Prisma.intranet_docScalarWhereWithAggregatesInput | Prisma.intranet_docScalarWhereWithAggregatesInput[] OR?: Prisma.intranet_docScalarWhereWithAggregatesInput[] NOT?: Prisma.intranet_docScalarWhereWithAggregatesInput | Prisma.intranet_docScalarWhereWithAggregatesInput[] id?: Prisma.BigIntWithAggregatesFilter<"intranet_doc"> | bigint | number account_id?: Prisma.BigIntWithAggregatesFilter<"intranet_doc"> | bigint | number date?: Prisma.BigIntWithAggregatesFilter<"intranet_doc"> | bigint | number title?: Prisma.StringWithAggregatesFilter<"intranet_doc"> | string msg?: Prisma.StringWithAggregatesFilter<"intranet_doc"> | string attachment?: Prisma.StringWithAggregatesFilter<"intranet_doc"> | string unread_csv?: Prisma.StringWithAggregatesFilter<"intranet_doc"> | string path_id?: Prisma.IntWithAggregatesFilter<"intranet_doc"> | number priority_order?: Prisma.IntWithAggregatesFilter<"intranet_doc"> | number update_timestamp?: Prisma.DateTimeWithAggregatesFilter<"intranet_doc"> | Date | string } export type intranet_docCreateInput = { id?: bigint | number account_id: bigint | number date: bigint | number title: string msg: string attachment: string unread_csv: string path_id: number priority_order?: number update_timestamp?: Date | string } export type intranet_docUncheckedCreateInput = { id?: bigint | number account_id: bigint | number date: bigint | number title: string msg: string attachment: string unread_csv: string path_id: number priority_order?: number update_timestamp?: Date | string } export type intranet_docUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number title?: Prisma.StringFieldUpdateOperationsInput | string msg?: Prisma.StringFieldUpdateOperationsInput | string attachment?: Prisma.StringFieldUpdateOperationsInput | string unread_csv?: Prisma.StringFieldUpdateOperationsInput | string path_id?: Prisma.IntFieldUpdateOperationsInput | number priority_order?: Prisma.IntFieldUpdateOperationsInput | number update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type intranet_docUncheckedUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number title?: Prisma.StringFieldUpdateOperationsInput | string msg?: Prisma.StringFieldUpdateOperationsInput | string attachment?: Prisma.StringFieldUpdateOperationsInput | string unread_csv?: Prisma.StringFieldUpdateOperationsInput | string path_id?: Prisma.IntFieldUpdateOperationsInput | number priority_order?: Prisma.IntFieldUpdateOperationsInput | number update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type intranet_docCreateManyInput = { id?: bigint | number account_id: bigint | number date: bigint | number title: string msg: string attachment: string unread_csv: string path_id: number priority_order?: number update_timestamp?: Date | string } export type intranet_docUpdateManyMutationInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number title?: Prisma.StringFieldUpdateOperationsInput | string msg?: Prisma.StringFieldUpdateOperationsInput | string attachment?: Prisma.StringFieldUpdateOperationsInput | string unread_csv?: Prisma.StringFieldUpdateOperationsInput | string path_id?: Prisma.IntFieldUpdateOperationsInput | number priority_order?: Prisma.IntFieldUpdateOperationsInput | number update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type intranet_docUncheckedUpdateManyInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number title?: Prisma.StringFieldUpdateOperationsInput | string msg?: Prisma.StringFieldUpdateOperationsInput | string attachment?: Prisma.StringFieldUpdateOperationsInput | string unread_csv?: Prisma.StringFieldUpdateOperationsInput | string path_id?: Prisma.IntFieldUpdateOperationsInput | number priority_order?: Prisma.IntFieldUpdateOperationsInput | number update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type intranet_docOrderByRelevanceInput = { fields: Prisma.intranet_docOrderByRelevanceFieldEnum | Prisma.intranet_docOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type intranet_docCountOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date?: Prisma.SortOrder title?: Prisma.SortOrder msg?: Prisma.SortOrder attachment?: Prisma.SortOrder unread_csv?: Prisma.SortOrder path_id?: Prisma.SortOrder priority_order?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder } export type intranet_docAvgOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date?: Prisma.SortOrder path_id?: Prisma.SortOrder priority_order?: Prisma.SortOrder } export type intranet_docMaxOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date?: Prisma.SortOrder title?: Prisma.SortOrder msg?: Prisma.SortOrder attachment?: Prisma.SortOrder unread_csv?: Prisma.SortOrder path_id?: Prisma.SortOrder priority_order?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder } export type intranet_docMinOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date?: Prisma.SortOrder title?: Prisma.SortOrder msg?: Prisma.SortOrder attachment?: Prisma.SortOrder unread_csv?: Prisma.SortOrder path_id?: Prisma.SortOrder priority_order?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder } export type intranet_docSumOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date?: Prisma.SortOrder path_id?: Prisma.SortOrder priority_order?: Prisma.SortOrder } export type intranet_docSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean account_id?: boolean date?: boolean title?: boolean msg?: boolean attachment?: boolean unread_csv?: boolean path_id?: boolean priority_order?: boolean update_timestamp?: boolean }, ExtArgs["result"]["intranet_doc"]> export type intranet_docSelectScalar = { id?: boolean account_id?: boolean date?: boolean title?: boolean msg?: boolean attachment?: boolean unread_csv?: boolean path_id?: boolean priority_order?: boolean update_timestamp?: boolean } export type intranet_docOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "title" | "msg" | "attachment" | "unread_csv" | "path_id" | "priority_order" | "update_timestamp", ExtArgs["result"]["intranet_doc"]> export type $intranet_docPayload = { name: "intranet_doc" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: bigint account_id: bigint date: bigint title: string msg: string attachment: string unread_csv: string path_id: number priority_order: number update_timestamp: Date }, ExtArgs["result"]["intranet_doc"]> composites: {} } export type intranet_docGetPayload = runtime.Types.Result.GetResult export type intranet_docCountArgs = Omit & { select?: Intranet_docCountAggregateInputType | true } export interface intranet_docDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['intranet_doc'], meta: { name: 'intranet_doc' } } /** * Find zero or one Intranet_doc that matches the filter. * @param {intranet_docFindUniqueArgs} args - Arguments to find a Intranet_doc * @example * // Get one Intranet_doc * const intranet_doc = await prisma.intranet_doc.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Intranet_doc that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {intranet_docFindUniqueOrThrowArgs} args - Arguments to find a Intranet_doc * @example * // Get one Intranet_doc * const intranet_doc = await prisma.intranet_doc.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Intranet_doc 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_docFindFirstArgs} args - Arguments to find a Intranet_doc * @example * // Get one Intranet_doc * const intranet_doc = await prisma.intranet_doc.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Intranet_doc 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_docFindFirstOrThrowArgs} args - Arguments to find a Intranet_doc * @example * // Get one Intranet_doc * const intranet_doc = await prisma.intranet_doc.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Intranet_docs 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_docFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Intranet_docs * const intranet_docs = await prisma.intranet_doc.findMany() * * // Get first 10 Intranet_docs * const intranet_docs = await prisma.intranet_doc.findMany({ take: 10 }) * * // Only select the `id` * const intranet_docWithIdOnly = await prisma.intranet_doc.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Intranet_doc. * @param {intranet_docCreateArgs} args - Arguments to create a Intranet_doc. * @example * // Create one Intranet_doc * const Intranet_doc = await prisma.intranet_doc.create({ * data: { * // ... data to create a Intranet_doc * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Intranet_docs. * @param {intranet_docCreateManyArgs} args - Arguments to create many Intranet_docs. * @example * // Create many Intranet_docs * const intranet_doc = await prisma.intranet_doc.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Intranet_doc. * @param {intranet_docDeleteArgs} args - Arguments to delete one Intranet_doc. * @example * // Delete one Intranet_doc * const Intranet_doc = await prisma.intranet_doc.delete({ * where: { * // ... filter to delete one Intranet_doc * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Intranet_doc. * @param {intranet_docUpdateArgs} args - Arguments to update one Intranet_doc. * @example * // Update one Intranet_doc * const intranet_doc = await prisma.intranet_doc.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Intranet_docs. * @param {intranet_docDeleteManyArgs} args - Arguments to filter Intranet_docs to delete. * @example * // Delete a few Intranet_docs * const { count } = await prisma.intranet_doc.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Intranet_docs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {intranet_docUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Intranet_docs * const intranet_doc = await prisma.intranet_doc.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Intranet_doc. * @param {intranet_docUpsertArgs} args - Arguments to update or create a Intranet_doc. * @example * // Update or create a Intranet_doc * const intranet_doc = await prisma.intranet_doc.upsert({ * create: { * // ... data to create a Intranet_doc * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Intranet_doc we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__intranet_docClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Intranet_docs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {intranet_docCountArgs} args - Arguments to filter Intranet_docs to count. * @example * // Count the number of Intranet_docs * const count = await prisma.intranet_doc.count({ * where: { * // ... the filter for the Intranet_docs we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Intranet_doc. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Intranet_docAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Intranet_doc. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {intranet_docGroupByArgs} 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_docGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: intranet_docGroupByArgs['orderBy'] } : { orderBy?: intranet_docGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetIntranet_docGroupByPayload : Prisma.PrismaPromise /** * Fields of the intranet_doc model */ readonly fields: intranet_docFieldRefs; } /** * The delegate class that acts as a "Promise-like" for intranet_doc. * 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_docClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the intranet_doc model */ export interface intranet_docFieldRefs { readonly id: Prisma.FieldRef<"intranet_doc", 'BigInt'> readonly account_id: Prisma.FieldRef<"intranet_doc", 'BigInt'> readonly date: Prisma.FieldRef<"intranet_doc", 'BigInt'> readonly title: Prisma.FieldRef<"intranet_doc", 'String'> readonly msg: Prisma.FieldRef<"intranet_doc", 'String'> readonly attachment: Prisma.FieldRef<"intranet_doc", 'String'> readonly unread_csv: Prisma.FieldRef<"intranet_doc", 'String'> readonly path_id: Prisma.FieldRef<"intranet_doc", 'Int'> readonly priority_order: Prisma.FieldRef<"intranet_doc", 'Int'> readonly update_timestamp: Prisma.FieldRef<"intranet_doc", 'DateTime'> } // Custom InputTypes /** * intranet_doc findUnique */ export type intranet_docFindUniqueArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null /** * Filter, which intranet_doc to fetch. */ where: Prisma.intranet_docWhereUniqueInput } /** * intranet_doc findUniqueOrThrow */ export type intranet_docFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null /** * Filter, which intranet_doc to fetch. */ where: Prisma.intranet_docWhereUniqueInput } /** * intranet_doc findFirst */ export type intranet_docFindFirstArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null /** * Filter, which intranet_doc to fetch. */ where?: Prisma.intranet_docWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of intranet_docs to fetch. */ orderBy?: Prisma.intranet_docOrderByWithRelationInput | Prisma.intranet_docOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for intranet_docs. */ cursor?: Prisma.intranet_docWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` intranet_docs 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_docs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of intranet_docs. */ distinct?: Prisma.Intranet_docScalarFieldEnum | Prisma.Intranet_docScalarFieldEnum[] } /** * intranet_doc findFirstOrThrow */ export type intranet_docFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null /** * Filter, which intranet_doc to fetch. */ where?: Prisma.intranet_docWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of intranet_docs to fetch. */ orderBy?: Prisma.intranet_docOrderByWithRelationInput | Prisma.intranet_docOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for intranet_docs. */ cursor?: Prisma.intranet_docWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` intranet_docs 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_docs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of intranet_docs. */ distinct?: Prisma.Intranet_docScalarFieldEnum | Prisma.Intranet_docScalarFieldEnum[] } /** * intranet_doc findMany */ export type intranet_docFindManyArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null /** * Filter, which intranet_docs to fetch. */ where?: Prisma.intranet_docWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of intranet_docs to fetch. */ orderBy?: Prisma.intranet_docOrderByWithRelationInput | Prisma.intranet_docOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing intranet_docs. */ cursor?: Prisma.intranet_docWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` intranet_docs 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_docs. */ skip?: number distinct?: Prisma.Intranet_docScalarFieldEnum | Prisma.Intranet_docScalarFieldEnum[] } /** * intranet_doc create */ export type intranet_docCreateArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null /** * The data needed to create a intranet_doc. */ data: Prisma.XOR } /** * intranet_doc createMany */ export type intranet_docCreateManyArgs = { /** * The data used to create many intranet_docs. */ data: Prisma.intranet_docCreateManyInput | Prisma.intranet_docCreateManyInput[] skipDuplicates?: boolean } /** * intranet_doc update */ export type intranet_docUpdateArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null /** * The data needed to update a intranet_doc. */ data: Prisma.XOR /** * Choose, which intranet_doc to update. */ where: Prisma.intranet_docWhereUniqueInput } /** * intranet_doc updateMany */ export type intranet_docUpdateManyArgs = { /** * The data used to update intranet_docs. */ data: Prisma.XOR /** * Filter which intranet_docs to update */ where?: Prisma.intranet_docWhereInput /** * Limit how many intranet_docs to update. */ limit?: number } /** * intranet_doc upsert */ export type intranet_docUpsertArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null /** * The filter to search for the intranet_doc to update in case it exists. */ where: Prisma.intranet_docWhereUniqueInput /** * In case the intranet_doc found by the `where` argument doesn't exist, create a new intranet_doc with this data. */ create: Prisma.XOR /** * In case the intranet_doc was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * intranet_doc delete */ export type intranet_docDeleteArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null /** * Filter which intranet_doc to delete. */ where: Prisma.intranet_docWhereUniqueInput } /** * intranet_doc deleteMany */ export type intranet_docDeleteManyArgs = { /** * Filter which intranet_docs to delete */ where?: Prisma.intranet_docWhereInput /** * Limit how many intranet_docs to delete. */ limit?: number } /** * intranet_doc without action */ export type intranet_docDefaultArgs = { /** * Select specific fields to fetch from the intranet_doc */ select?: Prisma.intranet_docSelect | null /** * Omit specific fields from the intranet_doc */ omit?: Prisma.intranet_docOmit | null }