1447 lines
52 KiB
TypeScript
1447 lines
52 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 `FileObject` 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 FileObject
|
|
*
|
|
*/
|
|
export type FileObjectModel = runtime.Types.Result.DefaultSelection<Prisma.$FileObjectPayload>
|
|
|
|
export type AggregateFileObject = {
|
|
_count: FileObjectCountAggregateOutputType | null
|
|
_avg: FileObjectAvgAggregateOutputType | null
|
|
_sum: FileObjectSumAggregateOutputType | null
|
|
_min: FileObjectMinAggregateOutputType | null
|
|
_max: FileObjectMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type FileObjectAvgAggregateOutputType = {
|
|
byteSize: number | null
|
|
}
|
|
|
|
export type FileObjectSumAggregateOutputType = {
|
|
byteSize: number | null
|
|
}
|
|
|
|
export type FileObjectMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
provider: string | null
|
|
bucket: string | null
|
|
key: string | null
|
|
contentType: string | null
|
|
byteSize: number | null
|
|
checksumSha256: string | null
|
|
publicUrl: string | null
|
|
uploadedAt: Date | null
|
|
lastSignedUploadAt: Date | null
|
|
lastSignedDownloadAt: Date | null
|
|
}
|
|
|
|
export type FileObjectMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
provider: string | null
|
|
bucket: string | null
|
|
key: string | null
|
|
contentType: string | null
|
|
byteSize: number | null
|
|
checksumSha256: string | null
|
|
publicUrl: string | null
|
|
uploadedAt: Date | null
|
|
lastSignedUploadAt: Date | null
|
|
lastSignedDownloadAt: Date | null
|
|
}
|
|
|
|
export type FileObjectCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
provider: number
|
|
bucket: number
|
|
key: number
|
|
contentType: number
|
|
byteSize: number
|
|
checksumSha256: number
|
|
publicUrl: number
|
|
uploadedAt: number
|
|
lastSignedUploadAt: number
|
|
lastSignedDownloadAt: number
|
|
metadata: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type FileObjectAvgAggregateInputType = {
|
|
byteSize?: true
|
|
}
|
|
|
|
export type FileObjectSumAggregateInputType = {
|
|
byteSize?: true
|
|
}
|
|
|
|
export type FileObjectMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
provider?: true
|
|
bucket?: true
|
|
key?: true
|
|
contentType?: true
|
|
byteSize?: true
|
|
checksumSha256?: true
|
|
publicUrl?: true
|
|
uploadedAt?: true
|
|
lastSignedUploadAt?: true
|
|
lastSignedDownloadAt?: true
|
|
}
|
|
|
|
export type FileObjectMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
provider?: true
|
|
bucket?: true
|
|
key?: true
|
|
contentType?: true
|
|
byteSize?: true
|
|
checksumSha256?: true
|
|
publicUrl?: true
|
|
uploadedAt?: true
|
|
lastSignedUploadAt?: true
|
|
lastSignedDownloadAt?: true
|
|
}
|
|
|
|
export type FileObjectCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
provider?: true
|
|
bucket?: true
|
|
key?: true
|
|
contentType?: true
|
|
byteSize?: true
|
|
checksumSha256?: true
|
|
publicUrl?: true
|
|
uploadedAt?: true
|
|
lastSignedUploadAt?: true
|
|
lastSignedDownloadAt?: true
|
|
metadata?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type FileObjectAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which FileObject to aggregate.
|
|
*/
|
|
where?: Prisma.FileObjectWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FileObjects to fetch.
|
|
*/
|
|
orderBy?: Prisma.FileObjectOrderByWithRelationInput | Prisma.FileObjectOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.FileObjectWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FileObjects 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` FileObjects.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned FileObjects
|
|
**/
|
|
_count?: true | FileObjectCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: FileObjectAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: FileObjectSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: FileObjectMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: FileObjectMaxAggregateInputType
|
|
}
|
|
|
|
export type GetFileObjectAggregateType<T extends FileObjectAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateFileObject]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateFileObject[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateFileObject[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FileObjectGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FileObjectWhereInput
|
|
orderBy?: Prisma.FileObjectOrderByWithAggregationInput | Prisma.FileObjectOrderByWithAggregationInput[]
|
|
by: Prisma.FileObjectScalarFieldEnum[] | Prisma.FileObjectScalarFieldEnum
|
|
having?: Prisma.FileObjectScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: FileObjectCountAggregateInputType | true
|
|
_avg?: FileObjectAvgAggregateInputType
|
|
_sum?: FileObjectSumAggregateInputType
|
|
_min?: FileObjectMinAggregateInputType
|
|
_max?: FileObjectMaxAggregateInputType
|
|
}
|
|
|
|
export type FileObjectGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
provider: string
|
|
bucket: string
|
|
key: string
|
|
contentType: string
|
|
byteSize: number
|
|
checksumSha256: string | null
|
|
publicUrl: string | null
|
|
uploadedAt: Date | null
|
|
lastSignedUploadAt: Date | null
|
|
lastSignedDownloadAt: Date | null
|
|
metadata: runtime.JsonValue | null
|
|
_count: FileObjectCountAggregateOutputType | null
|
|
_avg: FileObjectAvgAggregateOutputType | null
|
|
_sum: FileObjectSumAggregateOutputType | null
|
|
_min: FileObjectMinAggregateOutputType | null
|
|
_max: FileObjectMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetFileObjectGroupByPayload<T extends FileObjectGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<FileObjectGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof FileObjectGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], FileObjectGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], FileObjectGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type FileObjectWhereInput = {
|
|
AND?: Prisma.FileObjectWhereInput | Prisma.FileObjectWhereInput[]
|
|
OR?: Prisma.FileObjectWhereInput[]
|
|
NOT?: Prisma.FileObjectWhereInput | Prisma.FileObjectWhereInput[]
|
|
id?: Prisma.StringFilter<"FileObject"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"FileObject"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"FileObject"> | Date | string
|
|
provider?: Prisma.StringFilter<"FileObject"> | string
|
|
bucket?: Prisma.StringFilter<"FileObject"> | string
|
|
key?: Prisma.StringFilter<"FileObject"> | string
|
|
contentType?: Prisma.StringFilter<"FileObject"> | string
|
|
byteSize?: Prisma.IntFilter<"FileObject"> | number
|
|
checksumSha256?: Prisma.StringNullableFilter<"FileObject"> | string | null
|
|
publicUrl?: Prisma.StringNullableFilter<"FileObject"> | string | null
|
|
uploadedAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null
|
|
lastSignedUploadAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null
|
|
lastSignedDownloadAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null
|
|
metadata?: Prisma.JsonNullableFilter<"FileObject">
|
|
}
|
|
|
|
export type FileObjectOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
bucket?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
contentType?: Prisma.SortOrder
|
|
byteSize?: Prisma.SortOrder
|
|
checksumSha256?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
publicUrl?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
uploadedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
lastSignedUploadAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
lastSignedDownloadAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type FileObjectWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
file_object_provider_bucket_key?: Prisma.FileObjectFile_object_provider_bucket_keyCompoundUniqueInput
|
|
AND?: Prisma.FileObjectWhereInput | Prisma.FileObjectWhereInput[]
|
|
OR?: Prisma.FileObjectWhereInput[]
|
|
NOT?: Prisma.FileObjectWhereInput | Prisma.FileObjectWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"FileObject"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"FileObject"> | Date | string
|
|
provider?: Prisma.StringFilter<"FileObject"> | string
|
|
bucket?: Prisma.StringFilter<"FileObject"> | string
|
|
key?: Prisma.StringFilter<"FileObject"> | string
|
|
contentType?: Prisma.StringFilter<"FileObject"> | string
|
|
byteSize?: Prisma.IntFilter<"FileObject"> | number
|
|
checksumSha256?: Prisma.StringNullableFilter<"FileObject"> | string | null
|
|
publicUrl?: Prisma.StringNullableFilter<"FileObject"> | string | null
|
|
uploadedAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null
|
|
lastSignedUploadAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null
|
|
lastSignedDownloadAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null
|
|
metadata?: Prisma.JsonNullableFilter<"FileObject">
|
|
}, "id" | "file_object_provider_bucket_key">
|
|
|
|
export type FileObjectOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
bucket?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
contentType?: Prisma.SortOrder
|
|
byteSize?: Prisma.SortOrder
|
|
checksumSha256?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
publicUrl?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
uploadedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
lastSignedUploadAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
lastSignedDownloadAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.FileObjectCountOrderByAggregateInput
|
|
_avg?: Prisma.FileObjectAvgOrderByAggregateInput
|
|
_max?: Prisma.FileObjectMaxOrderByAggregateInput
|
|
_min?: Prisma.FileObjectMinOrderByAggregateInput
|
|
_sum?: Prisma.FileObjectSumOrderByAggregateInput
|
|
}
|
|
|
|
export type FileObjectScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.FileObjectScalarWhereWithAggregatesInput | Prisma.FileObjectScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.FileObjectScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.FileObjectScalarWhereWithAggregatesInput | Prisma.FileObjectScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"FileObject"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"FileObject"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"FileObject"> | Date | string
|
|
provider?: Prisma.StringWithAggregatesFilter<"FileObject"> | string
|
|
bucket?: Prisma.StringWithAggregatesFilter<"FileObject"> | string
|
|
key?: Prisma.StringWithAggregatesFilter<"FileObject"> | string
|
|
contentType?: Prisma.StringWithAggregatesFilter<"FileObject"> | string
|
|
byteSize?: Prisma.IntWithAggregatesFilter<"FileObject"> | number
|
|
checksumSha256?: Prisma.StringNullableWithAggregatesFilter<"FileObject"> | string | null
|
|
publicUrl?: Prisma.StringNullableWithAggregatesFilter<"FileObject"> | string | null
|
|
uploadedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FileObject"> | Date | string | null
|
|
lastSignedUploadAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FileObject"> | Date | string | null
|
|
lastSignedDownloadAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FileObject"> | Date | string | null
|
|
metadata?: Prisma.JsonNullableWithAggregatesFilter<"FileObject">
|
|
}
|
|
|
|
export type FileObjectCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
provider: string
|
|
bucket: string
|
|
key: string
|
|
contentType: string
|
|
byteSize: number
|
|
checksumSha256?: string | null
|
|
publicUrl?: string | null
|
|
uploadedAt?: Date | string | null
|
|
lastSignedUploadAt?: Date | string | null
|
|
lastSignedDownloadAt?: Date | string | null
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type FileObjectUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
provider: string
|
|
bucket: string
|
|
key: string
|
|
contentType: string
|
|
byteSize: number
|
|
checksumSha256?: string | null
|
|
publicUrl?: string | null
|
|
uploadedAt?: Date | string | null
|
|
lastSignedUploadAt?: Date | string | null
|
|
lastSignedDownloadAt?: Date | string | null
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type FileObjectUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bucket?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
contentType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
byteSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
uploadedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
lastSignedUploadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
lastSignedDownloadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type FileObjectUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bucket?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
contentType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
byteSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
uploadedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
lastSignedUploadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
lastSignedDownloadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type FileObjectCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
provider: string
|
|
bucket: string
|
|
key: string
|
|
contentType: string
|
|
byteSize: number
|
|
checksumSha256?: string | null
|
|
publicUrl?: string | null
|
|
uploadedAt?: Date | string | null
|
|
lastSignedUploadAt?: Date | string | null
|
|
lastSignedDownloadAt?: Date | string | null
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type FileObjectUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bucket?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
contentType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
byteSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
uploadedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
lastSignedUploadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
lastSignedDownloadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type FileObjectUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bucket?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
contentType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
byteSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
uploadedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
lastSignedUploadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
lastSignedDownloadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type FileObjectFile_object_provider_bucket_keyCompoundUniqueInput = {
|
|
provider: string
|
|
bucket: string
|
|
key: string
|
|
}
|
|
|
|
export type FileObjectCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
bucket?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
contentType?: Prisma.SortOrder
|
|
byteSize?: Prisma.SortOrder
|
|
checksumSha256?: Prisma.SortOrder
|
|
publicUrl?: Prisma.SortOrder
|
|
uploadedAt?: Prisma.SortOrder
|
|
lastSignedUploadAt?: Prisma.SortOrder
|
|
lastSignedDownloadAt?: Prisma.SortOrder
|
|
metadata?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FileObjectAvgOrderByAggregateInput = {
|
|
byteSize?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FileObjectMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
bucket?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
contentType?: Prisma.SortOrder
|
|
byteSize?: Prisma.SortOrder
|
|
checksumSha256?: Prisma.SortOrder
|
|
publicUrl?: Prisma.SortOrder
|
|
uploadedAt?: Prisma.SortOrder
|
|
lastSignedUploadAt?: Prisma.SortOrder
|
|
lastSignedDownloadAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FileObjectMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
provider?: Prisma.SortOrder
|
|
bucket?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
contentType?: Prisma.SortOrder
|
|
byteSize?: Prisma.SortOrder
|
|
checksumSha256?: Prisma.SortOrder
|
|
publicUrl?: Prisma.SortOrder
|
|
uploadedAt?: Prisma.SortOrder
|
|
lastSignedUploadAt?: Prisma.SortOrder
|
|
lastSignedDownloadAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FileObjectSumOrderByAggregateInput = {
|
|
byteSize?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type FileObjectSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
provider?: boolean
|
|
bucket?: boolean
|
|
key?: boolean
|
|
contentType?: boolean
|
|
byteSize?: boolean
|
|
checksumSha256?: boolean
|
|
publicUrl?: boolean
|
|
uploadedAt?: boolean
|
|
lastSignedUploadAt?: boolean
|
|
lastSignedDownloadAt?: boolean
|
|
metadata?: boolean
|
|
}, ExtArgs["result"]["fileObject"]>
|
|
|
|
export type FileObjectSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
provider?: boolean
|
|
bucket?: boolean
|
|
key?: boolean
|
|
contentType?: boolean
|
|
byteSize?: boolean
|
|
checksumSha256?: boolean
|
|
publicUrl?: boolean
|
|
uploadedAt?: boolean
|
|
lastSignedUploadAt?: boolean
|
|
lastSignedDownloadAt?: boolean
|
|
metadata?: boolean
|
|
}, ExtArgs["result"]["fileObject"]>
|
|
|
|
export type FileObjectSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
provider?: boolean
|
|
bucket?: boolean
|
|
key?: boolean
|
|
contentType?: boolean
|
|
byteSize?: boolean
|
|
checksumSha256?: boolean
|
|
publicUrl?: boolean
|
|
uploadedAt?: boolean
|
|
lastSignedUploadAt?: boolean
|
|
lastSignedDownloadAt?: boolean
|
|
metadata?: boolean
|
|
}, ExtArgs["result"]["fileObject"]>
|
|
|
|
export type FileObjectSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
provider?: boolean
|
|
bucket?: boolean
|
|
key?: boolean
|
|
contentType?: boolean
|
|
byteSize?: boolean
|
|
checksumSha256?: boolean
|
|
publicUrl?: boolean
|
|
uploadedAt?: boolean
|
|
lastSignedUploadAt?: boolean
|
|
lastSignedDownloadAt?: boolean
|
|
metadata?: boolean
|
|
}
|
|
|
|
export type FileObjectOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "provider" | "bucket" | "key" | "contentType" | "byteSize" | "checksumSha256" | "publicUrl" | "uploadedAt" | "lastSignedUploadAt" | "lastSignedDownloadAt" | "metadata", ExtArgs["result"]["fileObject"]>
|
|
|
|
export type $FileObjectPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "FileObject"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
provider: string
|
|
bucket: string
|
|
key: string
|
|
contentType: string
|
|
byteSize: number
|
|
checksumSha256: string | null
|
|
publicUrl: string | null
|
|
uploadedAt: Date | null
|
|
lastSignedUploadAt: Date | null
|
|
lastSignedDownloadAt: Date | null
|
|
metadata: runtime.JsonValue | null
|
|
}, ExtArgs["result"]["fileObject"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type FileObjectGetPayload<S extends boolean | null | undefined | FileObjectDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FileObjectPayload, S>
|
|
|
|
export type FileObjectCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<FileObjectFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: FileObjectCountAggregateInputType | true
|
|
}
|
|
|
|
export interface FileObjectDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FileObject'], meta: { name: 'FileObject' } }
|
|
/**
|
|
* Find zero or one FileObject that matches the filter.
|
|
* @param {FileObjectFindUniqueArgs} args - Arguments to find a FileObject
|
|
* @example
|
|
* // Get one FileObject
|
|
* const fileObject = await prisma.fileObject.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends FileObjectFindUniqueArgs>(args: Prisma.SelectSubset<T, FileObjectFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FileObjectClient<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one FileObject that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {FileObjectFindUniqueOrThrowArgs} args - Arguments to find a FileObject
|
|
* @example
|
|
* // Get one FileObject
|
|
* const fileObject = await prisma.fileObject.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends FileObjectFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FileObjectFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileObjectClient<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first FileObject 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 {FileObjectFindFirstArgs} args - Arguments to find a FileObject
|
|
* @example
|
|
* // Get one FileObject
|
|
* const fileObject = await prisma.fileObject.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends FileObjectFindFirstArgs>(args?: Prisma.SelectSubset<T, FileObjectFindFirstArgs<ExtArgs>>): Prisma.Prisma__FileObjectClient<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first FileObject 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 {FileObjectFindFirstOrThrowArgs} args - Arguments to find a FileObject
|
|
* @example
|
|
* // Get one FileObject
|
|
* const fileObject = await prisma.fileObject.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends FileObjectFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FileObjectFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileObjectClient<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more FileObjects 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 {FileObjectFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all FileObjects
|
|
* const fileObjects = await prisma.fileObject.findMany()
|
|
*
|
|
* // Get first 10 FileObjects
|
|
* const fileObjects = await prisma.fileObject.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const fileObjectWithIdOnly = await prisma.fileObject.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends FileObjectFindManyArgs>(args?: Prisma.SelectSubset<T, FileObjectFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a FileObject.
|
|
* @param {FileObjectCreateArgs} args - Arguments to create a FileObject.
|
|
* @example
|
|
* // Create one FileObject
|
|
* const FileObject = await prisma.fileObject.create({
|
|
* data: {
|
|
* // ... data to create a FileObject
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends FileObjectCreateArgs>(args: Prisma.SelectSubset<T, FileObjectCreateArgs<ExtArgs>>): Prisma.Prisma__FileObjectClient<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many FileObjects.
|
|
* @param {FileObjectCreateManyArgs} args - Arguments to create many FileObjects.
|
|
* @example
|
|
* // Create many FileObjects
|
|
* const fileObject = await prisma.fileObject.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends FileObjectCreateManyArgs>(args?: Prisma.SelectSubset<T, FileObjectCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many FileObjects and returns the data saved in the database.
|
|
* @param {FileObjectCreateManyAndReturnArgs} args - Arguments to create many FileObjects.
|
|
* @example
|
|
* // Create many FileObjects
|
|
* const fileObject = await prisma.fileObject.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many FileObjects and only return the `id`
|
|
* const fileObjectWithIdOnly = await prisma.fileObject.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 FileObjectCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FileObjectCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a FileObject.
|
|
* @param {FileObjectDeleteArgs} args - Arguments to delete one FileObject.
|
|
* @example
|
|
* // Delete one FileObject
|
|
* const FileObject = await prisma.fileObject.delete({
|
|
* where: {
|
|
* // ... filter to delete one FileObject
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends FileObjectDeleteArgs>(args: Prisma.SelectSubset<T, FileObjectDeleteArgs<ExtArgs>>): Prisma.Prisma__FileObjectClient<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one FileObject.
|
|
* @param {FileObjectUpdateArgs} args - Arguments to update one FileObject.
|
|
* @example
|
|
* // Update one FileObject
|
|
* const fileObject = await prisma.fileObject.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends FileObjectUpdateArgs>(args: Prisma.SelectSubset<T, FileObjectUpdateArgs<ExtArgs>>): Prisma.Prisma__FileObjectClient<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more FileObjects.
|
|
* @param {FileObjectDeleteManyArgs} args - Arguments to filter FileObjects to delete.
|
|
* @example
|
|
* // Delete a few FileObjects
|
|
* const { count } = await prisma.fileObject.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends FileObjectDeleteManyArgs>(args?: Prisma.SelectSubset<T, FileObjectDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more FileObjects.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FileObjectUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many FileObjects
|
|
* const fileObject = await prisma.fileObject.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends FileObjectUpdateManyArgs>(args: Prisma.SelectSubset<T, FileObjectUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more FileObjects and returns the data updated in the database.
|
|
* @param {FileObjectUpdateManyAndReturnArgs} args - Arguments to update many FileObjects.
|
|
* @example
|
|
* // Update many FileObjects
|
|
* const fileObject = await prisma.fileObject.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more FileObjects and only return the `id`
|
|
* const fileObjectWithIdOnly = await prisma.fileObject.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 FileObjectUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FileObjectUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one FileObject.
|
|
* @param {FileObjectUpsertArgs} args - Arguments to update or create a FileObject.
|
|
* @example
|
|
* // Update or create a FileObject
|
|
* const fileObject = await prisma.fileObject.upsert({
|
|
* create: {
|
|
* // ... data to create a FileObject
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the FileObject we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends FileObjectUpsertArgs>(args: Prisma.SelectSubset<T, FileObjectUpsertArgs<ExtArgs>>): Prisma.Prisma__FileObjectClient<runtime.Types.Result.GetResult<Prisma.$FileObjectPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of FileObjects.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FileObjectCountArgs} args - Arguments to filter FileObjects to count.
|
|
* @example
|
|
* // Count the number of FileObjects
|
|
* const count = await prisma.fileObject.count({
|
|
* where: {
|
|
* // ... the filter for the FileObjects we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends FileObjectCountArgs>(
|
|
args?: Prisma.Subset<T, FileObjectCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], FileObjectCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a FileObject.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FileObjectAggregateArgs} 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 FileObjectAggregateArgs>(args: Prisma.Subset<T, FileObjectAggregateArgs>): Prisma.PrismaPromise<GetFileObjectAggregateType<T>>
|
|
|
|
/**
|
|
* Group by FileObject.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FileObjectGroupByArgs} 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 FileObjectGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: FileObjectGroupByArgs['orderBy'] }
|
|
: { orderBy?: FileObjectGroupByArgs['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, FileObjectGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFileObjectGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the FileObject model
|
|
*/
|
|
readonly fields: FileObjectFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for FileObject.
|
|
* 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__FileObjectClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the FileObject model
|
|
*/
|
|
export interface FileObjectFieldRefs {
|
|
readonly id: Prisma.FieldRef<"FileObject", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"FileObject", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"FileObject", 'DateTime'>
|
|
readonly provider: Prisma.FieldRef<"FileObject", 'String'>
|
|
readonly bucket: Prisma.FieldRef<"FileObject", 'String'>
|
|
readonly key: Prisma.FieldRef<"FileObject", 'String'>
|
|
readonly contentType: Prisma.FieldRef<"FileObject", 'String'>
|
|
readonly byteSize: Prisma.FieldRef<"FileObject", 'Int'>
|
|
readonly checksumSha256: Prisma.FieldRef<"FileObject", 'String'>
|
|
readonly publicUrl: Prisma.FieldRef<"FileObject", 'String'>
|
|
readonly uploadedAt: Prisma.FieldRef<"FileObject", 'DateTime'>
|
|
readonly lastSignedUploadAt: Prisma.FieldRef<"FileObject", 'DateTime'>
|
|
readonly lastSignedDownloadAt: Prisma.FieldRef<"FileObject", 'DateTime'>
|
|
readonly metadata: Prisma.FieldRef<"FileObject", 'Json'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* FileObject findUnique
|
|
*/
|
|
export type FileObjectFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileObject to fetch.
|
|
*/
|
|
where: Prisma.FileObjectWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FileObject findUniqueOrThrow
|
|
*/
|
|
export type FileObjectFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileObject to fetch.
|
|
*/
|
|
where: Prisma.FileObjectWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FileObject findFirst
|
|
*/
|
|
export type FileObjectFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileObject to fetch.
|
|
*/
|
|
where?: Prisma.FileObjectWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FileObjects to fetch.
|
|
*/
|
|
orderBy?: Prisma.FileObjectOrderByWithRelationInput | Prisma.FileObjectOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for FileObjects.
|
|
*/
|
|
cursor?: Prisma.FileObjectWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FileObjects 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` FileObjects.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FileObjects.
|
|
*/
|
|
distinct?: Prisma.FileObjectScalarFieldEnum | Prisma.FileObjectScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FileObject findFirstOrThrow
|
|
*/
|
|
export type FileObjectFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileObject to fetch.
|
|
*/
|
|
where?: Prisma.FileObjectWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FileObjects to fetch.
|
|
*/
|
|
orderBy?: Prisma.FileObjectOrderByWithRelationInput | Prisma.FileObjectOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for FileObjects.
|
|
*/
|
|
cursor?: Prisma.FileObjectWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FileObjects 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` FileObjects.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FileObjects.
|
|
*/
|
|
distinct?: Prisma.FileObjectScalarFieldEnum | Prisma.FileObjectScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FileObject findMany
|
|
*/
|
|
export type FileObjectFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which FileObjects to fetch.
|
|
*/
|
|
where?: Prisma.FileObjectWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FileObjects to fetch.
|
|
*/
|
|
orderBy?: Prisma.FileObjectOrderByWithRelationInput | Prisma.FileObjectOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing FileObjects.
|
|
*/
|
|
cursor?: Prisma.FileObjectWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FileObjects 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` FileObjects.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FileObjects.
|
|
*/
|
|
distinct?: Prisma.FileObjectScalarFieldEnum | Prisma.FileObjectScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FileObject create
|
|
*/
|
|
export type FileObjectCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a FileObject.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FileObjectCreateInput, Prisma.FileObjectUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* FileObject createMany
|
|
*/
|
|
export type FileObjectCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many FileObjects.
|
|
*/
|
|
data: Prisma.FileObjectCreateManyInput | Prisma.FileObjectCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* FileObject createManyAndReturn
|
|
*/
|
|
export type FileObjectCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many FileObjects.
|
|
*/
|
|
data: Prisma.FileObjectCreateManyInput | Prisma.FileObjectCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* FileObject update
|
|
*/
|
|
export type FileObjectUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a FileObject.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FileObjectUpdateInput, Prisma.FileObjectUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which FileObject to update.
|
|
*/
|
|
where: Prisma.FileObjectWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FileObject updateMany
|
|
*/
|
|
export type FileObjectUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update FileObjects.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FileObjectUpdateManyMutationInput, Prisma.FileObjectUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which FileObjects to update
|
|
*/
|
|
where?: Prisma.FileObjectWhereInput
|
|
/**
|
|
* Limit how many FileObjects to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FileObject updateManyAndReturn
|
|
*/
|
|
export type FileObjectUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update FileObjects.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FileObjectUpdateManyMutationInput, Prisma.FileObjectUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which FileObjects to update
|
|
*/
|
|
where?: Prisma.FileObjectWhereInput
|
|
/**
|
|
* Limit how many FileObjects to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FileObject upsert
|
|
*/
|
|
export type FileObjectUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the FileObject to update in case it exists.
|
|
*/
|
|
where: Prisma.FileObjectWhereUniqueInput
|
|
/**
|
|
* In case the FileObject found by the `where` argument doesn't exist, create a new FileObject with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.FileObjectCreateInput, Prisma.FileObjectUncheckedCreateInput>
|
|
/**
|
|
* In case the FileObject was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.FileObjectUpdateInput, Prisma.FileObjectUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* FileObject delete
|
|
*/
|
|
export type FileObjectDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which FileObject to delete.
|
|
*/
|
|
where: Prisma.FileObjectWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FileObject deleteMany
|
|
*/
|
|
export type FileObjectDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which FileObjects to delete
|
|
*/
|
|
where?: Prisma.FileObjectWhereInput
|
|
/**
|
|
* Limit how many FileObjects to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FileObject without action
|
|
*/
|
|
export type FileObjectDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FileObject
|
|
*/
|
|
select?: Prisma.FileObjectSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FileObject
|
|
*/
|
|
omit?: Prisma.FileObjectOmit<ExtArgs> | null
|
|
}
|