Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/FileUploadChunk.ts
T

1508 lines
58 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 `FileUploadChunk` 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 FileUploadChunk
* One uploaded chunk of a `FileUpload` session (replaces spec `FileChunk`).
* Bytes live in temp storage (`storageKey`), not in the DB.
*/
export type FileUploadChunkModel = runtime.Types.Result.DefaultSelection<Prisma.$FileUploadChunkPayload>
export type AggregateFileUploadChunk = {
_count: FileUploadChunkCountAggregateOutputType | null
_avg: FileUploadChunkAvgAggregateOutputType | null
_sum: FileUploadChunkSumAggregateOutputType | null
_min: FileUploadChunkMinAggregateOutputType | null
_max: FileUploadChunkMaxAggregateOutputType | null
}
export type FileUploadChunkAvgAggregateOutputType = {
chunkIndex: number | null
sizeBytes: number | null
}
export type FileUploadChunkSumAggregateOutputType = {
chunkIndex: number | null
sizeBytes: number | null
}
export type FileUploadChunkMinAggregateOutputType = {
id: string | null
tenantId: string | null
uploadId: string | null
chunkIndex: number | null
storageKey: string | null
sizeBytes: number | null
checksumSha256: string | null
receivedAt: Date | null
}
export type FileUploadChunkMaxAggregateOutputType = {
id: string | null
tenantId: string | null
uploadId: string | null
chunkIndex: number | null
storageKey: string | null
sizeBytes: number | null
checksumSha256: string | null
receivedAt: Date | null
}
export type FileUploadChunkCountAggregateOutputType = {
id: number
tenantId: number
uploadId: number
chunkIndex: number
storageKey: number
sizeBytes: number
checksumSha256: number
receivedAt: number
_all: number
}
export type FileUploadChunkAvgAggregateInputType = {
chunkIndex?: true
sizeBytes?: true
}
export type FileUploadChunkSumAggregateInputType = {
chunkIndex?: true
sizeBytes?: true
}
export type FileUploadChunkMinAggregateInputType = {
id?: true
tenantId?: true
uploadId?: true
chunkIndex?: true
storageKey?: true
sizeBytes?: true
checksumSha256?: true
receivedAt?: true
}
export type FileUploadChunkMaxAggregateInputType = {
id?: true
tenantId?: true
uploadId?: true
chunkIndex?: true
storageKey?: true
sizeBytes?: true
checksumSha256?: true
receivedAt?: true
}
export type FileUploadChunkCountAggregateInputType = {
id?: true
tenantId?: true
uploadId?: true
chunkIndex?: true
storageKey?: true
sizeBytes?: true
checksumSha256?: true
receivedAt?: true
_all?: true
}
export type FileUploadChunkAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which FileUploadChunk to aggregate.
*/
where?: Prisma.FileUploadChunkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileUploadChunks to fetch.
*/
orderBy?: Prisma.FileUploadChunkOrderByWithRelationInput | Prisma.FileUploadChunkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.FileUploadChunkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileUploadChunks 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` FileUploadChunks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned FileUploadChunks
**/
_count?: true | FileUploadChunkCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: FileUploadChunkAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: FileUploadChunkSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: FileUploadChunkMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: FileUploadChunkMaxAggregateInputType
}
export type GetFileUploadChunkAggregateType<T extends FileUploadChunkAggregateArgs> = {
[P in keyof T & keyof AggregateFileUploadChunk]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateFileUploadChunk[P]>
: Prisma.GetScalarType<T[P], AggregateFileUploadChunk[P]>
}
export type FileUploadChunkGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.FileUploadChunkWhereInput
orderBy?: Prisma.FileUploadChunkOrderByWithAggregationInput | Prisma.FileUploadChunkOrderByWithAggregationInput[]
by: Prisma.FileUploadChunkScalarFieldEnum[] | Prisma.FileUploadChunkScalarFieldEnum
having?: Prisma.FileUploadChunkScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: FileUploadChunkCountAggregateInputType | true
_avg?: FileUploadChunkAvgAggregateInputType
_sum?: FileUploadChunkSumAggregateInputType
_min?: FileUploadChunkMinAggregateInputType
_max?: FileUploadChunkMaxAggregateInputType
}
export type FileUploadChunkGroupByOutputType = {
id: string
tenantId: string
uploadId: string
chunkIndex: number
storageKey: string
sizeBytes: number
checksumSha256: string | null
receivedAt: Date
_count: FileUploadChunkCountAggregateOutputType | null
_avg: FileUploadChunkAvgAggregateOutputType | null
_sum: FileUploadChunkSumAggregateOutputType | null
_min: FileUploadChunkMinAggregateOutputType | null
_max: FileUploadChunkMaxAggregateOutputType | null
}
export type GetFileUploadChunkGroupByPayload<T extends FileUploadChunkGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<FileUploadChunkGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof FileUploadChunkGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], FileUploadChunkGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], FileUploadChunkGroupByOutputType[P]>
}
>
>
export type FileUploadChunkWhereInput = {
AND?: Prisma.FileUploadChunkWhereInput | Prisma.FileUploadChunkWhereInput[]
OR?: Prisma.FileUploadChunkWhereInput[]
NOT?: Prisma.FileUploadChunkWhereInput | Prisma.FileUploadChunkWhereInput[]
id?: Prisma.StringFilter<"FileUploadChunk"> | string
tenantId?: Prisma.StringFilter<"FileUploadChunk"> | string
uploadId?: Prisma.StringFilter<"FileUploadChunk"> | string
chunkIndex?: Prisma.IntFilter<"FileUploadChunk"> | number
storageKey?: Prisma.StringFilter<"FileUploadChunk"> | string
sizeBytes?: Prisma.IntFilter<"FileUploadChunk"> | number
checksumSha256?: Prisma.StringNullableFilter<"FileUploadChunk"> | string | null
receivedAt?: Prisma.DateTimeFilter<"FileUploadChunk"> | Date | string
upload?: Prisma.XOR<Prisma.FileUploadScalarRelationFilter, Prisma.FileUploadWhereInput>
}
export type FileUploadChunkOrderByWithRelationInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
uploadId?: Prisma.SortOrder
chunkIndex?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrderInput | Prisma.SortOrder
receivedAt?: Prisma.SortOrder
upload?: Prisma.FileUploadOrderByWithRelationInput
}
export type FileUploadChunkWhereUniqueInput = Prisma.AtLeast<{
id?: string
uploadId_chunkIndex?: Prisma.FileUploadChunkUploadIdChunkIndexCompoundUniqueInput
AND?: Prisma.FileUploadChunkWhereInput | Prisma.FileUploadChunkWhereInput[]
OR?: Prisma.FileUploadChunkWhereInput[]
NOT?: Prisma.FileUploadChunkWhereInput | Prisma.FileUploadChunkWhereInput[]
tenantId?: Prisma.StringFilter<"FileUploadChunk"> | string
uploadId?: Prisma.StringFilter<"FileUploadChunk"> | string
chunkIndex?: Prisma.IntFilter<"FileUploadChunk"> | number
storageKey?: Prisma.StringFilter<"FileUploadChunk"> | string
sizeBytes?: Prisma.IntFilter<"FileUploadChunk"> | number
checksumSha256?: Prisma.StringNullableFilter<"FileUploadChunk"> | string | null
receivedAt?: Prisma.DateTimeFilter<"FileUploadChunk"> | Date | string
upload?: Prisma.XOR<Prisma.FileUploadScalarRelationFilter, Prisma.FileUploadWhereInput>
}, "id" | "uploadId_chunkIndex">
export type FileUploadChunkOrderByWithAggregationInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
uploadId?: Prisma.SortOrder
chunkIndex?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrderInput | Prisma.SortOrder
receivedAt?: Prisma.SortOrder
_count?: Prisma.FileUploadChunkCountOrderByAggregateInput
_avg?: Prisma.FileUploadChunkAvgOrderByAggregateInput
_max?: Prisma.FileUploadChunkMaxOrderByAggregateInput
_min?: Prisma.FileUploadChunkMinOrderByAggregateInput
_sum?: Prisma.FileUploadChunkSumOrderByAggregateInput
}
export type FileUploadChunkScalarWhereWithAggregatesInput = {
AND?: Prisma.FileUploadChunkScalarWhereWithAggregatesInput | Prisma.FileUploadChunkScalarWhereWithAggregatesInput[]
OR?: Prisma.FileUploadChunkScalarWhereWithAggregatesInput[]
NOT?: Prisma.FileUploadChunkScalarWhereWithAggregatesInput | Prisma.FileUploadChunkScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"FileUploadChunk"> | string
tenantId?: Prisma.StringWithAggregatesFilter<"FileUploadChunk"> | string
uploadId?: Prisma.StringWithAggregatesFilter<"FileUploadChunk"> | string
chunkIndex?: Prisma.IntWithAggregatesFilter<"FileUploadChunk"> | number
storageKey?: Prisma.StringWithAggregatesFilter<"FileUploadChunk"> | string
sizeBytes?: Prisma.IntWithAggregatesFilter<"FileUploadChunk"> | number
checksumSha256?: Prisma.StringNullableWithAggregatesFilter<"FileUploadChunk"> | string | null
receivedAt?: Prisma.DateTimeWithAggregatesFilter<"FileUploadChunk"> | Date | string
}
export type FileUploadChunkCreateInput = {
id?: string
tenantId: string
chunkIndex: number
storageKey: string
sizeBytes: number
checksumSha256?: string | null
receivedAt?: Date | string
upload: Prisma.FileUploadCreateNestedOneWithoutChunksInput
}
export type FileUploadChunkUncheckedCreateInput = {
id?: string
tenantId: string
uploadId: string
chunkIndex: number
storageKey: string
sizeBytes: number
checksumSha256?: string | null
receivedAt?: Date | string
}
export type FileUploadChunkUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
upload?: Prisma.FileUploadUpdateOneRequiredWithoutChunksNestedInput
}
export type FileUploadChunkUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
uploadId?: Prisma.StringFieldUpdateOperationsInput | string
chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type FileUploadChunkCreateManyInput = {
id?: string
tenantId: string
uploadId: string
chunkIndex: number
storageKey: string
sizeBytes: number
checksumSha256?: string | null
receivedAt?: Date | string
}
export type FileUploadChunkUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type FileUploadChunkUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
uploadId?: Prisma.StringFieldUpdateOperationsInput | string
chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type FileUploadChunkListRelationFilter = {
every?: Prisma.FileUploadChunkWhereInput
some?: Prisma.FileUploadChunkWhereInput
none?: Prisma.FileUploadChunkWhereInput
}
export type FileUploadChunkOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type FileUploadChunkUploadIdChunkIndexCompoundUniqueInput = {
uploadId: string
chunkIndex: number
}
export type FileUploadChunkCountOrderByAggregateInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
uploadId?: Prisma.SortOrder
chunkIndex?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrder
receivedAt?: Prisma.SortOrder
}
export type FileUploadChunkAvgOrderByAggregateInput = {
chunkIndex?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
}
export type FileUploadChunkMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
uploadId?: Prisma.SortOrder
chunkIndex?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrder
receivedAt?: Prisma.SortOrder
}
export type FileUploadChunkMinOrderByAggregateInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
uploadId?: Prisma.SortOrder
chunkIndex?: Prisma.SortOrder
storageKey?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
checksumSha256?: Prisma.SortOrder
receivedAt?: Prisma.SortOrder
}
export type FileUploadChunkSumOrderByAggregateInput = {
chunkIndex?: Prisma.SortOrder
sizeBytes?: Prisma.SortOrder
}
export type FileUploadChunkCreateNestedManyWithoutUploadInput = {
create?: Prisma.XOR<Prisma.FileUploadChunkCreateWithoutUploadInput, Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput> | Prisma.FileUploadChunkCreateWithoutUploadInput[] | Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput[]
connectOrCreate?: Prisma.FileUploadChunkCreateOrConnectWithoutUploadInput | Prisma.FileUploadChunkCreateOrConnectWithoutUploadInput[]
createMany?: Prisma.FileUploadChunkCreateManyUploadInputEnvelope
connect?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
}
export type FileUploadChunkUncheckedCreateNestedManyWithoutUploadInput = {
create?: Prisma.XOR<Prisma.FileUploadChunkCreateWithoutUploadInput, Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput> | Prisma.FileUploadChunkCreateWithoutUploadInput[] | Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput[]
connectOrCreate?: Prisma.FileUploadChunkCreateOrConnectWithoutUploadInput | Prisma.FileUploadChunkCreateOrConnectWithoutUploadInput[]
createMany?: Prisma.FileUploadChunkCreateManyUploadInputEnvelope
connect?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
}
export type FileUploadChunkUpdateManyWithoutUploadNestedInput = {
create?: Prisma.XOR<Prisma.FileUploadChunkCreateWithoutUploadInput, Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput> | Prisma.FileUploadChunkCreateWithoutUploadInput[] | Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput[]
connectOrCreate?: Prisma.FileUploadChunkCreateOrConnectWithoutUploadInput | Prisma.FileUploadChunkCreateOrConnectWithoutUploadInput[]
upsert?: Prisma.FileUploadChunkUpsertWithWhereUniqueWithoutUploadInput | Prisma.FileUploadChunkUpsertWithWhereUniqueWithoutUploadInput[]
createMany?: Prisma.FileUploadChunkCreateManyUploadInputEnvelope
set?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
disconnect?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
delete?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
connect?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
update?: Prisma.FileUploadChunkUpdateWithWhereUniqueWithoutUploadInput | Prisma.FileUploadChunkUpdateWithWhereUniqueWithoutUploadInput[]
updateMany?: Prisma.FileUploadChunkUpdateManyWithWhereWithoutUploadInput | Prisma.FileUploadChunkUpdateManyWithWhereWithoutUploadInput[]
deleteMany?: Prisma.FileUploadChunkScalarWhereInput | Prisma.FileUploadChunkScalarWhereInput[]
}
export type FileUploadChunkUncheckedUpdateManyWithoutUploadNestedInput = {
create?: Prisma.XOR<Prisma.FileUploadChunkCreateWithoutUploadInput, Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput> | Prisma.FileUploadChunkCreateWithoutUploadInput[] | Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput[]
connectOrCreate?: Prisma.FileUploadChunkCreateOrConnectWithoutUploadInput | Prisma.FileUploadChunkCreateOrConnectWithoutUploadInput[]
upsert?: Prisma.FileUploadChunkUpsertWithWhereUniqueWithoutUploadInput | Prisma.FileUploadChunkUpsertWithWhereUniqueWithoutUploadInput[]
createMany?: Prisma.FileUploadChunkCreateManyUploadInputEnvelope
set?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
disconnect?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
delete?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
connect?: Prisma.FileUploadChunkWhereUniqueInput | Prisma.FileUploadChunkWhereUniqueInput[]
update?: Prisma.FileUploadChunkUpdateWithWhereUniqueWithoutUploadInput | Prisma.FileUploadChunkUpdateWithWhereUniqueWithoutUploadInput[]
updateMany?: Prisma.FileUploadChunkUpdateManyWithWhereWithoutUploadInput | Prisma.FileUploadChunkUpdateManyWithWhereWithoutUploadInput[]
deleteMany?: Prisma.FileUploadChunkScalarWhereInput | Prisma.FileUploadChunkScalarWhereInput[]
}
export type FileUploadChunkCreateWithoutUploadInput = {
id?: string
tenantId: string
chunkIndex: number
storageKey: string
sizeBytes: number
checksumSha256?: string | null
receivedAt?: Date | string
}
export type FileUploadChunkUncheckedCreateWithoutUploadInput = {
id?: string
tenantId: string
chunkIndex: number
storageKey: string
sizeBytes: number
checksumSha256?: string | null
receivedAt?: Date | string
}
export type FileUploadChunkCreateOrConnectWithoutUploadInput = {
where: Prisma.FileUploadChunkWhereUniqueInput
create: Prisma.XOR<Prisma.FileUploadChunkCreateWithoutUploadInput, Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput>
}
export type FileUploadChunkCreateManyUploadInputEnvelope = {
data: Prisma.FileUploadChunkCreateManyUploadInput | Prisma.FileUploadChunkCreateManyUploadInput[]
skipDuplicates?: boolean
}
export type FileUploadChunkUpsertWithWhereUniqueWithoutUploadInput = {
where: Prisma.FileUploadChunkWhereUniqueInput
update: Prisma.XOR<Prisma.FileUploadChunkUpdateWithoutUploadInput, Prisma.FileUploadChunkUncheckedUpdateWithoutUploadInput>
create: Prisma.XOR<Prisma.FileUploadChunkCreateWithoutUploadInput, Prisma.FileUploadChunkUncheckedCreateWithoutUploadInput>
}
export type FileUploadChunkUpdateWithWhereUniqueWithoutUploadInput = {
where: Prisma.FileUploadChunkWhereUniqueInput
data: Prisma.XOR<Prisma.FileUploadChunkUpdateWithoutUploadInput, Prisma.FileUploadChunkUncheckedUpdateWithoutUploadInput>
}
export type FileUploadChunkUpdateManyWithWhereWithoutUploadInput = {
where: Prisma.FileUploadChunkScalarWhereInput
data: Prisma.XOR<Prisma.FileUploadChunkUpdateManyMutationInput, Prisma.FileUploadChunkUncheckedUpdateManyWithoutUploadInput>
}
export type FileUploadChunkScalarWhereInput = {
AND?: Prisma.FileUploadChunkScalarWhereInput | Prisma.FileUploadChunkScalarWhereInput[]
OR?: Prisma.FileUploadChunkScalarWhereInput[]
NOT?: Prisma.FileUploadChunkScalarWhereInput | Prisma.FileUploadChunkScalarWhereInput[]
id?: Prisma.StringFilter<"FileUploadChunk"> | string
tenantId?: Prisma.StringFilter<"FileUploadChunk"> | string
uploadId?: Prisma.StringFilter<"FileUploadChunk"> | string
chunkIndex?: Prisma.IntFilter<"FileUploadChunk"> | number
storageKey?: Prisma.StringFilter<"FileUploadChunk"> | string
sizeBytes?: Prisma.IntFilter<"FileUploadChunk"> | number
checksumSha256?: Prisma.StringNullableFilter<"FileUploadChunk"> | string | null
receivedAt?: Prisma.DateTimeFilter<"FileUploadChunk"> | Date | string
}
export type FileUploadChunkCreateManyUploadInput = {
id?: string
tenantId: string
chunkIndex: number
storageKey: string
sizeBytes: number
checksumSha256?: string | null
receivedAt?: Date | string
}
export type FileUploadChunkUpdateWithoutUploadInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type FileUploadChunkUncheckedUpdateWithoutUploadInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type FileUploadChunkUncheckedUpdateManyWithoutUploadInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
receivedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type FileUploadChunkSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
tenantId?: boolean
uploadId?: boolean
chunkIndex?: boolean
storageKey?: boolean
sizeBytes?: boolean
checksumSha256?: boolean
receivedAt?: boolean
upload?: boolean | Prisma.FileUploadDefaultArgs<ExtArgs>
}, ExtArgs["result"]["fileUploadChunk"]>
export type FileUploadChunkSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
tenantId?: boolean
uploadId?: boolean
chunkIndex?: boolean
storageKey?: boolean
sizeBytes?: boolean
checksumSha256?: boolean
receivedAt?: boolean
upload?: boolean | Prisma.FileUploadDefaultArgs<ExtArgs>
}, ExtArgs["result"]["fileUploadChunk"]>
export type FileUploadChunkSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
tenantId?: boolean
uploadId?: boolean
chunkIndex?: boolean
storageKey?: boolean
sizeBytes?: boolean
checksumSha256?: boolean
receivedAt?: boolean
upload?: boolean | Prisma.FileUploadDefaultArgs<ExtArgs>
}, ExtArgs["result"]["fileUploadChunk"]>
export type FileUploadChunkSelectScalar = {
id?: boolean
tenantId?: boolean
uploadId?: boolean
chunkIndex?: boolean
storageKey?: boolean
sizeBytes?: boolean
checksumSha256?: boolean
receivedAt?: boolean
}
export type FileUploadChunkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "uploadId" | "chunkIndex" | "storageKey" | "sizeBytes" | "checksumSha256" | "receivedAt", ExtArgs["result"]["fileUploadChunk"]>
export type FileUploadChunkInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
upload?: boolean | Prisma.FileUploadDefaultArgs<ExtArgs>
}
export type FileUploadChunkIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
upload?: boolean | Prisma.FileUploadDefaultArgs<ExtArgs>
}
export type FileUploadChunkIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
upload?: boolean | Prisma.FileUploadDefaultArgs<ExtArgs>
}
export type $FileUploadChunkPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "FileUploadChunk"
objects: {
upload: Prisma.$FileUploadPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
tenantId: string
uploadId: string
chunkIndex: number
storageKey: string
sizeBytes: number
checksumSha256: string | null
receivedAt: Date
}, ExtArgs["result"]["fileUploadChunk"]>
composites: {}
}
export type FileUploadChunkGetPayload<S extends boolean | null | undefined | FileUploadChunkDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload, S>
export type FileUploadChunkCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<FileUploadChunkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: FileUploadChunkCountAggregateInputType | true
}
export interface FileUploadChunkDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FileUploadChunk'], meta: { name: 'FileUploadChunk' } }
/**
* Find zero or one FileUploadChunk that matches the filter.
* @param {FileUploadChunkFindUniqueArgs} args - Arguments to find a FileUploadChunk
* @example
* // Get one FileUploadChunk
* const fileUploadChunk = await prisma.fileUploadChunk.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends FileUploadChunkFindUniqueArgs>(args: Prisma.SelectSubset<T, FileUploadChunkFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FileUploadChunkClient<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one FileUploadChunk that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {FileUploadChunkFindUniqueOrThrowArgs} args - Arguments to find a FileUploadChunk
* @example
* // Get one FileUploadChunk
* const fileUploadChunk = await prisma.fileUploadChunk.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends FileUploadChunkFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FileUploadChunkFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileUploadChunkClient<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first FileUploadChunk 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 {FileUploadChunkFindFirstArgs} args - Arguments to find a FileUploadChunk
* @example
* // Get one FileUploadChunk
* const fileUploadChunk = await prisma.fileUploadChunk.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends FileUploadChunkFindFirstArgs>(args?: Prisma.SelectSubset<T, FileUploadChunkFindFirstArgs<ExtArgs>>): Prisma.Prisma__FileUploadChunkClient<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first FileUploadChunk 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 {FileUploadChunkFindFirstOrThrowArgs} args - Arguments to find a FileUploadChunk
* @example
* // Get one FileUploadChunk
* const fileUploadChunk = await prisma.fileUploadChunk.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends FileUploadChunkFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FileUploadChunkFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileUploadChunkClient<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more FileUploadChunks 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 {FileUploadChunkFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all FileUploadChunks
* const fileUploadChunks = await prisma.fileUploadChunk.findMany()
*
* // Get first 10 FileUploadChunks
* const fileUploadChunks = await prisma.fileUploadChunk.findMany({ take: 10 })
*
* // Only select the `id`
* const fileUploadChunkWithIdOnly = await prisma.fileUploadChunk.findMany({ select: { id: true } })
*
*/
findMany<T extends FileUploadChunkFindManyArgs>(args?: Prisma.SelectSubset<T, FileUploadChunkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a FileUploadChunk.
* @param {FileUploadChunkCreateArgs} args - Arguments to create a FileUploadChunk.
* @example
* // Create one FileUploadChunk
* const FileUploadChunk = await prisma.fileUploadChunk.create({
* data: {
* // ... data to create a FileUploadChunk
* }
* })
*
*/
create<T extends FileUploadChunkCreateArgs>(args: Prisma.SelectSubset<T, FileUploadChunkCreateArgs<ExtArgs>>): Prisma.Prisma__FileUploadChunkClient<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many FileUploadChunks.
* @param {FileUploadChunkCreateManyArgs} args - Arguments to create many FileUploadChunks.
* @example
* // Create many FileUploadChunks
* const fileUploadChunk = await prisma.fileUploadChunk.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends FileUploadChunkCreateManyArgs>(args?: Prisma.SelectSubset<T, FileUploadChunkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many FileUploadChunks and returns the data saved in the database.
* @param {FileUploadChunkCreateManyAndReturnArgs} args - Arguments to create many FileUploadChunks.
* @example
* // Create many FileUploadChunks
* const fileUploadChunk = await prisma.fileUploadChunk.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many FileUploadChunks and only return the `id`
* const fileUploadChunkWithIdOnly = await prisma.fileUploadChunk.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 FileUploadChunkCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FileUploadChunkCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a FileUploadChunk.
* @param {FileUploadChunkDeleteArgs} args - Arguments to delete one FileUploadChunk.
* @example
* // Delete one FileUploadChunk
* const FileUploadChunk = await prisma.fileUploadChunk.delete({
* where: {
* // ... filter to delete one FileUploadChunk
* }
* })
*
*/
delete<T extends FileUploadChunkDeleteArgs>(args: Prisma.SelectSubset<T, FileUploadChunkDeleteArgs<ExtArgs>>): Prisma.Prisma__FileUploadChunkClient<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one FileUploadChunk.
* @param {FileUploadChunkUpdateArgs} args - Arguments to update one FileUploadChunk.
* @example
* // Update one FileUploadChunk
* const fileUploadChunk = await prisma.fileUploadChunk.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends FileUploadChunkUpdateArgs>(args: Prisma.SelectSubset<T, FileUploadChunkUpdateArgs<ExtArgs>>): Prisma.Prisma__FileUploadChunkClient<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more FileUploadChunks.
* @param {FileUploadChunkDeleteManyArgs} args - Arguments to filter FileUploadChunks to delete.
* @example
* // Delete a few FileUploadChunks
* const { count } = await prisma.fileUploadChunk.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends FileUploadChunkDeleteManyArgs>(args?: Prisma.SelectSubset<T, FileUploadChunkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more FileUploadChunks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileUploadChunkUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many FileUploadChunks
* const fileUploadChunk = await prisma.fileUploadChunk.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends FileUploadChunkUpdateManyArgs>(args: Prisma.SelectSubset<T, FileUploadChunkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more FileUploadChunks and returns the data updated in the database.
* @param {FileUploadChunkUpdateManyAndReturnArgs} args - Arguments to update many FileUploadChunks.
* @example
* // Update many FileUploadChunks
* const fileUploadChunk = await prisma.fileUploadChunk.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more FileUploadChunks and only return the `id`
* const fileUploadChunkWithIdOnly = await prisma.fileUploadChunk.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 FileUploadChunkUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FileUploadChunkUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one FileUploadChunk.
* @param {FileUploadChunkUpsertArgs} args - Arguments to update or create a FileUploadChunk.
* @example
* // Update or create a FileUploadChunk
* const fileUploadChunk = await prisma.fileUploadChunk.upsert({
* create: {
* // ... data to create a FileUploadChunk
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the FileUploadChunk we want to update
* }
* })
*/
upsert<T extends FileUploadChunkUpsertArgs>(args: Prisma.SelectSubset<T, FileUploadChunkUpsertArgs<ExtArgs>>): Prisma.Prisma__FileUploadChunkClient<runtime.Types.Result.GetResult<Prisma.$FileUploadChunkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of FileUploadChunks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileUploadChunkCountArgs} args - Arguments to filter FileUploadChunks to count.
* @example
* // Count the number of FileUploadChunks
* const count = await prisma.fileUploadChunk.count({
* where: {
* // ... the filter for the FileUploadChunks we want to count
* }
* })
**/
count<T extends FileUploadChunkCountArgs>(
args?: Prisma.Subset<T, FileUploadChunkCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], FileUploadChunkCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a FileUploadChunk.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileUploadChunkAggregateArgs} 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 FileUploadChunkAggregateArgs>(args: Prisma.Subset<T, FileUploadChunkAggregateArgs>): Prisma.PrismaPromise<GetFileUploadChunkAggregateType<T>>
/**
* Group by FileUploadChunk.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FileUploadChunkGroupByArgs} 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 FileUploadChunkGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: FileUploadChunkGroupByArgs['orderBy'] }
: { orderBy?: FileUploadChunkGroupByArgs['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, FileUploadChunkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFileUploadChunkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the FileUploadChunk model
*/
readonly fields: FileUploadChunkFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for FileUploadChunk.
* 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__FileUploadChunkClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
upload<T extends Prisma.FileUploadDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FileUploadDefaultArgs<ExtArgs>>): Prisma.Prisma__FileUploadClient<runtime.Types.Result.GetResult<Prisma.$FileUploadPayload<ExtArgs>, 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<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 FileUploadChunk model
*/
export interface FileUploadChunkFieldRefs {
readonly id: Prisma.FieldRef<"FileUploadChunk", 'String'>
readonly tenantId: Prisma.FieldRef<"FileUploadChunk", 'String'>
readonly uploadId: Prisma.FieldRef<"FileUploadChunk", 'String'>
readonly chunkIndex: Prisma.FieldRef<"FileUploadChunk", 'Int'>
readonly storageKey: Prisma.FieldRef<"FileUploadChunk", 'String'>
readonly sizeBytes: Prisma.FieldRef<"FileUploadChunk", 'Int'>
readonly checksumSha256: Prisma.FieldRef<"FileUploadChunk", 'String'>
readonly receivedAt: Prisma.FieldRef<"FileUploadChunk", 'DateTime'>
}
// Custom InputTypes
/**
* FileUploadChunk findUnique
*/
export type FileUploadChunkFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
/**
* Filter, which FileUploadChunk to fetch.
*/
where: Prisma.FileUploadChunkWhereUniqueInput
}
/**
* FileUploadChunk findUniqueOrThrow
*/
export type FileUploadChunkFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
/**
* Filter, which FileUploadChunk to fetch.
*/
where: Prisma.FileUploadChunkWhereUniqueInput
}
/**
* FileUploadChunk findFirst
*/
export type FileUploadChunkFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
/**
* Filter, which FileUploadChunk to fetch.
*/
where?: Prisma.FileUploadChunkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileUploadChunks to fetch.
*/
orderBy?: Prisma.FileUploadChunkOrderByWithRelationInput | Prisma.FileUploadChunkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for FileUploadChunks.
*/
cursor?: Prisma.FileUploadChunkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileUploadChunks 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` FileUploadChunks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of FileUploadChunks.
*/
distinct?: Prisma.FileUploadChunkScalarFieldEnum | Prisma.FileUploadChunkScalarFieldEnum[]
}
/**
* FileUploadChunk findFirstOrThrow
*/
export type FileUploadChunkFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
/**
* Filter, which FileUploadChunk to fetch.
*/
where?: Prisma.FileUploadChunkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileUploadChunks to fetch.
*/
orderBy?: Prisma.FileUploadChunkOrderByWithRelationInput | Prisma.FileUploadChunkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for FileUploadChunks.
*/
cursor?: Prisma.FileUploadChunkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileUploadChunks 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` FileUploadChunks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of FileUploadChunks.
*/
distinct?: Prisma.FileUploadChunkScalarFieldEnum | Prisma.FileUploadChunkScalarFieldEnum[]
}
/**
* FileUploadChunk findMany
*/
export type FileUploadChunkFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
/**
* Filter, which FileUploadChunks to fetch.
*/
where?: Prisma.FileUploadChunkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of FileUploadChunks to fetch.
*/
orderBy?: Prisma.FileUploadChunkOrderByWithRelationInput | Prisma.FileUploadChunkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing FileUploadChunks.
*/
cursor?: Prisma.FileUploadChunkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` FileUploadChunks 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` FileUploadChunks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of FileUploadChunks.
*/
distinct?: Prisma.FileUploadChunkScalarFieldEnum | Prisma.FileUploadChunkScalarFieldEnum[]
}
/**
* FileUploadChunk create
*/
export type FileUploadChunkCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
/**
* The data needed to create a FileUploadChunk.
*/
data: Prisma.XOR<Prisma.FileUploadChunkCreateInput, Prisma.FileUploadChunkUncheckedCreateInput>
}
/**
* FileUploadChunk createMany
*/
export type FileUploadChunkCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many FileUploadChunks.
*/
data: Prisma.FileUploadChunkCreateManyInput | Prisma.FileUploadChunkCreateManyInput[]
skipDuplicates?: boolean
}
/**
* FileUploadChunk createManyAndReturn
*/
export type FileUploadChunkCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* The data used to create many FileUploadChunks.
*/
data: Prisma.FileUploadChunkCreateManyInput | Prisma.FileUploadChunkCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* FileUploadChunk update
*/
export type FileUploadChunkUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
/**
* The data needed to update a FileUploadChunk.
*/
data: Prisma.XOR<Prisma.FileUploadChunkUpdateInput, Prisma.FileUploadChunkUncheckedUpdateInput>
/**
* Choose, which FileUploadChunk to update.
*/
where: Prisma.FileUploadChunkWhereUniqueInput
}
/**
* FileUploadChunk updateMany
*/
export type FileUploadChunkUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update FileUploadChunks.
*/
data: Prisma.XOR<Prisma.FileUploadChunkUpdateManyMutationInput, Prisma.FileUploadChunkUncheckedUpdateManyInput>
/**
* Filter which FileUploadChunks to update
*/
where?: Prisma.FileUploadChunkWhereInput
/**
* Limit how many FileUploadChunks to update.
*/
limit?: number
}
/**
* FileUploadChunk updateManyAndReturn
*/
export type FileUploadChunkUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* The data used to update FileUploadChunks.
*/
data: Prisma.XOR<Prisma.FileUploadChunkUpdateManyMutationInput, Prisma.FileUploadChunkUncheckedUpdateManyInput>
/**
* Filter which FileUploadChunks to update
*/
where?: Prisma.FileUploadChunkWhereInput
/**
* Limit how many FileUploadChunks to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* FileUploadChunk upsert
*/
export type FileUploadChunkUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
/**
* The filter to search for the FileUploadChunk to update in case it exists.
*/
where: Prisma.FileUploadChunkWhereUniqueInput
/**
* In case the FileUploadChunk found by the `where` argument doesn't exist, create a new FileUploadChunk with this data.
*/
create: Prisma.XOR<Prisma.FileUploadChunkCreateInput, Prisma.FileUploadChunkUncheckedCreateInput>
/**
* In case the FileUploadChunk was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.FileUploadChunkUpdateInput, Prisma.FileUploadChunkUncheckedUpdateInput>
}
/**
* FileUploadChunk delete
*/
export type FileUploadChunkDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
/**
* Filter which FileUploadChunk to delete.
*/
where: Prisma.FileUploadChunkWhereUniqueInput
}
/**
* FileUploadChunk deleteMany
*/
export type FileUploadChunkDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which FileUploadChunks to delete
*/
where?: Prisma.FileUploadChunkWhereInput
/**
* Limit how many FileUploadChunks to delete.
*/
limit?: number
}
/**
* FileUploadChunk without action
*/
export type FileUploadChunkDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FileUploadChunk
*/
select?: Prisma.FileUploadChunkSelect<ExtArgs> | null
/**
* Omit specific fields from the FileUploadChunk
*/
omit?: Prisma.FileUploadChunkOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FileUploadChunkInclude<ExtArgs> | null
}