/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `FileChunk` 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.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model FileChunk * */ export type FileChunkModel = runtime.Types.Result.DefaultSelection export type AggregateFileChunk = { _count: FileChunkCountAggregateOutputType | null _avg: FileChunkAvgAggregateOutputType | null _sum: FileChunkSumAggregateOutputType | null _min: FileChunkMinAggregateOutputType | null _max: FileChunkMaxAggregateOutputType | null } export type FileChunkAvgAggregateOutputType = { id: number | null index: number | null } export type FileChunkSumAggregateOutputType = { id: number | null index: number | null } export type FileChunkMinAggregateOutputType = { id: number | null fileUploadId: string | null index: number | null data: runtime.Bytes | null } export type FileChunkMaxAggregateOutputType = { id: number | null fileUploadId: string | null index: number | null data: runtime.Bytes | null } export type FileChunkCountAggregateOutputType = { id: number fileUploadId: number index: number data: number _all: number } export type FileChunkAvgAggregateInputType = { id?: true index?: true } export type FileChunkSumAggregateInputType = { id?: true index?: true } export type FileChunkMinAggregateInputType = { id?: true fileUploadId?: true index?: true data?: true } export type FileChunkMaxAggregateInputType = { id?: true fileUploadId?: true index?: true data?: true } export type FileChunkCountAggregateInputType = { id?: true fileUploadId?: true index?: true data?: true _all?: true } export type FileChunkAggregateArgs = { /** * Filter which FileChunk to aggregate. */ where?: Prisma.FileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FileChunks to fetch. */ orderBy?: Prisma.FileChunkOrderByWithRelationInput | Prisma.FileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.FileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FileChunks 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` FileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned FileChunks **/ _count?: true | FileChunkCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: FileChunkAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: FileChunkSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: FileChunkMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: FileChunkMaxAggregateInputType } export type GetFileChunkAggregateType = { [P in keyof T & keyof AggregateFileChunk]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type FileChunkGroupByArgs = { where?: Prisma.FileChunkWhereInput orderBy?: Prisma.FileChunkOrderByWithAggregationInput | Prisma.FileChunkOrderByWithAggregationInput[] by: Prisma.FileChunkScalarFieldEnum[] | Prisma.FileChunkScalarFieldEnum having?: Prisma.FileChunkScalarWhereWithAggregatesInput take?: number skip?: number _count?: FileChunkCountAggregateInputType | true _avg?: FileChunkAvgAggregateInputType _sum?: FileChunkSumAggregateInputType _min?: FileChunkMinAggregateInputType _max?: FileChunkMaxAggregateInputType } export type FileChunkGroupByOutputType = { id: number fileUploadId: string index: number data: runtime.Bytes _count: FileChunkCountAggregateOutputType | null _avg: FileChunkAvgAggregateOutputType | null _sum: FileChunkSumAggregateOutputType | null _min: FileChunkMinAggregateOutputType | null _max: FileChunkMaxAggregateOutputType | null } export type GetFileChunkGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof FileChunkGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type FileChunkWhereInput = { AND?: Prisma.FileChunkWhereInput | Prisma.FileChunkWhereInput[] OR?: Prisma.FileChunkWhereInput[] NOT?: Prisma.FileChunkWhereInput | Prisma.FileChunkWhereInput[] id?: Prisma.IntFilter<"FileChunk"> | number fileUploadId?: Prisma.StringFilter<"FileChunk"> | string index?: Prisma.IntFilter<"FileChunk"> | number data?: Prisma.BytesFilter<"FileChunk"> | runtime.Bytes fileUpload?: Prisma.XOR } export type FileChunkOrderByWithRelationInput = { id?: Prisma.SortOrder fileUploadId?: Prisma.SortOrder index?: Prisma.SortOrder data?: Prisma.SortOrder fileUpload?: Prisma.FileUploadProgressOrderByWithRelationInput } export type FileChunkWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.FileChunkWhereInput | Prisma.FileChunkWhereInput[] OR?: Prisma.FileChunkWhereInput[] NOT?: Prisma.FileChunkWhereInput | Prisma.FileChunkWhereInput[] fileUploadId?: Prisma.StringFilter<"FileChunk"> | string index?: Prisma.IntFilter<"FileChunk"> | number data?: Prisma.BytesFilter<"FileChunk"> | runtime.Bytes fileUpload?: Prisma.XOR }, "id"> export type FileChunkOrderByWithAggregationInput = { id?: Prisma.SortOrder fileUploadId?: Prisma.SortOrder index?: Prisma.SortOrder data?: Prisma.SortOrder _count?: Prisma.FileChunkCountOrderByAggregateInput _avg?: Prisma.FileChunkAvgOrderByAggregateInput _max?: Prisma.FileChunkMaxOrderByAggregateInput _min?: Prisma.FileChunkMinOrderByAggregateInput _sum?: Prisma.FileChunkSumOrderByAggregateInput } export type FileChunkScalarWhereWithAggregatesInput = { AND?: Prisma.FileChunkScalarWhereWithAggregatesInput | Prisma.FileChunkScalarWhereWithAggregatesInput[] OR?: Prisma.FileChunkScalarWhereWithAggregatesInput[] NOT?: Prisma.FileChunkScalarWhereWithAggregatesInput | Prisma.FileChunkScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"FileChunk"> | number fileUploadId?: Prisma.StringWithAggregatesFilter<"FileChunk"> | string index?: Prisma.IntWithAggregatesFilter<"FileChunk"> | number data?: Prisma.BytesWithAggregatesFilter<"FileChunk"> | runtime.Bytes } export type FileChunkCreateInput = { index: number data: runtime.Bytes fileUpload: Prisma.FileUploadProgressCreateNestedOneWithoutChunksInput } export type FileChunkUncheckedCreateInput = { id?: number fileUploadId: string index: number data: runtime.Bytes } export type FileChunkUpdateInput = { index?: Prisma.IntFieldUpdateOperationsInput | number data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes fileUpload?: Prisma.FileUploadProgressUpdateOneRequiredWithoutChunksNestedInput } export type FileChunkUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number fileUploadId?: Prisma.StringFieldUpdateOperationsInput | string index?: Prisma.IntFieldUpdateOperationsInput | number data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes } export type FileChunkCreateManyInput = { id?: number fileUploadId: string index: number data: runtime.Bytes } export type FileChunkUpdateManyMutationInput = { index?: Prisma.IntFieldUpdateOperationsInput | number data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes } export type FileChunkUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number fileUploadId?: Prisma.StringFieldUpdateOperationsInput | string index?: Prisma.IntFieldUpdateOperationsInput | number data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes } export type FileChunkListRelationFilter = { every?: Prisma.FileChunkWhereInput some?: Prisma.FileChunkWhereInput none?: Prisma.FileChunkWhereInput } export type FileChunkOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type FileChunkCountOrderByAggregateInput = { id?: Prisma.SortOrder fileUploadId?: Prisma.SortOrder index?: Prisma.SortOrder data?: Prisma.SortOrder } export type FileChunkAvgOrderByAggregateInput = { id?: Prisma.SortOrder index?: Prisma.SortOrder } export type FileChunkMaxOrderByAggregateInput = { id?: Prisma.SortOrder fileUploadId?: Prisma.SortOrder index?: Prisma.SortOrder data?: Prisma.SortOrder } export type FileChunkMinOrderByAggregateInput = { id?: Prisma.SortOrder fileUploadId?: Prisma.SortOrder index?: Prisma.SortOrder data?: Prisma.SortOrder } export type FileChunkSumOrderByAggregateInput = { id?: Prisma.SortOrder index?: Prisma.SortOrder } export type FileChunkCreateNestedManyWithoutFileUploadInput = { create?: Prisma.XOR | Prisma.FileChunkCreateWithoutFileUploadInput[] | Prisma.FileChunkUncheckedCreateWithoutFileUploadInput[] connectOrCreate?: Prisma.FileChunkCreateOrConnectWithoutFileUploadInput | Prisma.FileChunkCreateOrConnectWithoutFileUploadInput[] createMany?: Prisma.FileChunkCreateManyFileUploadInputEnvelope connect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] } export type FileChunkUncheckedCreateNestedManyWithoutFileUploadInput = { create?: Prisma.XOR | Prisma.FileChunkCreateWithoutFileUploadInput[] | Prisma.FileChunkUncheckedCreateWithoutFileUploadInput[] connectOrCreate?: Prisma.FileChunkCreateOrConnectWithoutFileUploadInput | Prisma.FileChunkCreateOrConnectWithoutFileUploadInput[] createMany?: Prisma.FileChunkCreateManyFileUploadInputEnvelope connect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] } export type FileChunkUpdateManyWithoutFileUploadNestedInput = { create?: Prisma.XOR | Prisma.FileChunkCreateWithoutFileUploadInput[] | Prisma.FileChunkUncheckedCreateWithoutFileUploadInput[] connectOrCreate?: Prisma.FileChunkCreateOrConnectWithoutFileUploadInput | Prisma.FileChunkCreateOrConnectWithoutFileUploadInput[] upsert?: Prisma.FileChunkUpsertWithWhereUniqueWithoutFileUploadInput | Prisma.FileChunkUpsertWithWhereUniqueWithoutFileUploadInput[] createMany?: Prisma.FileChunkCreateManyFileUploadInputEnvelope set?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] disconnect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] delete?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] connect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] update?: Prisma.FileChunkUpdateWithWhereUniqueWithoutFileUploadInput | Prisma.FileChunkUpdateWithWhereUniqueWithoutFileUploadInput[] updateMany?: Prisma.FileChunkUpdateManyWithWhereWithoutFileUploadInput | Prisma.FileChunkUpdateManyWithWhereWithoutFileUploadInput[] deleteMany?: Prisma.FileChunkScalarWhereInput | Prisma.FileChunkScalarWhereInput[] } export type FileChunkUncheckedUpdateManyWithoutFileUploadNestedInput = { create?: Prisma.XOR | Prisma.FileChunkCreateWithoutFileUploadInput[] | Prisma.FileChunkUncheckedCreateWithoutFileUploadInput[] connectOrCreate?: Prisma.FileChunkCreateOrConnectWithoutFileUploadInput | Prisma.FileChunkCreateOrConnectWithoutFileUploadInput[] upsert?: Prisma.FileChunkUpsertWithWhereUniqueWithoutFileUploadInput | Prisma.FileChunkUpsertWithWhereUniqueWithoutFileUploadInput[] createMany?: Prisma.FileChunkCreateManyFileUploadInputEnvelope set?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] disconnect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] delete?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] connect?: Prisma.FileChunkWhereUniqueInput | Prisma.FileChunkWhereUniqueInput[] update?: Prisma.FileChunkUpdateWithWhereUniqueWithoutFileUploadInput | Prisma.FileChunkUpdateWithWhereUniqueWithoutFileUploadInput[] updateMany?: Prisma.FileChunkUpdateManyWithWhereWithoutFileUploadInput | Prisma.FileChunkUpdateManyWithWhereWithoutFileUploadInput[] deleteMany?: Prisma.FileChunkScalarWhereInput | Prisma.FileChunkScalarWhereInput[] } export type FileChunkCreateWithoutFileUploadInput = { index: number data: runtime.Bytes } export type FileChunkUncheckedCreateWithoutFileUploadInput = { id?: number index: number data: runtime.Bytes } export type FileChunkCreateOrConnectWithoutFileUploadInput = { where: Prisma.FileChunkWhereUniqueInput create: Prisma.XOR } export type FileChunkCreateManyFileUploadInputEnvelope = { data: Prisma.FileChunkCreateManyFileUploadInput | Prisma.FileChunkCreateManyFileUploadInput[] skipDuplicates?: boolean } export type FileChunkUpsertWithWhereUniqueWithoutFileUploadInput = { where: Prisma.FileChunkWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type FileChunkUpdateWithWhereUniqueWithoutFileUploadInput = { where: Prisma.FileChunkWhereUniqueInput data: Prisma.XOR } export type FileChunkUpdateManyWithWhereWithoutFileUploadInput = { where: Prisma.FileChunkScalarWhereInput data: Prisma.XOR } export type FileChunkScalarWhereInput = { AND?: Prisma.FileChunkScalarWhereInput | Prisma.FileChunkScalarWhereInput[] OR?: Prisma.FileChunkScalarWhereInput[] NOT?: Prisma.FileChunkScalarWhereInput | Prisma.FileChunkScalarWhereInput[] id?: Prisma.IntFilter<"FileChunk"> | number fileUploadId?: Prisma.StringFilter<"FileChunk"> | string index?: Prisma.IntFilter<"FileChunk"> | number data?: Prisma.BytesFilter<"FileChunk"> | runtime.Bytes } export type FileChunkCreateManyFileUploadInput = { id?: number index: number data: runtime.Bytes } export type FileChunkUpdateWithoutFileUploadInput = { index?: Prisma.IntFieldUpdateOperationsInput | number data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes } export type FileChunkUncheckedUpdateWithoutFileUploadInput = { id?: Prisma.IntFieldUpdateOperationsInput | number index?: Prisma.IntFieldUpdateOperationsInput | number data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes } export type FileChunkUncheckedUpdateManyWithoutFileUploadInput = { id?: Prisma.IntFieldUpdateOperationsInput | number index?: Prisma.IntFieldUpdateOperationsInput | number data?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes } export type FileChunkSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean fileUploadId?: boolean index?: boolean data?: boolean fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs }, ExtArgs["result"]["fileChunk"]> export type FileChunkSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean fileUploadId?: boolean index?: boolean data?: boolean fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs }, ExtArgs["result"]["fileChunk"]> export type FileChunkSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean fileUploadId?: boolean index?: boolean data?: boolean fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs }, ExtArgs["result"]["fileChunk"]> export type FileChunkSelectScalar = { id?: boolean fileUploadId?: boolean index?: boolean data?: boolean } export type FileChunkOmit = runtime.Types.Extensions.GetOmit<"id" | "fileUploadId" | "index" | "data", ExtArgs["result"]["fileChunk"]> export type FileChunkInclude = { fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs } export type FileChunkIncludeCreateManyAndReturn = { fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs } export type FileChunkIncludeUpdateManyAndReturn = { fileUpload?: boolean | Prisma.FileUploadProgressDefaultArgs } export type $FileChunkPayload = { name: "FileChunk" objects: { fileUpload: Prisma.$FileUploadProgressPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number fileUploadId: string index: number data: runtime.Bytes }, ExtArgs["result"]["fileChunk"]> composites: {} } export type FileChunkGetPayload = runtime.Types.Result.GetResult export type FileChunkCountArgs = Omit & { select?: FileChunkCountAggregateInputType | true } export interface FileChunkDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['FileChunk'], meta: { name: 'FileChunk' } } /** * Find zero or one FileChunk that matches the filter. * @param {FileChunkFindUniqueArgs} args - Arguments to find a FileChunk * @example * // Get one FileChunk * const fileChunk = await prisma.fileChunk.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__FileChunkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one FileChunk that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {FileChunkFindUniqueOrThrowArgs} args - Arguments to find a FileChunk * @example * // Get one FileChunk * const fileChunk = await prisma.fileChunk.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__FileChunkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first FileChunk 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 {FileChunkFindFirstArgs} args - Arguments to find a FileChunk * @example * // Get one FileChunk * const fileChunk = await prisma.fileChunk.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__FileChunkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first FileChunk 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 {FileChunkFindFirstOrThrowArgs} args - Arguments to find a FileChunk * @example * // Get one FileChunk * const fileChunk = await prisma.fileChunk.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__FileChunkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more FileChunks 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 {FileChunkFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all FileChunks * const fileChunks = await prisma.fileChunk.findMany() * * // Get first 10 FileChunks * const fileChunks = await prisma.fileChunk.findMany({ take: 10 }) * * // Only select the `id` * const fileChunkWithIdOnly = await prisma.fileChunk.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a FileChunk. * @param {FileChunkCreateArgs} args - Arguments to create a FileChunk. * @example * // Create one FileChunk * const FileChunk = await prisma.fileChunk.create({ * data: { * // ... data to create a FileChunk * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__FileChunkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many FileChunks. * @param {FileChunkCreateManyArgs} args - Arguments to create many FileChunks. * @example * // Create many FileChunks * const fileChunk = await prisma.fileChunk.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many FileChunks and returns the data saved in the database. * @param {FileChunkCreateManyAndReturnArgs} args - Arguments to create many FileChunks. * @example * // Create many FileChunks * const fileChunk = await prisma.fileChunk.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many FileChunks and only return the `id` * const fileChunkWithIdOnly = await prisma.fileChunk.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a FileChunk. * @param {FileChunkDeleteArgs} args - Arguments to delete one FileChunk. * @example * // Delete one FileChunk * const FileChunk = await prisma.fileChunk.delete({ * where: { * // ... filter to delete one FileChunk * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__FileChunkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one FileChunk. * @param {FileChunkUpdateArgs} args - Arguments to update one FileChunk. * @example * // Update one FileChunk * const fileChunk = await prisma.fileChunk.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__FileChunkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more FileChunks. * @param {FileChunkDeleteManyArgs} args - Arguments to filter FileChunks to delete. * @example * // Delete a few FileChunks * const { count } = await prisma.fileChunk.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more FileChunks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FileChunkUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many FileChunks * const fileChunk = await prisma.fileChunk.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more FileChunks and returns the data updated in the database. * @param {FileChunkUpdateManyAndReturnArgs} args - Arguments to update many FileChunks. * @example * // Update many FileChunks * const fileChunk = await prisma.fileChunk.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more FileChunks and only return the `id` * const fileChunkWithIdOnly = await prisma.fileChunk.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one FileChunk. * @param {FileChunkUpsertArgs} args - Arguments to update or create a FileChunk. * @example * // Update or create a FileChunk * const fileChunk = await prisma.fileChunk.upsert({ * create: { * // ... data to create a FileChunk * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the FileChunk we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__FileChunkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of FileChunks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FileChunkCountArgs} args - Arguments to filter FileChunks to count. * @example * // Count the number of FileChunks * const count = await prisma.fileChunk.count({ * where: { * // ... the filter for the FileChunks 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 FileChunk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FileChunkAggregateArgs} 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 FileChunk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FileChunkGroupByArgs} 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 FileChunkGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: FileChunkGroupByArgs['orderBy'] } : { orderBy?: FileChunkGroupByArgs['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 ? GetFileChunkGroupByPayload : Prisma.PrismaPromise /** * Fields of the FileChunk model */ readonly fields: FileChunkFieldRefs; } /** * The delegate class that acts as a "Promise-like" for FileChunk. * 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__FileChunkClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" fileUpload = {}>(args?: Prisma.Subset>): Prisma.Prisma__FileUploadProgressClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 FileChunk model */ export interface FileChunkFieldRefs { readonly id: Prisma.FieldRef<"FileChunk", 'Int'> readonly fileUploadId: Prisma.FieldRef<"FileChunk", 'String'> readonly index: Prisma.FieldRef<"FileChunk", 'Int'> readonly data: Prisma.FieldRef<"FileChunk", 'Bytes'> } // Custom InputTypes /** * FileChunk findUnique */ export type FileChunkFindUniqueArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null /** * Filter, which FileChunk to fetch. */ where: Prisma.FileChunkWhereUniqueInput } /** * FileChunk findUniqueOrThrow */ export type FileChunkFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null /** * Filter, which FileChunk to fetch. */ where: Prisma.FileChunkWhereUniqueInput } /** * FileChunk findFirst */ export type FileChunkFindFirstArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null /** * Filter, which FileChunk to fetch. */ where?: Prisma.FileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FileChunks to fetch. */ orderBy?: Prisma.FileChunkOrderByWithRelationInput | Prisma.FileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for FileChunks. */ cursor?: Prisma.FileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FileChunks 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` FileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FileChunks. */ distinct?: Prisma.FileChunkScalarFieldEnum | Prisma.FileChunkScalarFieldEnum[] } /** * FileChunk findFirstOrThrow */ export type FileChunkFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null /** * Filter, which FileChunk to fetch. */ where?: Prisma.FileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FileChunks to fetch. */ orderBy?: Prisma.FileChunkOrderByWithRelationInput | Prisma.FileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for FileChunks. */ cursor?: Prisma.FileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FileChunks 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` FileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FileChunks. */ distinct?: Prisma.FileChunkScalarFieldEnum | Prisma.FileChunkScalarFieldEnum[] } /** * FileChunk findMany */ export type FileChunkFindManyArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null /** * Filter, which FileChunks to fetch. */ where?: Prisma.FileChunkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FileChunks to fetch. */ orderBy?: Prisma.FileChunkOrderByWithRelationInput | Prisma.FileChunkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing FileChunks. */ cursor?: Prisma.FileChunkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FileChunks 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` FileChunks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FileChunks. */ distinct?: Prisma.FileChunkScalarFieldEnum | Prisma.FileChunkScalarFieldEnum[] } /** * FileChunk create */ export type FileChunkCreateArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null /** * The data needed to create a FileChunk. */ data: Prisma.XOR } /** * FileChunk createMany */ export type FileChunkCreateManyArgs = { /** * The data used to create many FileChunks. */ data: Prisma.FileChunkCreateManyInput | Prisma.FileChunkCreateManyInput[] skipDuplicates?: boolean } /** * FileChunk createManyAndReturn */ export type FileChunkCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelectCreateManyAndReturn | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * The data used to create many FileChunks. */ data: Prisma.FileChunkCreateManyInput | Prisma.FileChunkCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkIncludeCreateManyAndReturn | null } /** * FileChunk update */ export type FileChunkUpdateArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null /** * The data needed to update a FileChunk. */ data: Prisma.XOR /** * Choose, which FileChunk to update. */ where: Prisma.FileChunkWhereUniqueInput } /** * FileChunk updateMany */ export type FileChunkUpdateManyArgs = { /** * The data used to update FileChunks. */ data: Prisma.XOR /** * Filter which FileChunks to update */ where?: Prisma.FileChunkWhereInput /** * Limit how many FileChunks to update. */ limit?: number } /** * FileChunk updateManyAndReturn */ export type FileChunkUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelectUpdateManyAndReturn | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * The data used to update FileChunks. */ data: Prisma.XOR /** * Filter which FileChunks to update */ where?: Prisma.FileChunkWhereInput /** * Limit how many FileChunks to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkIncludeUpdateManyAndReturn | null } /** * FileChunk upsert */ export type FileChunkUpsertArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null /** * The filter to search for the FileChunk to update in case it exists. */ where: Prisma.FileChunkWhereUniqueInput /** * In case the FileChunk found by the `where` argument doesn't exist, create a new FileChunk with this data. */ create: Prisma.XOR /** * In case the FileChunk was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * FileChunk delete */ export type FileChunkDeleteArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null /** * Filter which FileChunk to delete. */ where: Prisma.FileChunkWhereUniqueInput } /** * FileChunk deleteMany */ export type FileChunkDeleteManyArgs = { /** * Filter which FileChunks to delete */ where?: Prisma.FileChunkWhereInput /** * Limit how many FileChunks to delete. */ limit?: number } /** * FileChunk without action */ export type FileChunkDefaultArgs = { /** * Select specific fields to fetch from the FileChunk */ select?: Prisma.FileChunkSelect | null /** * Omit specific fields from the FileChunk */ omit?: Prisma.FileChunkOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FileChunkInclude | null }