/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateCollabDoc]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type CollabDocGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CollabDocGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "resourceType" | "resourceId" | "ydocState" | "version" | "lastUpdatedAt" | "lastSnapshotAt" | "createdAt" | "updatedAt", ExtArgs["result"]["collabDoc"]> export type $CollabDocPayload = { 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 = runtime.Types.Result.GetResult export type CollabDocCountArgs = Omit & { select?: CollabDocCountAggregateInputType | true } export interface CollabDocDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__CollabDocClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CollabDocClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__CollabDocClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__CollabDocClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CollabDocClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CollabDocClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CollabDocClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__CollabDocClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: CollabDocGroupByArgs['orderBy'] } : { orderBy?: CollabDocGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetCollabDocGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | null /** * Filter, which CollabDoc to fetch. */ where: Prisma.CollabDocWhereUniqueInput } /** * CollabDoc findUniqueOrThrow */ export type CollabDocFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | null /** * Filter, which CollabDoc to fetch. */ where: Prisma.CollabDocWhereUniqueInput } /** * CollabDoc findFirst */ export type CollabDocFindFirstArgs = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | 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 = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | 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 = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | 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 = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | null /** * The data needed to create a CollabDoc. */ data: Prisma.XOR } /** * CollabDoc createMany */ export type CollabDocCreateManyArgs = { /** * The data used to create many CollabDocs. */ data: Prisma.CollabDocCreateManyInput | Prisma.CollabDocCreateManyInput[] skipDuplicates?: boolean } /** * CollabDoc createManyAndReturn */ export type CollabDocCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelectCreateManyAndReturn | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | null /** * The data used to create many CollabDocs. */ data: Prisma.CollabDocCreateManyInput | Prisma.CollabDocCreateManyInput[] skipDuplicates?: boolean } /** * CollabDoc update */ export type CollabDocUpdateArgs = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | null /** * The data needed to update a CollabDoc. */ data: Prisma.XOR /** * Choose, which CollabDoc to update. */ where: Prisma.CollabDocWhereUniqueInput } /** * CollabDoc updateMany */ export type CollabDocUpdateManyArgs = { /** * The data used to update CollabDocs. */ data: Prisma.XOR /** * Filter which CollabDocs to update */ where?: Prisma.CollabDocWhereInput /** * Limit how many CollabDocs to update. */ limit?: number } /** * CollabDoc updateManyAndReturn */ export type CollabDocUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelectUpdateManyAndReturn | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | null /** * The data used to update CollabDocs. */ data: Prisma.XOR /** * Filter which CollabDocs to update */ where?: Prisma.CollabDocWhereInput /** * Limit how many CollabDocs to update. */ limit?: number } /** * CollabDoc upsert */ export type CollabDocUpsertArgs = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | 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 /** * In case the CollabDoc was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * CollabDoc delete */ export type CollabDocDeleteArgs = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | null /** * Filter which CollabDoc to delete. */ where: Prisma.CollabDocWhereUniqueInput } /** * CollabDoc deleteMany */ export type CollabDocDeleteManyArgs = { /** * Filter which CollabDocs to delete */ where?: Prisma.CollabDocWhereInput /** * Limit how many CollabDocs to delete. */ limit?: number } /** * CollabDoc without action */ export type CollabDocDefaultArgs = { /** * Select specific fields to fetch from the CollabDoc */ select?: Prisma.CollabDocSelect | null /** * Omit specific fields from the CollabDoc */ omit?: Prisma.CollabDocOmit | null }