mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 08:17:35 +00:00
2351 lines
80 KiB
TypeScript
2351 lines
80 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 `ShareLink` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import type * as PJTG from '../pjtg'
|
|
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 ShareLink
|
|
*
|
|
*/
|
|
export type ShareLinkModel = runtime.Types.Result.DefaultSelection<Prisma.$ShareLinkPayload>
|
|
|
|
export type AggregateShareLink = {
|
|
_count: ShareLinkCountAggregateOutputType | null
|
|
_min: ShareLinkMinAggregateOutputType | null
|
|
_max: ShareLinkMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ShareLinkMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
expireAt: Date | null
|
|
password: string | null
|
|
isDisabled: boolean | null
|
|
defaultSortOrder: string | null
|
|
viewMode: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
projectId: string | null
|
|
rootFolderId: string | null
|
|
creatorId: string | null
|
|
}
|
|
|
|
export type ShareLinkMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
expireAt: Date | null
|
|
password: string | null
|
|
isDisabled: boolean | null
|
|
defaultSortOrder: string | null
|
|
viewMode: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
projectId: string | null
|
|
rootFolderId: string | null
|
|
creatorId: string | null
|
|
}
|
|
|
|
export type ShareLinkCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
expireAt: number
|
|
password: number
|
|
isDisabled: number
|
|
defaultSortOrder: number
|
|
viewMode: number
|
|
fieldVisibility: PrismaJson.ShareLinkFieldVisibility
|
|
createdAt: number
|
|
updatedAt: number
|
|
projectId: number
|
|
rootFolderId: number
|
|
creatorId: number
|
|
_all: number
|
|
}
|
|
|
|
export type ShareLinkMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
expireAt?: true
|
|
password?: true
|
|
isDisabled?: true
|
|
defaultSortOrder?: true
|
|
viewMode?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
projectId?: true
|
|
rootFolderId?: true
|
|
creatorId?: true
|
|
}
|
|
|
|
export type ShareLinkMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
expireAt?: true
|
|
password?: true
|
|
isDisabled?: true
|
|
defaultSortOrder?: true
|
|
viewMode?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
projectId?: true
|
|
rootFolderId?: true
|
|
creatorId?: true
|
|
}
|
|
|
|
export type ShareLinkCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
expireAt?: true
|
|
password?: true
|
|
isDisabled?: true
|
|
defaultSortOrder?: true
|
|
viewMode?: true
|
|
fieldVisibility?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
projectId?: true
|
|
rootFolderId?: true
|
|
creatorId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ShareLinkAggregateArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Filter which ShareLink to aggregate.
|
|
*/
|
|
where?: Prisma.ShareLinkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ShareLinks to fetch.
|
|
*/
|
|
orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.ShareLinkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ShareLinks 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` ShareLinks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ShareLinks
|
|
**/
|
|
_count?: true | ShareLinkCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ShareLinkMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ShareLinkMaxAggregateInputType
|
|
}
|
|
|
|
export type GetShareLinkAggregateType<T extends ShareLinkAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateShareLink]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateShareLink[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateShareLink[P]>
|
|
}
|
|
|
|
export type ShareLinkGroupByArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
where?: Prisma.ShareLinkWhereInput
|
|
orderBy?:
|
|
| Prisma.ShareLinkOrderByWithAggregationInput
|
|
| Prisma.ShareLinkOrderByWithAggregationInput[]
|
|
by: Prisma.ShareLinkScalarFieldEnum[] | Prisma.ShareLinkScalarFieldEnum
|
|
having?: Prisma.ShareLinkScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ShareLinkCountAggregateInputType | true
|
|
_min?: ShareLinkMinAggregateInputType
|
|
_max?: ShareLinkMaxAggregateInputType
|
|
}
|
|
|
|
export type ShareLinkGroupByOutputType = {
|
|
id: string
|
|
name: string
|
|
expireAt: Date | null
|
|
password: string | null
|
|
isDisabled: boolean
|
|
defaultSortOrder: string | null
|
|
viewMode: string | null
|
|
fieldVisibility: PrismaJson.ShareLinkFieldVisibility | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
projectId: string
|
|
rootFolderId: string
|
|
creatorId: string | null
|
|
_count: ShareLinkCountAggregateOutputType | null
|
|
_min: ShareLinkMinAggregateOutputType | null
|
|
_max: ShareLinkMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetShareLinkGroupByPayload<T extends ShareLinkGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<ShareLinkGroupByOutputType, T['by']> & {
|
|
[P in keyof T & keyof ShareLinkGroupByOutputType]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
export type ShareLinkWhereInput = {
|
|
AND?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[]
|
|
OR?: Prisma.ShareLinkWhereInput[]
|
|
NOT?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[]
|
|
id?: Prisma.StringFilter<'ShareLink'> | string
|
|
name?: Prisma.StringFilter<'ShareLink'> | string
|
|
expireAt?: Prisma.DateTimeNullableFilter<'ShareLink'> | Date | string | null
|
|
password?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
isDisabled?: Prisma.BoolFilter<'ShareLink'> | boolean
|
|
defaultSortOrder?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
viewMode?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
fieldVisibility?: Prisma.JsonNullableFilter<'ShareLink'>
|
|
createdAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string
|
|
projectId?: Prisma.StringFilter<'ShareLink'> | string
|
|
rootFolderId?: Prisma.StringFilter<'ShareLink'> | string
|
|
creatorId?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
|
|
rootFolder?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
|
|
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
}
|
|
|
|
export type ShareLinkOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
expireAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
password?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDisabled?: Prisma.SortOrder
|
|
defaultSortOrder?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
viewMode?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
fieldVisibility?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
rootFolderId?: Prisma.SortOrder
|
|
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
project?: Prisma.ProjectOrderByWithRelationInput
|
|
rootFolder?: Prisma.AssetOrderByWithRelationInput
|
|
creator?: Prisma.UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type ShareLinkWhereUniqueInput = Prisma.AtLeast<
|
|
{
|
|
id?: string
|
|
rootFolderId?: string
|
|
AND?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[]
|
|
OR?: Prisma.ShareLinkWhereInput[]
|
|
NOT?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[]
|
|
name?: Prisma.StringFilter<'ShareLink'> | string
|
|
expireAt?: Prisma.DateTimeNullableFilter<'ShareLink'> | Date | string | null
|
|
password?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
isDisabled?: Prisma.BoolFilter<'ShareLink'> | boolean
|
|
defaultSortOrder?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
viewMode?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
fieldVisibility?: Prisma.JsonNullableFilter<'ShareLink'>
|
|
createdAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string
|
|
projectId?: Prisma.StringFilter<'ShareLink'> | string
|
|
creatorId?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
|
|
rootFolder?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
|
|
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
|
},
|
|
'id' | 'rootFolderId'
|
|
>
|
|
|
|
export type ShareLinkOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
expireAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
password?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDisabled?: Prisma.SortOrder
|
|
defaultSortOrder?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
viewMode?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
fieldVisibility?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
rootFolderId?: Prisma.SortOrder
|
|
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.ShareLinkCountOrderByAggregateInput
|
|
_max?: Prisma.ShareLinkMaxOrderByAggregateInput
|
|
_min?: Prisma.ShareLinkMinOrderByAggregateInput
|
|
}
|
|
|
|
export type ShareLinkScalarWhereWithAggregatesInput = {
|
|
AND?:
|
|
| Prisma.ShareLinkScalarWhereWithAggregatesInput
|
|
| Prisma.ShareLinkScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.ShareLinkScalarWhereWithAggregatesInput[]
|
|
NOT?:
|
|
| Prisma.ShareLinkScalarWhereWithAggregatesInput
|
|
| Prisma.ShareLinkScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<'ShareLink'> | string
|
|
name?: Prisma.StringWithAggregatesFilter<'ShareLink'> | string
|
|
expireAt?: Prisma.DateTimeNullableWithAggregatesFilter<'ShareLink'> | Date | string | null
|
|
password?: Prisma.StringNullableWithAggregatesFilter<'ShareLink'> | string | null
|
|
isDisabled?: Prisma.BoolWithAggregatesFilter<'ShareLink'> | boolean
|
|
defaultSortOrder?: Prisma.StringNullableWithAggregatesFilter<'ShareLink'> | string | null
|
|
viewMode?: Prisma.StringNullableWithAggregatesFilter<'ShareLink'> | string | null
|
|
fieldVisibility?: Prisma.JsonNullableWithAggregatesFilter<'ShareLink'>
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<'ShareLink'> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<'ShareLink'> | Date | string
|
|
projectId?: Prisma.StringWithAggregatesFilter<'ShareLink'> | string
|
|
rootFolderId?: Prisma.StringWithAggregatesFilter<'ShareLink'> | string
|
|
creatorId?: Prisma.StringNullableWithAggregatesFilter<'ShareLink'> | string | null
|
|
}
|
|
|
|
export type ShareLinkCreateInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
project: Prisma.ProjectCreateNestedOneWithoutShareLinksInput
|
|
rootFolder: Prisma.AssetCreateNestedOneWithoutShareLinkRootFolderInput
|
|
creator?: Prisma.UserCreateNestedOneWithoutShareLinksInput
|
|
}
|
|
|
|
export type ShareLinkUncheckedCreateInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
projectId: string
|
|
rootFolderId: string
|
|
creatorId?: string | null
|
|
}
|
|
|
|
export type ShareLinkUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
project?: Prisma.ProjectUpdateOneRequiredWithoutShareLinksNestedInput
|
|
rootFolder?: Prisma.AssetUpdateOneRequiredWithoutShareLinkRootFolderNestedInput
|
|
creator?: Prisma.UserUpdateOneWithoutShareLinksNestedInput
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ShareLinkCreateManyInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
projectId: string
|
|
rootFolderId: string
|
|
creatorId?: string | null
|
|
}
|
|
|
|
export type ShareLinkUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ShareLinkListRelationFilter = {
|
|
every?: Prisma.ShareLinkWhereInput
|
|
some?: Prisma.ShareLinkWhereInput
|
|
none?: Prisma.ShareLinkWhereInput
|
|
}
|
|
|
|
export type ShareLinkOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ShareLinkCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
expireAt?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
isDisabled?: Prisma.SortOrder
|
|
defaultSortOrder?: Prisma.SortOrder
|
|
viewMode?: Prisma.SortOrder
|
|
fieldVisibility?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
rootFolderId?: Prisma.SortOrder
|
|
creatorId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ShareLinkMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
expireAt?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
isDisabled?: Prisma.SortOrder
|
|
defaultSortOrder?: Prisma.SortOrder
|
|
viewMode?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
rootFolderId?: Prisma.SortOrder
|
|
creatorId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ShareLinkMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
expireAt?: Prisma.SortOrder
|
|
password?: Prisma.SortOrder
|
|
isDisabled?: Prisma.SortOrder
|
|
defaultSortOrder?: Prisma.SortOrder
|
|
viewMode?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
projectId?: Prisma.SortOrder
|
|
rootFolderId?: Prisma.SortOrder
|
|
creatorId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ShareLinkNullableScalarRelationFilter = {
|
|
is?: Prisma.ShareLinkWhereInput | null
|
|
isNot?: Prisma.ShareLinkWhereInput | null
|
|
}
|
|
|
|
export type ShareLinkCreateNestedManyWithoutCreatorInput = {
|
|
create?:
|
|
| Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutCreatorInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutCreatorInput
|
|
>
|
|
| Prisma.ShareLinkCreateWithoutCreatorInput[]
|
|
| Prisma.ShareLinkUncheckedCreateWithoutCreatorInput[]
|
|
connectOrCreate?:
|
|
| Prisma.ShareLinkCreateOrConnectWithoutCreatorInput
|
|
| Prisma.ShareLinkCreateOrConnectWithoutCreatorInput[]
|
|
createMany?: Prisma.ShareLinkCreateManyCreatorInputEnvelope
|
|
connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
}
|
|
|
|
export type ShareLinkUncheckedCreateNestedManyWithoutCreatorInput = {
|
|
create?:
|
|
| Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutCreatorInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutCreatorInput
|
|
>
|
|
| Prisma.ShareLinkCreateWithoutCreatorInput[]
|
|
| Prisma.ShareLinkUncheckedCreateWithoutCreatorInput[]
|
|
connectOrCreate?:
|
|
| Prisma.ShareLinkCreateOrConnectWithoutCreatorInput
|
|
| Prisma.ShareLinkCreateOrConnectWithoutCreatorInput[]
|
|
createMany?: Prisma.ShareLinkCreateManyCreatorInputEnvelope
|
|
connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
}
|
|
|
|
export type ShareLinkUpdateManyWithoutCreatorNestedInput = {
|
|
create?:
|
|
| Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutCreatorInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutCreatorInput
|
|
>
|
|
| Prisma.ShareLinkCreateWithoutCreatorInput[]
|
|
| Prisma.ShareLinkUncheckedCreateWithoutCreatorInput[]
|
|
connectOrCreate?:
|
|
| Prisma.ShareLinkCreateOrConnectWithoutCreatorInput
|
|
| Prisma.ShareLinkCreateOrConnectWithoutCreatorInput[]
|
|
upsert?:
|
|
| Prisma.ShareLinkUpsertWithWhereUniqueWithoutCreatorInput
|
|
| Prisma.ShareLinkUpsertWithWhereUniqueWithoutCreatorInput[]
|
|
createMany?: Prisma.ShareLinkCreateManyCreatorInputEnvelope
|
|
set?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
disconnect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
delete?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
update?:
|
|
| Prisma.ShareLinkUpdateWithWhereUniqueWithoutCreatorInput
|
|
| Prisma.ShareLinkUpdateWithWhereUniqueWithoutCreatorInput[]
|
|
updateMany?:
|
|
| Prisma.ShareLinkUpdateManyWithWhereWithoutCreatorInput
|
|
| Prisma.ShareLinkUpdateManyWithWhereWithoutCreatorInput[]
|
|
deleteMany?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[]
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput = {
|
|
create?:
|
|
| Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutCreatorInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutCreatorInput
|
|
>
|
|
| Prisma.ShareLinkCreateWithoutCreatorInput[]
|
|
| Prisma.ShareLinkUncheckedCreateWithoutCreatorInput[]
|
|
connectOrCreate?:
|
|
| Prisma.ShareLinkCreateOrConnectWithoutCreatorInput
|
|
| Prisma.ShareLinkCreateOrConnectWithoutCreatorInput[]
|
|
upsert?:
|
|
| Prisma.ShareLinkUpsertWithWhereUniqueWithoutCreatorInput
|
|
| Prisma.ShareLinkUpsertWithWhereUniqueWithoutCreatorInput[]
|
|
createMany?: Prisma.ShareLinkCreateManyCreatorInputEnvelope
|
|
set?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
disconnect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
delete?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
update?:
|
|
| Prisma.ShareLinkUpdateWithWhereUniqueWithoutCreatorInput
|
|
| Prisma.ShareLinkUpdateWithWhereUniqueWithoutCreatorInput[]
|
|
updateMany?:
|
|
| Prisma.ShareLinkUpdateManyWithWhereWithoutCreatorInput
|
|
| Prisma.ShareLinkUpdateManyWithWhereWithoutCreatorInput[]
|
|
deleteMany?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[]
|
|
}
|
|
|
|
export type ShareLinkCreateNestedManyWithoutProjectInput = {
|
|
create?:
|
|
| Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutProjectInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutProjectInput
|
|
>
|
|
| Prisma.ShareLinkCreateWithoutProjectInput[]
|
|
| Prisma.ShareLinkUncheckedCreateWithoutProjectInput[]
|
|
connectOrCreate?:
|
|
| Prisma.ShareLinkCreateOrConnectWithoutProjectInput
|
|
| Prisma.ShareLinkCreateOrConnectWithoutProjectInput[]
|
|
createMany?: Prisma.ShareLinkCreateManyProjectInputEnvelope
|
|
connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
}
|
|
|
|
export type ShareLinkUncheckedCreateNestedManyWithoutProjectInput = {
|
|
create?:
|
|
| Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutProjectInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutProjectInput
|
|
>
|
|
| Prisma.ShareLinkCreateWithoutProjectInput[]
|
|
| Prisma.ShareLinkUncheckedCreateWithoutProjectInput[]
|
|
connectOrCreate?:
|
|
| Prisma.ShareLinkCreateOrConnectWithoutProjectInput
|
|
| Prisma.ShareLinkCreateOrConnectWithoutProjectInput[]
|
|
createMany?: Prisma.ShareLinkCreateManyProjectInputEnvelope
|
|
connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
}
|
|
|
|
export type ShareLinkUpdateManyWithoutProjectNestedInput = {
|
|
create?:
|
|
| Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutProjectInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutProjectInput
|
|
>
|
|
| Prisma.ShareLinkCreateWithoutProjectInput[]
|
|
| Prisma.ShareLinkUncheckedCreateWithoutProjectInput[]
|
|
connectOrCreate?:
|
|
| Prisma.ShareLinkCreateOrConnectWithoutProjectInput
|
|
| Prisma.ShareLinkCreateOrConnectWithoutProjectInput[]
|
|
upsert?:
|
|
| Prisma.ShareLinkUpsertWithWhereUniqueWithoutProjectInput
|
|
| Prisma.ShareLinkUpsertWithWhereUniqueWithoutProjectInput[]
|
|
createMany?: Prisma.ShareLinkCreateManyProjectInputEnvelope
|
|
set?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
disconnect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
delete?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
update?:
|
|
| Prisma.ShareLinkUpdateWithWhereUniqueWithoutProjectInput
|
|
| Prisma.ShareLinkUpdateWithWhereUniqueWithoutProjectInput[]
|
|
updateMany?:
|
|
| Prisma.ShareLinkUpdateManyWithWhereWithoutProjectInput
|
|
| Prisma.ShareLinkUpdateManyWithWhereWithoutProjectInput[]
|
|
deleteMany?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[]
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateManyWithoutProjectNestedInput = {
|
|
create?:
|
|
| Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutProjectInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutProjectInput
|
|
>
|
|
| Prisma.ShareLinkCreateWithoutProjectInput[]
|
|
| Prisma.ShareLinkUncheckedCreateWithoutProjectInput[]
|
|
connectOrCreate?:
|
|
| Prisma.ShareLinkCreateOrConnectWithoutProjectInput
|
|
| Prisma.ShareLinkCreateOrConnectWithoutProjectInput[]
|
|
upsert?:
|
|
| Prisma.ShareLinkUpsertWithWhereUniqueWithoutProjectInput
|
|
| Prisma.ShareLinkUpsertWithWhereUniqueWithoutProjectInput[]
|
|
createMany?: Prisma.ShareLinkCreateManyProjectInputEnvelope
|
|
set?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
disconnect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
delete?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
connect?: Prisma.ShareLinkWhereUniqueInput | Prisma.ShareLinkWhereUniqueInput[]
|
|
update?:
|
|
| Prisma.ShareLinkUpdateWithWhereUniqueWithoutProjectInput
|
|
| Prisma.ShareLinkUpdateWithWhereUniqueWithoutProjectInput[]
|
|
updateMany?:
|
|
| Prisma.ShareLinkUpdateManyWithWhereWithoutProjectInput
|
|
| Prisma.ShareLinkUpdateManyWithWhereWithoutProjectInput[]
|
|
deleteMany?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[]
|
|
}
|
|
|
|
export type ShareLinkCreateNestedOneWithoutRootFolderInput = {
|
|
create?: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutRootFolderInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput
|
|
>
|
|
connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutRootFolderInput
|
|
connect?: Prisma.ShareLinkWhereUniqueInput
|
|
}
|
|
|
|
export type ShareLinkUncheckedCreateNestedOneWithoutRootFolderInput = {
|
|
create?: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutRootFolderInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput
|
|
>
|
|
connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutRootFolderInput
|
|
connect?: Prisma.ShareLinkWhereUniqueInput
|
|
}
|
|
|
|
export type ShareLinkUpdateOneWithoutRootFolderNestedInput = {
|
|
create?: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutRootFolderInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput
|
|
>
|
|
connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutRootFolderInput
|
|
upsert?: Prisma.ShareLinkUpsertWithoutRootFolderInput
|
|
disconnect?: Prisma.ShareLinkWhereInput | boolean
|
|
delete?: Prisma.ShareLinkWhereInput | boolean
|
|
connect?: Prisma.ShareLinkWhereUniqueInput
|
|
update?: Prisma.XOR<
|
|
Prisma.XOR<
|
|
Prisma.ShareLinkUpdateToOneWithWhereWithoutRootFolderInput,
|
|
Prisma.ShareLinkUpdateWithoutRootFolderInput
|
|
>,
|
|
Prisma.ShareLinkUncheckedUpdateWithoutRootFolderInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput = {
|
|
create?: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutRootFolderInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput
|
|
>
|
|
connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutRootFolderInput
|
|
upsert?: Prisma.ShareLinkUpsertWithoutRootFolderInput
|
|
disconnect?: Prisma.ShareLinkWhereInput | boolean
|
|
delete?: Prisma.ShareLinkWhereInput | boolean
|
|
connect?: Prisma.ShareLinkWhereUniqueInput
|
|
update?: Prisma.XOR<
|
|
Prisma.XOR<
|
|
Prisma.ShareLinkUpdateToOneWithWhereWithoutRootFolderInput,
|
|
Prisma.ShareLinkUpdateWithoutRootFolderInput
|
|
>,
|
|
Prisma.ShareLinkUncheckedUpdateWithoutRootFolderInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkCreateWithoutCreatorInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
project: Prisma.ProjectCreateNestedOneWithoutShareLinksInput
|
|
rootFolder: Prisma.AssetCreateNestedOneWithoutShareLinkRootFolderInput
|
|
}
|
|
|
|
export type ShareLinkUncheckedCreateWithoutCreatorInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
projectId: string
|
|
rootFolderId: string
|
|
}
|
|
|
|
export type ShareLinkCreateOrConnectWithoutCreatorInput = {
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
create: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutCreatorInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutCreatorInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkCreateManyCreatorInputEnvelope = {
|
|
data: Prisma.ShareLinkCreateManyCreatorInput | Prisma.ShareLinkCreateManyCreatorInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ShareLinkUpsertWithWhereUniqueWithoutCreatorInput = {
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
update: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateWithoutCreatorInput,
|
|
Prisma.ShareLinkUncheckedUpdateWithoutCreatorInput
|
|
>
|
|
create: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutCreatorInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutCreatorInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkUpdateWithWhereUniqueWithoutCreatorInput = {
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
data: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateWithoutCreatorInput,
|
|
Prisma.ShareLinkUncheckedUpdateWithoutCreatorInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkUpdateManyWithWhereWithoutCreatorInput = {
|
|
where: Prisma.ShareLinkScalarWhereInput
|
|
data: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateManyMutationInput,
|
|
Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkScalarWhereInput = {
|
|
AND?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[]
|
|
OR?: Prisma.ShareLinkScalarWhereInput[]
|
|
NOT?: Prisma.ShareLinkScalarWhereInput | Prisma.ShareLinkScalarWhereInput[]
|
|
id?: Prisma.StringFilter<'ShareLink'> | string
|
|
name?: Prisma.StringFilter<'ShareLink'> | string
|
|
expireAt?: Prisma.DateTimeNullableFilter<'ShareLink'> | Date | string | null
|
|
password?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
isDisabled?: Prisma.BoolFilter<'ShareLink'> | boolean
|
|
defaultSortOrder?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
viewMode?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
fieldVisibility?: Prisma.JsonNullableFilter<'ShareLink'>
|
|
createdAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<'ShareLink'> | Date | string
|
|
projectId?: Prisma.StringFilter<'ShareLink'> | string
|
|
rootFolderId?: Prisma.StringFilter<'ShareLink'> | string
|
|
creatorId?: Prisma.StringNullableFilter<'ShareLink'> | string | null
|
|
}
|
|
|
|
export type ShareLinkCreateWithoutProjectInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
rootFolder: Prisma.AssetCreateNestedOneWithoutShareLinkRootFolderInput
|
|
creator?: Prisma.UserCreateNestedOneWithoutShareLinksInput
|
|
}
|
|
|
|
export type ShareLinkUncheckedCreateWithoutProjectInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
rootFolderId: string
|
|
creatorId?: string | null
|
|
}
|
|
|
|
export type ShareLinkCreateOrConnectWithoutProjectInput = {
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
create: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutProjectInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutProjectInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkCreateManyProjectInputEnvelope = {
|
|
data: Prisma.ShareLinkCreateManyProjectInput | Prisma.ShareLinkCreateManyProjectInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ShareLinkUpsertWithWhereUniqueWithoutProjectInput = {
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
update: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateWithoutProjectInput,
|
|
Prisma.ShareLinkUncheckedUpdateWithoutProjectInput
|
|
>
|
|
create: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutProjectInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutProjectInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkUpdateWithWhereUniqueWithoutProjectInput = {
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
data: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateWithoutProjectInput,
|
|
Prisma.ShareLinkUncheckedUpdateWithoutProjectInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkUpdateManyWithWhereWithoutProjectInput = {
|
|
where: Prisma.ShareLinkScalarWhereInput
|
|
data: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateManyMutationInput,
|
|
Prisma.ShareLinkUncheckedUpdateManyWithoutProjectInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkCreateWithoutRootFolderInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
project: Prisma.ProjectCreateNestedOneWithoutShareLinksInput
|
|
creator?: Prisma.UserCreateNestedOneWithoutShareLinksInput
|
|
}
|
|
|
|
export type ShareLinkUncheckedCreateWithoutRootFolderInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
projectId: string
|
|
creatorId?: string | null
|
|
}
|
|
|
|
export type ShareLinkCreateOrConnectWithoutRootFolderInput = {
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
create: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutRootFolderInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkUpsertWithoutRootFolderInput = {
|
|
update: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateWithoutRootFolderInput,
|
|
Prisma.ShareLinkUncheckedUpdateWithoutRootFolderInput
|
|
>
|
|
create: Prisma.XOR<
|
|
Prisma.ShareLinkCreateWithoutRootFolderInput,
|
|
Prisma.ShareLinkUncheckedCreateWithoutRootFolderInput
|
|
>
|
|
where?: Prisma.ShareLinkWhereInput
|
|
}
|
|
|
|
export type ShareLinkUpdateToOneWithWhereWithoutRootFolderInput = {
|
|
where?: Prisma.ShareLinkWhereInput
|
|
data: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateWithoutRootFolderInput,
|
|
Prisma.ShareLinkUncheckedUpdateWithoutRootFolderInput
|
|
>
|
|
}
|
|
|
|
export type ShareLinkUpdateWithoutRootFolderInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
project?: Prisma.ProjectUpdateOneRequiredWithoutShareLinksNestedInput
|
|
creator?: Prisma.UserUpdateOneWithoutShareLinksNestedInput
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateWithoutRootFolderInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ShareLinkCreateManyCreatorInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
projectId: string
|
|
rootFolderId: string
|
|
}
|
|
|
|
export type ShareLinkUpdateWithoutCreatorInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
project?: Prisma.ProjectUpdateOneRequiredWithoutShareLinksNestedInput
|
|
rootFolder?: Prisma.AssetUpdateOneRequiredWithoutShareLinkRootFolderNestedInput
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateWithoutCreatorInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateManyWithoutCreatorInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
projectId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type ShareLinkCreateManyProjectInput = {
|
|
id?: string
|
|
name: string
|
|
expireAt?: Date | string | null
|
|
password?: string | null
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: string | null
|
|
viewMode?: string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
rootFolderId: string
|
|
creatorId?: string | null
|
|
}
|
|
|
|
export type ShareLinkUpdateWithoutProjectInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rootFolder?: Prisma.AssetUpdateOneRequiredWithoutShareLinkRootFolderNestedInput
|
|
creator?: Prisma.UserUpdateOneWithoutShareLinksNestedInput
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateWithoutProjectInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ShareLinkUncheckedUpdateManyWithoutProjectInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expireAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDisabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
defaultSortOrder?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
viewMode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldVisibility?: PrismaJson.ShareLinkFieldVisibility | Prisma.NullableJsonNullValueInput
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type ShareLinkSelect<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = runtime.Types.Extensions.GetSelect<
|
|
{
|
|
id?: boolean
|
|
name?: boolean
|
|
expireAt?: boolean
|
|
password?: boolean
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: boolean
|
|
viewMode?: boolean
|
|
fieldVisibility?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
projectId?: boolean
|
|
rootFolderId?: boolean
|
|
creatorId?: boolean
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
rootFolder?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
creator?: boolean | Prisma.ShareLink$creatorArgs<ExtArgs>
|
|
},
|
|
ExtArgs['result']['shareLink']
|
|
>
|
|
|
|
export type ShareLinkSelectCreateManyAndReturn<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = runtime.Types.Extensions.GetSelect<
|
|
{
|
|
id?: boolean
|
|
name?: boolean
|
|
expireAt?: boolean
|
|
password?: boolean
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: boolean
|
|
viewMode?: boolean
|
|
fieldVisibility?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
projectId?: boolean
|
|
rootFolderId?: boolean
|
|
creatorId?: boolean
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
rootFolder?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
creator?: boolean | Prisma.ShareLink$creatorArgs<ExtArgs>
|
|
},
|
|
ExtArgs['result']['shareLink']
|
|
>
|
|
|
|
export type ShareLinkSelectUpdateManyAndReturn<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = runtime.Types.Extensions.GetSelect<
|
|
{
|
|
id?: boolean
|
|
name?: boolean
|
|
expireAt?: boolean
|
|
password?: boolean
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: boolean
|
|
viewMode?: boolean
|
|
fieldVisibility?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
projectId?: boolean
|
|
rootFolderId?: boolean
|
|
creatorId?: boolean
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
rootFolder?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
creator?: boolean | Prisma.ShareLink$creatorArgs<ExtArgs>
|
|
},
|
|
ExtArgs['result']['shareLink']
|
|
>
|
|
|
|
export type ShareLinkSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
expireAt?: boolean
|
|
password?: boolean
|
|
isDisabled?: boolean
|
|
defaultSortOrder?: boolean
|
|
viewMode?: boolean
|
|
fieldVisibility?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
projectId?: boolean
|
|
rootFolderId?: boolean
|
|
creatorId?: boolean
|
|
}
|
|
|
|
export type ShareLinkOmit<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = runtime.Types.Extensions.GetOmit<
|
|
| 'id'
|
|
| 'name'
|
|
| 'expireAt'
|
|
| 'password'
|
|
| 'isDisabled'
|
|
| 'defaultSortOrder'
|
|
| 'viewMode'
|
|
| 'fieldVisibility'
|
|
| 'createdAt'
|
|
| 'updatedAt'
|
|
| 'projectId'
|
|
| 'rootFolderId'
|
|
| 'creatorId',
|
|
ExtArgs['result']['shareLink']
|
|
>
|
|
export type ShareLinkInclude<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
rootFolder?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
creator?: boolean | Prisma.ShareLink$creatorArgs<ExtArgs>
|
|
}
|
|
export type ShareLinkIncludeCreateManyAndReturn<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
rootFolder?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
creator?: boolean | Prisma.ShareLink$creatorArgs<ExtArgs>
|
|
}
|
|
export type ShareLinkIncludeUpdateManyAndReturn<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
|
|
rootFolder?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
|
|
creator?: boolean | Prisma.ShareLink$creatorArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ShareLinkPayload<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
name: 'ShareLink'
|
|
objects: {
|
|
project: Prisma.$ProjectPayload<ExtArgs>
|
|
rootFolder: Prisma.$AssetPayload<ExtArgs>
|
|
creator: Prisma.$UserPayload<ExtArgs> | null
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<
|
|
{
|
|
id: string
|
|
name: string
|
|
expireAt: Date | null
|
|
password: string | null
|
|
isDisabled: boolean
|
|
defaultSortOrder: string | null
|
|
viewMode: string | null
|
|
/**
|
|
* [ShareLinkFieldVisibility]
|
|
*/
|
|
fieldVisibility: PrismaJson.ShareLinkFieldVisibility | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
projectId: string
|
|
rootFolderId: string
|
|
creatorId: string | null
|
|
},
|
|
ExtArgs['result']['shareLink']
|
|
>
|
|
composites: {}
|
|
}
|
|
|
|
export type ShareLinkGetPayload<S extends boolean | null | undefined | ShareLinkDefaultArgs> =
|
|
runtime.Types.Result.GetResult<Prisma.$ShareLinkPayload, S>
|
|
|
|
export type ShareLinkCountArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = Omit<ShareLinkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ShareLinkCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ShareLinkDelegate<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
GlobalOmitOptions = {},
|
|
> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShareLink']; meta: { name: 'ShareLink' } }
|
|
/**
|
|
* Find zero or one ShareLink that matches the filter.
|
|
* @param {ShareLinkFindUniqueArgs} args - Arguments to find a ShareLink
|
|
* @example
|
|
* // Get one ShareLink
|
|
* const shareLink = await prisma.shareLink.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ShareLinkFindUniqueArgs>(
|
|
args: Prisma.SelectSubset<T, ShareLinkFindUniqueArgs<ExtArgs>>,
|
|
): Prisma.Prisma__ShareLinkClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'findUnique',
|
|
GlobalOmitOptions
|
|
> | null,
|
|
null,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Find one ShareLink that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ShareLinkFindUniqueOrThrowArgs} args - Arguments to find a ShareLink
|
|
* @example
|
|
* // Get one ShareLink
|
|
* const shareLink = await prisma.shareLink.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ShareLinkFindUniqueOrThrowArgs>(
|
|
args: Prisma.SelectSubset<T, ShareLinkFindUniqueOrThrowArgs<ExtArgs>>,
|
|
): Prisma.Prisma__ShareLinkClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'findUniqueOrThrow',
|
|
GlobalOmitOptions
|
|
>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Find the first ShareLink 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 {ShareLinkFindFirstArgs} args - Arguments to find a ShareLink
|
|
* @example
|
|
* // Get one ShareLink
|
|
* const shareLink = await prisma.shareLink.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ShareLinkFindFirstArgs>(
|
|
args?: Prisma.SelectSubset<T, ShareLinkFindFirstArgs<ExtArgs>>,
|
|
): Prisma.Prisma__ShareLinkClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'findFirst',
|
|
GlobalOmitOptions
|
|
> | null,
|
|
null,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Find the first ShareLink 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 {ShareLinkFindFirstOrThrowArgs} args - Arguments to find a ShareLink
|
|
* @example
|
|
* // Get one ShareLink
|
|
* const shareLink = await prisma.shareLink.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ShareLinkFindFirstOrThrowArgs>(
|
|
args?: Prisma.SelectSubset<T, ShareLinkFindFirstOrThrowArgs<ExtArgs>>,
|
|
): Prisma.Prisma__ShareLinkClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'findFirstOrThrow',
|
|
GlobalOmitOptions
|
|
>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Find zero or more ShareLinks 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 {ShareLinkFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ShareLinks
|
|
* const shareLinks = await prisma.shareLink.findMany()
|
|
*
|
|
* // Get first 10 ShareLinks
|
|
* const shareLinks = await prisma.shareLink.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const shareLinkWithIdOnly = await prisma.shareLink.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ShareLinkFindManyArgs>(
|
|
args?: Prisma.SelectSubset<T, ShareLinkFindManyArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'findMany',
|
|
GlobalOmitOptions
|
|
>
|
|
>
|
|
|
|
/**
|
|
* Create a ShareLink.
|
|
* @param {ShareLinkCreateArgs} args - Arguments to create a ShareLink.
|
|
* @example
|
|
* // Create one ShareLink
|
|
* const ShareLink = await prisma.shareLink.create({
|
|
* data: {
|
|
* // ... data to create a ShareLink
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ShareLinkCreateArgs>(
|
|
args: Prisma.SelectSubset<T, ShareLinkCreateArgs<ExtArgs>>,
|
|
): Prisma.Prisma__ShareLinkClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'create',
|
|
GlobalOmitOptions
|
|
>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Create many ShareLinks.
|
|
* @param {ShareLinkCreateManyArgs} args - Arguments to create many ShareLinks.
|
|
* @example
|
|
* // Create many ShareLinks
|
|
* const shareLink = await prisma.shareLink.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ShareLinkCreateManyArgs>(
|
|
args?: Prisma.SelectSubset<T, ShareLinkCreateManyArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many ShareLinks and returns the data saved in the database.
|
|
* @param {ShareLinkCreateManyAndReturnArgs} args - Arguments to create many ShareLinks.
|
|
* @example
|
|
* // Create many ShareLinks
|
|
* const shareLink = await prisma.shareLink.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many ShareLinks and only return the `id`
|
|
* const shareLinkWithIdOnly = await prisma.shareLink.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 ShareLinkCreateManyAndReturnArgs>(
|
|
args?: Prisma.SelectSubset<T, ShareLinkCreateManyAndReturnArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'createManyAndReturn',
|
|
GlobalOmitOptions
|
|
>
|
|
>
|
|
|
|
/**
|
|
* Delete a ShareLink.
|
|
* @param {ShareLinkDeleteArgs} args - Arguments to delete one ShareLink.
|
|
* @example
|
|
* // Delete one ShareLink
|
|
* const ShareLink = await prisma.shareLink.delete({
|
|
* where: {
|
|
* // ... filter to delete one ShareLink
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ShareLinkDeleteArgs>(
|
|
args: Prisma.SelectSubset<T, ShareLinkDeleteArgs<ExtArgs>>,
|
|
): Prisma.Prisma__ShareLinkClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'delete',
|
|
GlobalOmitOptions
|
|
>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Update one ShareLink.
|
|
* @param {ShareLinkUpdateArgs} args - Arguments to update one ShareLink.
|
|
* @example
|
|
* // Update one ShareLink
|
|
* const shareLink = await prisma.shareLink.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ShareLinkUpdateArgs>(
|
|
args: Prisma.SelectSubset<T, ShareLinkUpdateArgs<ExtArgs>>,
|
|
): Prisma.Prisma__ShareLinkClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'update',
|
|
GlobalOmitOptions
|
|
>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Delete zero or more ShareLinks.
|
|
* @param {ShareLinkDeleteManyArgs} args - Arguments to filter ShareLinks to delete.
|
|
* @example
|
|
* // Delete a few ShareLinks
|
|
* const { count } = await prisma.shareLink.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ShareLinkDeleteManyArgs>(
|
|
args?: Prisma.SelectSubset<T, ShareLinkDeleteManyArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ShareLinks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareLinkUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ShareLinks
|
|
* const shareLink = await prisma.shareLink.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ShareLinkUpdateManyArgs>(
|
|
args: Prisma.SelectSubset<T, ShareLinkUpdateManyArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ShareLinks and returns the data updated in the database.
|
|
* @param {ShareLinkUpdateManyAndReturnArgs} args - Arguments to update many ShareLinks.
|
|
* @example
|
|
* // Update many ShareLinks
|
|
* const shareLink = await prisma.shareLink.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more ShareLinks and only return the `id`
|
|
* const shareLinkWithIdOnly = await prisma.shareLink.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 ShareLinkUpdateManyAndReturnArgs>(
|
|
args: Prisma.SelectSubset<T, ShareLinkUpdateManyAndReturnArgs<ExtArgs>>,
|
|
): Prisma.PrismaPromise<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'updateManyAndReturn',
|
|
GlobalOmitOptions
|
|
>
|
|
>
|
|
|
|
/**
|
|
* Create or update one ShareLink.
|
|
* @param {ShareLinkUpsertArgs} args - Arguments to update or create a ShareLink.
|
|
* @example
|
|
* // Update or create a ShareLink
|
|
* const shareLink = await prisma.shareLink.upsert({
|
|
* create: {
|
|
* // ... data to create a ShareLink
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ShareLink we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ShareLinkUpsertArgs>(
|
|
args: Prisma.SelectSubset<T, ShareLinkUpsertArgs<ExtArgs>>,
|
|
): Prisma.Prisma__ShareLinkClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$ShareLinkPayload<ExtArgs>,
|
|
T,
|
|
'upsert',
|
|
GlobalOmitOptions
|
|
>,
|
|
never,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
|
|
/**
|
|
* Count the number of ShareLinks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareLinkCountArgs} args - Arguments to filter ShareLinks to count.
|
|
* @example
|
|
* // Count the number of ShareLinks
|
|
* const count = await prisma.shareLink.count({
|
|
* where: {
|
|
* // ... the filter for the ShareLinks we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ShareLinkCountArgs>(
|
|
args?: Prisma.Subset<T, ShareLinkCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], ShareLinkCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ShareLink.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareLinkAggregateArgs} 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 ShareLinkAggregateArgs>(
|
|
args: Prisma.Subset<T, ShareLinkAggregateArgs>,
|
|
): Prisma.PrismaPromise<GetShareLinkAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ShareLink.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareLinkGroupByArgs} 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 ShareLinkGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: ShareLinkGroupByArgs['orderBy'] }
|
|
: { orderBy?: ShareLinkGroupByArgs['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, ShareLinkGroupByArgs, OrderByArg> & InputErrors,
|
|
): {} extends InputErrors ? GetShareLinkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ShareLink model
|
|
*/
|
|
readonly fields: ShareLinkFieldRefs
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ShareLink.
|
|
* 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__ShareLinkClient<
|
|
T,
|
|
Null = never,
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
GlobalOmitOptions = {},
|
|
> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: 'PrismaPromise'
|
|
project<T extends Prisma.ProjectDefaultArgs<ExtArgs> = {}>(
|
|
args?: Prisma.Subset<T, Prisma.ProjectDefaultArgs<ExtArgs>>,
|
|
): Prisma.Prisma__ProjectClient<
|
|
| runtime.Types.Result.GetResult<
|
|
Prisma.$ProjectPayload<ExtArgs>,
|
|
T,
|
|
'findUniqueOrThrow',
|
|
GlobalOmitOptions
|
|
>
|
|
| Null,
|
|
Null,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
rootFolder<T extends Prisma.AssetDefaultArgs<ExtArgs> = {}>(
|
|
args?: Prisma.Subset<T, Prisma.AssetDefaultArgs<ExtArgs>>,
|
|
): Prisma.Prisma__AssetClient<
|
|
| runtime.Types.Result.GetResult<
|
|
Prisma.$AssetPayload<ExtArgs>,
|
|
T,
|
|
'findUniqueOrThrow',
|
|
GlobalOmitOptions
|
|
>
|
|
| Null,
|
|
Null,
|
|
ExtArgs,
|
|
GlobalOmitOptions
|
|
>
|
|
creator<T extends Prisma.ShareLink$creatorArgs<ExtArgs> = {}>(
|
|
args?: Prisma.Subset<T, Prisma.ShareLink$creatorArgs<ExtArgs>>,
|
|
): Prisma.Prisma__UserClient<
|
|
runtime.Types.Result.GetResult<
|
|
Prisma.$UserPayload<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 ShareLink model
|
|
*/
|
|
export interface ShareLinkFieldRefs {
|
|
readonly id: Prisma.FieldRef<'ShareLink', 'String'>
|
|
readonly name: Prisma.FieldRef<'ShareLink', 'String'>
|
|
readonly expireAt: Prisma.FieldRef<'ShareLink', 'DateTime'>
|
|
readonly password: Prisma.FieldRef<'ShareLink', 'String'>
|
|
readonly isDisabled: Prisma.FieldRef<'ShareLink', 'Boolean'>
|
|
readonly defaultSortOrder: Prisma.FieldRef<'ShareLink', 'String'>
|
|
readonly viewMode: Prisma.FieldRef<'ShareLink', 'String'>
|
|
readonly fieldVisibility: Prisma.FieldRef<'ShareLink', 'Json'>
|
|
readonly createdAt: Prisma.FieldRef<'ShareLink', 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<'ShareLink', 'DateTime'>
|
|
readonly projectId: Prisma.FieldRef<'ShareLink', 'String'>
|
|
readonly rootFolderId: Prisma.FieldRef<'ShareLink', 'String'>
|
|
readonly creatorId: Prisma.FieldRef<'ShareLink', 'String'>
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ShareLink findUnique
|
|
*/
|
|
export type ShareLinkFindUniqueArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareLink to fetch.
|
|
*/
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ShareLink findUniqueOrThrow
|
|
*/
|
|
export type ShareLinkFindUniqueOrThrowArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareLink to fetch.
|
|
*/
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ShareLink findFirst
|
|
*/
|
|
export type ShareLinkFindFirstArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareLink to fetch.
|
|
*/
|
|
where?: Prisma.ShareLinkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ShareLinks to fetch.
|
|
*/
|
|
orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ShareLinks.
|
|
*/
|
|
cursor?: Prisma.ShareLinkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ShareLinks 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` ShareLinks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ShareLinks.
|
|
*/
|
|
distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ShareLink findFirstOrThrow
|
|
*/
|
|
export type ShareLinkFindFirstOrThrowArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareLink to fetch.
|
|
*/
|
|
where?: Prisma.ShareLinkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ShareLinks to fetch.
|
|
*/
|
|
orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ShareLinks.
|
|
*/
|
|
cursor?: Prisma.ShareLinkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ShareLinks 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` ShareLinks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ShareLinks.
|
|
*/
|
|
distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ShareLink findMany
|
|
*/
|
|
export type ShareLinkFindManyArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareLinks to fetch.
|
|
*/
|
|
where?: Prisma.ShareLinkWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ShareLinks to fetch.
|
|
*/
|
|
orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ShareLinks.
|
|
*/
|
|
cursor?: Prisma.ShareLinkWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ShareLinks 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` ShareLinks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ShareLinks.
|
|
*/
|
|
distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ShareLink create
|
|
*/
|
|
export type ShareLinkCreateArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ShareLink.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ShareLinkCreateInput, Prisma.ShareLinkUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ShareLink createMany
|
|
*/
|
|
export type ShareLinkCreateManyArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* The data used to create many ShareLinks.
|
|
*/
|
|
data: Prisma.ShareLinkCreateManyInput | Prisma.ShareLinkCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ShareLink createManyAndReturn
|
|
*/
|
|
export type ShareLinkCreateManyAndReturnArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many ShareLinks.
|
|
*/
|
|
data: Prisma.ShareLinkCreateManyInput | Prisma.ShareLinkCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ShareLink update
|
|
*/
|
|
export type ShareLinkUpdateArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ShareLink.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ShareLinkUpdateInput, Prisma.ShareLinkUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ShareLink to update.
|
|
*/
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ShareLink updateMany
|
|
*/
|
|
export type ShareLinkUpdateManyArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* The data used to update ShareLinks.
|
|
*/
|
|
data: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateManyMutationInput,
|
|
Prisma.ShareLinkUncheckedUpdateManyInput
|
|
>
|
|
/**
|
|
* Filter which ShareLinks to update
|
|
*/
|
|
where?: Prisma.ShareLinkWhereInput
|
|
/**
|
|
* Limit how many ShareLinks to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ShareLink updateManyAndReturn
|
|
*/
|
|
export type ShareLinkUpdateManyAndReturnArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update ShareLinks.
|
|
*/
|
|
data: Prisma.XOR<
|
|
Prisma.ShareLinkUpdateManyMutationInput,
|
|
Prisma.ShareLinkUncheckedUpdateManyInput
|
|
>
|
|
/**
|
|
* Filter which ShareLinks to update
|
|
*/
|
|
where?: Prisma.ShareLinkWhereInput
|
|
/**
|
|
* Limit how many ShareLinks to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ShareLink upsert
|
|
*/
|
|
export type ShareLinkUpsertArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ShareLink to update in case it exists.
|
|
*/
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
/**
|
|
* In case the ShareLink found by the `where` argument doesn't exist, create a new ShareLink with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.ShareLinkCreateInput, Prisma.ShareLinkUncheckedCreateInput>
|
|
/**
|
|
* In case the ShareLink was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.ShareLinkUpdateInput, Prisma.ShareLinkUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ShareLink delete
|
|
*/
|
|
export type ShareLinkDeleteArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ShareLink to delete.
|
|
*/
|
|
where: Prisma.ShareLinkWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ShareLink deleteMany
|
|
*/
|
|
export type ShareLinkDeleteManyArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Filter which ShareLinks to delete
|
|
*/
|
|
where?: Prisma.ShareLinkWhereInput
|
|
/**
|
|
* Limit how many ShareLinks to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ShareLink.creator
|
|
*/
|
|
export type ShareLink$creatorArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* ShareLink without action
|
|
*/
|
|
export type ShareLinkDefaultArgs<
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
|
> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
}
|