1410 lines
54 KiB
TypeScript
1410 lines
54 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 `FileUploadProgress` 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 FileUploadProgress
|
|
*
|
|
*/
|
|
export type FileUploadProgressModel = runtime.Types.Result.DefaultSelection<Prisma.$FileUploadProgressPayload>
|
|
|
|
export type AggregateFileUploadProgress = {
|
|
_count: FileUploadProgressCountAggregateOutputType | null
|
|
_avg: FileUploadProgressAvgAggregateOutputType | null
|
|
_sum: FileUploadProgressSumAggregateOutputType | null
|
|
_min: FileUploadProgressMinAggregateOutputType | null
|
|
_max: FileUploadProgressMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type FileUploadProgressAvgAggregateOutputType = {
|
|
progressServer: number | null
|
|
progressStorage: number | null
|
|
}
|
|
|
|
export type FileUploadProgressSumAggregateOutputType = {
|
|
progressServer: number | null
|
|
progressStorage: number | null
|
|
}
|
|
|
|
export type FileUploadProgressMinAggregateOutputType = {
|
|
id: string | null
|
|
fileName: string | null
|
|
progressServer: number | null
|
|
progressStorage: number | null
|
|
url: string | null
|
|
error: string | null
|
|
}
|
|
|
|
export type FileUploadProgressMaxAggregateOutputType = {
|
|
id: string | null
|
|
fileName: string | null
|
|
progressServer: number | null
|
|
progressStorage: number | null
|
|
url: string | null
|
|
error: string | null
|
|
}
|
|
|
|
export type FileUploadProgressCountAggregateOutputType = {
|
|
id: number
|
|
fileName: number
|
|
progressServer: number
|
|
progressStorage: number
|
|
url: number
|
|
error: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type FileUploadProgressAvgAggregateInputType = {
|
|
progressServer?: true
|
|
progressStorage?: true
|
|
}
|
|
|
|
export type FileUploadProgressSumAggregateInputType = {
|
|
progressServer?: true
|
|
progressStorage?: true
|
|
}
|
|
|
|
export type FileUploadProgressMinAggregateInputType = {
|
|
id?: true
|
|
fileName?: true
|
|
progressServer?: true
|
|
progressStorage?: true
|
|
url?: true
|
|
error?: true
|
|
}
|
|
|
|
export type FileUploadProgressMaxAggregateInputType = {
|
|
id?: true
|
|
fileName?: true
|
|
progressServer?: true
|
|
progressStorage?: true
|
|
url?: true
|
|
error?: true
|
|
}
|
|
|
|
export type FileUploadProgressCountAggregateInputType = {
|
|
id?: true
|
|
fileName?: true
|
|
progressServer?: true
|
|
progressStorage?: true
|
|
url?: true
|
|
error?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type FileUploadProgressAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which FileUploadProgress to aggregate.
|
|
*/
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FileUploadProgresses to fetch.
|
|
*/
|
|
orderBy?: Prisma.FileUploadProgressOrderByWithRelationInput | Prisma.FileUploadProgressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.FileUploadProgressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FileUploadProgresses 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` FileUploadProgresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned FileUploadProgresses
|
|
**/
|
|
_count?: true | FileUploadProgressCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: FileUploadProgressAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: FileUploadProgressSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: FileUploadProgressMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: FileUploadProgressMaxAggregateInputType
|
|
}
|
|
|
|
export type GetFileUploadProgressAggregateType<T extends FileUploadProgressAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateFileUploadProgress]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateFileUploadProgress[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateFileUploadProgress[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FileUploadProgressGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
orderBy?: Prisma.FileUploadProgressOrderByWithAggregationInput | Prisma.FileUploadProgressOrderByWithAggregationInput[]
|
|
by: Prisma.FileUploadProgressScalarFieldEnum[] | Prisma.FileUploadProgressScalarFieldEnum
|
|
having?: Prisma.FileUploadProgressScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: FileUploadProgressCountAggregateInputType | true
|
|
_avg?: FileUploadProgressAvgAggregateInputType
|
|
_sum?: FileUploadProgressSumAggregateInputType
|
|
_min?: FileUploadProgressMinAggregateInputType
|
|
_max?: FileUploadProgressMaxAggregateInputType
|
|
}
|
|
|
|
export type FileUploadProgressGroupByOutputType = {
|
|
id: string
|
|
fileName: string
|
|
progressServer: number
|
|
progressStorage: number
|
|
url: string | null
|
|
error: string | null
|
|
_count: FileUploadProgressCountAggregateOutputType | null
|
|
_avg: FileUploadProgressAvgAggregateOutputType | null
|
|
_sum: FileUploadProgressSumAggregateOutputType | null
|
|
_min: FileUploadProgressMinAggregateOutputType | null
|
|
_max: FileUploadProgressMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetFileUploadProgressGroupByPayload<T extends FileUploadProgressGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<FileUploadProgressGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof FileUploadProgressGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], FileUploadProgressGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], FileUploadProgressGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type FileUploadProgressWhereInput = {
|
|
AND?: Prisma.FileUploadProgressWhereInput | Prisma.FileUploadProgressWhereInput[]
|
|
OR?: Prisma.FileUploadProgressWhereInput[]
|
|
NOT?: Prisma.FileUploadProgressWhereInput | Prisma.FileUploadProgressWhereInput[]
|
|
id?: Prisma.StringFilter<"FileUploadProgress"> | string
|
|
fileName?: Prisma.StringFilter<"FileUploadProgress"> | string
|
|
progressServer?: Prisma.IntFilter<"FileUploadProgress"> | number
|
|
progressStorage?: Prisma.IntFilter<"FileUploadProgress"> | number
|
|
url?: Prisma.StringNullableFilter<"FileUploadProgress"> | string | null
|
|
error?: Prisma.StringNullableFilter<"FileUploadProgress"> | string | null
|
|
chunks?: Prisma.FileChunkListRelationFilter
|
|
}
|
|
|
|
export type FileUploadProgressOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
fileName?: Prisma.SortOrder
|
|
progressServer?: Prisma.SortOrder
|
|
progressStorage?: Prisma.SortOrder
|
|
url?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
error?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
chunks?: Prisma.FileChunkOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type FileUploadProgressWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.FileUploadProgressWhereInput | Prisma.FileUploadProgressWhereInput[]
|
|
OR?: Prisma.FileUploadProgressWhereInput[]
|
|
NOT?: Prisma.FileUploadProgressWhereInput | Prisma.FileUploadProgressWhereInput[]
|
|
fileName?: Prisma.StringFilter<"FileUploadProgress"> | string
|
|
progressServer?: Prisma.IntFilter<"FileUploadProgress"> | number
|
|
progressStorage?: Prisma.IntFilter<"FileUploadProgress"> | number
|
|
url?: Prisma.StringNullableFilter<"FileUploadProgress"> | string | null
|
|
error?: Prisma.StringNullableFilter<"FileUploadProgress"> | string | null
|
|
chunks?: Prisma.FileChunkListRelationFilter
|
|
}, "id">
|
|
|
|
export type FileUploadProgressOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
fileName?: Prisma.SortOrder
|
|
progressServer?: Prisma.SortOrder
|
|
progressStorage?: Prisma.SortOrder
|
|
url?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
error?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.FileUploadProgressCountOrderByAggregateInput
|
|
_avg?: Prisma.FileUploadProgressAvgOrderByAggregateInput
|
|
_max?: Prisma.FileUploadProgressMaxOrderByAggregateInput
|
|
_min?: Prisma.FileUploadProgressMinOrderByAggregateInput
|
|
_sum?: Prisma.FileUploadProgressSumOrderByAggregateInput
|
|
}
|
|
|
|
export type FileUploadProgressScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.FileUploadProgressScalarWhereWithAggregatesInput | Prisma.FileUploadProgressScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.FileUploadProgressScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.FileUploadProgressScalarWhereWithAggregatesInput | Prisma.FileUploadProgressScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"FileUploadProgress"> | string
|
|
fileName?: Prisma.StringWithAggregatesFilter<"FileUploadProgress"> | string
|
|
progressServer?: Prisma.IntWithAggregatesFilter<"FileUploadProgress"> | number
|
|
progressStorage?: Prisma.IntWithAggregatesFilter<"FileUploadProgress"> | number
|
|
url?: Prisma.StringNullableWithAggregatesFilter<"FileUploadProgress"> | string | null
|
|
error?: Prisma.StringNullableWithAggregatesFilter<"FileUploadProgress"> | string | null
|
|
}
|
|
|
|
export type FileUploadProgressCreateInput = {
|
|
id?: string
|
|
fileName: string
|
|
progressServer: number
|
|
progressStorage: number
|
|
url?: string | null
|
|
error?: string | null
|
|
chunks?: Prisma.FileChunkCreateNestedManyWithoutFileUploadInput
|
|
}
|
|
|
|
export type FileUploadProgressUncheckedCreateInput = {
|
|
id?: string
|
|
fileName: string
|
|
progressServer: number
|
|
progressStorage: number
|
|
url?: string | null
|
|
error?: string | null
|
|
chunks?: Prisma.FileChunkUncheckedCreateNestedManyWithoutFileUploadInput
|
|
}
|
|
|
|
export type FileUploadProgressUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fileName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
progressServer?: Prisma.IntFieldUpdateOperationsInput | number
|
|
progressStorage?: Prisma.IntFieldUpdateOperationsInput | number
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
chunks?: Prisma.FileChunkUpdateManyWithoutFileUploadNestedInput
|
|
}
|
|
|
|
export type FileUploadProgressUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fileName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
progressServer?: Prisma.IntFieldUpdateOperationsInput | number
|
|
progressStorage?: Prisma.IntFieldUpdateOperationsInput | number
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
chunks?: Prisma.FileChunkUncheckedUpdateManyWithoutFileUploadNestedInput
|
|
}
|
|
|
|
export type FileUploadProgressCreateManyInput = {
|
|
id?: string
|
|
fileName: string
|
|
progressServer: number
|
|
progressStorage: number
|
|
url?: string | null
|
|
error?: string | null
|
|
}
|
|
|
|
export type FileUploadProgressUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fileName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
progressServer?: Prisma.IntFieldUpdateOperationsInput | number
|
|
progressStorage?: Prisma.IntFieldUpdateOperationsInput | number
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type FileUploadProgressUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fileName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
progressServer?: Prisma.IntFieldUpdateOperationsInput | number
|
|
progressStorage?: Prisma.IntFieldUpdateOperationsInput | number
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type FileUploadProgressCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
fileName?: Prisma.SortOrder
|
|
progressServer?: Prisma.SortOrder
|
|
progressStorage?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
error?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FileUploadProgressAvgOrderByAggregateInput = {
|
|
progressServer?: Prisma.SortOrder
|
|
progressStorage?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FileUploadProgressMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
fileName?: Prisma.SortOrder
|
|
progressServer?: Prisma.SortOrder
|
|
progressStorage?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
error?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FileUploadProgressMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
fileName?: Prisma.SortOrder
|
|
progressServer?: Prisma.SortOrder
|
|
progressStorage?: Prisma.SortOrder
|
|
url?: Prisma.SortOrder
|
|
error?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FileUploadProgressSumOrderByAggregateInput = {
|
|
progressServer?: Prisma.SortOrder
|
|
progressStorage?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FileUploadProgressScalarRelationFilter = {
|
|
is?: Prisma.FileUploadProgressWhereInput
|
|
isNot?: Prisma.FileUploadProgressWhereInput
|
|
}
|
|
|
|
export type FileUploadProgressCreateNestedOneWithoutChunksInput = {
|
|
create?: Prisma.XOR<Prisma.FileUploadProgressCreateWithoutChunksInput, Prisma.FileUploadProgressUncheckedCreateWithoutChunksInput>
|
|
connectOrCreate?: Prisma.FileUploadProgressCreateOrConnectWithoutChunksInput
|
|
connect?: Prisma.FileUploadProgressWhereUniqueInput
|
|
}
|
|
|
|
export type FileUploadProgressUpdateOneRequiredWithoutChunksNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FileUploadProgressCreateWithoutChunksInput, Prisma.FileUploadProgressUncheckedCreateWithoutChunksInput>
|
|
connectOrCreate?: Prisma.FileUploadProgressCreateOrConnectWithoutChunksInput
|
|
upsert?: Prisma.FileUploadProgressUpsertWithoutChunksInput
|
|
connect?: Prisma.FileUploadProgressWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.FileUploadProgressUpdateToOneWithWhereWithoutChunksInput, Prisma.FileUploadProgressUpdateWithoutChunksInput>, Prisma.FileUploadProgressUncheckedUpdateWithoutChunksInput>
|
|
}
|
|
|
|
export type FileUploadProgressCreateWithoutChunksInput = {
|
|
id?: string
|
|
fileName: string
|
|
progressServer: number
|
|
progressStorage: number
|
|
url?: string | null
|
|
error?: string | null
|
|
}
|
|
|
|
export type FileUploadProgressUncheckedCreateWithoutChunksInput = {
|
|
id?: string
|
|
fileName: string
|
|
progressServer: number
|
|
progressStorage: number
|
|
url?: string | null
|
|
error?: string | null
|
|
}
|
|
|
|
export type FileUploadProgressCreateOrConnectWithoutChunksInput = {
|
|
where: Prisma.FileUploadProgressWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.FileUploadProgressCreateWithoutChunksInput, Prisma.FileUploadProgressUncheckedCreateWithoutChunksInput>
|
|
}
|
|
|
|
export type FileUploadProgressUpsertWithoutChunksInput = {
|
|
update: Prisma.XOR<Prisma.FileUploadProgressUpdateWithoutChunksInput, Prisma.FileUploadProgressUncheckedUpdateWithoutChunksInput>
|
|
create: Prisma.XOR<Prisma.FileUploadProgressCreateWithoutChunksInput, Prisma.FileUploadProgressUncheckedCreateWithoutChunksInput>
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
}
|
|
|
|
export type FileUploadProgressUpdateToOneWithWhereWithoutChunksInput = {
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
data: Prisma.XOR<Prisma.FileUploadProgressUpdateWithoutChunksInput, Prisma.FileUploadProgressUncheckedUpdateWithoutChunksInput>
|
|
}
|
|
|
|
export type FileUploadProgressUpdateWithoutChunksInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fileName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
progressServer?: Prisma.IntFieldUpdateOperationsInput | number
|
|
progressStorage?: Prisma.IntFieldUpdateOperationsInput | number
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type FileUploadProgressUncheckedUpdateWithoutChunksInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fileName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
progressServer?: Prisma.IntFieldUpdateOperationsInput | number
|
|
progressStorage?: Prisma.IntFieldUpdateOperationsInput | number
|
|
url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type FileUploadProgressCountOutputType
|
|
*/
|
|
|
|
export type FileUploadProgressCountOutputType = {
|
|
chunks: number
|
|
}
|
|
|
|
export type FileUploadProgressCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chunks?: boolean | FileUploadProgressCountOutputTypeCountChunksArgs
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgressCountOutputType without action
|
|
*/
|
|
export type FileUploadProgressCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgressCountOutputType
|
|
*/
|
|
select?: Prisma.FileUploadProgressCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgressCountOutputType without action
|
|
*/
|
|
export type FileUploadProgressCountOutputTypeCountChunksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FileChunkWhereInput
|
|
}
|
|
|
|
|
|
export type FileUploadProgressSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
fileName?: boolean
|
|
progressServer?: boolean
|
|
progressStorage?: boolean
|
|
url?: boolean
|
|
error?: boolean
|
|
chunks?: boolean | Prisma.FileUploadProgress$chunksArgs<ExtArgs>
|
|
_count?: boolean | Prisma.FileUploadProgressCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["fileUploadProgress"]>
|
|
|
|
export type FileUploadProgressSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
fileName?: boolean
|
|
progressServer?: boolean
|
|
progressStorage?: boolean
|
|
url?: boolean
|
|
error?: boolean
|
|
}, ExtArgs["result"]["fileUploadProgress"]>
|
|
|
|
export type FileUploadProgressSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
fileName?: boolean
|
|
progressServer?: boolean
|
|
progressStorage?: boolean
|
|
url?: boolean
|
|
error?: boolean
|
|
}, ExtArgs["result"]["fileUploadProgress"]>
|
|
|
|
export type FileUploadProgressSelectScalar = {
|
|
id?: boolean
|
|
fileName?: boolean
|
|
progressServer?: boolean
|
|
progressStorage?: boolean
|
|
url?: boolean
|
|
error?: boolean
|
|
}
|
|
|
|
export type FileUploadProgressOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fileName" | "progressServer" | "progressStorage" | "url" | "error", ExtArgs["result"]["fileUploadProgress"]>
|
|
export type FileUploadProgressInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chunks?: boolean | Prisma.FileUploadProgress$chunksArgs<ExtArgs>
|
|
_count?: boolean | Prisma.FileUploadProgressCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type FileUploadProgressIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type FileUploadProgressIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $FileUploadProgressPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "FileUploadProgress"
|
|
objects: {
|
|
chunks: Prisma.$FileChunkPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
fileName: string
|
|
progressServer: number
|
|
progressStorage: number
|
|
url: string | null
|
|
error: string | null
|
|
}, ExtArgs["result"]["fileUploadProgress"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type FileUploadProgressGetPayload<S extends boolean | null | undefined | FileUploadProgressDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload, S>
|
|
|
|
export type FileUploadProgressCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<FileUploadProgressFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: FileUploadProgressCountAggregateInputType | true
|
|
}
|
|
|
|
export interface FileUploadProgressDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FileUploadProgress'], meta: { name: 'FileUploadProgress' } }
|
|
/**
|
|
* Find zero or one FileUploadProgress that matches the filter.
|
|
* @param {FileUploadProgressFindUniqueArgs} args - Arguments to find a FileUploadProgress
|
|
* @example
|
|
* // Get one FileUploadProgress
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends FileUploadProgressFindUniqueArgs>(args: Prisma.SelectSubset<T, FileUploadProgressFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FileUploadProgressClient<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one FileUploadProgress that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {FileUploadProgressFindUniqueOrThrowArgs} args - Arguments to find a FileUploadProgress
|
|
* @example
|
|
* // Get one FileUploadProgress
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends FileUploadProgressFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FileUploadProgressFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileUploadProgressClient<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first FileUploadProgress 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 {FileUploadProgressFindFirstArgs} args - Arguments to find a FileUploadProgress
|
|
* @example
|
|
* // Get one FileUploadProgress
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends FileUploadProgressFindFirstArgs>(args?: Prisma.SelectSubset<T, FileUploadProgressFindFirstArgs<ExtArgs>>): Prisma.Prisma__FileUploadProgressClient<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first FileUploadProgress 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 {FileUploadProgressFindFirstOrThrowArgs} args - Arguments to find a FileUploadProgress
|
|
* @example
|
|
* // Get one FileUploadProgress
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends FileUploadProgressFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FileUploadProgressFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileUploadProgressClient<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more FileUploadProgresses 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 {FileUploadProgressFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all FileUploadProgresses
|
|
* const fileUploadProgresses = await prisma.fileUploadProgress.findMany()
|
|
*
|
|
* // Get first 10 FileUploadProgresses
|
|
* const fileUploadProgresses = await prisma.fileUploadProgress.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const fileUploadProgressWithIdOnly = await prisma.fileUploadProgress.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends FileUploadProgressFindManyArgs>(args?: Prisma.SelectSubset<T, FileUploadProgressFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a FileUploadProgress.
|
|
* @param {FileUploadProgressCreateArgs} args - Arguments to create a FileUploadProgress.
|
|
* @example
|
|
* // Create one FileUploadProgress
|
|
* const FileUploadProgress = await prisma.fileUploadProgress.create({
|
|
* data: {
|
|
* // ... data to create a FileUploadProgress
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends FileUploadProgressCreateArgs>(args: Prisma.SelectSubset<T, FileUploadProgressCreateArgs<ExtArgs>>): Prisma.Prisma__FileUploadProgressClient<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many FileUploadProgresses.
|
|
* @param {FileUploadProgressCreateManyArgs} args - Arguments to create many FileUploadProgresses.
|
|
* @example
|
|
* // Create many FileUploadProgresses
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends FileUploadProgressCreateManyArgs>(args?: Prisma.SelectSubset<T, FileUploadProgressCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many FileUploadProgresses and returns the data saved in the database.
|
|
* @param {FileUploadProgressCreateManyAndReturnArgs} args - Arguments to create many FileUploadProgresses.
|
|
* @example
|
|
* // Create many FileUploadProgresses
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many FileUploadProgresses and only return the `id`
|
|
* const fileUploadProgressWithIdOnly = await prisma.fileUploadProgress.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<T extends FileUploadProgressCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FileUploadProgressCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a FileUploadProgress.
|
|
* @param {FileUploadProgressDeleteArgs} args - Arguments to delete one FileUploadProgress.
|
|
* @example
|
|
* // Delete one FileUploadProgress
|
|
* const FileUploadProgress = await prisma.fileUploadProgress.delete({
|
|
* where: {
|
|
* // ... filter to delete one FileUploadProgress
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends FileUploadProgressDeleteArgs>(args: Prisma.SelectSubset<T, FileUploadProgressDeleteArgs<ExtArgs>>): Prisma.Prisma__FileUploadProgressClient<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one FileUploadProgress.
|
|
* @param {FileUploadProgressUpdateArgs} args - Arguments to update one FileUploadProgress.
|
|
* @example
|
|
* // Update one FileUploadProgress
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends FileUploadProgressUpdateArgs>(args: Prisma.SelectSubset<T, FileUploadProgressUpdateArgs<ExtArgs>>): Prisma.Prisma__FileUploadProgressClient<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more FileUploadProgresses.
|
|
* @param {FileUploadProgressDeleteManyArgs} args - Arguments to filter FileUploadProgresses to delete.
|
|
* @example
|
|
* // Delete a few FileUploadProgresses
|
|
* const { count } = await prisma.fileUploadProgress.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends FileUploadProgressDeleteManyArgs>(args?: Prisma.SelectSubset<T, FileUploadProgressDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more FileUploadProgresses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FileUploadProgressUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many FileUploadProgresses
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends FileUploadProgressUpdateManyArgs>(args: Prisma.SelectSubset<T, FileUploadProgressUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more FileUploadProgresses and returns the data updated in the database.
|
|
* @param {FileUploadProgressUpdateManyAndReturnArgs} args - Arguments to update many FileUploadProgresses.
|
|
* @example
|
|
* // Update many FileUploadProgresses
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more FileUploadProgresses and only return the `id`
|
|
* const fileUploadProgressWithIdOnly = await prisma.fileUploadProgress.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<T extends FileUploadProgressUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FileUploadProgressUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one FileUploadProgress.
|
|
* @param {FileUploadProgressUpsertArgs} args - Arguments to update or create a FileUploadProgress.
|
|
* @example
|
|
* // Update or create a FileUploadProgress
|
|
* const fileUploadProgress = await prisma.fileUploadProgress.upsert({
|
|
* create: {
|
|
* // ... data to create a FileUploadProgress
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the FileUploadProgress we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends FileUploadProgressUpsertArgs>(args: Prisma.SelectSubset<T, FileUploadProgressUpsertArgs<ExtArgs>>): Prisma.Prisma__FileUploadProgressClient<runtime.Types.Result.GetResult<Prisma.$FileUploadProgressPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of FileUploadProgresses.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FileUploadProgressCountArgs} args - Arguments to filter FileUploadProgresses to count.
|
|
* @example
|
|
* // Count the number of FileUploadProgresses
|
|
* const count = await prisma.fileUploadProgress.count({
|
|
* where: {
|
|
* // ... the filter for the FileUploadProgresses we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends FileUploadProgressCountArgs>(
|
|
args?: Prisma.Subset<T, FileUploadProgressCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], FileUploadProgressCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a FileUploadProgress.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FileUploadProgressAggregateArgs} 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 FileUploadProgressAggregateArgs>(args: Prisma.Subset<T, FileUploadProgressAggregateArgs>): Prisma.PrismaPromise<GetFileUploadProgressAggregateType<T>>
|
|
|
|
/**
|
|
* Group by FileUploadProgress.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FileUploadProgressGroupByArgs} 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 FileUploadProgressGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: FileUploadProgressGroupByArgs['orderBy'] }
|
|
: { orderBy?: FileUploadProgressGroupByArgs['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, FileUploadProgressGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFileUploadProgressGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the FileUploadProgress model
|
|
*/
|
|
readonly fields: FileUploadProgressFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for FileUploadProgress.
|
|
* 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__FileUploadProgressClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
chunks<T extends Prisma.FileUploadProgress$chunksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FileUploadProgress$chunksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileChunkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* 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 FileUploadProgress model
|
|
*/
|
|
export interface FileUploadProgressFieldRefs {
|
|
readonly id: Prisma.FieldRef<"FileUploadProgress", 'String'>
|
|
readonly fileName: Prisma.FieldRef<"FileUploadProgress", 'String'>
|
|
readonly progressServer: Prisma.FieldRef<"FileUploadProgress", 'Int'>
|
|
readonly progressStorage: Prisma.FieldRef<"FileUploadProgress", 'Int'>
|
|
readonly url: Prisma.FieldRef<"FileUploadProgress", 'String'>
|
|
readonly error: Prisma.FieldRef<"FileUploadProgress", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* FileUploadProgress findUnique
|
|
*/
|
|
export type FileUploadProgressFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileUploadProgress to fetch.
|
|
*/
|
|
where: Prisma.FileUploadProgressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress findUniqueOrThrow
|
|
*/
|
|
export type FileUploadProgressFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileUploadProgress to fetch.
|
|
*/
|
|
where: Prisma.FileUploadProgressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress findFirst
|
|
*/
|
|
export type FileUploadProgressFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileUploadProgress to fetch.
|
|
*/
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FileUploadProgresses to fetch.
|
|
*/
|
|
orderBy?: Prisma.FileUploadProgressOrderByWithRelationInput | Prisma.FileUploadProgressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for FileUploadProgresses.
|
|
*/
|
|
cursor?: Prisma.FileUploadProgressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FileUploadProgresses 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` FileUploadProgresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FileUploadProgresses.
|
|
*/
|
|
distinct?: Prisma.FileUploadProgressScalarFieldEnum | Prisma.FileUploadProgressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress findFirstOrThrow
|
|
*/
|
|
export type FileUploadProgressFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileUploadProgress to fetch.
|
|
*/
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FileUploadProgresses to fetch.
|
|
*/
|
|
orderBy?: Prisma.FileUploadProgressOrderByWithRelationInput | Prisma.FileUploadProgressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for FileUploadProgresses.
|
|
*/
|
|
cursor?: Prisma.FileUploadProgressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FileUploadProgresses 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` FileUploadProgresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FileUploadProgresses.
|
|
*/
|
|
distinct?: Prisma.FileUploadProgressScalarFieldEnum | Prisma.FileUploadProgressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress findMany
|
|
*/
|
|
export type FileUploadProgressFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileUploadProgresses to fetch.
|
|
*/
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FileUploadProgresses to fetch.
|
|
*/
|
|
orderBy?: Prisma.FileUploadProgressOrderByWithRelationInput | Prisma.FileUploadProgressOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing FileUploadProgresses.
|
|
*/
|
|
cursor?: Prisma.FileUploadProgressWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FileUploadProgresses 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` FileUploadProgresses.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FileUploadProgresses.
|
|
*/
|
|
distinct?: Prisma.FileUploadProgressScalarFieldEnum | Prisma.FileUploadProgressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress create
|
|
*/
|
|
export type FileUploadProgressCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a FileUploadProgress.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FileUploadProgressCreateInput, Prisma.FileUploadProgressUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress createMany
|
|
*/
|
|
export type FileUploadProgressCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many FileUploadProgresses.
|
|
*/
|
|
data: Prisma.FileUploadProgressCreateManyInput | Prisma.FileUploadProgressCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress createManyAndReturn
|
|
*/
|
|
export type FileUploadProgressCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many FileUploadProgresses.
|
|
*/
|
|
data: Prisma.FileUploadProgressCreateManyInput | Prisma.FileUploadProgressCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress update
|
|
*/
|
|
export type FileUploadProgressUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a FileUploadProgress.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FileUploadProgressUpdateInput, Prisma.FileUploadProgressUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which FileUploadProgress to update.
|
|
*/
|
|
where: Prisma.FileUploadProgressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress updateMany
|
|
*/
|
|
export type FileUploadProgressUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update FileUploadProgresses.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FileUploadProgressUpdateManyMutationInput, Prisma.FileUploadProgressUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which FileUploadProgresses to update
|
|
*/
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
/**
|
|
* Limit how many FileUploadProgresses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress updateManyAndReturn
|
|
*/
|
|
export type FileUploadProgressUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update FileUploadProgresses.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FileUploadProgressUpdateManyMutationInput, Prisma.FileUploadProgressUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which FileUploadProgresses to update
|
|
*/
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
/**
|
|
* Limit how many FileUploadProgresses to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress upsert
|
|
*/
|
|
export type FileUploadProgressUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the FileUploadProgress to update in case it exists.
|
|
*/
|
|
where: Prisma.FileUploadProgressWhereUniqueInput
|
|
/**
|
|
* In case the FileUploadProgress found by the `where` argument doesn't exist, create a new FileUploadProgress with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.FileUploadProgressCreateInput, Prisma.FileUploadProgressUncheckedCreateInput>
|
|
/**
|
|
* In case the FileUploadProgress was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.FileUploadProgressUpdateInput, Prisma.FileUploadProgressUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress delete
|
|
*/
|
|
export type FileUploadProgressDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which FileUploadProgress to delete.
|
|
*/
|
|
where: Prisma.FileUploadProgressWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress deleteMany
|
|
*/
|
|
export type FileUploadProgressDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which FileUploadProgresses to delete
|
|
*/
|
|
where?: Prisma.FileUploadProgressWhereInput
|
|
/**
|
|
* Limit how many FileUploadProgresses to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress.chunks
|
|
*/
|
|
export type FileUploadProgress$chunksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileChunk
|
|
*/
|
|
select?: Prisma.FileChunkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileChunk
|
|
*/
|
|
omit?: Prisma.FileChunkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileChunkInclude<ExtArgs> | null
|
|
where?: Prisma.FileChunkWhereInput
|
|
orderBy?: Prisma.FileChunkOrderByWithRelationInput | Prisma.FileChunkOrderByWithRelationInput[]
|
|
cursor?: Prisma.FileChunkWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.FileChunkScalarFieldEnum | Prisma.FileChunkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FileUploadProgress without action
|
|
*/
|
|
export type FileUploadProgressDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileUploadProgress
|
|
*/
|
|
select?: Prisma.FileUploadProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileUploadProgress
|
|
*/
|
|
omit?: Prisma.FileUploadProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FileUploadProgressInclude<ExtArgs> | null
|
|
}
|