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

1365 lines
47 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `CollabDoc` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model CollabDoc
*
*/
export type CollabDocModel = runtime.Types.Result.DefaultSelection<Prisma.$CollabDocPayload>
export type AggregateCollabDoc = {
_count: CollabDocCountAggregateOutputType | null
_avg: CollabDocAvgAggregateOutputType | null
_sum: CollabDocSumAggregateOutputType | null
_min: CollabDocMinAggregateOutputType | null
_max: CollabDocMaxAggregateOutputType | null
}
export type CollabDocAvgAggregateOutputType = {
version: number | null
}
export type CollabDocSumAggregateOutputType = {
version: number | null
}
export type CollabDocMinAggregateOutputType = {
id: string | null
tenantId: string | null
resourceType: string | null
resourceId: string | null
ydocState: runtime.Bytes | null
version: number | null
lastUpdatedAt: Date | null
lastSnapshotAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type CollabDocMaxAggregateOutputType = {
id: string | null
tenantId: string | null
resourceType: string | null
resourceId: string | null
ydocState: runtime.Bytes | null
version: number | null
lastUpdatedAt: Date | null
lastSnapshotAt: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type CollabDocCountAggregateOutputType = {
id: number
tenantId: number
resourceType: number
resourceId: number
ydocState: number
version: number
lastUpdatedAt: number
lastSnapshotAt: number
createdAt: number
updatedAt: number
_all: number
}
export type CollabDocAvgAggregateInputType = {
version?: true
}
export type CollabDocSumAggregateInputType = {
version?: true
}
export type CollabDocMinAggregateInputType = {
id?: true
tenantId?: true
resourceType?: true
resourceId?: true
ydocState?: true
version?: true
lastUpdatedAt?: true
lastSnapshotAt?: true
createdAt?: true
updatedAt?: true
}
export type CollabDocMaxAggregateInputType = {
id?: true
tenantId?: true
resourceType?: true
resourceId?: true
ydocState?: true
version?: true
lastUpdatedAt?: true
lastSnapshotAt?: true
createdAt?: true
updatedAt?: true
}
export type CollabDocCountAggregateInputType = {
id?: true
tenantId?: true
resourceType?: true
resourceId?: true
ydocState?: true
version?: true
lastUpdatedAt?: true
lastSnapshotAt?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type CollabDocAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CollabDoc to aggregate.
*/
where?: Prisma.CollabDocWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CollabDocs to fetch.
*/
orderBy?: Prisma.CollabDocOrderByWithRelationInput | Prisma.CollabDocOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.CollabDocWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CollabDocs 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` CollabDocs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned CollabDocs
**/
_count?: true | CollabDocCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: CollabDocAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: CollabDocSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: CollabDocMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: CollabDocMaxAggregateInputType
}
export type GetCollabDocAggregateType<T extends CollabDocAggregateArgs> = {
[P in keyof T & keyof AggregateCollabDoc]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateCollabDoc[P]>
: Prisma.GetScalarType<T[P], AggregateCollabDoc[P]>
}
export type CollabDocGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CollabDocWhereInput
orderBy?: Prisma.CollabDocOrderByWithAggregationInput | Prisma.CollabDocOrderByWithAggregationInput[]
by: Prisma.CollabDocScalarFieldEnum[] | Prisma.CollabDocScalarFieldEnum
having?: Prisma.CollabDocScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: CollabDocCountAggregateInputType | true
_avg?: CollabDocAvgAggregateInputType
_sum?: CollabDocSumAggregateInputType
_min?: CollabDocMinAggregateInputType
_max?: CollabDocMaxAggregateInputType
}
export type CollabDocGroupByOutputType = {
id: string
tenantId: string
resourceType: string
resourceId: string
ydocState: runtime.Bytes
version: number
lastUpdatedAt: Date
lastSnapshotAt: Date | null
createdAt: Date
updatedAt: Date
_count: CollabDocCountAggregateOutputType | null
_avg: CollabDocAvgAggregateOutputType | null
_sum: CollabDocSumAggregateOutputType | null
_min: CollabDocMinAggregateOutputType | null
_max: CollabDocMaxAggregateOutputType | null
}
export type GetCollabDocGroupByPayload<T extends CollabDocGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<CollabDocGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof CollabDocGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], CollabDocGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], CollabDocGroupByOutputType[P]>
}
>
>
export type CollabDocWhereInput = {
AND?: Prisma.CollabDocWhereInput | Prisma.CollabDocWhereInput[]
OR?: Prisma.CollabDocWhereInput[]
NOT?: Prisma.CollabDocWhereInput | Prisma.CollabDocWhereInput[]
id?: Prisma.StringFilter<"CollabDoc"> | string
tenantId?: Prisma.StringFilter<"CollabDoc"> | string
resourceType?: Prisma.StringFilter<"CollabDoc"> | string
resourceId?: Prisma.StringFilter<"CollabDoc"> | string
ydocState?: Prisma.BytesFilter<"CollabDoc"> | runtime.Bytes
version?: Prisma.IntFilter<"CollabDoc"> | number
lastUpdatedAt?: Prisma.DateTimeFilter<"CollabDoc"> | Date | string
lastSnapshotAt?: Prisma.DateTimeNullableFilter<"CollabDoc"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"CollabDoc"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CollabDoc"> | Date | string
}
export type CollabDocOrderByWithRelationInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
resourceType?: Prisma.SortOrder
resourceId?: Prisma.SortOrder
ydocState?: Prisma.SortOrder
version?: Prisma.SortOrder
lastUpdatedAt?: Prisma.SortOrder
lastSnapshotAt?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CollabDocWhereUniqueInput = Prisma.AtLeast<{
id?: string
tenantId_resourceType_resourceId?: Prisma.CollabDocTenantIdResourceTypeResourceIdCompoundUniqueInput
AND?: Prisma.CollabDocWhereInput | Prisma.CollabDocWhereInput[]
OR?: Prisma.CollabDocWhereInput[]
NOT?: Prisma.CollabDocWhereInput | Prisma.CollabDocWhereInput[]
tenantId?: Prisma.StringFilter<"CollabDoc"> | string
resourceType?: Prisma.StringFilter<"CollabDoc"> | string
resourceId?: Prisma.StringFilter<"CollabDoc"> | string
ydocState?: Prisma.BytesFilter<"CollabDoc"> | runtime.Bytes
version?: Prisma.IntFilter<"CollabDoc"> | number
lastUpdatedAt?: Prisma.DateTimeFilter<"CollabDoc"> | Date | string
lastSnapshotAt?: Prisma.DateTimeNullableFilter<"CollabDoc"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"CollabDoc"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"CollabDoc"> | Date | string
}, "id" | "tenantId_resourceType_resourceId">
export type CollabDocOrderByWithAggregationInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
resourceType?: Prisma.SortOrder
resourceId?: Prisma.SortOrder
ydocState?: Prisma.SortOrder
version?: Prisma.SortOrder
lastUpdatedAt?: Prisma.SortOrder
lastSnapshotAt?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.CollabDocCountOrderByAggregateInput
_avg?: Prisma.CollabDocAvgOrderByAggregateInput
_max?: Prisma.CollabDocMaxOrderByAggregateInput
_min?: Prisma.CollabDocMinOrderByAggregateInput
_sum?: Prisma.CollabDocSumOrderByAggregateInput
}
export type CollabDocScalarWhereWithAggregatesInput = {
AND?: Prisma.CollabDocScalarWhereWithAggregatesInput | Prisma.CollabDocScalarWhereWithAggregatesInput[]
OR?: Prisma.CollabDocScalarWhereWithAggregatesInput[]
NOT?: Prisma.CollabDocScalarWhereWithAggregatesInput | Prisma.CollabDocScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"CollabDoc"> | string
tenantId?: Prisma.StringWithAggregatesFilter<"CollabDoc"> | string
resourceType?: Prisma.StringWithAggregatesFilter<"CollabDoc"> | string
resourceId?: Prisma.StringWithAggregatesFilter<"CollabDoc"> | string
ydocState?: Prisma.BytesWithAggregatesFilter<"CollabDoc"> | runtime.Bytes
version?: Prisma.IntWithAggregatesFilter<"CollabDoc"> | number
lastUpdatedAt?: Prisma.DateTimeWithAggregatesFilter<"CollabDoc"> | Date | string
lastSnapshotAt?: Prisma.DateTimeNullableWithAggregatesFilter<"CollabDoc"> | Date | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CollabDoc"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CollabDoc"> | Date | string
}
export type CollabDocCreateInput = {
id?: string
tenantId: string
resourceType: string
resourceId: string
ydocState: runtime.Bytes
version?: number
lastUpdatedAt?: Date | string
lastSnapshotAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type CollabDocUncheckedCreateInput = {
id?: string
tenantId: string
resourceType: string
resourceId: string
ydocState: runtime.Bytes
version?: number
lastUpdatedAt?: Date | string
lastSnapshotAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type CollabDocUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
resourceType?: Prisma.StringFieldUpdateOperationsInput | string
resourceId?: Prisma.StringFieldUpdateOperationsInput | string
ydocState?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
version?: Prisma.IntFieldUpdateOperationsInput | number
lastUpdatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
lastSnapshotAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CollabDocUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
resourceType?: Prisma.StringFieldUpdateOperationsInput | string
resourceId?: Prisma.StringFieldUpdateOperationsInput | string
ydocState?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
version?: Prisma.IntFieldUpdateOperationsInput | number
lastUpdatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
lastSnapshotAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CollabDocCreateManyInput = {
id?: string
tenantId: string
resourceType: string
resourceId: string
ydocState: runtime.Bytes
version?: number
lastUpdatedAt?: Date | string
lastSnapshotAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type CollabDocUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
resourceType?: Prisma.StringFieldUpdateOperationsInput | string
resourceId?: Prisma.StringFieldUpdateOperationsInput | string
ydocState?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
version?: Prisma.IntFieldUpdateOperationsInput | number
lastUpdatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
lastSnapshotAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CollabDocUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
resourceType?: Prisma.StringFieldUpdateOperationsInput | string
resourceId?: Prisma.StringFieldUpdateOperationsInput | string
ydocState?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
version?: Prisma.IntFieldUpdateOperationsInput | number
lastUpdatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
lastSnapshotAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CollabDocTenantIdResourceTypeResourceIdCompoundUniqueInput = {
tenantId: string
resourceType: string
resourceId: string
}
export type CollabDocCountOrderByAggregateInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
resourceType?: Prisma.SortOrder
resourceId?: Prisma.SortOrder
ydocState?: Prisma.SortOrder
version?: Prisma.SortOrder
lastUpdatedAt?: Prisma.SortOrder
lastSnapshotAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CollabDocAvgOrderByAggregateInput = {
version?: Prisma.SortOrder
}
export type CollabDocMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
resourceType?: Prisma.SortOrder
resourceId?: Prisma.SortOrder
ydocState?: Prisma.SortOrder
version?: Prisma.SortOrder
lastUpdatedAt?: Prisma.SortOrder
lastSnapshotAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CollabDocMinOrderByAggregateInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
resourceType?: Prisma.SortOrder
resourceId?: Prisma.SortOrder
ydocState?: Prisma.SortOrder
version?: Prisma.SortOrder
lastUpdatedAt?: Prisma.SortOrder
lastSnapshotAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type CollabDocSumOrderByAggregateInput = {
version?: Prisma.SortOrder
}
export type BytesFieldUpdateOperationsInput = {
set?: runtime.Bytes
}
export type CollabDocSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
tenantId?: boolean
resourceType?: boolean
resourceId?: boolean
ydocState?: boolean
version?: boolean
lastUpdatedAt?: boolean
lastSnapshotAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["collabDoc"]>
export type CollabDocSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
tenantId?: boolean
resourceType?: boolean
resourceId?: boolean
ydocState?: boolean
version?: boolean
lastUpdatedAt?: boolean
lastSnapshotAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["collabDoc"]>
export type CollabDocSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
tenantId?: boolean
resourceType?: boolean
resourceId?: boolean
ydocState?: boolean
version?: boolean
lastUpdatedAt?: boolean
lastSnapshotAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["collabDoc"]>
export type CollabDocSelectScalar = {
id?: boolean
tenantId?: boolean
resourceType?: boolean
resourceId?: boolean
ydocState?: boolean
version?: boolean
lastUpdatedAt?: boolean
lastSnapshotAt?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type CollabDocOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "resourceType" | "resourceId" | "ydocState" | "version" | "lastUpdatedAt" | "lastSnapshotAt" | "createdAt" | "updatedAt", ExtArgs["result"]["collabDoc"]>
export type $CollabDocPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "CollabDoc"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
tenantId: string
/**
* Logical resource family the doc belongs to. Examples today:
* "kb-article" | "crm-note" | "workflow" — extensible without schema-changes.
*/
resourceType: string
/**
* Resource primary-key inside `resourceType`. Free-form; consumers
* embed CUIDs / UUIDs / slugs depending on the upstream entity.
*/
resourceId: string
/**
* Encoded Y.js update payload — `Y.encodeStateAsUpdate(doc)`.
* Persisted as `bytea`; capped at HOCUSPOCUS_MAX_PAYLOAD_BYTES on store.
*/
ydocState: runtime.Bytes
/**
* Monotonic update counter, incremented per store-call. Surfaces in
* admin dashboards for "is this doc still being edited" queries.
*/
version: number
/**
* Touched on every store-call. `lastSnapshotAt` lags behind for the
* snapshot/compaction cadence (separate task #59 step 5).
*/
lastUpdatedAt: Date
lastSnapshotAt: Date | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["collabDoc"]>
composites: {}
}
export type CollabDocGetPayload<S extends boolean | null | undefined | CollabDocDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CollabDocPayload, S>
export type CollabDocCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<CollabDocFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: CollabDocCountAggregateInputType | true
}
export interface CollabDocDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CollabDoc'], meta: { name: 'CollabDoc' } }
/**
* Find zero or one CollabDoc that matches the filter.
* @param {CollabDocFindUniqueArgs} args - Arguments to find a CollabDoc
* @example
* // Get one CollabDoc
* const collabDoc = await prisma.collabDoc.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends CollabDocFindUniqueArgs>(args: Prisma.SelectSubset<T, CollabDocFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CollabDocClient<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one CollabDoc that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {CollabDocFindUniqueOrThrowArgs} args - Arguments to find a CollabDoc
* @example
* // Get one CollabDoc
* const collabDoc = await prisma.collabDoc.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends CollabDocFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CollabDocFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CollabDocClient<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first CollabDoc 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 {CollabDocFindFirstArgs} args - Arguments to find a CollabDoc
* @example
* // Get one CollabDoc
* const collabDoc = await prisma.collabDoc.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends CollabDocFindFirstArgs>(args?: Prisma.SelectSubset<T, CollabDocFindFirstArgs<ExtArgs>>): Prisma.Prisma__CollabDocClient<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first CollabDoc 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 {CollabDocFindFirstOrThrowArgs} args - Arguments to find a CollabDoc
* @example
* // Get one CollabDoc
* const collabDoc = await prisma.collabDoc.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends CollabDocFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CollabDocFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CollabDocClient<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more CollabDocs 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 {CollabDocFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all CollabDocs
* const collabDocs = await prisma.collabDoc.findMany()
*
* // Get first 10 CollabDocs
* const collabDocs = await prisma.collabDoc.findMany({ take: 10 })
*
* // Only select the `id`
* const collabDocWithIdOnly = await prisma.collabDoc.findMany({ select: { id: true } })
*
*/
findMany<T extends CollabDocFindManyArgs>(args?: Prisma.SelectSubset<T, CollabDocFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a CollabDoc.
* @param {CollabDocCreateArgs} args - Arguments to create a CollabDoc.
* @example
* // Create one CollabDoc
* const CollabDoc = await prisma.collabDoc.create({
* data: {
* // ... data to create a CollabDoc
* }
* })
*
*/
create<T extends CollabDocCreateArgs>(args: Prisma.SelectSubset<T, CollabDocCreateArgs<ExtArgs>>): Prisma.Prisma__CollabDocClient<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many CollabDocs.
* @param {CollabDocCreateManyArgs} args - Arguments to create many CollabDocs.
* @example
* // Create many CollabDocs
* const collabDoc = await prisma.collabDoc.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends CollabDocCreateManyArgs>(args?: Prisma.SelectSubset<T, CollabDocCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many CollabDocs and returns the data saved in the database.
* @param {CollabDocCreateManyAndReturnArgs} args - Arguments to create many CollabDocs.
* @example
* // Create many CollabDocs
* const collabDoc = await prisma.collabDoc.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many CollabDocs and only return the `id`
* const collabDocWithIdOnly = await prisma.collabDoc.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 CollabDocCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CollabDocCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a CollabDoc.
* @param {CollabDocDeleteArgs} args - Arguments to delete one CollabDoc.
* @example
* // Delete one CollabDoc
* const CollabDoc = await prisma.collabDoc.delete({
* where: {
* // ... filter to delete one CollabDoc
* }
* })
*
*/
delete<T extends CollabDocDeleteArgs>(args: Prisma.SelectSubset<T, CollabDocDeleteArgs<ExtArgs>>): Prisma.Prisma__CollabDocClient<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one CollabDoc.
* @param {CollabDocUpdateArgs} args - Arguments to update one CollabDoc.
* @example
* // Update one CollabDoc
* const collabDoc = await prisma.collabDoc.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends CollabDocUpdateArgs>(args: Prisma.SelectSubset<T, CollabDocUpdateArgs<ExtArgs>>): Prisma.Prisma__CollabDocClient<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more CollabDocs.
* @param {CollabDocDeleteManyArgs} args - Arguments to filter CollabDocs to delete.
* @example
* // Delete a few CollabDocs
* const { count } = await prisma.collabDoc.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends CollabDocDeleteManyArgs>(args?: Prisma.SelectSubset<T, CollabDocDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CollabDocs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CollabDocUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many CollabDocs
* const collabDoc = await prisma.collabDoc.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends CollabDocUpdateManyArgs>(args: Prisma.SelectSubset<T, CollabDocUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CollabDocs and returns the data updated in the database.
* @param {CollabDocUpdateManyAndReturnArgs} args - Arguments to update many CollabDocs.
* @example
* // Update many CollabDocs
* const collabDoc = await prisma.collabDoc.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more CollabDocs and only return the `id`
* const collabDocWithIdOnly = await prisma.collabDoc.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 CollabDocUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CollabDocUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one CollabDoc.
* @param {CollabDocUpsertArgs} args - Arguments to update or create a CollabDoc.
* @example
* // Update or create a CollabDoc
* const collabDoc = await prisma.collabDoc.upsert({
* create: {
* // ... data to create a CollabDoc
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the CollabDoc we want to update
* }
* })
*/
upsert<T extends CollabDocUpsertArgs>(args: Prisma.SelectSubset<T, CollabDocUpsertArgs<ExtArgs>>): Prisma.Prisma__CollabDocClient<runtime.Types.Result.GetResult<Prisma.$CollabDocPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of CollabDocs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CollabDocCountArgs} args - Arguments to filter CollabDocs to count.
* @example
* // Count the number of CollabDocs
* const count = await prisma.collabDoc.count({
* where: {
* // ... the filter for the CollabDocs we want to count
* }
* })
**/
count<T extends CollabDocCountArgs>(
args?: Prisma.Subset<T, CollabDocCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], CollabDocCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a CollabDoc.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CollabDocAggregateArgs} 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 CollabDocAggregateArgs>(args: Prisma.Subset<T, CollabDocAggregateArgs>): Prisma.PrismaPromise<GetCollabDocAggregateType<T>>
/**
* Group by CollabDoc.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CollabDocGroupByArgs} 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 CollabDocGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: CollabDocGroupByArgs['orderBy'] }
: { orderBy?: CollabDocGroupByArgs['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, CollabDocGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCollabDocGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the CollabDoc model
*/
readonly fields: CollabDocFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for CollabDoc.
* 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__CollabDocClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the CollabDoc model
*/
export interface CollabDocFieldRefs {
readonly id: Prisma.FieldRef<"CollabDoc", 'String'>
readonly tenantId: Prisma.FieldRef<"CollabDoc", 'String'>
readonly resourceType: Prisma.FieldRef<"CollabDoc", 'String'>
readonly resourceId: Prisma.FieldRef<"CollabDoc", 'String'>
readonly ydocState: Prisma.FieldRef<"CollabDoc", 'Bytes'>
readonly version: Prisma.FieldRef<"CollabDoc", 'Int'>
readonly lastUpdatedAt: Prisma.FieldRef<"CollabDoc", 'DateTime'>
readonly lastSnapshotAt: Prisma.FieldRef<"CollabDoc", 'DateTime'>
readonly createdAt: Prisma.FieldRef<"CollabDoc", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"CollabDoc", 'DateTime'>
}
// Custom InputTypes
/**
* CollabDoc findUnique
*/
export type CollabDocFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* Filter, which CollabDoc to fetch.
*/
where: Prisma.CollabDocWhereUniqueInput
}
/**
* CollabDoc findUniqueOrThrow
*/
export type CollabDocFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* Filter, which CollabDoc to fetch.
*/
where: Prisma.CollabDocWhereUniqueInput
}
/**
* CollabDoc findFirst
*/
export type CollabDocFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* Filter, which CollabDoc to fetch.
*/
where?: Prisma.CollabDocWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CollabDocs to fetch.
*/
orderBy?: Prisma.CollabDocOrderByWithRelationInput | Prisma.CollabDocOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CollabDocs.
*/
cursor?: Prisma.CollabDocWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CollabDocs 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` CollabDocs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CollabDocs.
*/
distinct?: Prisma.CollabDocScalarFieldEnum | Prisma.CollabDocScalarFieldEnum[]
}
/**
* CollabDoc findFirstOrThrow
*/
export type CollabDocFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* Filter, which CollabDoc to fetch.
*/
where?: Prisma.CollabDocWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CollabDocs to fetch.
*/
orderBy?: Prisma.CollabDocOrderByWithRelationInput | Prisma.CollabDocOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CollabDocs.
*/
cursor?: Prisma.CollabDocWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CollabDocs 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` CollabDocs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CollabDocs.
*/
distinct?: Prisma.CollabDocScalarFieldEnum | Prisma.CollabDocScalarFieldEnum[]
}
/**
* CollabDoc findMany
*/
export type CollabDocFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* Filter, which CollabDocs to fetch.
*/
where?: Prisma.CollabDocWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CollabDocs to fetch.
*/
orderBy?: Prisma.CollabDocOrderByWithRelationInput | Prisma.CollabDocOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing CollabDocs.
*/
cursor?: Prisma.CollabDocWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CollabDocs 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` CollabDocs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CollabDocs.
*/
distinct?: Prisma.CollabDocScalarFieldEnum | Prisma.CollabDocScalarFieldEnum[]
}
/**
* CollabDoc create
*/
export type CollabDocCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* The data needed to create a CollabDoc.
*/
data: Prisma.XOR<Prisma.CollabDocCreateInput, Prisma.CollabDocUncheckedCreateInput>
}
/**
* CollabDoc createMany
*/
export type CollabDocCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many CollabDocs.
*/
data: Prisma.CollabDocCreateManyInput | Prisma.CollabDocCreateManyInput[]
skipDuplicates?: boolean
}
/**
* CollabDoc createManyAndReturn
*/
export type CollabDocCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* The data used to create many CollabDocs.
*/
data: Prisma.CollabDocCreateManyInput | Prisma.CollabDocCreateManyInput[]
skipDuplicates?: boolean
}
/**
* CollabDoc update
*/
export type CollabDocUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* The data needed to update a CollabDoc.
*/
data: Prisma.XOR<Prisma.CollabDocUpdateInput, Prisma.CollabDocUncheckedUpdateInput>
/**
* Choose, which CollabDoc to update.
*/
where: Prisma.CollabDocWhereUniqueInput
}
/**
* CollabDoc updateMany
*/
export type CollabDocUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update CollabDocs.
*/
data: Prisma.XOR<Prisma.CollabDocUpdateManyMutationInput, Prisma.CollabDocUncheckedUpdateManyInput>
/**
* Filter which CollabDocs to update
*/
where?: Prisma.CollabDocWhereInput
/**
* Limit how many CollabDocs to update.
*/
limit?: number
}
/**
* CollabDoc updateManyAndReturn
*/
export type CollabDocUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* The data used to update CollabDocs.
*/
data: Prisma.XOR<Prisma.CollabDocUpdateManyMutationInput, Prisma.CollabDocUncheckedUpdateManyInput>
/**
* Filter which CollabDocs to update
*/
where?: Prisma.CollabDocWhereInput
/**
* Limit how many CollabDocs to update.
*/
limit?: number
}
/**
* CollabDoc upsert
*/
export type CollabDocUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* The filter to search for the CollabDoc to update in case it exists.
*/
where: Prisma.CollabDocWhereUniqueInput
/**
* In case the CollabDoc found by the `where` argument doesn't exist, create a new CollabDoc with this data.
*/
create: Prisma.XOR<Prisma.CollabDocCreateInput, Prisma.CollabDocUncheckedCreateInput>
/**
* In case the CollabDoc was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.CollabDocUpdateInput, Prisma.CollabDocUncheckedUpdateInput>
}
/**
* CollabDoc delete
*/
export type CollabDocDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
/**
* Filter which CollabDoc to delete.
*/
where: Prisma.CollabDocWhereUniqueInput
}
/**
* CollabDoc deleteMany
*/
export type CollabDocDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CollabDocs to delete
*/
where?: Prisma.CollabDocWhereInput
/**
* Limit how many CollabDocs to delete.
*/
limit?: number
}
/**
* CollabDoc without action
*/
export type CollabDocDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CollabDoc
*/
select?: Prisma.CollabDocSelect<ExtArgs> | null
/**
* Omit specific fields from the CollabDoc
*/
omit?: Prisma.CollabDocOmit<ExtArgs> | null
}