@allbluecn/database 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/cf-env-stub.ts +4 -0
  2. package/cf-env.ts +25 -0
  3. package/cloudflare-workers.d.ts +6 -0
  4. package/dist/cf-env-stub.d.ts +1 -0
  5. package/dist/cf-env-stub.js +4 -0
  6. package/dist/cf-env.d.ts +1 -0
  7. package/dist/cf-env.js +8 -0
  8. package/generated/browser.ts +30 -15
  9. package/generated/client.ts +30 -15
  10. package/generated/internal/class.ts +64 -34
  11. package/generated/internal/prismaNamespace.ts +543 -263
  12. package/generated/internal/prismaNamespaceBrowser.ts +92 -37
  13. package/generated/models/AiTask.ts +2481 -0
  14. package/generated/models/AiTaskRun.ts +1564 -0
  15. package/generated/models/Bug.ts +94 -1
  16. package/generated/models/BugComment.ts +139 -0
  17. package/generated/models/BugCommentReaction.ts +1472 -0
  18. package/generated/models/CollabClient.ts +1199 -0
  19. package/generated/models/CollabDocument.ts +1121 -0
  20. package/generated/models/CollabUpdate.ts +1149 -0
  21. package/generated/models/Component.ts +0 -194
  22. package/generated/models/Design.ts +0 -190
  23. package/generated/models/Project.ts +261 -0
  24. package/generated/models/TestCase.ts +78 -1
  25. package/generated/models/User.ts +2073 -1271
  26. package/generated/models/Workspace.ts +204 -0
  27. package/generated/models.ts +6 -3
  28. package/generated-sqlite/browser.ts +0 -15
  29. package/generated-sqlite/client.ts +0 -15
  30. package/generated-sqlite/internal/class.ts +4 -34
  31. package/generated-sqlite/internal/prismaNamespace.ts +1 -262
  32. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -36
  33. package/generated-sqlite/models/Component.ts +0 -194
  34. package/generated-sqlite/models/Design.ts +0 -182
  35. package/generated-sqlite/models/User.ts +0 -586
  36. package/generated-sqlite/models.ts +0 -3
  37. package/index.ts +16 -2
  38. package/migrations/20261007112656_collab_init/migration.sql +45 -0
  39. package/migrations/20261007122530_collab_client_clientid_bigint/migration.sql +10 -0
  40. package/migrations/20261009194853_remove_tag_module/migration.sql +24 -0
  41. package/migrations/20261009222043_ai_task_init/migration.sql +67 -0
  42. package/migrations/20261019202531_ui_alignment_board_order/migration.sql +35 -0
  43. package/package.json +17 -6
  44. package/schema.prisma +99 -54
  45. package/schema.sqlite.prisma +0 -54
  46. package/generated/models/ComponentTag.ts +0 -1281
  47. package/generated/models/DesignTag.ts +0 -1430
  48. package/generated/models/Tag.ts +0 -1655
  49. package/generated-sqlite/models/ComponentTag.ts +0 -1278
  50. package/generated-sqlite/models/DesignTag.ts +0 -1426
  51. package/generated-sqlite/models/Tag.ts +0 -1652
@@ -0,0 +1,1121 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `CollabDocument` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model CollabDocument
17
+ *
18
+ */
19
+ export type CollabDocumentModel = runtime.Types.Result.DefaultSelection<Prisma.$CollabDocumentPayload>
20
+
21
+ export type AggregateCollabDocument = {
22
+ _count: CollabDocumentCountAggregateOutputType | null
23
+ _min: CollabDocumentMinAggregateOutputType | null
24
+ _max: CollabDocumentMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type CollabDocumentMinAggregateOutputType = {
28
+ id: string | null
29
+ roomName: string | null
30
+ state: runtime.Bytes | null
31
+ updatedAt: Date | null
32
+ }
33
+
34
+ export type CollabDocumentMaxAggregateOutputType = {
35
+ id: string | null
36
+ roomName: string | null
37
+ state: runtime.Bytes | null
38
+ updatedAt: Date | null
39
+ }
40
+
41
+ export type CollabDocumentCountAggregateOutputType = {
42
+ id: number
43
+ roomName: number
44
+ state: number
45
+ updatedAt: number
46
+ _all: number
47
+ }
48
+
49
+
50
+ export type CollabDocumentMinAggregateInputType = {
51
+ id?: true
52
+ roomName?: true
53
+ state?: true
54
+ updatedAt?: true
55
+ }
56
+
57
+ export type CollabDocumentMaxAggregateInputType = {
58
+ id?: true
59
+ roomName?: true
60
+ state?: true
61
+ updatedAt?: true
62
+ }
63
+
64
+ export type CollabDocumentCountAggregateInputType = {
65
+ id?: true
66
+ roomName?: true
67
+ state?: true
68
+ updatedAt?: true
69
+ _all?: true
70
+ }
71
+
72
+ export type CollabDocumentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
73
+ /**
74
+ * Filter which CollabDocument to aggregate.
75
+ */
76
+ where?: Prisma.CollabDocumentWhereInput
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
79
+ *
80
+ * Determine the order of CollabDocuments to fetch.
81
+ */
82
+ orderBy?: Prisma.CollabDocumentOrderByWithRelationInput | Prisma.CollabDocumentOrderByWithRelationInput[]
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
85
+ *
86
+ * Sets the start position
87
+ */
88
+ cursor?: Prisma.CollabDocumentWhereUniqueInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Take `±n` CollabDocuments from the position of the cursor.
93
+ */
94
+ take?: number
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
97
+ *
98
+ * Skip the first `n` CollabDocuments.
99
+ */
100
+ skip?: number
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Count returned CollabDocuments
105
+ **/
106
+ _count?: true | CollabDocumentCountAggregateInputType
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to find the minimum value
111
+ **/
112
+ _min?: CollabDocumentMinAggregateInputType
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Select which fields to find the maximum value
117
+ **/
118
+ _max?: CollabDocumentMaxAggregateInputType
119
+ }
120
+
121
+ export type GetCollabDocumentAggregateType<T extends CollabDocumentAggregateArgs> = {
122
+ [P in keyof T & keyof AggregateCollabDocument]: P extends '_count' | 'count'
123
+ ? T[P] extends true
124
+ ? number
125
+ : Prisma.GetScalarType<T[P], AggregateCollabDocument[P]>
126
+ : Prisma.GetScalarType<T[P], AggregateCollabDocument[P]>
127
+ }
128
+
129
+
130
+
131
+
132
+ export type CollabDocumentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
133
+ where?: Prisma.CollabDocumentWhereInput
134
+ orderBy?: Prisma.CollabDocumentOrderByWithAggregationInput | Prisma.CollabDocumentOrderByWithAggregationInput[]
135
+ by: Prisma.CollabDocumentScalarFieldEnum[] | Prisma.CollabDocumentScalarFieldEnum
136
+ having?: Prisma.CollabDocumentScalarWhereWithAggregatesInput
137
+ take?: number
138
+ skip?: number
139
+ _count?: CollabDocumentCountAggregateInputType | true
140
+ _min?: CollabDocumentMinAggregateInputType
141
+ _max?: CollabDocumentMaxAggregateInputType
142
+ }
143
+
144
+ export type CollabDocumentGroupByOutputType = {
145
+ id: string
146
+ roomName: string
147
+ state: runtime.Bytes
148
+ updatedAt: Date
149
+ _count: CollabDocumentCountAggregateOutputType | null
150
+ _min: CollabDocumentMinAggregateOutputType | null
151
+ _max: CollabDocumentMaxAggregateOutputType | null
152
+ }
153
+
154
+ export type GetCollabDocumentGroupByPayload<T extends CollabDocumentGroupByArgs> = Prisma.PrismaPromise<
155
+ Array<
156
+ Prisma.PickEnumerable<CollabDocumentGroupByOutputType, T['by']> &
157
+ {
158
+ [P in ((keyof T) & (keyof CollabDocumentGroupByOutputType))]: P extends '_count'
159
+ ? T[P] extends boolean
160
+ ? number
161
+ : Prisma.GetScalarType<T[P], CollabDocumentGroupByOutputType[P]>
162
+ : Prisma.GetScalarType<T[P], CollabDocumentGroupByOutputType[P]>
163
+ }
164
+ >
165
+ >
166
+
167
+
168
+
169
+ export type CollabDocumentWhereInput = {
170
+ AND?: Prisma.CollabDocumentWhereInput | Prisma.CollabDocumentWhereInput[]
171
+ OR?: Prisma.CollabDocumentWhereInput[]
172
+ NOT?: Prisma.CollabDocumentWhereInput | Prisma.CollabDocumentWhereInput[]
173
+ id?: Prisma.StringFilter<"CollabDocument"> | string
174
+ roomName?: Prisma.StringFilter<"CollabDocument"> | string
175
+ state?: Prisma.BytesFilter<"CollabDocument"> | runtime.Bytes
176
+ updatedAt?: Prisma.DateTimeFilter<"CollabDocument"> | Date | string
177
+ }
178
+
179
+ export type CollabDocumentOrderByWithRelationInput = {
180
+ id?: Prisma.SortOrder
181
+ roomName?: Prisma.SortOrder
182
+ state?: Prisma.SortOrder
183
+ updatedAt?: Prisma.SortOrder
184
+ }
185
+
186
+ export type CollabDocumentWhereUniqueInput = Prisma.AtLeast<{
187
+ id?: string
188
+ roomName?: string
189
+ AND?: Prisma.CollabDocumentWhereInput | Prisma.CollabDocumentWhereInput[]
190
+ OR?: Prisma.CollabDocumentWhereInput[]
191
+ NOT?: Prisma.CollabDocumentWhereInput | Prisma.CollabDocumentWhereInput[]
192
+ state?: Prisma.BytesFilter<"CollabDocument"> | runtime.Bytes
193
+ updatedAt?: Prisma.DateTimeFilter<"CollabDocument"> | Date | string
194
+ }, "id" | "roomName">
195
+
196
+ export type CollabDocumentOrderByWithAggregationInput = {
197
+ id?: Prisma.SortOrder
198
+ roomName?: Prisma.SortOrder
199
+ state?: Prisma.SortOrder
200
+ updatedAt?: Prisma.SortOrder
201
+ _count?: Prisma.CollabDocumentCountOrderByAggregateInput
202
+ _max?: Prisma.CollabDocumentMaxOrderByAggregateInput
203
+ _min?: Prisma.CollabDocumentMinOrderByAggregateInput
204
+ }
205
+
206
+ export type CollabDocumentScalarWhereWithAggregatesInput = {
207
+ AND?: Prisma.CollabDocumentScalarWhereWithAggregatesInput | Prisma.CollabDocumentScalarWhereWithAggregatesInput[]
208
+ OR?: Prisma.CollabDocumentScalarWhereWithAggregatesInput[]
209
+ NOT?: Prisma.CollabDocumentScalarWhereWithAggregatesInput | Prisma.CollabDocumentScalarWhereWithAggregatesInput[]
210
+ id?: Prisma.StringWithAggregatesFilter<"CollabDocument"> | string
211
+ roomName?: Prisma.StringWithAggregatesFilter<"CollabDocument"> | string
212
+ state?: Prisma.BytesWithAggregatesFilter<"CollabDocument"> | runtime.Bytes
213
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CollabDocument"> | Date | string
214
+ }
215
+
216
+ export type CollabDocumentCreateInput = {
217
+ id?: string
218
+ roomName: string
219
+ state: runtime.Bytes
220
+ updatedAt?: Date | string
221
+ }
222
+
223
+ export type CollabDocumentUncheckedCreateInput = {
224
+ id?: string
225
+ roomName: string
226
+ state: runtime.Bytes
227
+ updatedAt?: Date | string
228
+ }
229
+
230
+ export type CollabDocumentUpdateInput = {
231
+ id?: Prisma.StringFieldUpdateOperationsInput | string
232
+ roomName?: Prisma.StringFieldUpdateOperationsInput | string
233
+ state?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
234
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
235
+ }
236
+
237
+ export type CollabDocumentUncheckedUpdateInput = {
238
+ id?: Prisma.StringFieldUpdateOperationsInput | string
239
+ roomName?: Prisma.StringFieldUpdateOperationsInput | string
240
+ state?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
241
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
242
+ }
243
+
244
+ export type CollabDocumentCreateManyInput = {
245
+ id?: string
246
+ roomName: string
247
+ state: runtime.Bytes
248
+ updatedAt?: Date | string
249
+ }
250
+
251
+ export type CollabDocumentUpdateManyMutationInput = {
252
+ id?: Prisma.StringFieldUpdateOperationsInput | string
253
+ roomName?: Prisma.StringFieldUpdateOperationsInput | string
254
+ state?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
255
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
256
+ }
257
+
258
+ export type CollabDocumentUncheckedUpdateManyInput = {
259
+ id?: Prisma.StringFieldUpdateOperationsInput | string
260
+ roomName?: Prisma.StringFieldUpdateOperationsInput | string
261
+ state?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
262
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
263
+ }
264
+
265
+ export type CollabDocumentCountOrderByAggregateInput = {
266
+ id?: Prisma.SortOrder
267
+ roomName?: Prisma.SortOrder
268
+ state?: Prisma.SortOrder
269
+ updatedAt?: Prisma.SortOrder
270
+ }
271
+
272
+ export type CollabDocumentMaxOrderByAggregateInput = {
273
+ id?: Prisma.SortOrder
274
+ roomName?: Prisma.SortOrder
275
+ state?: Prisma.SortOrder
276
+ updatedAt?: Prisma.SortOrder
277
+ }
278
+
279
+ export type CollabDocumentMinOrderByAggregateInput = {
280
+ id?: Prisma.SortOrder
281
+ roomName?: Prisma.SortOrder
282
+ state?: Prisma.SortOrder
283
+ updatedAt?: Prisma.SortOrder
284
+ }
285
+
286
+
287
+
288
+ export type CollabDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
289
+ id?: boolean
290
+ roomName?: boolean
291
+ state?: boolean
292
+ updatedAt?: boolean
293
+ }, ExtArgs["result"]["collabDocument"]>
294
+
295
+ export type CollabDocumentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
296
+ id?: boolean
297
+ roomName?: boolean
298
+ state?: boolean
299
+ updatedAt?: boolean
300
+ }, ExtArgs["result"]["collabDocument"]>
301
+
302
+ export type CollabDocumentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
303
+ id?: boolean
304
+ roomName?: boolean
305
+ state?: boolean
306
+ updatedAt?: boolean
307
+ }, ExtArgs["result"]["collabDocument"]>
308
+
309
+ export type CollabDocumentSelectScalar = {
310
+ id?: boolean
311
+ roomName?: boolean
312
+ state?: boolean
313
+ updatedAt?: boolean
314
+ }
315
+
316
+ export type CollabDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "roomName" | "state" | "updatedAt", ExtArgs["result"]["collabDocument"]>
317
+
318
+ export type $CollabDocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
319
+ name: "CollabDocument"
320
+ objects: {}
321
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
322
+ id: string
323
+ roomName: string
324
+ state: runtime.Bytes
325
+ updatedAt: Date
326
+ }, ExtArgs["result"]["collabDocument"]>
327
+ composites: {}
328
+ }
329
+
330
+ export type CollabDocumentGetPayload<S extends boolean | null | undefined | CollabDocumentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload, S>
331
+
332
+ export type CollabDocumentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
333
+ Omit<CollabDocumentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
334
+ select?: CollabDocumentCountAggregateInputType | true
335
+ }
336
+
337
+ export interface CollabDocumentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
338
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CollabDocument'], meta: { name: 'CollabDocument' } }
339
+ /**
340
+ * Find zero or one CollabDocument that matches the filter.
341
+ * @param {CollabDocumentFindUniqueArgs} args - Arguments to find a CollabDocument
342
+ * @example
343
+ * // Get one CollabDocument
344
+ * const collabDocument = await prisma.collabDocument.findUnique({
345
+ * where: {
346
+ * // ... provide filter here
347
+ * }
348
+ * })
349
+ */
350
+ findUnique<T extends CollabDocumentFindUniqueArgs>(args: Prisma.SelectSubset<T, CollabDocumentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CollabDocumentClient<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
351
+
352
+ /**
353
+ * Find one CollabDocument that matches the filter or throw an error with `error.code='P2025'`
354
+ * if no matches were found.
355
+ * @param {CollabDocumentFindUniqueOrThrowArgs} args - Arguments to find a CollabDocument
356
+ * @example
357
+ * // Get one CollabDocument
358
+ * const collabDocument = await prisma.collabDocument.findUniqueOrThrow({
359
+ * where: {
360
+ * // ... provide filter here
361
+ * }
362
+ * })
363
+ */
364
+ findUniqueOrThrow<T extends CollabDocumentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CollabDocumentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CollabDocumentClient<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
365
+
366
+ /**
367
+ * Find the first CollabDocument that matches the filter.
368
+ * Note, that providing `undefined` is treated as the value not being there.
369
+ * Read more here: https://pris.ly/d/null-undefined
370
+ * @param {CollabDocumentFindFirstArgs} args - Arguments to find a CollabDocument
371
+ * @example
372
+ * // Get one CollabDocument
373
+ * const collabDocument = await prisma.collabDocument.findFirst({
374
+ * where: {
375
+ * // ... provide filter here
376
+ * }
377
+ * })
378
+ */
379
+ findFirst<T extends CollabDocumentFindFirstArgs>(args?: Prisma.SelectSubset<T, CollabDocumentFindFirstArgs<ExtArgs>>): Prisma.Prisma__CollabDocumentClient<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
380
+
381
+ /**
382
+ * Find the first CollabDocument that matches the filter or
383
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
384
+ * Note, that providing `undefined` is treated as the value not being there.
385
+ * Read more here: https://pris.ly/d/null-undefined
386
+ * @param {CollabDocumentFindFirstOrThrowArgs} args - Arguments to find a CollabDocument
387
+ * @example
388
+ * // Get one CollabDocument
389
+ * const collabDocument = await prisma.collabDocument.findFirstOrThrow({
390
+ * where: {
391
+ * // ... provide filter here
392
+ * }
393
+ * })
394
+ */
395
+ findFirstOrThrow<T extends CollabDocumentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CollabDocumentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CollabDocumentClient<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
396
+
397
+ /**
398
+ * Find zero or more CollabDocuments that matches the filter.
399
+ * Note, that providing `undefined` is treated as the value not being there.
400
+ * Read more here: https://pris.ly/d/null-undefined
401
+ * @param {CollabDocumentFindManyArgs} args - Arguments to filter and select certain fields only.
402
+ * @example
403
+ * // Get all CollabDocuments
404
+ * const collabDocuments = await prisma.collabDocument.findMany()
405
+ *
406
+ * // Get first 10 CollabDocuments
407
+ * const collabDocuments = await prisma.collabDocument.findMany({ take: 10 })
408
+ *
409
+ * // Only select the `id`
410
+ * const collabDocumentWithIdOnly = await prisma.collabDocument.findMany({ select: { id: true } })
411
+ *
412
+ */
413
+ findMany<T extends CollabDocumentFindManyArgs>(args?: Prisma.SelectSubset<T, CollabDocumentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
414
+
415
+ /**
416
+ * Create a CollabDocument.
417
+ * @param {CollabDocumentCreateArgs} args - Arguments to create a CollabDocument.
418
+ * @example
419
+ * // Create one CollabDocument
420
+ * const CollabDocument = await prisma.collabDocument.create({
421
+ * data: {
422
+ * // ... data to create a CollabDocument
423
+ * }
424
+ * })
425
+ *
426
+ */
427
+ create<T extends CollabDocumentCreateArgs>(args: Prisma.SelectSubset<T, CollabDocumentCreateArgs<ExtArgs>>): Prisma.Prisma__CollabDocumentClient<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
428
+
429
+ /**
430
+ * Create many CollabDocuments.
431
+ * @param {CollabDocumentCreateManyArgs} args - Arguments to create many CollabDocuments.
432
+ * @example
433
+ * // Create many CollabDocuments
434
+ * const collabDocument = await prisma.collabDocument.createMany({
435
+ * data: [
436
+ * // ... provide data here
437
+ * ]
438
+ * })
439
+ *
440
+ */
441
+ createMany<T extends CollabDocumentCreateManyArgs>(args?: Prisma.SelectSubset<T, CollabDocumentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
442
+
443
+ /**
444
+ * Create many CollabDocuments and returns the data saved in the database.
445
+ * @param {CollabDocumentCreateManyAndReturnArgs} args - Arguments to create many CollabDocuments.
446
+ * @example
447
+ * // Create many CollabDocuments
448
+ * const collabDocument = await prisma.collabDocument.createManyAndReturn({
449
+ * data: [
450
+ * // ... provide data here
451
+ * ]
452
+ * })
453
+ *
454
+ * // Create many CollabDocuments and only return the `id`
455
+ * const collabDocumentWithIdOnly = await prisma.collabDocument.createManyAndReturn({
456
+ * select: { id: true },
457
+ * data: [
458
+ * // ... provide data here
459
+ * ]
460
+ * })
461
+ * Note, that providing `undefined` is treated as the value not being there.
462
+ * Read more here: https://pris.ly/d/null-undefined
463
+ *
464
+ */
465
+ createManyAndReturn<T extends CollabDocumentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CollabDocumentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
466
+
467
+ /**
468
+ * Delete a CollabDocument.
469
+ * @param {CollabDocumentDeleteArgs} args - Arguments to delete one CollabDocument.
470
+ * @example
471
+ * // Delete one CollabDocument
472
+ * const CollabDocument = await prisma.collabDocument.delete({
473
+ * where: {
474
+ * // ... filter to delete one CollabDocument
475
+ * }
476
+ * })
477
+ *
478
+ */
479
+ delete<T extends CollabDocumentDeleteArgs>(args: Prisma.SelectSubset<T, CollabDocumentDeleteArgs<ExtArgs>>): Prisma.Prisma__CollabDocumentClient<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
480
+
481
+ /**
482
+ * Update one CollabDocument.
483
+ * @param {CollabDocumentUpdateArgs} args - Arguments to update one CollabDocument.
484
+ * @example
485
+ * // Update one CollabDocument
486
+ * const collabDocument = await prisma.collabDocument.update({
487
+ * where: {
488
+ * // ... provide filter here
489
+ * },
490
+ * data: {
491
+ * // ... provide data here
492
+ * }
493
+ * })
494
+ *
495
+ */
496
+ update<T extends CollabDocumentUpdateArgs>(args: Prisma.SelectSubset<T, CollabDocumentUpdateArgs<ExtArgs>>): Prisma.Prisma__CollabDocumentClient<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
497
+
498
+ /**
499
+ * Delete zero or more CollabDocuments.
500
+ * @param {CollabDocumentDeleteManyArgs} args - Arguments to filter CollabDocuments to delete.
501
+ * @example
502
+ * // Delete a few CollabDocuments
503
+ * const { count } = await prisma.collabDocument.deleteMany({
504
+ * where: {
505
+ * // ... provide filter here
506
+ * }
507
+ * })
508
+ *
509
+ */
510
+ deleteMany<T extends CollabDocumentDeleteManyArgs>(args?: Prisma.SelectSubset<T, CollabDocumentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
511
+
512
+ /**
513
+ * Update zero or more CollabDocuments.
514
+ * Note, that providing `undefined` is treated as the value not being there.
515
+ * Read more here: https://pris.ly/d/null-undefined
516
+ * @param {CollabDocumentUpdateManyArgs} args - Arguments to update one or more rows.
517
+ * @example
518
+ * // Update many CollabDocuments
519
+ * const collabDocument = await prisma.collabDocument.updateMany({
520
+ * where: {
521
+ * // ... provide filter here
522
+ * },
523
+ * data: {
524
+ * // ... provide data here
525
+ * }
526
+ * })
527
+ *
528
+ */
529
+ updateMany<T extends CollabDocumentUpdateManyArgs>(args: Prisma.SelectSubset<T, CollabDocumentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
530
+
531
+ /**
532
+ * Update zero or more CollabDocuments and returns the data updated in the database.
533
+ * @param {CollabDocumentUpdateManyAndReturnArgs} args - Arguments to update many CollabDocuments.
534
+ * @example
535
+ * // Update many CollabDocuments
536
+ * const collabDocument = await prisma.collabDocument.updateManyAndReturn({
537
+ * where: {
538
+ * // ... provide filter here
539
+ * },
540
+ * data: [
541
+ * // ... provide data here
542
+ * ]
543
+ * })
544
+ *
545
+ * // Update zero or more CollabDocuments and only return the `id`
546
+ * const collabDocumentWithIdOnly = await prisma.collabDocument.updateManyAndReturn({
547
+ * select: { id: true },
548
+ * where: {
549
+ * // ... provide filter here
550
+ * },
551
+ * data: [
552
+ * // ... provide data here
553
+ * ]
554
+ * })
555
+ * Note, that providing `undefined` is treated as the value not being there.
556
+ * Read more here: https://pris.ly/d/null-undefined
557
+ *
558
+ */
559
+ updateManyAndReturn<T extends CollabDocumentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CollabDocumentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
560
+
561
+ /**
562
+ * Create or update one CollabDocument.
563
+ * @param {CollabDocumentUpsertArgs} args - Arguments to update or create a CollabDocument.
564
+ * @example
565
+ * // Update or create a CollabDocument
566
+ * const collabDocument = await prisma.collabDocument.upsert({
567
+ * create: {
568
+ * // ... data to create a CollabDocument
569
+ * },
570
+ * update: {
571
+ * // ... in case it already exists, update
572
+ * },
573
+ * where: {
574
+ * // ... the filter for the CollabDocument we want to update
575
+ * }
576
+ * })
577
+ */
578
+ upsert<T extends CollabDocumentUpsertArgs>(args: Prisma.SelectSubset<T, CollabDocumentUpsertArgs<ExtArgs>>): Prisma.Prisma__CollabDocumentClient<runtime.Types.Result.GetResult<Prisma.$CollabDocumentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
579
+
580
+
581
+ /**
582
+ * Count the number of CollabDocuments.
583
+ * Note, that providing `undefined` is treated as the value not being there.
584
+ * Read more here: https://pris.ly/d/null-undefined
585
+ * @param {CollabDocumentCountArgs} args - Arguments to filter CollabDocuments to count.
586
+ * @example
587
+ * // Count the number of CollabDocuments
588
+ * const count = await prisma.collabDocument.count({
589
+ * where: {
590
+ * // ... the filter for the CollabDocuments we want to count
591
+ * }
592
+ * })
593
+ **/
594
+ count<T extends CollabDocumentCountArgs>(
595
+ args?: Prisma.Subset<T, CollabDocumentCountArgs>,
596
+ ): Prisma.PrismaPromise<
597
+ T extends runtime.Types.Utils.Record<'select', any>
598
+ ? T['select'] extends true
599
+ ? number
600
+ : Prisma.GetScalarType<T['select'], CollabDocumentCountAggregateOutputType>
601
+ : number
602
+ >
603
+
604
+ /**
605
+ * Allows you to perform aggregations operations on a CollabDocument.
606
+ * Note, that providing `undefined` is treated as the value not being there.
607
+ * Read more here: https://pris.ly/d/null-undefined
608
+ * @param {CollabDocumentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
609
+ * @example
610
+ * // Ordered by age ascending
611
+ * // Where email contains prisma.io
612
+ * // Limited to the 10 users
613
+ * const aggregations = await prisma.user.aggregate({
614
+ * _avg: {
615
+ * age: true,
616
+ * },
617
+ * where: {
618
+ * email: {
619
+ * contains: "prisma.io",
620
+ * },
621
+ * },
622
+ * orderBy: {
623
+ * age: "asc",
624
+ * },
625
+ * take: 10,
626
+ * })
627
+ **/
628
+ aggregate<T extends CollabDocumentAggregateArgs>(args: Prisma.Subset<T, CollabDocumentAggregateArgs>): Prisma.PrismaPromise<GetCollabDocumentAggregateType<T>>
629
+
630
+ /**
631
+ * Group by CollabDocument.
632
+ * Note, that providing `undefined` is treated as the value not being there.
633
+ * Read more here: https://pris.ly/d/null-undefined
634
+ * @param {CollabDocumentGroupByArgs} args - Group by arguments.
635
+ * @example
636
+ * // Group by city, order by createdAt, get count
637
+ * const result = await prisma.user.groupBy({
638
+ * by: ['city', 'createdAt'],
639
+ * orderBy: {
640
+ * createdAt: true
641
+ * },
642
+ * _count: {
643
+ * _all: true
644
+ * },
645
+ * })
646
+ *
647
+ **/
648
+ groupBy<
649
+ T extends CollabDocumentGroupByArgs,
650
+ HasSelectOrTake extends Prisma.Or<
651
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
652
+ Prisma.Extends<'take', Prisma.Keys<T>>
653
+ >,
654
+ OrderByArg extends Prisma.True extends HasSelectOrTake
655
+ ? { orderBy: CollabDocumentGroupByArgs['orderBy'] }
656
+ : { orderBy?: CollabDocumentGroupByArgs['orderBy'] },
657
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
658
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
659
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
660
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
661
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
662
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
663
+ InputErrors extends ByEmpty extends Prisma.True
664
+ ? `Error: "by" must not be empty.`
665
+ : HavingValid extends Prisma.False
666
+ ? {
667
+ [P in HavingFields]: P extends ByFields
668
+ ? never
669
+ : P extends string
670
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
671
+ : [
672
+ Error,
673
+ 'Field ',
674
+ P,
675
+ ` in "having" needs to be provided in "by"`,
676
+ ]
677
+ }[HavingFields]
678
+ : 'take' extends Prisma.Keys<T>
679
+ ? 'orderBy' extends Prisma.Keys<T>
680
+ ? ByValid extends Prisma.True
681
+ ? {}
682
+ : {
683
+ [P in OrderFields]: P extends ByFields
684
+ ? never
685
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
686
+ }[OrderFields]
687
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
688
+ : 'skip' extends Prisma.Keys<T>
689
+ ? 'orderBy' extends Prisma.Keys<T>
690
+ ? ByValid extends Prisma.True
691
+ ? {}
692
+ : {
693
+ [P in OrderFields]: P extends ByFields
694
+ ? never
695
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
696
+ }[OrderFields]
697
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
698
+ : ByValid extends Prisma.True
699
+ ? {}
700
+ : {
701
+ [P in OrderFields]: P extends ByFields
702
+ ? never
703
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
704
+ }[OrderFields]
705
+ >(args: Prisma.SubsetIntersection<T, CollabDocumentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCollabDocumentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
706
+ /**
707
+ * Fields of the CollabDocument model
708
+ */
709
+ readonly fields: CollabDocumentFieldRefs;
710
+ }
711
+
712
+ /**
713
+ * The delegate class that acts as a "Promise-like" for CollabDocument.
714
+ * Why is this prefixed with `Prisma__`?
715
+ * Because we want to prevent naming conflicts as mentioned in
716
+ * https://github.com/prisma/prisma-client-js/issues/707
717
+ */
718
+ export interface Prisma__CollabDocumentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
719
+ readonly [Symbol.toStringTag]: "PrismaPromise"
720
+ /**
721
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
722
+ * @param onfulfilled The callback to execute when the Promise is resolved.
723
+ * @param onrejected The callback to execute when the Promise is rejected.
724
+ * @returns A Promise for the completion of which ever callback is executed.
725
+ */
726
+ 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>
727
+ /**
728
+ * Attaches a callback for only the rejection of the Promise.
729
+ * @param onrejected The callback to execute when the Promise is rejected.
730
+ * @returns A Promise for the completion of the callback.
731
+ */
732
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
733
+ /**
734
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
735
+ * resolved value cannot be modified from the callback.
736
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
737
+ * @returns A Promise for the completion of the callback.
738
+ */
739
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
740
+ }
741
+
742
+
743
+
744
+
745
+ /**
746
+ * Fields of the CollabDocument model
747
+ */
748
+ export interface CollabDocumentFieldRefs {
749
+ readonly id: Prisma.FieldRef<"CollabDocument", 'String'>
750
+ readonly roomName: Prisma.FieldRef<"CollabDocument", 'String'>
751
+ readonly state: Prisma.FieldRef<"CollabDocument", 'Bytes'>
752
+ readonly updatedAt: Prisma.FieldRef<"CollabDocument", 'DateTime'>
753
+ }
754
+
755
+
756
+ // Custom InputTypes
757
+ /**
758
+ * CollabDocument findUnique
759
+ */
760
+ export type CollabDocumentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
761
+ /**
762
+ * Select specific fields to fetch from the CollabDocument
763
+ */
764
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
765
+ /**
766
+ * Omit specific fields from the CollabDocument
767
+ */
768
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
769
+ /**
770
+ * Filter, which CollabDocument to fetch.
771
+ */
772
+ where: Prisma.CollabDocumentWhereUniqueInput
773
+ }
774
+
775
+ /**
776
+ * CollabDocument findUniqueOrThrow
777
+ */
778
+ export type CollabDocumentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
779
+ /**
780
+ * Select specific fields to fetch from the CollabDocument
781
+ */
782
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
783
+ /**
784
+ * Omit specific fields from the CollabDocument
785
+ */
786
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
787
+ /**
788
+ * Filter, which CollabDocument to fetch.
789
+ */
790
+ where: Prisma.CollabDocumentWhereUniqueInput
791
+ }
792
+
793
+ /**
794
+ * CollabDocument findFirst
795
+ */
796
+ export type CollabDocumentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
797
+ /**
798
+ * Select specific fields to fetch from the CollabDocument
799
+ */
800
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
801
+ /**
802
+ * Omit specific fields from the CollabDocument
803
+ */
804
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
805
+ /**
806
+ * Filter, which CollabDocument to fetch.
807
+ */
808
+ where?: Prisma.CollabDocumentWhereInput
809
+ /**
810
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
811
+ *
812
+ * Determine the order of CollabDocuments to fetch.
813
+ */
814
+ orderBy?: Prisma.CollabDocumentOrderByWithRelationInput | Prisma.CollabDocumentOrderByWithRelationInput[]
815
+ /**
816
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
817
+ *
818
+ * Sets the position for searching for CollabDocuments.
819
+ */
820
+ cursor?: Prisma.CollabDocumentWhereUniqueInput
821
+ /**
822
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
823
+ *
824
+ * Take `±n` CollabDocuments from the position of the cursor.
825
+ */
826
+ take?: number
827
+ /**
828
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
829
+ *
830
+ * Skip the first `n` CollabDocuments.
831
+ */
832
+ skip?: number
833
+ /**
834
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
835
+ *
836
+ * Filter by unique combinations of CollabDocuments.
837
+ */
838
+ distinct?: Prisma.CollabDocumentScalarFieldEnum | Prisma.CollabDocumentScalarFieldEnum[]
839
+ }
840
+
841
+ /**
842
+ * CollabDocument findFirstOrThrow
843
+ */
844
+ export type CollabDocumentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
845
+ /**
846
+ * Select specific fields to fetch from the CollabDocument
847
+ */
848
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
849
+ /**
850
+ * Omit specific fields from the CollabDocument
851
+ */
852
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
853
+ /**
854
+ * Filter, which CollabDocument to fetch.
855
+ */
856
+ where?: Prisma.CollabDocumentWhereInput
857
+ /**
858
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
859
+ *
860
+ * Determine the order of CollabDocuments to fetch.
861
+ */
862
+ orderBy?: Prisma.CollabDocumentOrderByWithRelationInput | Prisma.CollabDocumentOrderByWithRelationInput[]
863
+ /**
864
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
865
+ *
866
+ * Sets the position for searching for CollabDocuments.
867
+ */
868
+ cursor?: Prisma.CollabDocumentWhereUniqueInput
869
+ /**
870
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
871
+ *
872
+ * Take `±n` CollabDocuments from the position of the cursor.
873
+ */
874
+ take?: number
875
+ /**
876
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
877
+ *
878
+ * Skip the first `n` CollabDocuments.
879
+ */
880
+ skip?: number
881
+ /**
882
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
883
+ *
884
+ * Filter by unique combinations of CollabDocuments.
885
+ */
886
+ distinct?: Prisma.CollabDocumentScalarFieldEnum | Prisma.CollabDocumentScalarFieldEnum[]
887
+ }
888
+
889
+ /**
890
+ * CollabDocument findMany
891
+ */
892
+ export type CollabDocumentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
893
+ /**
894
+ * Select specific fields to fetch from the CollabDocument
895
+ */
896
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
897
+ /**
898
+ * Omit specific fields from the CollabDocument
899
+ */
900
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
901
+ /**
902
+ * Filter, which CollabDocuments to fetch.
903
+ */
904
+ where?: Prisma.CollabDocumentWhereInput
905
+ /**
906
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
907
+ *
908
+ * Determine the order of CollabDocuments to fetch.
909
+ */
910
+ orderBy?: Prisma.CollabDocumentOrderByWithRelationInput | Prisma.CollabDocumentOrderByWithRelationInput[]
911
+ /**
912
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
913
+ *
914
+ * Sets the position for listing CollabDocuments.
915
+ */
916
+ cursor?: Prisma.CollabDocumentWhereUniqueInput
917
+ /**
918
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
919
+ *
920
+ * Take `±n` CollabDocuments from the position of the cursor.
921
+ */
922
+ take?: number
923
+ /**
924
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
925
+ *
926
+ * Skip the first `n` CollabDocuments.
927
+ */
928
+ skip?: number
929
+ /**
930
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
931
+ *
932
+ * Filter by unique combinations of CollabDocuments.
933
+ */
934
+ distinct?: Prisma.CollabDocumentScalarFieldEnum | Prisma.CollabDocumentScalarFieldEnum[]
935
+ }
936
+
937
+ /**
938
+ * CollabDocument create
939
+ */
940
+ export type CollabDocumentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
941
+ /**
942
+ * Select specific fields to fetch from the CollabDocument
943
+ */
944
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
945
+ /**
946
+ * Omit specific fields from the CollabDocument
947
+ */
948
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
949
+ /**
950
+ * The data needed to create a CollabDocument.
951
+ */
952
+ data: Prisma.XOR<Prisma.CollabDocumentCreateInput, Prisma.CollabDocumentUncheckedCreateInput>
953
+ }
954
+
955
+ /**
956
+ * CollabDocument createMany
957
+ */
958
+ export type CollabDocumentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
959
+ /**
960
+ * The data used to create many CollabDocuments.
961
+ */
962
+ data: Prisma.CollabDocumentCreateManyInput | Prisma.CollabDocumentCreateManyInput[]
963
+ skipDuplicates?: boolean
964
+ }
965
+
966
+ /**
967
+ * CollabDocument createManyAndReturn
968
+ */
969
+ export type CollabDocumentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
970
+ /**
971
+ * Select specific fields to fetch from the CollabDocument
972
+ */
973
+ select?: Prisma.CollabDocumentSelectCreateManyAndReturn<ExtArgs> | null
974
+ /**
975
+ * Omit specific fields from the CollabDocument
976
+ */
977
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
978
+ /**
979
+ * The data used to create many CollabDocuments.
980
+ */
981
+ data: Prisma.CollabDocumentCreateManyInput | Prisma.CollabDocumentCreateManyInput[]
982
+ skipDuplicates?: boolean
983
+ }
984
+
985
+ /**
986
+ * CollabDocument update
987
+ */
988
+ export type CollabDocumentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
989
+ /**
990
+ * Select specific fields to fetch from the CollabDocument
991
+ */
992
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
993
+ /**
994
+ * Omit specific fields from the CollabDocument
995
+ */
996
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
997
+ /**
998
+ * The data needed to update a CollabDocument.
999
+ */
1000
+ data: Prisma.XOR<Prisma.CollabDocumentUpdateInput, Prisma.CollabDocumentUncheckedUpdateInput>
1001
+ /**
1002
+ * Choose, which CollabDocument to update.
1003
+ */
1004
+ where: Prisma.CollabDocumentWhereUniqueInput
1005
+ }
1006
+
1007
+ /**
1008
+ * CollabDocument updateMany
1009
+ */
1010
+ export type CollabDocumentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1011
+ /**
1012
+ * The data used to update CollabDocuments.
1013
+ */
1014
+ data: Prisma.XOR<Prisma.CollabDocumentUpdateManyMutationInput, Prisma.CollabDocumentUncheckedUpdateManyInput>
1015
+ /**
1016
+ * Filter which CollabDocuments to update
1017
+ */
1018
+ where?: Prisma.CollabDocumentWhereInput
1019
+ /**
1020
+ * Limit how many CollabDocuments to update.
1021
+ */
1022
+ limit?: number
1023
+ }
1024
+
1025
+ /**
1026
+ * CollabDocument updateManyAndReturn
1027
+ */
1028
+ export type CollabDocumentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1029
+ /**
1030
+ * Select specific fields to fetch from the CollabDocument
1031
+ */
1032
+ select?: Prisma.CollabDocumentSelectUpdateManyAndReturn<ExtArgs> | null
1033
+ /**
1034
+ * Omit specific fields from the CollabDocument
1035
+ */
1036
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
1037
+ /**
1038
+ * The data used to update CollabDocuments.
1039
+ */
1040
+ data: Prisma.XOR<Prisma.CollabDocumentUpdateManyMutationInput, Prisma.CollabDocumentUncheckedUpdateManyInput>
1041
+ /**
1042
+ * Filter which CollabDocuments to update
1043
+ */
1044
+ where?: Prisma.CollabDocumentWhereInput
1045
+ /**
1046
+ * Limit how many CollabDocuments to update.
1047
+ */
1048
+ limit?: number
1049
+ }
1050
+
1051
+ /**
1052
+ * CollabDocument upsert
1053
+ */
1054
+ export type CollabDocumentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1055
+ /**
1056
+ * Select specific fields to fetch from the CollabDocument
1057
+ */
1058
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
1059
+ /**
1060
+ * Omit specific fields from the CollabDocument
1061
+ */
1062
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
1063
+ /**
1064
+ * The filter to search for the CollabDocument to update in case it exists.
1065
+ */
1066
+ where: Prisma.CollabDocumentWhereUniqueInput
1067
+ /**
1068
+ * In case the CollabDocument found by the `where` argument doesn't exist, create a new CollabDocument with this data.
1069
+ */
1070
+ create: Prisma.XOR<Prisma.CollabDocumentCreateInput, Prisma.CollabDocumentUncheckedCreateInput>
1071
+ /**
1072
+ * In case the CollabDocument was found with the provided `where` argument, update it with this data.
1073
+ */
1074
+ update: Prisma.XOR<Prisma.CollabDocumentUpdateInput, Prisma.CollabDocumentUncheckedUpdateInput>
1075
+ }
1076
+
1077
+ /**
1078
+ * CollabDocument delete
1079
+ */
1080
+ export type CollabDocumentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1081
+ /**
1082
+ * Select specific fields to fetch from the CollabDocument
1083
+ */
1084
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
1085
+ /**
1086
+ * Omit specific fields from the CollabDocument
1087
+ */
1088
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
1089
+ /**
1090
+ * Filter which CollabDocument to delete.
1091
+ */
1092
+ where: Prisma.CollabDocumentWhereUniqueInput
1093
+ }
1094
+
1095
+ /**
1096
+ * CollabDocument deleteMany
1097
+ */
1098
+ export type CollabDocumentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1099
+ /**
1100
+ * Filter which CollabDocuments to delete
1101
+ */
1102
+ where?: Prisma.CollabDocumentWhereInput
1103
+ /**
1104
+ * Limit how many CollabDocuments to delete.
1105
+ */
1106
+ limit?: number
1107
+ }
1108
+
1109
+ /**
1110
+ * CollabDocument without action
1111
+ */
1112
+ export type CollabDocumentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1113
+ /**
1114
+ * Select specific fields to fetch from the CollabDocument
1115
+ */
1116
+ select?: Prisma.CollabDocumentSelect<ExtArgs> | null
1117
+ /**
1118
+ * Omit specific fields from the CollabDocument
1119
+ */
1120
+ omit?: Prisma.CollabDocumentOmit<ExtArgs> | null
1121
+ }