feat(ui): add collection and share link pages and management actions

This commit is contained in:
yiling
2026-06-06 12:02:51 +08:00
parent 0d76ddfc34
commit 6ebeb3f804
22 changed files with 2052 additions and 69 deletions
File diff suppressed because one or more lines are too long
@@ -3042,6 +3042,7 @@ export const ShareLinkScalarFieldEnum = {
updatedAt: 'updatedAt',
projectId: 'projectId',
rootFolderId: 'rootFolderId',
creatorId: 'creatorId',
} as const
export type ShareLinkScalarFieldEnum =
@@ -3324,6 +3325,7 @@ export const CollectionScalarFieldEnum = {
createdAt: 'createdAt',
updatedAt: 'updatedAt',
projectId: 'projectId',
creatorId: 'creatorId',
} as const
export type CollectionScalarFieldEnum =
@@ -257,6 +257,7 @@ export const ShareLinkScalarFieldEnum = {
updatedAt: 'updatedAt',
projectId: 'projectId',
rootFolderId: 'rootFolderId',
creatorId: 'creatorId',
} as const
export type ShareLinkScalarFieldEnum =
@@ -539,6 +540,7 @@ export const CollectionScalarFieldEnum = {
createdAt: 'createdAt',
updatedAt: 'updatedAt',
projectId: 'projectId',
creatorId: 'creatorId',
} as const
export type CollectionScalarFieldEnum =
@@ -31,6 +31,7 @@ export type CollectionMinAggregateOutputType = {
createdAt: Date | null
updatedAt: Date | null
projectId: string | null
creatorId: string | null
}
export type CollectionMaxAggregateOutputType = {
@@ -39,6 +40,7 @@ export type CollectionMaxAggregateOutputType = {
createdAt: Date | null
updatedAt: Date | null
projectId: string | null
creatorId: string | null
}
export type CollectionCountAggregateOutputType = {
@@ -48,6 +50,7 @@ export type CollectionCountAggregateOutputType = {
createdAt: number
updatedAt: number
projectId: number
creatorId: number
_all: number
}
@@ -57,6 +60,7 @@ export type CollectionMinAggregateInputType = {
createdAt?: true
updatedAt?: true
projectId?: true
creatorId?: true
}
export type CollectionMaxAggregateInputType = {
@@ -65,6 +69,7 @@ export type CollectionMaxAggregateInputType = {
createdAt?: true
updatedAt?: true
projectId?: true
creatorId?: true
}
export type CollectionCountAggregateInputType = {
@@ -74,6 +79,7 @@ export type CollectionCountAggregateInputType = {
createdAt?: true
updatedAt?: true
projectId?: true
creatorId?: true
_all?: true
}
@@ -159,6 +165,7 @@ export type CollectionGroupByOutputType = {
createdAt: Date
updatedAt: Date
projectId: string
creatorId: string | null
_count: CollectionCountAggregateOutputType | null
_min: CollectionMinAggregateOutputType | null
_max: CollectionMaxAggregateOutputType | null
@@ -186,7 +193,9 @@ export type CollectionWhereInput = {
createdAt?: Prisma.DateTimeFilter<'Collection'> | Date | string
updatedAt?: Prisma.DateTimeFilter<'Collection'> | Date | string
projectId?: Prisma.StringFilter<'Collection'> | string
creatorId?: Prisma.StringNullableFilter<'Collection'> | string | null
project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}
export type CollectionOrderByWithRelationInput = {
@@ -196,7 +205,9 @@ export type CollectionOrderByWithRelationInput = {
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
projectId?: Prisma.SortOrder
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
project?: Prisma.ProjectOrderByWithRelationInput
creator?: Prisma.UserOrderByWithRelationInput
}
export type CollectionWhereUniqueInput = Prisma.AtLeast<
@@ -210,7 +221,9 @@ export type CollectionWhereUniqueInput = Prisma.AtLeast<
createdAt?: Prisma.DateTimeFilter<'Collection'> | Date | string
updatedAt?: Prisma.DateTimeFilter<'Collection'> | Date | string
projectId?: Prisma.StringFilter<'Collection'> | string
creatorId?: Prisma.StringNullableFilter<'Collection'> | string | null
project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
},
'id'
>
@@ -222,6 +235,7 @@ export type CollectionOrderByWithAggregationInput = {
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
projectId?: Prisma.SortOrder
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.CollectionCountOrderByAggregateInput
_max?: Prisma.CollectionMaxOrderByAggregateInput
_min?: Prisma.CollectionMinOrderByAggregateInput
@@ -241,6 +255,7 @@ export type CollectionScalarWhereWithAggregatesInput = {
createdAt?: Prisma.DateTimeWithAggregatesFilter<'Collection'> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Collection'> | Date | string
projectId?: Prisma.StringWithAggregatesFilter<'Collection'> | string
creatorId?: Prisma.StringNullableWithAggregatesFilter<'Collection'> | string | null
}
export type CollectionCreateInput = {
@@ -250,6 +265,7 @@ export type CollectionCreateInput = {
createdAt?: Date | string
updatedAt?: Date | string
project: Prisma.ProjectCreateNestedOneWithoutCollectionsInput
creator?: Prisma.UserCreateNestedOneWithoutCollectionsInput
}
export type CollectionUncheckedCreateInput = {
@@ -259,6 +275,7 @@ export type CollectionUncheckedCreateInput = {
createdAt?: Date | string
updatedAt?: Date | string
projectId: string
creatorId?: string | null
}
export type CollectionUpdateInput = {
@@ -268,6 +285,7 @@ export type CollectionUpdateInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
project?: Prisma.ProjectUpdateOneRequiredWithoutCollectionsNestedInput
creator?: Prisma.UserUpdateOneWithoutCollectionsNestedInput
}
export type CollectionUncheckedUpdateInput = {
@@ -277,6 +295,7 @@ export type CollectionUncheckedUpdateInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
projectId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type CollectionCreateManyInput = {
@@ -286,6 +305,7 @@ export type CollectionCreateManyInput = {
createdAt?: Date | string
updatedAt?: Date | string
projectId: string
creatorId?: string | null
}
export type CollectionUpdateManyMutationInput = {
@@ -303,6 +323,7 @@ export type CollectionUncheckedUpdateManyInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
projectId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type CollectionListRelationFilter = {
@@ -322,6 +343,7 @@ export type CollectionCountOrderByAggregateInput = {
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
projectId?: Prisma.SortOrder
creatorId?: Prisma.SortOrder
}
export type CollectionMaxOrderByAggregateInput = {
@@ -330,6 +352,7 @@ export type CollectionMaxOrderByAggregateInput = {
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
projectId?: Prisma.SortOrder
creatorId?: Prisma.SortOrder
}
export type CollectionMinOrderByAggregateInput = {
@@ -338,6 +361,93 @@ export type CollectionMinOrderByAggregateInput = {
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
projectId?: Prisma.SortOrder
creatorId?: Prisma.SortOrder
}
export type CollectionCreateNestedManyWithoutCreatorInput = {
create?:
| Prisma.XOR<
Prisma.CollectionCreateWithoutCreatorInput,
Prisma.CollectionUncheckedCreateWithoutCreatorInput
>
| Prisma.CollectionCreateWithoutCreatorInput[]
| Prisma.CollectionUncheckedCreateWithoutCreatorInput[]
connectOrCreate?:
| Prisma.CollectionCreateOrConnectWithoutCreatorInput
| Prisma.CollectionCreateOrConnectWithoutCreatorInput[]
createMany?: Prisma.CollectionCreateManyCreatorInputEnvelope
connect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
}
export type CollectionUncheckedCreateNestedManyWithoutCreatorInput = {
create?:
| Prisma.XOR<
Prisma.CollectionCreateWithoutCreatorInput,
Prisma.CollectionUncheckedCreateWithoutCreatorInput
>
| Prisma.CollectionCreateWithoutCreatorInput[]
| Prisma.CollectionUncheckedCreateWithoutCreatorInput[]
connectOrCreate?:
| Prisma.CollectionCreateOrConnectWithoutCreatorInput
| Prisma.CollectionCreateOrConnectWithoutCreatorInput[]
createMany?: Prisma.CollectionCreateManyCreatorInputEnvelope
connect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
}
export type CollectionUpdateManyWithoutCreatorNestedInput = {
create?:
| Prisma.XOR<
Prisma.CollectionCreateWithoutCreatorInput,
Prisma.CollectionUncheckedCreateWithoutCreatorInput
>
| Prisma.CollectionCreateWithoutCreatorInput[]
| Prisma.CollectionUncheckedCreateWithoutCreatorInput[]
connectOrCreate?:
| Prisma.CollectionCreateOrConnectWithoutCreatorInput
| Prisma.CollectionCreateOrConnectWithoutCreatorInput[]
upsert?:
| Prisma.CollectionUpsertWithWhereUniqueWithoutCreatorInput
| Prisma.CollectionUpsertWithWhereUniqueWithoutCreatorInput[]
createMany?: Prisma.CollectionCreateManyCreatorInputEnvelope
set?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
disconnect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
delete?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
connect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
update?:
| Prisma.CollectionUpdateWithWhereUniqueWithoutCreatorInput
| Prisma.CollectionUpdateWithWhereUniqueWithoutCreatorInput[]
updateMany?:
| Prisma.CollectionUpdateManyWithWhereWithoutCreatorInput
| Prisma.CollectionUpdateManyWithWhereWithoutCreatorInput[]
deleteMany?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[]
}
export type CollectionUncheckedUpdateManyWithoutCreatorNestedInput = {
create?:
| Prisma.XOR<
Prisma.CollectionCreateWithoutCreatorInput,
Prisma.CollectionUncheckedCreateWithoutCreatorInput
>
| Prisma.CollectionCreateWithoutCreatorInput[]
| Prisma.CollectionUncheckedCreateWithoutCreatorInput[]
connectOrCreate?:
| Prisma.CollectionCreateOrConnectWithoutCreatorInput
| Prisma.CollectionCreateOrConnectWithoutCreatorInput[]
upsert?:
| Prisma.CollectionUpsertWithWhereUniqueWithoutCreatorInput
| Prisma.CollectionUpsertWithWhereUniqueWithoutCreatorInput[]
createMany?: Prisma.CollectionCreateManyCreatorInputEnvelope
set?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
disconnect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
delete?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
connect?: Prisma.CollectionWhereUniqueInput | Prisma.CollectionWhereUniqueInput[]
update?:
| Prisma.CollectionUpdateWithWhereUniqueWithoutCreatorInput
| Prisma.CollectionUpdateWithWhereUniqueWithoutCreatorInput[]
updateMany?:
| Prisma.CollectionUpdateManyWithWhereWithoutCreatorInput
| Prisma.CollectionUpdateManyWithWhereWithoutCreatorInput[]
deleteMany?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[]
}
export type CollectionCreateNestedManyWithoutProjectInput = {
@@ -426,12 +536,85 @@ export type CollectionUncheckedUpdateManyWithoutProjectNestedInput = {
deleteMany?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[]
}
export type CollectionCreateWithoutCreatorInput = {
id?: string
name: string
filter: PrismaJson.CollectionFilter
createdAt?: Date | string
updatedAt?: Date | string
project: Prisma.ProjectCreateNestedOneWithoutCollectionsInput
}
export type CollectionUncheckedCreateWithoutCreatorInput = {
id?: string
name: string
filter: PrismaJson.CollectionFilter
createdAt?: Date | string
updatedAt?: Date | string
projectId: string
}
export type CollectionCreateOrConnectWithoutCreatorInput = {
where: Prisma.CollectionWhereUniqueInput
create: Prisma.XOR<
Prisma.CollectionCreateWithoutCreatorInput,
Prisma.CollectionUncheckedCreateWithoutCreatorInput
>
}
export type CollectionCreateManyCreatorInputEnvelope = {
data: Prisma.CollectionCreateManyCreatorInput | Prisma.CollectionCreateManyCreatorInput[]
skipDuplicates?: boolean
}
export type CollectionUpsertWithWhereUniqueWithoutCreatorInput = {
where: Prisma.CollectionWhereUniqueInput
update: Prisma.XOR<
Prisma.CollectionUpdateWithoutCreatorInput,
Prisma.CollectionUncheckedUpdateWithoutCreatorInput
>
create: Prisma.XOR<
Prisma.CollectionCreateWithoutCreatorInput,
Prisma.CollectionUncheckedCreateWithoutCreatorInput
>
}
export type CollectionUpdateWithWhereUniqueWithoutCreatorInput = {
where: Prisma.CollectionWhereUniqueInput
data: Prisma.XOR<
Prisma.CollectionUpdateWithoutCreatorInput,
Prisma.CollectionUncheckedUpdateWithoutCreatorInput
>
}
export type CollectionUpdateManyWithWhereWithoutCreatorInput = {
where: Prisma.CollectionScalarWhereInput
data: Prisma.XOR<
Prisma.CollectionUpdateManyMutationInput,
Prisma.CollectionUncheckedUpdateManyWithoutCreatorInput
>
}
export type CollectionScalarWhereInput = {
AND?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[]
OR?: Prisma.CollectionScalarWhereInput[]
NOT?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[]
id?: Prisma.StringFilter<'Collection'> | string
name?: Prisma.StringFilter<'Collection'> | string
filter?: Prisma.JsonFilter<'Collection'>
createdAt?: Prisma.DateTimeFilter<'Collection'> | Date | string
updatedAt?: Prisma.DateTimeFilter<'Collection'> | Date | string
projectId?: Prisma.StringFilter<'Collection'> | string
creatorId?: Prisma.StringNullableFilter<'Collection'> | string | null
}
export type CollectionCreateWithoutProjectInput = {
id?: string
name: string
filter: PrismaJson.CollectionFilter
createdAt?: Date | string
updatedAt?: Date | string
creator?: Prisma.UserCreateNestedOneWithoutCollectionsInput
}
export type CollectionUncheckedCreateWithoutProjectInput = {
@@ -440,6 +623,7 @@ export type CollectionUncheckedCreateWithoutProjectInput = {
filter: PrismaJson.CollectionFilter
createdAt?: Date | string
updatedAt?: Date | string
creatorId?: string | null
}
export type CollectionCreateOrConnectWithoutProjectInput = {
@@ -483,16 +667,40 @@ export type CollectionUpdateManyWithWhereWithoutProjectInput = {
>
}
export type CollectionScalarWhereInput = {
AND?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[]
OR?: Prisma.CollectionScalarWhereInput[]
NOT?: Prisma.CollectionScalarWhereInput | Prisma.CollectionScalarWhereInput[]
id?: Prisma.StringFilter<'Collection'> | string
name?: Prisma.StringFilter<'Collection'> | string
filter?: Prisma.JsonFilter<'Collection'>
createdAt?: Prisma.DateTimeFilter<'Collection'> | Date | string
updatedAt?: Prisma.DateTimeFilter<'Collection'> | Date | string
projectId?: Prisma.StringFilter<'Collection'> | string
export type CollectionCreateManyCreatorInput = {
id?: string
name: string
filter: PrismaJson.CollectionFilter
createdAt?: Date | string
updatedAt?: Date | string
projectId: string
}
export type CollectionUpdateWithoutCreatorInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
filter?: PrismaJson.CollectionFilter
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
project?: Prisma.ProjectUpdateOneRequiredWithoutCollectionsNestedInput
}
export type CollectionUncheckedUpdateWithoutCreatorInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
filter?: PrismaJson.CollectionFilter
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
projectId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type CollectionUncheckedUpdateManyWithoutCreatorInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
filter?: PrismaJson.CollectionFilter
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
projectId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type CollectionCreateManyProjectInput = {
@@ -501,6 +709,7 @@ export type CollectionCreateManyProjectInput = {
filter: PrismaJson.CollectionFilter
createdAt?: Date | string
updatedAt?: Date | string
creatorId?: string | null
}
export type CollectionUpdateWithoutProjectInput = {
@@ -509,6 +718,7 @@ export type CollectionUpdateWithoutProjectInput = {
filter?: PrismaJson.CollectionFilter
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
creator?: Prisma.UserUpdateOneWithoutCollectionsNestedInput
}
export type CollectionUncheckedUpdateWithoutProjectInput = {
@@ -517,6 +727,7 @@ export type CollectionUncheckedUpdateWithoutProjectInput = {
filter?: PrismaJson.CollectionFilter
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type CollectionUncheckedUpdateManyWithoutProjectInput = {
@@ -525,6 +736,7 @@ export type CollectionUncheckedUpdateManyWithoutProjectInput = {
filter?: PrismaJson.CollectionFilter
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type CollectionSelect<
@@ -537,7 +749,9 @@ export type CollectionSelect<
createdAt?: boolean
updatedAt?: boolean
projectId?: boolean
creatorId?: boolean
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
creator?: boolean | Prisma.Collection$creatorArgs<ExtArgs>
},
ExtArgs['result']['collection']
>
@@ -552,7 +766,9 @@ export type CollectionSelectCreateManyAndReturn<
createdAt?: boolean
updatedAt?: boolean
projectId?: boolean
creatorId?: boolean
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
creator?: boolean | Prisma.Collection$creatorArgs<ExtArgs>
},
ExtArgs['result']['collection']
>
@@ -567,7 +783,9 @@ export type CollectionSelectUpdateManyAndReturn<
createdAt?: boolean
updatedAt?: boolean
projectId?: boolean
creatorId?: boolean
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
creator?: boolean | Prisma.Collection$creatorArgs<ExtArgs>
},
ExtArgs['result']['collection']
>
@@ -579,28 +797,32 @@ export type CollectionSelectScalar = {
createdAt?: boolean
updatedAt?: boolean
projectId?: boolean
creatorId?: boolean
}
export type CollectionOmit<
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = runtime.Types.Extensions.GetOmit<
'id' | 'name' | 'filter' | 'createdAt' | 'updatedAt' | 'projectId',
'id' | 'name' | 'filter' | 'createdAt' | 'updatedAt' | 'projectId' | 'creatorId',
ExtArgs['result']['collection']
>
export type CollectionInclude<
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
creator?: boolean | Prisma.Collection$creatorArgs<ExtArgs>
}
export type CollectionIncludeCreateManyAndReturn<
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
creator?: boolean | Prisma.Collection$creatorArgs<ExtArgs>
}
export type CollectionIncludeUpdateManyAndReturn<
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
creator?: boolean | Prisma.Collection$creatorArgs<ExtArgs>
}
export type $CollectionPayload<
@@ -609,6 +831,7 @@ export type $CollectionPayload<
name: 'Collection'
objects: {
project: Prisma.$ProjectPayload<ExtArgs>
creator: Prisma.$UserPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<
{
@@ -621,6 +844,7 @@ export type $CollectionPayload<
createdAt: Date
updatedAt: Date
projectId: string
creatorId: string | null
},
ExtArgs['result']['collection']
>
@@ -1173,6 +1397,19 @@ export interface Prisma__CollectionClient<
ExtArgs,
GlobalOmitOptions
>
creator<T extends Prisma.Collection$creatorArgs<ExtArgs> = {}>(
args?: Prisma.Subset<T, Prisma.Collection$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.
@@ -1210,6 +1447,7 @@ export interface CollectionFieldRefs {
readonly createdAt: Prisma.FieldRef<'Collection', 'DateTime'>
readonly updatedAt: Prisma.FieldRef<'Collection', 'DateTime'>
readonly projectId: Prisma.FieldRef<'Collection', 'String'>
readonly creatorId: Prisma.FieldRef<'Collection', 'String'>
}
// Custom InputTypes
@@ -1643,6 +1881,27 @@ export type CollectionDeleteManyArgs<
limit?: number
}
/**
* Collection.creator
*/
export type Collection$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
}
/**
* Collection without action
*/
@@ -36,6 +36,7 @@ export type ShareLinkMinAggregateOutputType = {
updatedAt: Date | null
projectId: string | null
rootFolderId: string | null
creatorId: string | null
}
export type ShareLinkMaxAggregateOutputType = {
@@ -49,6 +50,7 @@ export type ShareLinkMaxAggregateOutputType = {
updatedAt: Date | null
projectId: string | null
rootFolderId: string | null
creatorId: string | null
}
export type ShareLinkCountAggregateOutputType = {
@@ -63,6 +65,7 @@ export type ShareLinkCountAggregateOutputType = {
updatedAt: number
projectId: number
rootFolderId: number
creatorId: number
_all: number
}
@@ -77,6 +80,7 @@ export type ShareLinkMinAggregateInputType = {
updatedAt?: true
projectId?: true
rootFolderId?: true
creatorId?: true
}
export type ShareLinkMaxAggregateInputType = {
@@ -90,6 +94,7 @@ export type ShareLinkMaxAggregateInputType = {
updatedAt?: true
projectId?: true
rootFolderId?: true
creatorId?: true
}
export type ShareLinkCountAggregateInputType = {
@@ -104,6 +109,7 @@ export type ShareLinkCountAggregateInputType = {
updatedAt?: true
projectId?: true
rootFolderId?: true
creatorId?: true
_all?: true
}
@@ -194,6 +200,7 @@ export type ShareLinkGroupByOutputType = {
updatedAt: Date
projectId: string
rootFolderId: string
creatorId: string | null
_count: ShareLinkCountAggregateOutputType | null
_min: ShareLinkMinAggregateOutputType | null
_max: ShareLinkMaxAggregateOutputType | null
@@ -226,8 +233,10 @@ export type ShareLinkWhereInput = {
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 = {
@@ -242,8 +251,10 @@ export type ShareLinkOrderByWithRelationInput = {
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<
@@ -262,8 +273,10 @@ export type ShareLinkWhereUniqueInput = Prisma.AtLeast<
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'
>
@@ -280,6 +293,7 @@ export type ShareLinkOrderByWithAggregationInput = {
updatedAt?: Prisma.SortOrder
projectId?: Prisma.SortOrder
rootFolderId?: Prisma.SortOrder
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.ShareLinkCountOrderByAggregateInput
_max?: Prisma.ShareLinkMaxOrderByAggregateInput
_min?: Prisma.ShareLinkMinOrderByAggregateInput
@@ -304,6 +318,7 @@ export type ShareLinkScalarWhereWithAggregatesInput = {
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 = {
@@ -318,6 +333,7 @@ export type ShareLinkCreateInput = {
updatedAt?: Date | string
project: Prisma.ProjectCreateNestedOneWithoutShareLinksInput
rootFolder: Prisma.AssetCreateNestedOneWithoutShareLinkRootFolderInput
creator?: Prisma.UserCreateNestedOneWithoutShareLinksInput
}
export type ShareLinkUncheckedCreateInput = {
@@ -332,6 +348,7 @@ export type ShareLinkUncheckedCreateInput = {
updatedAt?: Date | string
projectId: string
rootFolderId: string
creatorId?: string | null
}
export type ShareLinkUpdateInput = {
@@ -346,6 +363,7 @@ export type ShareLinkUpdateInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
project?: Prisma.ProjectUpdateOneRequiredWithoutShareLinksNestedInput
rootFolder?: Prisma.AssetUpdateOneRequiredWithoutShareLinkRootFolderNestedInput
creator?: Prisma.UserUpdateOneWithoutShareLinksNestedInput
}
export type ShareLinkUncheckedUpdateInput = {
@@ -360,6 +378,7 @@ export type ShareLinkUncheckedUpdateInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
projectId?: Prisma.StringFieldUpdateOperationsInput | string
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShareLinkCreateManyInput = {
@@ -374,6 +393,7 @@ export type ShareLinkCreateManyInput = {
updatedAt?: Date | string
projectId: string
rootFolderId: string
creatorId?: string | null
}
export type ShareLinkUpdateManyMutationInput = {
@@ -400,6 +420,7 @@ export type ShareLinkUncheckedUpdateManyInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
projectId?: Prisma.StringFieldUpdateOperationsInput | string
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShareLinkListRelationFilter = {
@@ -424,6 +445,7 @@ export type ShareLinkCountOrderByAggregateInput = {
updatedAt?: Prisma.SortOrder
projectId?: Prisma.SortOrder
rootFolderId?: Prisma.SortOrder
creatorId?: Prisma.SortOrder
}
export type ShareLinkMaxOrderByAggregateInput = {
@@ -437,6 +459,7 @@ export type ShareLinkMaxOrderByAggregateInput = {
updatedAt?: Prisma.SortOrder
projectId?: Prisma.SortOrder
rootFolderId?: Prisma.SortOrder
creatorId?: Prisma.SortOrder
}
export type ShareLinkMinOrderByAggregateInput = {
@@ -450,6 +473,7 @@ export type ShareLinkMinOrderByAggregateInput = {
updatedAt?: Prisma.SortOrder
projectId?: Prisma.SortOrder
rootFolderId?: Prisma.SortOrder
creatorId?: Prisma.SortOrder
}
export type ShareLinkNullableScalarRelationFilter = {
@@ -457,6 +481,92 @@ export type ShareLinkNullableScalarRelationFilter = {
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<
@@ -599,6 +709,93 @@ export type ShareLinkUncheckedUpdateOneWithoutRootFolderNestedInput = {
>
}
export type ShareLinkCreateWithoutCreatorInput = {
id?: string
name: string
expireAt?: Date | string | null
password?: string | null
isDisabled?: boolean
defaultSortOrder?: 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
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
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
@@ -610,6 +807,7 @@ export type ShareLinkCreateWithoutProjectInput = {
createdAt?: Date | string
updatedAt?: Date | string
rootFolder: Prisma.AssetCreateNestedOneWithoutShareLinkRootFolderInput
creator?: Prisma.UserCreateNestedOneWithoutShareLinksInput
}
export type ShareLinkUncheckedCreateWithoutProjectInput = {
@@ -623,6 +821,7 @@ export type ShareLinkUncheckedCreateWithoutProjectInput = {
createdAt?: Date | string
updatedAt?: Date | string
rootFolderId: string
creatorId?: string | null
}
export type ShareLinkCreateOrConnectWithoutProjectInput = {
@@ -666,23 +865,6 @@ export type ShareLinkUpdateManyWithWhereWithoutProjectInput = {
>
}
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
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
}
export type ShareLinkCreateWithoutRootFolderInput = {
id?: string
name: string
@@ -694,6 +876,7 @@ export type ShareLinkCreateWithoutRootFolderInput = {
createdAt?: Date | string
updatedAt?: Date | string
project: Prisma.ProjectCreateNestedOneWithoutShareLinksInput
creator?: Prisma.UserCreateNestedOneWithoutShareLinksInput
}
export type ShareLinkUncheckedCreateWithoutRootFolderInput = {
@@ -707,6 +890,7 @@ export type ShareLinkUncheckedCreateWithoutRootFolderInput = {
createdAt?: Date | string
updatedAt?: Date | string
projectId: string
creatorId?: string | null
}
export type ShareLinkCreateOrConnectWithoutRootFolderInput = {
@@ -748,6 +932,7 @@ export type ShareLinkUpdateWithoutRootFolderInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
project?: Prisma.ProjectUpdateOneRequiredWithoutShareLinksNestedInput
creator?: Prisma.UserUpdateOneWithoutShareLinksNestedInput
}
export type ShareLinkUncheckedUpdateWithoutRootFolderInput = {
@@ -761,6 +946,63 @@ export type ShareLinkUncheckedUpdateWithoutRootFolderInput = {
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
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
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
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
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 = {
@@ -774,6 +1016,7 @@ export type ShareLinkCreateManyProjectInput = {
createdAt?: Date | string
updatedAt?: Date | string
rootFolderId: string
creatorId?: string | null
}
export type ShareLinkUpdateWithoutProjectInput = {
@@ -787,6 +1030,7 @@ export type ShareLinkUpdateWithoutProjectInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
rootFolder?: Prisma.AssetUpdateOneRequiredWithoutShareLinkRootFolderNestedInput
creator?: Prisma.UserUpdateOneWithoutShareLinksNestedInput
}
export type ShareLinkUncheckedUpdateWithoutProjectInput = {
@@ -800,6 +1044,7 @@ export type ShareLinkUncheckedUpdateWithoutProjectInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShareLinkUncheckedUpdateManyWithoutProjectInput = {
@@ -813,6 +1058,7 @@ export type ShareLinkUncheckedUpdateManyWithoutProjectInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
rootFolderId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShareLinkSelect<
@@ -830,8 +1076,10 @@ export type ShareLinkSelect<
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']
>
@@ -851,8 +1099,10 @@ export type ShareLinkSelectCreateManyAndReturn<
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']
>
@@ -872,8 +1122,10 @@ export type ShareLinkSelectUpdateManyAndReturn<
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']
>
@@ -890,6 +1142,7 @@ export type ShareLinkSelectScalar = {
updatedAt?: boolean
projectId?: boolean
rootFolderId?: boolean
creatorId?: boolean
}
export type ShareLinkOmit<
@@ -905,7 +1158,8 @@ export type ShareLinkOmit<
| 'createdAt'
| 'updatedAt'
| 'projectId'
| 'rootFolderId',
| 'rootFolderId'
| 'creatorId',
ExtArgs['result']['shareLink']
>
export type ShareLinkInclude<
@@ -913,18 +1167,21 @@ export type ShareLinkInclude<
> = {
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<
@@ -934,6 +1191,7 @@ export type $ShareLinkPayload<
objects: {
project: Prisma.$ProjectPayload<ExtArgs>
rootFolder: Prisma.$AssetPayload<ExtArgs>
creator: Prisma.$UserPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<
{
@@ -951,6 +1209,7 @@ export type $ShareLinkPayload<
updatedAt: Date
projectId: string
rootFolderId: string
creatorId: string | null
},
ExtArgs['result']['shareLink']
>
@@ -1514,6 +1773,19 @@ export interface Prisma__ShareLinkClient<
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.
@@ -1556,6 +1828,7 @@ export interface ShareLinkFieldRefs {
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
@@ -1989,6 +2262,27 @@ export type ShareLinkDeleteManyArgs<
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
*/
@@ -237,6 +237,8 @@ export type UserWhereInput = {
agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null
agentSessions?: Prisma.AgentSessionListRelationFilter
userMetadata?: Prisma.UserMetadataListRelationFilter
collections?: Prisma.CollectionListRelationFilter
shareLinks?: Prisma.ShareLinkListRelationFilter
}
export type UserOrderByWithRelationInput = {
@@ -264,6 +266,8 @@ export type UserOrderByWithRelationInput = {
agent?: Prisma.AgentOrderByWithRelationInput
agentSessions?: Prisma.AgentSessionOrderByRelationAggregateInput
userMetadata?: Prisma.UserMetadataOrderByRelationAggregateInput
collections?: Prisma.CollectionOrderByRelationAggregateInput
shareLinks?: Prisma.ShareLinkOrderByRelationAggregateInput
}
export type UserWhereUniqueInput = Prisma.AtLeast<
@@ -295,6 +299,8 @@ export type UserWhereUniqueInput = Prisma.AtLeast<
agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null
agentSessions?: Prisma.AgentSessionListRelationFilter
userMetadata?: Prisma.UserMetadataListRelationFilter
collections?: Prisma.CollectionListRelationFilter
shareLinks?: Prisma.ShareLinkListRelationFilter
},
'id' | 'email'
>
@@ -358,6 +364,8 @@ export type UserCreateInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateInput = {
@@ -385,6 +393,8 @@ export type UserUncheckedCreateInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserUpdateInput = {
@@ -412,6 +422,8 @@ export type UserUpdateInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateInput = {
@@ -439,6 +451,8 @@ export type UserUncheckedUpdateInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateManyInput = {
@@ -657,6 +671,34 @@ export type UserUpdateOneRequiredWithoutTeamMembersNestedInput = {
>
}
export type UserCreateNestedOneWithoutShareLinksInput = {
create?: Prisma.XOR<
Prisma.UserCreateWithoutShareLinksInput,
Prisma.UserUncheckedCreateWithoutShareLinksInput
>
connectOrCreate?: Prisma.UserCreateOrConnectWithoutShareLinksInput
connect?: Prisma.UserWhereUniqueInput
}
export type UserUpdateOneWithoutShareLinksNestedInput = {
create?: Prisma.XOR<
Prisma.UserCreateWithoutShareLinksInput,
Prisma.UserUncheckedCreateWithoutShareLinksInput
>
connectOrCreate?: Prisma.UserCreateOrConnectWithoutShareLinksInput
upsert?: Prisma.UserUpsertWithoutShareLinksInput
disconnect?: Prisma.UserWhereInput | boolean
delete?: Prisma.UserWhereInput | boolean
connect?: Prisma.UserWhereUniqueInput
update?: Prisma.XOR<
Prisma.XOR<
Prisma.UserUpdateToOneWithWhereWithoutShareLinksInput,
Prisma.UserUpdateWithoutShareLinksInput
>,
Prisma.UserUncheckedUpdateWithoutShareLinksInput
>
}
export type UserCreateNestedOneWithoutAssetsInput = {
create?: Prisma.XOR<
Prisma.UserCreateWithoutAssetsInput,
@@ -903,6 +945,34 @@ export type UserUpdateOneRequiredWithoutUserMetadataNestedInput = {
>
}
export type UserCreateNestedOneWithoutCollectionsInput = {
create?: Prisma.XOR<
Prisma.UserCreateWithoutCollectionsInput,
Prisma.UserUncheckedCreateWithoutCollectionsInput
>
connectOrCreate?: Prisma.UserCreateOrConnectWithoutCollectionsInput
connect?: Prisma.UserWhereUniqueInput
}
export type UserUpdateOneWithoutCollectionsNestedInput = {
create?: Prisma.XOR<
Prisma.UserCreateWithoutCollectionsInput,
Prisma.UserUncheckedCreateWithoutCollectionsInput
>
connectOrCreate?: Prisma.UserCreateOrConnectWithoutCollectionsInput
upsert?: Prisma.UserUpsertWithoutCollectionsInput
disconnect?: Prisma.UserWhereInput | boolean
delete?: Prisma.UserWhereInput | boolean
connect?: Prisma.UserWhereUniqueInput
update?: Prisma.XOR<
Prisma.XOR<
Prisma.UserUpdateToOneWithWhereWithoutCollectionsInput,
Prisma.UserUpdateWithoutCollectionsInput
>,
Prisma.UserUncheckedUpdateWithoutCollectionsInput
>
}
export type UserCreateWithoutSessionsInput = {
id?: string
type?: $Enums.UserType
@@ -927,6 +997,8 @@ export type UserCreateWithoutSessionsInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutSessionsInput = {
@@ -953,6 +1025,8 @@ export type UserUncheckedCreateWithoutSessionsInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutSessionsInput = {
@@ -1007,6 +1081,8 @@ export type UserUpdateWithoutSessionsInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutSessionsInput = {
@@ -1033,6 +1109,8 @@ export type UserUncheckedUpdateWithoutSessionsInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutAccountsInput = {
@@ -1059,6 +1137,8 @@ export type UserCreateWithoutAccountsInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutAccountsInput = {
@@ -1085,6 +1165,8 @@ export type UserUncheckedCreateWithoutAccountsInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutAccountsInput = {
@@ -1139,6 +1221,8 @@ export type UserUpdateWithoutAccountsInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutAccountsInput = {
@@ -1165,6 +1249,8 @@ export type UserUncheckedUpdateWithoutAccountsInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutAuthTokensInput = {
@@ -1191,6 +1277,8 @@ export type UserCreateWithoutAuthTokensInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutAuthTokensInput = {
@@ -1217,6 +1305,8 @@ export type UserUncheckedCreateWithoutAuthTokensInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutAuthTokensInput = {
@@ -1271,6 +1361,8 @@ export type UserUpdateWithoutAuthTokensInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutAuthTokensInput = {
@@ -1297,6 +1389,8 @@ export type UserUncheckedUpdateWithoutAuthTokensInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutTeamMembersInput = {
@@ -1323,6 +1417,8 @@ export type UserCreateWithoutTeamMembersInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutTeamMembersInput = {
@@ -1349,6 +1445,8 @@ export type UserUncheckedCreateWithoutTeamMembersInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutTeamMembersInput = {
@@ -1403,6 +1501,8 @@ export type UserUpdateWithoutTeamMembersInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutTeamMembersInput = {
@@ -1429,6 +1529,148 @@ export type UserUncheckedUpdateWithoutTeamMembersInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutShareLinksInput = {
id?: string
type?: $Enums.UserType
name: string
email: string
emailVerified?: boolean
image?: string | null
password?: string | null
agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput
authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput
tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput
comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput
createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput
createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput
notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutShareLinksInput = {
id?: string
type?: $Enums.UserType
name: string
email: string
emailVerified?: boolean
image?: string | null
password?: string | null
agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput
authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput
tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput
comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput
createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput
createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput
notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutShareLinksInput = {
where: Prisma.UserWhereUniqueInput
create: Prisma.XOR<
Prisma.UserCreateWithoutShareLinksInput,
Prisma.UserUncheckedCreateWithoutShareLinksInput
>
}
export type UserUpsertWithoutShareLinksInput = {
update: Prisma.XOR<
Prisma.UserUpdateWithoutShareLinksInput,
Prisma.UserUncheckedUpdateWithoutShareLinksInput
>
create: Prisma.XOR<
Prisma.UserCreateWithoutShareLinksInput,
Prisma.UserUncheckedCreateWithoutShareLinksInput
>
where?: Prisma.UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutShareLinksInput = {
where?: Prisma.UserWhereInput
data: Prisma.XOR<
Prisma.UserUpdateWithoutShareLinksInput,
Prisma.UserUncheckedUpdateWithoutShareLinksInput
>
}
export type UserUpdateWithoutShareLinksInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput
authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput
tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput
comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput
createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput
createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput
notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutShareLinksInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput
authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput
tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput
comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput
createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput
createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput
notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutAssetsInput = {
@@ -1455,6 +1697,8 @@ export type UserCreateWithoutAssetsInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutAssetsInput = {
@@ -1481,6 +1725,8 @@ export type UserUncheckedCreateWithoutAssetsInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutAssetsInput = {
@@ -1535,6 +1781,8 @@ export type UserUpdateWithoutAssetsInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutAssetsInput = {
@@ -1561,6 +1809,8 @@ export type UserUncheckedUpdateWithoutAssetsInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutCommentsInput = {
@@ -1587,6 +1837,8 @@ export type UserCreateWithoutCommentsInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutCommentsInput = {
@@ -1613,6 +1865,8 @@ export type UserUncheckedCreateWithoutCommentsInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutCommentsInput = {
@@ -1667,6 +1921,8 @@ export type UserUpdateWithoutCommentsInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutCommentsInput = {
@@ -1693,6 +1949,8 @@ export type UserUncheckedUpdateWithoutCommentsInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutCreatedInvitesInput = {
@@ -1719,6 +1977,8 @@ export type UserCreateWithoutCreatedInvitesInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutCreatedInvitesInput = {
@@ -1745,6 +2005,8 @@ export type UserUncheckedCreateWithoutCreatedInvitesInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutCreatedInvitesInput = {
@@ -1799,6 +2061,8 @@ export type UserUpdateWithoutCreatedInvitesInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutCreatedInvitesInput = {
@@ -1825,6 +2089,8 @@ export type UserUncheckedUpdateWithoutCreatedInvitesInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutCreatedNotificationsInput = {
@@ -1851,6 +2117,8 @@ export type UserCreateWithoutCreatedNotificationsInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutCreatedNotificationsInput = {
@@ -1877,6 +2145,8 @@ export type UserUncheckedCreateWithoutCreatedNotificationsInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutCreatedNotificationsInput = {
@@ -1911,6 +2181,8 @@ export type UserCreateWithoutNotificationsInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutNotificationsInput = {
@@ -1937,6 +2209,8 @@ export type UserUncheckedCreateWithoutNotificationsInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutNotificationsInput = {
@@ -1991,6 +2265,8 @@ export type UserUpdateWithoutCreatedNotificationsInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutCreatedNotificationsInput = {
@@ -2017,6 +2293,8 @@ export type UserUncheckedUpdateWithoutCreatedNotificationsInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserUpsertWithoutNotificationsInput = {
@@ -2063,6 +2341,8 @@ export type UserUpdateWithoutNotificationsInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutNotificationsInput = {
@@ -2089,6 +2369,8 @@ export type UserUncheckedUpdateWithoutNotificationsInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutTasksInput = {
@@ -2115,6 +2397,8 @@ export type UserCreateWithoutTasksInput = {
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutTasksInput = {
@@ -2141,6 +2425,8 @@ export type UserUncheckedCreateWithoutTasksInput = {
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutTasksInput = {
@@ -2192,6 +2478,8 @@ export type UserUpdateWithoutTasksInput = {
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutTasksInput = {
@@ -2218,6 +2506,8 @@ export type UserUncheckedUpdateWithoutTasksInput = {
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutAgentInput = {
@@ -2244,6 +2534,8 @@ export type UserCreateWithoutAgentInput = {
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutAgentInput = {
@@ -2270,6 +2562,8 @@ export type UserUncheckedCreateWithoutAgentInput = {
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutAgentInput = {
@@ -2321,6 +2615,8 @@ export type UserUpdateWithoutAgentInput = {
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutAgentInput = {
@@ -2347,6 +2643,8 @@ export type UserUncheckedUpdateWithoutAgentInput = {
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutAgentSessionsInput = {
@@ -2373,6 +2671,8 @@ export type UserCreateWithoutAgentSessionsInput = {
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutAgentSessionsInput = {
@@ -2399,6 +2699,8 @@ export type UserUncheckedCreateWithoutAgentSessionsInput = {
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutAgentSessionsInput = {
@@ -2453,6 +2755,8 @@ export type UserUpdateWithoutAgentSessionsInput = {
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutAgentSessionsInput = {
@@ -2479,6 +2783,8 @@ export type UserUncheckedUpdateWithoutAgentSessionsInput = {
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutUserMetadataInput = {
@@ -2505,6 +2811,8 @@ export type UserCreateWithoutUserMetadataInput = {
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutUserMetadataInput = {
@@ -2531,6 +2839,8 @@ export type UserUncheckedCreateWithoutUserMetadataInput = {
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutUserMetadataInput = {
@@ -2585,6 +2895,8 @@ export type UserUpdateWithoutUserMetadataInput = {
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutUserMetadataInput = {
@@ -2611,6 +2923,148 @@ export type UserUncheckedUpdateWithoutUserMetadataInput = {
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
export type UserCreateWithoutCollectionsInput = {
id?: string
type?: $Enums.UserType
name: string
email: string
emailVerified?: boolean
image?: string | null
password?: string | null
agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput
authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput
tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput
comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput
createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput
createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput
notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
}
export type UserUncheckedCreateWithoutCollectionsInput = {
id?: string
type?: $Enums.UserType
name: string
email: string
emailVerified?: boolean
image?: string | null
password?: string | null
agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput
authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput
tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput
comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput
createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput
createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput
notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
}
export type UserCreateOrConnectWithoutCollectionsInput = {
where: Prisma.UserWhereUniqueInput
create: Prisma.XOR<
Prisma.UserCreateWithoutCollectionsInput,
Prisma.UserUncheckedCreateWithoutCollectionsInput
>
}
export type UserUpsertWithoutCollectionsInput = {
update: Prisma.XOR<
Prisma.UserUpdateWithoutCollectionsInput,
Prisma.UserUncheckedUpdateWithoutCollectionsInput
>
create: Prisma.XOR<
Prisma.UserCreateWithoutCollectionsInput,
Prisma.UserUncheckedCreateWithoutCollectionsInput
>
where?: Prisma.UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutCollectionsInput = {
where?: Prisma.UserWhereInput
data: Prisma.XOR<
Prisma.UserUpdateWithoutCollectionsInput,
Prisma.UserUncheckedUpdateWithoutCollectionsInput
>
}
export type UserUpdateWithoutCollectionsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput
authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput
tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput
comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput
createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput
createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput
notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
}
export type UserUncheckedUpdateWithoutCollectionsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
agentSettings?: PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput
authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput
tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput
comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput
createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput
createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput
notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
}
/**
@@ -2630,6 +3084,8 @@ export type UserCountOutputType = {
accounts: number
agentSessions: number
userMetadata: number
collections: number
shareLinks: number
}
export type UserCountOutputTypeSelect<
@@ -2647,6 +3103,8 @@ export type UserCountOutputTypeSelect<
accounts?: boolean | UserCountOutputTypeCountAccountsArgs
agentSessions?: boolean | UserCountOutputTypeCountAgentSessionsArgs
userMetadata?: boolean | UserCountOutputTypeCountUserMetadataArgs
collections?: boolean | UserCountOutputTypeCountCollectionsArgs
shareLinks?: boolean | UserCountOutputTypeCountShareLinksArgs
}
/**
@@ -2769,6 +3227,24 @@ export type UserCountOutputTypeCountUserMetadataArgs<
where?: Prisma.UserMetadataWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountCollectionsArgs<
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
where?: Prisma.CollectionWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountShareLinksArgs<
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
where?: Prisma.ShareLinkWhereInput
}
export type UserSelect<
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = runtime.Types.Extensions.GetSelect<
@@ -2797,6 +3273,8 @@ export type UserSelect<
agent?: boolean | Prisma.User$agentArgs<ExtArgs>
agentSessions?: boolean | Prisma.User$agentSessionsArgs<ExtArgs>
userMetadata?: boolean | Prisma.User$userMetadataArgs<ExtArgs>
collections?: boolean | Prisma.User$collectionsArgs<ExtArgs>
shareLinks?: boolean | Prisma.User$shareLinksArgs<ExtArgs>
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
},
ExtArgs['result']['user']
@@ -2886,6 +3364,8 @@ export type UserInclude<
agent?: boolean | Prisma.User$agentArgs<ExtArgs>
agentSessions?: boolean | Prisma.User$agentSessionsArgs<ExtArgs>
userMetadata?: boolean | Prisma.User$userMetadataArgs<ExtArgs>
collections?: boolean | Prisma.User$collectionsArgs<ExtArgs>
shareLinks?: boolean | Prisma.User$shareLinksArgs<ExtArgs>
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
}
export type UserIncludeCreateManyAndReturn<
@@ -2913,6 +3393,8 @@ export type $UserPayload<
agent: Prisma.$AgentPayload<ExtArgs> | null
agentSessions: Prisma.$AgentSessionPayload<ExtArgs>[]
userMetadata: Prisma.$UserMetadataPayload<ExtArgs>[]
collections: Prisma.$CollectionPayload<ExtArgs>[]
shareLinks: Prisma.$ShareLinkPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<
{
@@ -3580,6 +4062,28 @@ export interface Prisma__UserClient<
>
| Null
>
collections<T extends Prisma.User$collectionsArgs<ExtArgs> = {}>(
args?: Prisma.Subset<T, Prisma.User$collectionsArgs<ExtArgs>>,
): Prisma.PrismaPromise<
| runtime.Types.Result.GetResult<
Prisma.$CollectionPayload<ExtArgs>,
T,
'findMany',
GlobalOmitOptions
>
| Null
>
shareLinks<T extends Prisma.User$shareLinksArgs<ExtArgs> = {}>(
args?: Prisma.Subset<T, Prisma.User$shareLinksArgs<ExtArgs>>,
): Prisma.PrismaPromise<
| runtime.Types.Result.GetResult<
Prisma.$ShareLinkPayload<ExtArgs>,
T,
'findMany',
GlobalOmitOptions
>
| Null
>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
@@ -4384,6 +4888,58 @@ export type User$userMetadataArgs<
distinct?: Prisma.UserMetadataScalarFieldEnum | Prisma.UserMetadataScalarFieldEnum[]
}
/**
* User.collections
*/
export type User$collectionsArgs<
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Collection
*/
select?: Prisma.CollectionSelect<ExtArgs> | null
/**
* Omit specific fields from the Collection
*/
omit?: Prisma.CollectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CollectionInclude<ExtArgs> | null
where?: Prisma.CollectionWhereInput
orderBy?: Prisma.CollectionOrderByWithRelationInput | Prisma.CollectionOrderByWithRelationInput[]
cursor?: Prisma.CollectionWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.CollectionScalarFieldEnum | Prisma.CollectionScalarFieldEnum[]
}
/**
* User.shareLinks
*/
export type User$shareLinksArgs<
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
where?: Prisma.ShareLinkWhereInput
orderBy?: Prisma.ShareLinkOrderByWithRelationInput | Prisma.ShareLinkOrderByWithRelationInput[]
cursor?: Prisma.ShareLinkWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.ShareLinkScalarFieldEnum | Prisma.ShareLinkScalarFieldEnum[]
}
/**
* User without action
*/