mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 19:34:38 +00:00
* feat(share): record and display share activity * style(share): remove activity entry borders * docs(share): explain share link activity
1387 lines
53 KiB
TypeScript
Generated
1387 lines
53 KiB
TypeScript
Generated
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `ShareActivity` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import type * as PJTG from '../pjtg';
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model ShareActivity
|
|
*
|
|
*/
|
|
export type ShareActivityModel = runtime.Types.Result.DefaultSelection<Prisma.$ShareActivityPayload>
|
|
|
|
export type AggregateShareActivity = {
|
|
_count: ShareActivityCountAggregateOutputType | null
|
|
_min: ShareActivityMinAggregateOutputType | null
|
|
_max: ShareActivityMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ShareActivityMinAggregateOutputType = {
|
|
id: string | null
|
|
shareLinkId: string | null
|
|
kind: $Enums.ShareActivityKind | null
|
|
userId: string | null
|
|
assetId: string | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type ShareActivityMaxAggregateOutputType = {
|
|
id: string | null
|
|
shareLinkId: string | null
|
|
kind: $Enums.ShareActivityKind | null
|
|
userId: string | null
|
|
assetId: string | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type ShareActivityCountAggregateOutputType = {
|
|
id: number
|
|
shareLinkId: number
|
|
kind: number
|
|
userId: number
|
|
assetId: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ShareActivityMinAggregateInputType = {
|
|
id?: true
|
|
shareLinkId?: true
|
|
kind?: true
|
|
userId?: true
|
|
assetId?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type ShareActivityMaxAggregateInputType = {
|
|
id?: true
|
|
shareLinkId?: true
|
|
kind?: true
|
|
userId?: true
|
|
assetId?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type ShareActivityCountAggregateInputType = {
|
|
id?: true
|
|
shareLinkId?: true
|
|
kind?: true
|
|
userId?: true
|
|
assetId?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ShareActivityAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ShareActivity to aggregate.
|
|
*/
|
|
where?: Prisma.ShareActivityWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ShareActivities to fetch.
|
|
*/
|
|
orderBy?: Prisma.ShareActivityOrderByWithRelationInput | Prisma.ShareActivityOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.ShareActivityWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ShareActivities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ShareActivities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned ShareActivities
|
|
**/
|
|
_count?: true | ShareActivityCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ShareActivityMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ShareActivityMaxAggregateInputType
|
|
}
|
|
|
|
export type GetShareActivityAggregateType<T extends ShareActivityAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateShareActivity]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateShareActivity[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateShareActivity[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ShareActivityGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ShareActivityWhereInput
|
|
orderBy?: Prisma.ShareActivityOrderByWithAggregationInput | Prisma.ShareActivityOrderByWithAggregationInput[]
|
|
by: Prisma.ShareActivityScalarFieldEnum[] | Prisma.ShareActivityScalarFieldEnum
|
|
having?: Prisma.ShareActivityScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ShareActivityCountAggregateInputType | true
|
|
_min?: ShareActivityMinAggregateInputType
|
|
_max?: ShareActivityMaxAggregateInputType
|
|
}
|
|
|
|
export type ShareActivityGroupByOutputType = {
|
|
id: string
|
|
shareLinkId: string
|
|
kind: $Enums.ShareActivityKind
|
|
userId: string | null
|
|
assetId: string | null
|
|
createdAt: Date
|
|
_count: ShareActivityCountAggregateOutputType | null
|
|
_min: ShareActivityMinAggregateOutputType | null
|
|
_max: ShareActivityMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetShareActivityGroupByPayload<T extends ShareActivityGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<ShareActivityGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ShareActivityGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], ShareActivityGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], ShareActivityGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type ShareActivityWhereInput = {
|
|
AND?: Prisma.ShareActivityWhereInput | Prisma.ShareActivityWhereInput[]
|
|
OR?: Prisma.ShareActivityWhereInput[]
|
|
NOT?: Prisma.ShareActivityWhereInput | Prisma.ShareActivityWhereInput[]
|
|
id?: Prisma.StringFilter<"ShareActivity"> | string
|
|
shareLinkId?: Prisma.StringFilter<"ShareActivity"> | string
|
|
kind?: Prisma.EnumShareActivityKindFilter<"ShareActivity"> | $Enums.ShareActivityKind
|
|
userId?: Prisma.StringNullableFilter<"ShareActivity"> | string | null
|
|
assetId?: Prisma.StringNullableFilter<"ShareActivity"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"ShareActivity"> | Date | string
|
|
shareLink?: Prisma.XOR<Prisma.ShareLinkScalarRelationFilter, Prisma.ShareLinkWhereInput>
|
|
}
|
|
|
|
export type ShareActivityOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
shareLinkId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
assetId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
shareLink?: Prisma.ShareLinkOrderByWithRelationInput
|
|
}
|
|
|
|
export type ShareActivityWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.ShareActivityWhereInput | Prisma.ShareActivityWhereInput[]
|
|
OR?: Prisma.ShareActivityWhereInput[]
|
|
NOT?: Prisma.ShareActivityWhereInput | Prisma.ShareActivityWhereInput[]
|
|
shareLinkId?: Prisma.StringFilter<"ShareActivity"> | string
|
|
kind?: Prisma.EnumShareActivityKindFilter<"ShareActivity"> | $Enums.ShareActivityKind
|
|
userId?: Prisma.StringNullableFilter<"ShareActivity"> | string | null
|
|
assetId?: Prisma.StringNullableFilter<"ShareActivity"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"ShareActivity"> | Date | string
|
|
shareLink?: Prisma.XOR<Prisma.ShareLinkScalarRelationFilter, Prisma.ShareLinkWhereInput>
|
|
}, "id">
|
|
|
|
export type ShareActivityOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
shareLinkId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
assetId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
_count?: Prisma.ShareActivityCountOrderByAggregateInput
|
|
_max?: Prisma.ShareActivityMaxOrderByAggregateInput
|
|
_min?: Prisma.ShareActivityMinOrderByAggregateInput
|
|
}
|
|
|
|
export type ShareActivityScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.ShareActivityScalarWhereWithAggregatesInput | Prisma.ShareActivityScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.ShareActivityScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.ShareActivityScalarWhereWithAggregatesInput | Prisma.ShareActivityScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"ShareActivity"> | string
|
|
shareLinkId?: Prisma.StringWithAggregatesFilter<"ShareActivity"> | string
|
|
kind?: Prisma.EnumShareActivityKindWithAggregatesFilter<"ShareActivity"> | $Enums.ShareActivityKind
|
|
userId?: Prisma.StringNullableWithAggregatesFilter<"ShareActivity"> | string | null
|
|
assetId?: Prisma.StringNullableWithAggregatesFilter<"ShareActivity"> | string | null
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ShareActivity"> | Date | string
|
|
}
|
|
|
|
export type ShareActivityCreateInput = {
|
|
id?: string
|
|
kind: $Enums.ShareActivityKind
|
|
userId?: string | null
|
|
assetId?: string | null
|
|
createdAt?: Date | string
|
|
shareLink: Prisma.ShareLinkCreateNestedOneWithoutActivitiesInput
|
|
}
|
|
|
|
export type ShareActivityUncheckedCreateInput = {
|
|
id?: string
|
|
shareLinkId: string
|
|
kind: $Enums.ShareActivityKind
|
|
userId?: string | null
|
|
assetId?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type ShareActivityUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumShareActivityKindFieldUpdateOperationsInput | $Enums.ShareActivityKind
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
shareLink?: Prisma.ShareLinkUpdateOneRequiredWithoutActivitiesNestedInput
|
|
}
|
|
|
|
export type ShareActivityUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
shareLinkId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumShareActivityKindFieldUpdateOperationsInput | $Enums.ShareActivityKind
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ShareActivityCreateManyInput = {
|
|
id?: string
|
|
shareLinkId: string
|
|
kind: $Enums.ShareActivityKind
|
|
userId?: string | null
|
|
assetId?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type ShareActivityUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumShareActivityKindFieldUpdateOperationsInput | $Enums.ShareActivityKind
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ShareActivityUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
shareLinkId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumShareActivityKindFieldUpdateOperationsInput | $Enums.ShareActivityKind
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ShareActivityListRelationFilter = {
|
|
every?: Prisma.ShareActivityWhereInput
|
|
some?: Prisma.ShareActivityWhereInput
|
|
none?: Prisma.ShareActivityWhereInput
|
|
}
|
|
|
|
export type ShareActivityOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ShareActivityCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
shareLinkId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ShareActivityMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
shareLinkId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ShareActivityMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
shareLinkId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
assetId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type ShareActivityCreateNestedManyWithoutShareLinkInput = {
|
|
create?: Prisma.XOR<Prisma.ShareActivityCreateWithoutShareLinkInput, Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput> | Prisma.ShareActivityCreateWithoutShareLinkInput[] | Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput[]
|
|
connectOrCreate?: Prisma.ShareActivityCreateOrConnectWithoutShareLinkInput | Prisma.ShareActivityCreateOrConnectWithoutShareLinkInput[]
|
|
createMany?: Prisma.ShareActivityCreateManyShareLinkInputEnvelope
|
|
connect?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
}
|
|
|
|
export type ShareActivityUncheckedCreateNestedManyWithoutShareLinkInput = {
|
|
create?: Prisma.XOR<Prisma.ShareActivityCreateWithoutShareLinkInput, Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput> | Prisma.ShareActivityCreateWithoutShareLinkInput[] | Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput[]
|
|
connectOrCreate?: Prisma.ShareActivityCreateOrConnectWithoutShareLinkInput | Prisma.ShareActivityCreateOrConnectWithoutShareLinkInput[]
|
|
createMany?: Prisma.ShareActivityCreateManyShareLinkInputEnvelope
|
|
connect?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
}
|
|
|
|
export type ShareActivityUpdateManyWithoutShareLinkNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ShareActivityCreateWithoutShareLinkInput, Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput> | Prisma.ShareActivityCreateWithoutShareLinkInput[] | Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput[]
|
|
connectOrCreate?: Prisma.ShareActivityCreateOrConnectWithoutShareLinkInput | Prisma.ShareActivityCreateOrConnectWithoutShareLinkInput[]
|
|
upsert?: Prisma.ShareActivityUpsertWithWhereUniqueWithoutShareLinkInput | Prisma.ShareActivityUpsertWithWhereUniqueWithoutShareLinkInput[]
|
|
createMany?: Prisma.ShareActivityCreateManyShareLinkInputEnvelope
|
|
set?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
disconnect?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
delete?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
connect?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
update?: Prisma.ShareActivityUpdateWithWhereUniqueWithoutShareLinkInput | Prisma.ShareActivityUpdateWithWhereUniqueWithoutShareLinkInput[]
|
|
updateMany?: Prisma.ShareActivityUpdateManyWithWhereWithoutShareLinkInput | Prisma.ShareActivityUpdateManyWithWhereWithoutShareLinkInput[]
|
|
deleteMany?: Prisma.ShareActivityScalarWhereInput | Prisma.ShareActivityScalarWhereInput[]
|
|
}
|
|
|
|
export type ShareActivityUncheckedUpdateManyWithoutShareLinkNestedInput = {
|
|
create?: Prisma.XOR<Prisma.ShareActivityCreateWithoutShareLinkInput, Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput> | Prisma.ShareActivityCreateWithoutShareLinkInput[] | Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput[]
|
|
connectOrCreate?: Prisma.ShareActivityCreateOrConnectWithoutShareLinkInput | Prisma.ShareActivityCreateOrConnectWithoutShareLinkInput[]
|
|
upsert?: Prisma.ShareActivityUpsertWithWhereUniqueWithoutShareLinkInput | Prisma.ShareActivityUpsertWithWhereUniqueWithoutShareLinkInput[]
|
|
createMany?: Prisma.ShareActivityCreateManyShareLinkInputEnvelope
|
|
set?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
disconnect?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
delete?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
connect?: Prisma.ShareActivityWhereUniqueInput | Prisma.ShareActivityWhereUniqueInput[]
|
|
update?: Prisma.ShareActivityUpdateWithWhereUniqueWithoutShareLinkInput | Prisma.ShareActivityUpdateWithWhereUniqueWithoutShareLinkInput[]
|
|
updateMany?: Prisma.ShareActivityUpdateManyWithWhereWithoutShareLinkInput | Prisma.ShareActivityUpdateManyWithWhereWithoutShareLinkInput[]
|
|
deleteMany?: Prisma.ShareActivityScalarWhereInput | Prisma.ShareActivityScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumShareActivityKindFieldUpdateOperationsInput = {
|
|
set?: $Enums.ShareActivityKind
|
|
}
|
|
|
|
export type ShareActivityCreateWithoutShareLinkInput = {
|
|
id?: string
|
|
kind: $Enums.ShareActivityKind
|
|
userId?: string | null
|
|
assetId?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type ShareActivityUncheckedCreateWithoutShareLinkInput = {
|
|
id?: string
|
|
kind: $Enums.ShareActivityKind
|
|
userId?: string | null
|
|
assetId?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type ShareActivityCreateOrConnectWithoutShareLinkInput = {
|
|
where: Prisma.ShareActivityWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.ShareActivityCreateWithoutShareLinkInput, Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput>
|
|
}
|
|
|
|
export type ShareActivityCreateManyShareLinkInputEnvelope = {
|
|
data: Prisma.ShareActivityCreateManyShareLinkInput | Prisma.ShareActivityCreateManyShareLinkInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type ShareActivityUpsertWithWhereUniqueWithoutShareLinkInput = {
|
|
where: Prisma.ShareActivityWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.ShareActivityUpdateWithoutShareLinkInput, Prisma.ShareActivityUncheckedUpdateWithoutShareLinkInput>
|
|
create: Prisma.XOR<Prisma.ShareActivityCreateWithoutShareLinkInput, Prisma.ShareActivityUncheckedCreateWithoutShareLinkInput>
|
|
}
|
|
|
|
export type ShareActivityUpdateWithWhereUniqueWithoutShareLinkInput = {
|
|
where: Prisma.ShareActivityWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.ShareActivityUpdateWithoutShareLinkInput, Prisma.ShareActivityUncheckedUpdateWithoutShareLinkInput>
|
|
}
|
|
|
|
export type ShareActivityUpdateManyWithWhereWithoutShareLinkInput = {
|
|
where: Prisma.ShareActivityScalarWhereInput
|
|
data: Prisma.XOR<Prisma.ShareActivityUpdateManyMutationInput, Prisma.ShareActivityUncheckedUpdateManyWithoutShareLinkInput>
|
|
}
|
|
|
|
export type ShareActivityScalarWhereInput = {
|
|
AND?: Prisma.ShareActivityScalarWhereInput | Prisma.ShareActivityScalarWhereInput[]
|
|
OR?: Prisma.ShareActivityScalarWhereInput[]
|
|
NOT?: Prisma.ShareActivityScalarWhereInput | Prisma.ShareActivityScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"ShareActivity"> | string
|
|
shareLinkId?: Prisma.StringFilter<"ShareActivity"> | string
|
|
kind?: Prisma.EnumShareActivityKindFilter<"ShareActivity"> | $Enums.ShareActivityKind
|
|
userId?: Prisma.StringNullableFilter<"ShareActivity"> | string | null
|
|
assetId?: Prisma.StringNullableFilter<"ShareActivity"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"ShareActivity"> | Date | string
|
|
}
|
|
|
|
export type ShareActivityCreateManyShareLinkInput = {
|
|
id?: string
|
|
kind: $Enums.ShareActivityKind
|
|
userId?: string | null
|
|
assetId?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type ShareActivityUpdateWithoutShareLinkInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumShareActivityKindFieldUpdateOperationsInput | $Enums.ShareActivityKind
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ShareActivityUncheckedUpdateWithoutShareLinkInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumShareActivityKindFieldUpdateOperationsInput | $Enums.ShareActivityKind
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type ShareActivityUncheckedUpdateManyWithoutShareLinkInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumShareActivityKindFieldUpdateOperationsInput | $Enums.ShareActivityKind
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type ShareActivitySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
shareLinkId?: boolean
|
|
kind?: boolean
|
|
userId?: boolean
|
|
assetId?: boolean
|
|
createdAt?: boolean
|
|
shareLink?: boolean | Prisma.ShareLinkDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["shareActivity"]>
|
|
|
|
export type ShareActivitySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
shareLinkId?: boolean
|
|
kind?: boolean
|
|
userId?: boolean
|
|
assetId?: boolean
|
|
createdAt?: boolean
|
|
shareLink?: boolean | Prisma.ShareLinkDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["shareActivity"]>
|
|
|
|
export type ShareActivitySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
shareLinkId?: boolean
|
|
kind?: boolean
|
|
userId?: boolean
|
|
assetId?: boolean
|
|
createdAt?: boolean
|
|
shareLink?: boolean | Prisma.ShareLinkDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["shareActivity"]>
|
|
|
|
export type ShareActivitySelectScalar = {
|
|
id?: boolean
|
|
shareLinkId?: boolean
|
|
kind?: boolean
|
|
userId?: boolean
|
|
assetId?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type ShareActivityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "shareLinkId" | "kind" | "userId" | "assetId" | "createdAt", ExtArgs["result"]["shareActivity"]>
|
|
export type ShareActivityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
shareLink?: boolean | Prisma.ShareLinkDefaultArgs<ExtArgs>
|
|
}
|
|
export type ShareActivityIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
shareLink?: boolean | Prisma.ShareLinkDefaultArgs<ExtArgs>
|
|
}
|
|
export type ShareActivityIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
shareLink?: boolean | Prisma.ShareLinkDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ShareActivityPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "ShareActivity"
|
|
objects: {
|
|
shareLink: Prisma.$ShareLinkPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
shareLinkId: string
|
|
kind: $Enums.ShareActivityKind
|
|
userId: string | null
|
|
assetId: string | null
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["shareActivity"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type ShareActivityGetPayload<S extends boolean | null | undefined | ShareActivityDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload, S>
|
|
|
|
export type ShareActivityCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<ShareActivityFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ShareActivityCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ShareActivityDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShareActivity'], meta: { name: 'ShareActivity' } }
|
|
/**
|
|
* Find zero or one ShareActivity that matches the filter.
|
|
* @param {ShareActivityFindUniqueArgs} args - Arguments to find a ShareActivity
|
|
* @example
|
|
* // Get one ShareActivity
|
|
* const shareActivity = await prisma.shareActivity.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends ShareActivityFindUniqueArgs>(args: Prisma.SelectSubset<T, ShareActivityFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ShareActivityClient<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one ShareActivity that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {ShareActivityFindUniqueOrThrowArgs} args - Arguments to find a ShareActivity
|
|
* @example
|
|
* // Get one ShareActivity
|
|
* const shareActivity = await prisma.shareActivity.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends ShareActivityFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ShareActivityFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShareActivityClient<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ShareActivity that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareActivityFindFirstArgs} args - Arguments to find a ShareActivity
|
|
* @example
|
|
* // Get one ShareActivity
|
|
* const shareActivity = await prisma.shareActivity.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends ShareActivityFindFirstArgs>(args?: Prisma.SelectSubset<T, ShareActivityFindFirstArgs<ExtArgs>>): Prisma.Prisma__ShareActivityClient<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first ShareActivity that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareActivityFindFirstOrThrowArgs} args - Arguments to find a ShareActivity
|
|
* @example
|
|
* // Get one ShareActivity
|
|
* const shareActivity = await prisma.shareActivity.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends ShareActivityFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ShareActivityFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShareActivityClient<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more ShareActivities that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareActivityFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all ShareActivities
|
|
* const shareActivities = await prisma.shareActivity.findMany()
|
|
*
|
|
* // Get first 10 ShareActivities
|
|
* const shareActivities = await prisma.shareActivity.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const shareActivityWithIdOnly = await prisma.shareActivity.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends ShareActivityFindManyArgs>(args?: Prisma.SelectSubset<T, ShareActivityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a ShareActivity.
|
|
* @param {ShareActivityCreateArgs} args - Arguments to create a ShareActivity.
|
|
* @example
|
|
* // Create one ShareActivity
|
|
* const ShareActivity = await prisma.shareActivity.create({
|
|
* data: {
|
|
* // ... data to create a ShareActivity
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends ShareActivityCreateArgs>(args: Prisma.SelectSubset<T, ShareActivityCreateArgs<ExtArgs>>): Prisma.Prisma__ShareActivityClient<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many ShareActivities.
|
|
* @param {ShareActivityCreateManyArgs} args - Arguments to create many ShareActivities.
|
|
* @example
|
|
* // Create many ShareActivities
|
|
* const shareActivity = await prisma.shareActivity.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends ShareActivityCreateManyArgs>(args?: Prisma.SelectSubset<T, ShareActivityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many ShareActivities and returns the data saved in the database.
|
|
* @param {ShareActivityCreateManyAndReturnArgs} args - Arguments to create many ShareActivities.
|
|
* @example
|
|
* // Create many ShareActivities
|
|
* const shareActivity = await prisma.shareActivity.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many ShareActivities and only return the `id`
|
|
* const shareActivityWithIdOnly = await prisma.shareActivity.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends ShareActivityCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ShareActivityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a ShareActivity.
|
|
* @param {ShareActivityDeleteArgs} args - Arguments to delete one ShareActivity.
|
|
* @example
|
|
* // Delete one ShareActivity
|
|
* const ShareActivity = await prisma.shareActivity.delete({
|
|
* where: {
|
|
* // ... filter to delete one ShareActivity
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends ShareActivityDeleteArgs>(args: Prisma.SelectSubset<T, ShareActivityDeleteArgs<ExtArgs>>): Prisma.Prisma__ShareActivityClient<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one ShareActivity.
|
|
* @param {ShareActivityUpdateArgs} args - Arguments to update one ShareActivity.
|
|
* @example
|
|
* // Update one ShareActivity
|
|
* const shareActivity = await prisma.shareActivity.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends ShareActivityUpdateArgs>(args: Prisma.SelectSubset<T, ShareActivityUpdateArgs<ExtArgs>>): Prisma.Prisma__ShareActivityClient<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more ShareActivities.
|
|
* @param {ShareActivityDeleteManyArgs} args - Arguments to filter ShareActivities to delete.
|
|
* @example
|
|
* // Delete a few ShareActivities
|
|
* const { count } = await prisma.shareActivity.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends ShareActivityDeleteManyArgs>(args?: Prisma.SelectSubset<T, ShareActivityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ShareActivities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareActivityUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many ShareActivities
|
|
* const shareActivity = await prisma.shareActivity.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends ShareActivityUpdateManyArgs>(args: Prisma.SelectSubset<T, ShareActivityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more ShareActivities and returns the data updated in the database.
|
|
* @param {ShareActivityUpdateManyAndReturnArgs} args - Arguments to update many ShareActivities.
|
|
* @example
|
|
* // Update many ShareActivities
|
|
* const shareActivity = await prisma.shareActivity.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more ShareActivities and only return the `id`
|
|
* const shareActivityWithIdOnly = await prisma.shareActivity.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends ShareActivityUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ShareActivityUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one ShareActivity.
|
|
* @param {ShareActivityUpsertArgs} args - Arguments to update or create a ShareActivity.
|
|
* @example
|
|
* // Update or create a ShareActivity
|
|
* const shareActivity = await prisma.shareActivity.upsert({
|
|
* create: {
|
|
* // ... data to create a ShareActivity
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the ShareActivity we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends ShareActivityUpsertArgs>(args: Prisma.SelectSubset<T, ShareActivityUpsertArgs<ExtArgs>>): Prisma.Prisma__ShareActivityClient<runtime.Types.Result.GetResult<Prisma.$ShareActivityPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of ShareActivities.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareActivityCountArgs} args - Arguments to filter ShareActivities to count.
|
|
* @example
|
|
* // Count the number of ShareActivities
|
|
* const count = await prisma.shareActivity.count({
|
|
* where: {
|
|
* // ... the filter for the ShareActivities we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends ShareActivityCountArgs>(
|
|
args?: Prisma.Subset<T, ShareActivityCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], ShareActivityCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a ShareActivity.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareActivityAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends ShareActivityAggregateArgs>(args: Prisma.Subset<T, ShareActivityAggregateArgs>): Prisma.PrismaPromise<GetShareActivityAggregateType<T>>
|
|
|
|
/**
|
|
* Group by ShareActivity.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShareActivityGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends ShareActivityGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: ShareActivityGroupByArgs['orderBy'] }
|
|
: { orderBy?: ShareActivityGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, ShareActivityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShareActivityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the ShareActivity model
|
|
*/
|
|
readonly fields: ShareActivityFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for ShareActivity.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__ShareActivityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
shareLink<T extends Prisma.ShareLinkDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShareLinkDefaultArgs<ExtArgs>>): Prisma.Prisma__ShareLinkClient<runtime.Types.Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the ShareActivity model
|
|
*/
|
|
export interface ShareActivityFieldRefs {
|
|
readonly id: Prisma.FieldRef<"ShareActivity", 'String'>
|
|
readonly shareLinkId: Prisma.FieldRef<"ShareActivity", 'String'>
|
|
readonly kind: Prisma.FieldRef<"ShareActivity", 'ShareActivityKind'>
|
|
readonly userId: Prisma.FieldRef<"ShareActivity", 'String'>
|
|
readonly assetId: Prisma.FieldRef<"ShareActivity", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"ShareActivity", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ShareActivity findUnique
|
|
*/
|
|
export type ShareActivityFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareActivity to fetch.
|
|
*/
|
|
where: Prisma.ShareActivityWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ShareActivity findUniqueOrThrow
|
|
*/
|
|
export type ShareActivityFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareActivity to fetch.
|
|
*/
|
|
where: Prisma.ShareActivityWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ShareActivity findFirst
|
|
*/
|
|
export type ShareActivityFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareActivity to fetch.
|
|
*/
|
|
where?: Prisma.ShareActivityWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ShareActivities to fetch.
|
|
*/
|
|
orderBy?: Prisma.ShareActivityOrderByWithRelationInput | Prisma.ShareActivityOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ShareActivities.
|
|
*/
|
|
cursor?: Prisma.ShareActivityWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ShareActivities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ShareActivities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ShareActivities.
|
|
*/
|
|
distinct?: Prisma.ShareActivityScalarFieldEnum | Prisma.ShareActivityScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ShareActivity findFirstOrThrow
|
|
*/
|
|
export type ShareActivityFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareActivity to fetch.
|
|
*/
|
|
where?: Prisma.ShareActivityWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ShareActivities to fetch.
|
|
*/
|
|
orderBy?: Prisma.ShareActivityOrderByWithRelationInput | Prisma.ShareActivityOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for ShareActivities.
|
|
*/
|
|
cursor?: Prisma.ShareActivityWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ShareActivities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ShareActivities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ShareActivities.
|
|
*/
|
|
distinct?: Prisma.ShareActivityScalarFieldEnum | Prisma.ShareActivityScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ShareActivity findMany
|
|
*/
|
|
export type ShareActivityFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ShareActivities to fetch.
|
|
*/
|
|
where?: Prisma.ShareActivityWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of ShareActivities to fetch.
|
|
*/
|
|
orderBy?: Prisma.ShareActivityOrderByWithRelationInput | Prisma.ShareActivityOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing ShareActivities.
|
|
*/
|
|
cursor?: Prisma.ShareActivityWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` ShareActivities from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` ShareActivities.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of ShareActivities.
|
|
*/
|
|
distinct?: Prisma.ShareActivityScalarFieldEnum | Prisma.ShareActivityScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ShareActivity create
|
|
*/
|
|
export type ShareActivityCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ShareActivity.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ShareActivityCreateInput, Prisma.ShareActivityUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ShareActivity createMany
|
|
*/
|
|
export type ShareActivityCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ShareActivities.
|
|
*/
|
|
data: Prisma.ShareActivityCreateManyInput | Prisma.ShareActivityCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ShareActivity createManyAndReturn
|
|
*/
|
|
export type ShareActivityCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many ShareActivities.
|
|
*/
|
|
data: Prisma.ShareActivityCreateManyInput | Prisma.ShareActivityCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ShareActivity update
|
|
*/
|
|
export type ShareActivityUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ShareActivity.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ShareActivityUpdateInput, Prisma.ShareActivityUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ShareActivity to update.
|
|
*/
|
|
where: Prisma.ShareActivityWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ShareActivity updateMany
|
|
*/
|
|
export type ShareActivityUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ShareActivities.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ShareActivityUpdateManyMutationInput, Prisma.ShareActivityUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ShareActivities to update
|
|
*/
|
|
where?: Prisma.ShareActivityWhereInput
|
|
/**
|
|
* Limit how many ShareActivities to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ShareActivity updateManyAndReturn
|
|
*/
|
|
export type ShareActivityUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update ShareActivities.
|
|
*/
|
|
data: Prisma.XOR<Prisma.ShareActivityUpdateManyMutationInput, Prisma.ShareActivityUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ShareActivities to update
|
|
*/
|
|
where?: Prisma.ShareActivityWhereInput
|
|
/**
|
|
* Limit how many ShareActivities to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ShareActivity upsert
|
|
*/
|
|
export type ShareActivityUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the ShareActivity to update in case it exists.
|
|
*/
|
|
where: Prisma.ShareActivityWhereUniqueInput
|
|
/**
|
|
* In case the ShareActivity found by the `where` argument doesn't exist, create a new ShareActivity with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.ShareActivityCreateInput, Prisma.ShareActivityUncheckedCreateInput>
|
|
/**
|
|
* In case the ShareActivity was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.ShareActivityUpdateInput, Prisma.ShareActivityUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ShareActivity delete
|
|
*/
|
|
export type ShareActivityDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ShareActivity to delete.
|
|
*/
|
|
where: Prisma.ShareActivityWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ShareActivity deleteMany
|
|
*/
|
|
export type ShareActivityDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ShareActivities to delete
|
|
*/
|
|
where?: Prisma.ShareActivityWhereInput
|
|
/**
|
|
* Limit how many ShareActivities to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* ShareActivity without action
|
|
*/
|
|
export type ShareActivityDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareActivity
|
|
*/
|
|
select?: Prisma.ShareActivitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareActivity
|
|
*/
|
|
omit?: Prisma.ShareActivityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareActivityInclude<ExtArgs> | null
|
|
}
|