agentfit 0.1.0 → 0.1.2

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 (74) hide show
  1. package/.github/workflows/release.yml +111 -0
  2. package/README.md +41 -38
  3. package/app/(dashboard)/daily/page.tsx +1 -1
  4. package/app/(dashboard)/data-management/page.tsx +180 -0
  5. package/app/(dashboard)/flow/page.tsx +17 -0
  6. package/app/(dashboard)/layout.tsx +2 -0
  7. package/app/(dashboard)/page.tsx +24 -5
  8. package/app/(dashboard)/reports/[id]/page.tsx +72 -0
  9. package/app/(dashboard)/reports/page.tsx +132 -0
  10. package/app/(dashboard)/sessions/[id]/page.tsx +167 -0
  11. package/app/api/backup/route.ts +215 -0
  12. package/app/api/check/route.ts +11 -1
  13. package/app/api/command-insights/route.ts +13 -0
  14. package/app/api/commands/route.ts +55 -1
  15. package/app/api/images-analysis/route.ts +3 -4
  16. package/app/api/reports/[id]/route.ts +23 -0
  17. package/app/api/reports/route.ts +50 -0
  18. package/app/api/reset/route.ts +21 -0
  19. package/app/api/session/route.ts +40 -0
  20. package/app/api/usage/route.ts +26 -1
  21. package/app/layout.tsx +1 -1
  22. package/bin/agentfit.mjs +2 -2
  23. package/components/agent-coach.tsx +256 -129
  24. package/components/app-sidebar.tsx +45 -10
  25. package/components/backup-section.tsx +236 -0
  26. package/components/daily-chart.tsx +447 -83
  27. package/components/dashboard-shell.tsx +29 -31
  28. package/components/data-provider.tsx +88 -8
  29. package/components/fitness-score.tsx +95 -54
  30. package/components/overview-cards.tsx +148 -41
  31. package/components/report-view.tsx +307 -0
  32. package/components/screenshots-analysis.tsx +51 -46
  33. package/components/session-chatlog.tsx +124 -0
  34. package/components/session-timeline.tsx +184 -0
  35. package/components/session-workflow.tsx +183 -0
  36. package/components/sessions-table.tsx +9 -1
  37. package/components/tool-flow-graph.tsx +144 -0
  38. package/components/ui/carousel.tsx +242 -0
  39. package/components/ui/sidebar.tsx +1 -1
  40. package/components/ui/sonner.tsx +51 -0
  41. package/electron/entitlements.mac.plist +16 -0
  42. package/electron/init-db.mjs +37 -0
  43. package/electron/main.mjs +203 -0
  44. package/generated/prisma/browser.ts +5 -0
  45. package/generated/prisma/client.ts +5 -0
  46. package/generated/prisma/internal/class.ts +14 -4
  47. package/generated/prisma/internal/prismaNamespace.ts +97 -2
  48. package/generated/prisma/internal/prismaNamespaceBrowser.ts +21 -1
  49. package/generated/prisma/models/Report.ts +1219 -0
  50. package/generated/prisma/models/Session.ts +221 -1
  51. package/generated/prisma/models.ts +1 -0
  52. package/lib/coach.ts +571 -211
  53. package/lib/command-insights.ts +231 -0
  54. package/lib/db.ts +2 -2
  55. package/lib/parse-codex.ts +6 -0
  56. package/lib/parse-logs.ts +80 -1
  57. package/lib/queries-codex.ts +24 -0
  58. package/lib/queries.ts +45 -0
  59. package/lib/report.ts +156 -0
  60. package/lib/session-detail.ts +382 -0
  61. package/lib/sync.ts +87 -0
  62. package/lib/tool-flow.ts +71 -0
  63. package/next.config.mjs +6 -1
  64. package/package.json +17 -2
  65. package/plugins/cost-heatmap/component.tsx +72 -50
  66. package/prisma/migrations/20260401144555_add_system_prompt_edits/migration.sql +80 -0
  67. package/prisma/schema.prisma +18 -0
  68. package/prisma/schema.sql +81 -0
  69. package/.claude/settings.local.json +0 -26
  70. package/CONTRIBUTING.md +0 -209
  71. package/prisma/migrations/20260328152517_init/migration.sql +0 -41
  72. package/prisma/migrations/20260328153801_add_image_model/migration.sql +0 -18
  73. package/prisma.config.ts +0 -14
  74. package/setup.sh +0 -73
@@ -0,0 +1,1219 @@
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 `Report` 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"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model Report
17
+ *
18
+ */
19
+ export type ReportModel = runtime.Types.Result.DefaultSelection<Prisma.$ReportPayload>
20
+
21
+ export type AggregateReport = {
22
+ _count: ReportCountAggregateOutputType | null
23
+ _avg: ReportAvgAggregateOutputType | null
24
+ _sum: ReportSumAggregateOutputType | null
25
+ _min: ReportMinAggregateOutputType | null
26
+ _max: ReportMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type ReportAvgAggregateOutputType = {
30
+ sessionCount: number | null
31
+ }
32
+
33
+ export type ReportSumAggregateOutputType = {
34
+ sessionCount: number | null
35
+ }
36
+
37
+ export type ReportMinAggregateOutputType = {
38
+ id: string | null
39
+ title: string | null
40
+ generatedAt: Date | null
41
+ contentJson: string | null
42
+ sessionCount: number | null
43
+ createdAt: Date | null
44
+ }
45
+
46
+ export type ReportMaxAggregateOutputType = {
47
+ id: string | null
48
+ title: string | null
49
+ generatedAt: Date | null
50
+ contentJson: string | null
51
+ sessionCount: number | null
52
+ createdAt: Date | null
53
+ }
54
+
55
+ export type ReportCountAggregateOutputType = {
56
+ id: number
57
+ title: number
58
+ generatedAt: number
59
+ contentJson: number
60
+ sessionCount: number
61
+ createdAt: number
62
+ _all: number
63
+ }
64
+
65
+
66
+ export type ReportAvgAggregateInputType = {
67
+ sessionCount?: true
68
+ }
69
+
70
+ export type ReportSumAggregateInputType = {
71
+ sessionCount?: true
72
+ }
73
+
74
+ export type ReportMinAggregateInputType = {
75
+ id?: true
76
+ title?: true
77
+ generatedAt?: true
78
+ contentJson?: true
79
+ sessionCount?: true
80
+ createdAt?: true
81
+ }
82
+
83
+ export type ReportMaxAggregateInputType = {
84
+ id?: true
85
+ title?: true
86
+ generatedAt?: true
87
+ contentJson?: true
88
+ sessionCount?: true
89
+ createdAt?: true
90
+ }
91
+
92
+ export type ReportCountAggregateInputType = {
93
+ id?: true
94
+ title?: true
95
+ generatedAt?: true
96
+ contentJson?: true
97
+ sessionCount?: true
98
+ createdAt?: true
99
+ _all?: true
100
+ }
101
+
102
+ export type ReportAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
103
+ /**
104
+ * Filter which Report to aggregate.
105
+ */
106
+ where?: Prisma.ReportWhereInput
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
109
+ *
110
+ * Determine the order of Reports to fetch.
111
+ */
112
+ orderBy?: Prisma.ReportOrderByWithRelationInput | Prisma.ReportOrderByWithRelationInput[]
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
115
+ *
116
+ * Sets the start position
117
+ */
118
+ cursor?: Prisma.ReportWhereUniqueInput
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
+ *
122
+ * Take `±n` Reports from the position of the cursor.
123
+ */
124
+ take?: number
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
127
+ *
128
+ * Skip the first `n` Reports.
129
+ */
130
+ skip?: number
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Count returned Reports
135
+ **/
136
+ _count?: true | ReportCountAggregateInputType
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Select which fields to average
141
+ **/
142
+ _avg?: ReportAvgAggregateInputType
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
+ *
146
+ * Select which fields to sum
147
+ **/
148
+ _sum?: ReportSumAggregateInputType
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Select which fields to find the minimum value
153
+ **/
154
+ _min?: ReportMinAggregateInputType
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Select which fields to find the maximum value
159
+ **/
160
+ _max?: ReportMaxAggregateInputType
161
+ }
162
+
163
+ export type GetReportAggregateType<T extends ReportAggregateArgs> = {
164
+ [P in keyof T & keyof AggregateReport]: P extends '_count' | 'count'
165
+ ? T[P] extends true
166
+ ? number
167
+ : Prisma.GetScalarType<T[P], AggregateReport[P]>
168
+ : Prisma.GetScalarType<T[P], AggregateReport[P]>
169
+ }
170
+
171
+
172
+
173
+
174
+ export type ReportGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
175
+ where?: Prisma.ReportWhereInput
176
+ orderBy?: Prisma.ReportOrderByWithAggregationInput | Prisma.ReportOrderByWithAggregationInput[]
177
+ by: Prisma.ReportScalarFieldEnum[] | Prisma.ReportScalarFieldEnum
178
+ having?: Prisma.ReportScalarWhereWithAggregatesInput
179
+ take?: number
180
+ skip?: number
181
+ _count?: ReportCountAggregateInputType | true
182
+ _avg?: ReportAvgAggregateInputType
183
+ _sum?: ReportSumAggregateInputType
184
+ _min?: ReportMinAggregateInputType
185
+ _max?: ReportMaxAggregateInputType
186
+ }
187
+
188
+ export type ReportGroupByOutputType = {
189
+ id: string
190
+ title: string
191
+ generatedAt: Date
192
+ contentJson: string
193
+ sessionCount: number
194
+ createdAt: Date
195
+ _count: ReportCountAggregateOutputType | null
196
+ _avg: ReportAvgAggregateOutputType | null
197
+ _sum: ReportSumAggregateOutputType | null
198
+ _min: ReportMinAggregateOutputType | null
199
+ _max: ReportMaxAggregateOutputType | null
200
+ }
201
+
202
+ export type GetReportGroupByPayload<T extends ReportGroupByArgs> = Prisma.PrismaPromise<
203
+ Array<
204
+ Prisma.PickEnumerable<ReportGroupByOutputType, T['by']> &
205
+ {
206
+ [P in ((keyof T) & (keyof ReportGroupByOutputType))]: P extends '_count'
207
+ ? T[P] extends boolean
208
+ ? number
209
+ : Prisma.GetScalarType<T[P], ReportGroupByOutputType[P]>
210
+ : Prisma.GetScalarType<T[P], ReportGroupByOutputType[P]>
211
+ }
212
+ >
213
+ >
214
+
215
+
216
+
217
+ export type ReportWhereInput = {
218
+ AND?: Prisma.ReportWhereInput | Prisma.ReportWhereInput[]
219
+ OR?: Prisma.ReportWhereInput[]
220
+ NOT?: Prisma.ReportWhereInput | Prisma.ReportWhereInput[]
221
+ id?: Prisma.StringFilter<"Report"> | string
222
+ title?: Prisma.StringFilter<"Report"> | string
223
+ generatedAt?: Prisma.DateTimeFilter<"Report"> | Date | string
224
+ contentJson?: Prisma.StringFilter<"Report"> | string
225
+ sessionCount?: Prisma.IntFilter<"Report"> | number
226
+ createdAt?: Prisma.DateTimeFilter<"Report"> | Date | string
227
+ }
228
+
229
+ export type ReportOrderByWithRelationInput = {
230
+ id?: Prisma.SortOrder
231
+ title?: Prisma.SortOrder
232
+ generatedAt?: Prisma.SortOrder
233
+ contentJson?: Prisma.SortOrder
234
+ sessionCount?: Prisma.SortOrder
235
+ createdAt?: Prisma.SortOrder
236
+ }
237
+
238
+ export type ReportWhereUniqueInput = Prisma.AtLeast<{
239
+ id?: string
240
+ AND?: Prisma.ReportWhereInput | Prisma.ReportWhereInput[]
241
+ OR?: Prisma.ReportWhereInput[]
242
+ NOT?: Prisma.ReportWhereInput | Prisma.ReportWhereInput[]
243
+ title?: Prisma.StringFilter<"Report"> | string
244
+ generatedAt?: Prisma.DateTimeFilter<"Report"> | Date | string
245
+ contentJson?: Prisma.StringFilter<"Report"> | string
246
+ sessionCount?: Prisma.IntFilter<"Report"> | number
247
+ createdAt?: Prisma.DateTimeFilter<"Report"> | Date | string
248
+ }, "id">
249
+
250
+ export type ReportOrderByWithAggregationInput = {
251
+ id?: Prisma.SortOrder
252
+ title?: Prisma.SortOrder
253
+ generatedAt?: Prisma.SortOrder
254
+ contentJson?: Prisma.SortOrder
255
+ sessionCount?: Prisma.SortOrder
256
+ createdAt?: Prisma.SortOrder
257
+ _count?: Prisma.ReportCountOrderByAggregateInput
258
+ _avg?: Prisma.ReportAvgOrderByAggregateInput
259
+ _max?: Prisma.ReportMaxOrderByAggregateInput
260
+ _min?: Prisma.ReportMinOrderByAggregateInput
261
+ _sum?: Prisma.ReportSumOrderByAggregateInput
262
+ }
263
+
264
+ export type ReportScalarWhereWithAggregatesInput = {
265
+ AND?: Prisma.ReportScalarWhereWithAggregatesInput | Prisma.ReportScalarWhereWithAggregatesInput[]
266
+ OR?: Prisma.ReportScalarWhereWithAggregatesInput[]
267
+ NOT?: Prisma.ReportScalarWhereWithAggregatesInput | Prisma.ReportScalarWhereWithAggregatesInput[]
268
+ id?: Prisma.StringWithAggregatesFilter<"Report"> | string
269
+ title?: Prisma.StringWithAggregatesFilter<"Report"> | string
270
+ generatedAt?: Prisma.DateTimeWithAggregatesFilter<"Report"> | Date | string
271
+ contentJson?: Prisma.StringWithAggregatesFilter<"Report"> | string
272
+ sessionCount?: Prisma.IntWithAggregatesFilter<"Report"> | number
273
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Report"> | Date | string
274
+ }
275
+
276
+ export type ReportCreateInput = {
277
+ id?: string
278
+ title: string
279
+ generatedAt?: Date | string
280
+ contentJson: string
281
+ sessionCount: number
282
+ createdAt?: Date | string
283
+ }
284
+
285
+ export type ReportUncheckedCreateInput = {
286
+ id?: string
287
+ title: string
288
+ generatedAt?: Date | string
289
+ contentJson: string
290
+ sessionCount: number
291
+ createdAt?: Date | string
292
+ }
293
+
294
+ export type ReportUpdateInput = {
295
+ id?: Prisma.StringFieldUpdateOperationsInput | string
296
+ title?: Prisma.StringFieldUpdateOperationsInput | string
297
+ generatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
298
+ contentJson?: Prisma.StringFieldUpdateOperationsInput | string
299
+ sessionCount?: Prisma.IntFieldUpdateOperationsInput | number
300
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
301
+ }
302
+
303
+ export type ReportUncheckedUpdateInput = {
304
+ id?: Prisma.StringFieldUpdateOperationsInput | string
305
+ title?: Prisma.StringFieldUpdateOperationsInput | string
306
+ generatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
307
+ contentJson?: Prisma.StringFieldUpdateOperationsInput | string
308
+ sessionCount?: Prisma.IntFieldUpdateOperationsInput | number
309
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
310
+ }
311
+
312
+ export type ReportCreateManyInput = {
313
+ id?: string
314
+ title: string
315
+ generatedAt?: Date | string
316
+ contentJson: string
317
+ sessionCount: number
318
+ createdAt?: Date | string
319
+ }
320
+
321
+ export type ReportUpdateManyMutationInput = {
322
+ id?: Prisma.StringFieldUpdateOperationsInput | string
323
+ title?: Prisma.StringFieldUpdateOperationsInput | string
324
+ generatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
325
+ contentJson?: Prisma.StringFieldUpdateOperationsInput | string
326
+ sessionCount?: Prisma.IntFieldUpdateOperationsInput | number
327
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
328
+ }
329
+
330
+ export type ReportUncheckedUpdateManyInput = {
331
+ id?: Prisma.StringFieldUpdateOperationsInput | string
332
+ title?: Prisma.StringFieldUpdateOperationsInput | string
333
+ generatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
334
+ contentJson?: Prisma.StringFieldUpdateOperationsInput | string
335
+ sessionCount?: Prisma.IntFieldUpdateOperationsInput | number
336
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
337
+ }
338
+
339
+ export type ReportCountOrderByAggregateInput = {
340
+ id?: Prisma.SortOrder
341
+ title?: Prisma.SortOrder
342
+ generatedAt?: Prisma.SortOrder
343
+ contentJson?: Prisma.SortOrder
344
+ sessionCount?: Prisma.SortOrder
345
+ createdAt?: Prisma.SortOrder
346
+ }
347
+
348
+ export type ReportAvgOrderByAggregateInput = {
349
+ sessionCount?: Prisma.SortOrder
350
+ }
351
+
352
+ export type ReportMaxOrderByAggregateInput = {
353
+ id?: Prisma.SortOrder
354
+ title?: Prisma.SortOrder
355
+ generatedAt?: Prisma.SortOrder
356
+ contentJson?: Prisma.SortOrder
357
+ sessionCount?: Prisma.SortOrder
358
+ createdAt?: Prisma.SortOrder
359
+ }
360
+
361
+ export type ReportMinOrderByAggregateInput = {
362
+ id?: Prisma.SortOrder
363
+ title?: Prisma.SortOrder
364
+ generatedAt?: Prisma.SortOrder
365
+ contentJson?: Prisma.SortOrder
366
+ sessionCount?: Prisma.SortOrder
367
+ createdAt?: Prisma.SortOrder
368
+ }
369
+
370
+ export type ReportSumOrderByAggregateInput = {
371
+ sessionCount?: Prisma.SortOrder
372
+ }
373
+
374
+
375
+
376
+ export type ReportSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
377
+ id?: boolean
378
+ title?: boolean
379
+ generatedAt?: boolean
380
+ contentJson?: boolean
381
+ sessionCount?: boolean
382
+ createdAt?: boolean
383
+ }, ExtArgs["result"]["report"]>
384
+
385
+ export type ReportSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
386
+ id?: boolean
387
+ title?: boolean
388
+ generatedAt?: boolean
389
+ contentJson?: boolean
390
+ sessionCount?: boolean
391
+ createdAt?: boolean
392
+ }, ExtArgs["result"]["report"]>
393
+
394
+ export type ReportSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
395
+ id?: boolean
396
+ title?: boolean
397
+ generatedAt?: boolean
398
+ contentJson?: boolean
399
+ sessionCount?: boolean
400
+ createdAt?: boolean
401
+ }, ExtArgs["result"]["report"]>
402
+
403
+ export type ReportSelectScalar = {
404
+ id?: boolean
405
+ title?: boolean
406
+ generatedAt?: boolean
407
+ contentJson?: boolean
408
+ sessionCount?: boolean
409
+ createdAt?: boolean
410
+ }
411
+
412
+ export type ReportOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "generatedAt" | "contentJson" | "sessionCount" | "createdAt", ExtArgs["result"]["report"]>
413
+
414
+ export type $ReportPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
415
+ name: "Report"
416
+ objects: {}
417
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
418
+ id: string
419
+ title: string
420
+ generatedAt: Date
421
+ contentJson: string
422
+ sessionCount: number
423
+ createdAt: Date
424
+ }, ExtArgs["result"]["report"]>
425
+ composites: {}
426
+ }
427
+
428
+ export type ReportGetPayload<S extends boolean | null | undefined | ReportDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ReportPayload, S>
429
+
430
+ export type ReportCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
431
+ Omit<ReportFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
432
+ select?: ReportCountAggregateInputType | true
433
+ }
434
+
435
+ export interface ReportDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
436
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Report'], meta: { name: 'Report' } }
437
+ /**
438
+ * Find zero or one Report that matches the filter.
439
+ * @param {ReportFindUniqueArgs} args - Arguments to find a Report
440
+ * @example
441
+ * // Get one Report
442
+ * const report = await prisma.report.findUnique({
443
+ * where: {
444
+ * // ... provide filter here
445
+ * }
446
+ * })
447
+ */
448
+ findUnique<T extends ReportFindUniqueArgs>(args: Prisma.SelectSubset<T, ReportFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ReportClient<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
449
+
450
+ /**
451
+ * Find one Report that matches the filter or throw an error with `error.code='P2025'`
452
+ * if no matches were found.
453
+ * @param {ReportFindUniqueOrThrowArgs} args - Arguments to find a Report
454
+ * @example
455
+ * // Get one Report
456
+ * const report = await prisma.report.findUniqueOrThrow({
457
+ * where: {
458
+ * // ... provide filter here
459
+ * }
460
+ * })
461
+ */
462
+ findUniqueOrThrow<T extends ReportFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ReportFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ReportClient<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
463
+
464
+ /**
465
+ * Find the first Report that matches the filter.
466
+ * Note, that providing `undefined` is treated as the value not being there.
467
+ * Read more here: https://pris.ly/d/null-undefined
468
+ * @param {ReportFindFirstArgs} args - Arguments to find a Report
469
+ * @example
470
+ * // Get one Report
471
+ * const report = await prisma.report.findFirst({
472
+ * where: {
473
+ * // ... provide filter here
474
+ * }
475
+ * })
476
+ */
477
+ findFirst<T extends ReportFindFirstArgs>(args?: Prisma.SelectSubset<T, ReportFindFirstArgs<ExtArgs>>): Prisma.Prisma__ReportClient<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
478
+
479
+ /**
480
+ * Find the first Report that matches the filter or
481
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
482
+ * Note, that providing `undefined` is treated as the value not being there.
483
+ * Read more here: https://pris.ly/d/null-undefined
484
+ * @param {ReportFindFirstOrThrowArgs} args - Arguments to find a Report
485
+ * @example
486
+ * // Get one Report
487
+ * const report = await prisma.report.findFirstOrThrow({
488
+ * where: {
489
+ * // ... provide filter here
490
+ * }
491
+ * })
492
+ */
493
+ findFirstOrThrow<T extends ReportFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ReportFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ReportClient<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
494
+
495
+ /**
496
+ * Find zero or more Reports that matches the filter.
497
+ * Note, that providing `undefined` is treated as the value not being there.
498
+ * Read more here: https://pris.ly/d/null-undefined
499
+ * @param {ReportFindManyArgs} args - Arguments to filter and select certain fields only.
500
+ * @example
501
+ * // Get all Reports
502
+ * const reports = await prisma.report.findMany()
503
+ *
504
+ * // Get first 10 Reports
505
+ * const reports = await prisma.report.findMany({ take: 10 })
506
+ *
507
+ * // Only select the `id`
508
+ * const reportWithIdOnly = await prisma.report.findMany({ select: { id: true } })
509
+ *
510
+ */
511
+ findMany<T extends ReportFindManyArgs>(args?: Prisma.SelectSubset<T, ReportFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
512
+
513
+ /**
514
+ * Create a Report.
515
+ * @param {ReportCreateArgs} args - Arguments to create a Report.
516
+ * @example
517
+ * // Create one Report
518
+ * const Report = await prisma.report.create({
519
+ * data: {
520
+ * // ... data to create a Report
521
+ * }
522
+ * })
523
+ *
524
+ */
525
+ create<T extends ReportCreateArgs>(args: Prisma.SelectSubset<T, ReportCreateArgs<ExtArgs>>): Prisma.Prisma__ReportClient<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
526
+
527
+ /**
528
+ * Create many Reports.
529
+ * @param {ReportCreateManyArgs} args - Arguments to create many Reports.
530
+ * @example
531
+ * // Create many Reports
532
+ * const report = await prisma.report.createMany({
533
+ * data: [
534
+ * // ... provide data here
535
+ * ]
536
+ * })
537
+ *
538
+ */
539
+ createMany<T extends ReportCreateManyArgs>(args?: Prisma.SelectSubset<T, ReportCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
540
+
541
+ /**
542
+ * Create many Reports and returns the data saved in the database.
543
+ * @param {ReportCreateManyAndReturnArgs} args - Arguments to create many Reports.
544
+ * @example
545
+ * // Create many Reports
546
+ * const report = await prisma.report.createManyAndReturn({
547
+ * data: [
548
+ * // ... provide data here
549
+ * ]
550
+ * })
551
+ *
552
+ * // Create many Reports and only return the `id`
553
+ * const reportWithIdOnly = await prisma.report.createManyAndReturn({
554
+ * select: { id: true },
555
+ * data: [
556
+ * // ... provide data here
557
+ * ]
558
+ * })
559
+ * Note, that providing `undefined` is treated as the value not being there.
560
+ * Read more here: https://pris.ly/d/null-undefined
561
+ *
562
+ */
563
+ createManyAndReturn<T extends ReportCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ReportCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
564
+
565
+ /**
566
+ * Delete a Report.
567
+ * @param {ReportDeleteArgs} args - Arguments to delete one Report.
568
+ * @example
569
+ * // Delete one Report
570
+ * const Report = await prisma.report.delete({
571
+ * where: {
572
+ * // ... filter to delete one Report
573
+ * }
574
+ * })
575
+ *
576
+ */
577
+ delete<T extends ReportDeleteArgs>(args: Prisma.SelectSubset<T, ReportDeleteArgs<ExtArgs>>): Prisma.Prisma__ReportClient<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
578
+
579
+ /**
580
+ * Update one Report.
581
+ * @param {ReportUpdateArgs} args - Arguments to update one Report.
582
+ * @example
583
+ * // Update one Report
584
+ * const report = await prisma.report.update({
585
+ * where: {
586
+ * // ... provide filter here
587
+ * },
588
+ * data: {
589
+ * // ... provide data here
590
+ * }
591
+ * })
592
+ *
593
+ */
594
+ update<T extends ReportUpdateArgs>(args: Prisma.SelectSubset<T, ReportUpdateArgs<ExtArgs>>): Prisma.Prisma__ReportClient<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
595
+
596
+ /**
597
+ * Delete zero or more Reports.
598
+ * @param {ReportDeleteManyArgs} args - Arguments to filter Reports to delete.
599
+ * @example
600
+ * // Delete a few Reports
601
+ * const { count } = await prisma.report.deleteMany({
602
+ * where: {
603
+ * // ... provide filter here
604
+ * }
605
+ * })
606
+ *
607
+ */
608
+ deleteMany<T extends ReportDeleteManyArgs>(args?: Prisma.SelectSubset<T, ReportDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
609
+
610
+ /**
611
+ * Update zero or more Reports.
612
+ * Note, that providing `undefined` is treated as the value not being there.
613
+ * Read more here: https://pris.ly/d/null-undefined
614
+ * @param {ReportUpdateManyArgs} args - Arguments to update one or more rows.
615
+ * @example
616
+ * // Update many Reports
617
+ * const report = await prisma.report.updateMany({
618
+ * where: {
619
+ * // ... provide filter here
620
+ * },
621
+ * data: {
622
+ * // ... provide data here
623
+ * }
624
+ * })
625
+ *
626
+ */
627
+ updateMany<T extends ReportUpdateManyArgs>(args: Prisma.SelectSubset<T, ReportUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
628
+
629
+ /**
630
+ * Update zero or more Reports and returns the data updated in the database.
631
+ * @param {ReportUpdateManyAndReturnArgs} args - Arguments to update many Reports.
632
+ * @example
633
+ * // Update many Reports
634
+ * const report = await prisma.report.updateManyAndReturn({
635
+ * where: {
636
+ * // ... provide filter here
637
+ * },
638
+ * data: [
639
+ * // ... provide data here
640
+ * ]
641
+ * })
642
+ *
643
+ * // Update zero or more Reports and only return the `id`
644
+ * const reportWithIdOnly = await prisma.report.updateManyAndReturn({
645
+ * select: { id: true },
646
+ * where: {
647
+ * // ... provide filter here
648
+ * },
649
+ * data: [
650
+ * // ... provide data here
651
+ * ]
652
+ * })
653
+ * Note, that providing `undefined` is treated as the value not being there.
654
+ * Read more here: https://pris.ly/d/null-undefined
655
+ *
656
+ */
657
+ updateManyAndReturn<T extends ReportUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ReportUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
658
+
659
+ /**
660
+ * Create or update one Report.
661
+ * @param {ReportUpsertArgs} args - Arguments to update or create a Report.
662
+ * @example
663
+ * // Update or create a Report
664
+ * const report = await prisma.report.upsert({
665
+ * create: {
666
+ * // ... data to create a Report
667
+ * },
668
+ * update: {
669
+ * // ... in case it already exists, update
670
+ * },
671
+ * where: {
672
+ * // ... the filter for the Report we want to update
673
+ * }
674
+ * })
675
+ */
676
+ upsert<T extends ReportUpsertArgs>(args: Prisma.SelectSubset<T, ReportUpsertArgs<ExtArgs>>): Prisma.Prisma__ReportClient<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
677
+
678
+
679
+ /**
680
+ * Count the number of Reports.
681
+ * Note, that providing `undefined` is treated as the value not being there.
682
+ * Read more here: https://pris.ly/d/null-undefined
683
+ * @param {ReportCountArgs} args - Arguments to filter Reports to count.
684
+ * @example
685
+ * // Count the number of Reports
686
+ * const count = await prisma.report.count({
687
+ * where: {
688
+ * // ... the filter for the Reports we want to count
689
+ * }
690
+ * })
691
+ **/
692
+ count<T extends ReportCountArgs>(
693
+ args?: Prisma.Subset<T, ReportCountArgs>,
694
+ ): Prisma.PrismaPromise<
695
+ T extends runtime.Types.Utils.Record<'select', any>
696
+ ? T['select'] extends true
697
+ ? number
698
+ : Prisma.GetScalarType<T['select'], ReportCountAggregateOutputType>
699
+ : number
700
+ >
701
+
702
+ /**
703
+ * Allows you to perform aggregations operations on a Report.
704
+ * Note, that providing `undefined` is treated as the value not being there.
705
+ * Read more here: https://pris.ly/d/null-undefined
706
+ * @param {ReportAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
707
+ * @example
708
+ * // Ordered by age ascending
709
+ * // Where email contains prisma.io
710
+ * // Limited to the 10 users
711
+ * const aggregations = await prisma.user.aggregate({
712
+ * _avg: {
713
+ * age: true,
714
+ * },
715
+ * where: {
716
+ * email: {
717
+ * contains: "prisma.io",
718
+ * },
719
+ * },
720
+ * orderBy: {
721
+ * age: "asc",
722
+ * },
723
+ * take: 10,
724
+ * })
725
+ **/
726
+ aggregate<T extends ReportAggregateArgs>(args: Prisma.Subset<T, ReportAggregateArgs>): Prisma.PrismaPromise<GetReportAggregateType<T>>
727
+
728
+ /**
729
+ * Group by Report.
730
+ * Note, that providing `undefined` is treated as the value not being there.
731
+ * Read more here: https://pris.ly/d/null-undefined
732
+ * @param {ReportGroupByArgs} args - Group by arguments.
733
+ * @example
734
+ * // Group by city, order by createdAt, get count
735
+ * const result = await prisma.user.groupBy({
736
+ * by: ['city', 'createdAt'],
737
+ * orderBy: {
738
+ * createdAt: true
739
+ * },
740
+ * _count: {
741
+ * _all: true
742
+ * },
743
+ * })
744
+ *
745
+ **/
746
+ groupBy<
747
+ T extends ReportGroupByArgs,
748
+ HasSelectOrTake extends Prisma.Or<
749
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
750
+ Prisma.Extends<'take', Prisma.Keys<T>>
751
+ >,
752
+ OrderByArg extends Prisma.True extends HasSelectOrTake
753
+ ? { orderBy: ReportGroupByArgs['orderBy'] }
754
+ : { orderBy?: ReportGroupByArgs['orderBy'] },
755
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
756
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
757
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
758
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
759
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
760
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
761
+ InputErrors extends ByEmpty extends Prisma.True
762
+ ? `Error: "by" must not be empty.`
763
+ : HavingValid extends Prisma.False
764
+ ? {
765
+ [P in HavingFields]: P extends ByFields
766
+ ? never
767
+ : P extends string
768
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
769
+ : [
770
+ Error,
771
+ 'Field ',
772
+ P,
773
+ ` in "having" needs to be provided in "by"`,
774
+ ]
775
+ }[HavingFields]
776
+ : 'take' extends Prisma.Keys<T>
777
+ ? 'orderBy' extends Prisma.Keys<T>
778
+ ? ByValid extends Prisma.True
779
+ ? {}
780
+ : {
781
+ [P in OrderFields]: P extends ByFields
782
+ ? never
783
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
784
+ }[OrderFields]
785
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
786
+ : 'skip' extends Prisma.Keys<T>
787
+ ? 'orderBy' extends Prisma.Keys<T>
788
+ ? ByValid extends Prisma.True
789
+ ? {}
790
+ : {
791
+ [P in OrderFields]: P extends ByFields
792
+ ? never
793
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
794
+ }[OrderFields]
795
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
796
+ : ByValid extends Prisma.True
797
+ ? {}
798
+ : {
799
+ [P in OrderFields]: P extends ByFields
800
+ ? never
801
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
802
+ }[OrderFields]
803
+ >(args: Prisma.SubsetIntersection<T, ReportGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetReportGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
804
+ /**
805
+ * Fields of the Report model
806
+ */
807
+ readonly fields: ReportFieldRefs;
808
+ }
809
+
810
+ /**
811
+ * The delegate class that acts as a "Promise-like" for Report.
812
+ * Why is this prefixed with `Prisma__`?
813
+ * Because we want to prevent naming conflicts as mentioned in
814
+ * https://github.com/prisma/prisma-client-js/issues/707
815
+ */
816
+ export interface Prisma__ReportClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
817
+ readonly [Symbol.toStringTag]: "PrismaPromise"
818
+ /**
819
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
820
+ * @param onfulfilled The callback to execute when the Promise is resolved.
821
+ * @param onrejected The callback to execute when the Promise is rejected.
822
+ * @returns A Promise for the completion of which ever callback is executed.
823
+ */
824
+ 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>
825
+ /**
826
+ * Attaches a callback for only the rejection of the Promise.
827
+ * @param onrejected The callback to execute when the Promise is rejected.
828
+ * @returns A Promise for the completion of the callback.
829
+ */
830
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
831
+ /**
832
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
833
+ * resolved value cannot be modified from the callback.
834
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
835
+ * @returns A Promise for the completion of the callback.
836
+ */
837
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
838
+ }
839
+
840
+
841
+
842
+
843
+ /**
844
+ * Fields of the Report model
845
+ */
846
+ export interface ReportFieldRefs {
847
+ readonly id: Prisma.FieldRef<"Report", 'String'>
848
+ readonly title: Prisma.FieldRef<"Report", 'String'>
849
+ readonly generatedAt: Prisma.FieldRef<"Report", 'DateTime'>
850
+ readonly contentJson: Prisma.FieldRef<"Report", 'String'>
851
+ readonly sessionCount: Prisma.FieldRef<"Report", 'Int'>
852
+ readonly createdAt: Prisma.FieldRef<"Report", 'DateTime'>
853
+ }
854
+
855
+
856
+ // Custom InputTypes
857
+ /**
858
+ * Report findUnique
859
+ */
860
+ export type ReportFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
861
+ /**
862
+ * Select specific fields to fetch from the Report
863
+ */
864
+ select?: Prisma.ReportSelect<ExtArgs> | null
865
+ /**
866
+ * Omit specific fields from the Report
867
+ */
868
+ omit?: Prisma.ReportOmit<ExtArgs> | null
869
+ /**
870
+ * Filter, which Report to fetch.
871
+ */
872
+ where: Prisma.ReportWhereUniqueInput
873
+ }
874
+
875
+ /**
876
+ * Report findUniqueOrThrow
877
+ */
878
+ export type ReportFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
879
+ /**
880
+ * Select specific fields to fetch from the Report
881
+ */
882
+ select?: Prisma.ReportSelect<ExtArgs> | null
883
+ /**
884
+ * Omit specific fields from the Report
885
+ */
886
+ omit?: Prisma.ReportOmit<ExtArgs> | null
887
+ /**
888
+ * Filter, which Report to fetch.
889
+ */
890
+ where: Prisma.ReportWhereUniqueInput
891
+ }
892
+
893
+ /**
894
+ * Report findFirst
895
+ */
896
+ export type ReportFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
897
+ /**
898
+ * Select specific fields to fetch from the Report
899
+ */
900
+ select?: Prisma.ReportSelect<ExtArgs> | null
901
+ /**
902
+ * Omit specific fields from the Report
903
+ */
904
+ omit?: Prisma.ReportOmit<ExtArgs> | null
905
+ /**
906
+ * Filter, which Report to fetch.
907
+ */
908
+ where?: Prisma.ReportWhereInput
909
+ /**
910
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
911
+ *
912
+ * Determine the order of Reports to fetch.
913
+ */
914
+ orderBy?: Prisma.ReportOrderByWithRelationInput | Prisma.ReportOrderByWithRelationInput[]
915
+ /**
916
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
917
+ *
918
+ * Sets the position for searching for Reports.
919
+ */
920
+ cursor?: Prisma.ReportWhereUniqueInput
921
+ /**
922
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
923
+ *
924
+ * Take `±n` Reports from the position of the cursor.
925
+ */
926
+ take?: number
927
+ /**
928
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
929
+ *
930
+ * Skip the first `n` Reports.
931
+ */
932
+ skip?: number
933
+ /**
934
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
935
+ *
936
+ * Filter by unique combinations of Reports.
937
+ */
938
+ distinct?: Prisma.ReportScalarFieldEnum | Prisma.ReportScalarFieldEnum[]
939
+ }
940
+
941
+ /**
942
+ * Report findFirstOrThrow
943
+ */
944
+ export type ReportFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
945
+ /**
946
+ * Select specific fields to fetch from the Report
947
+ */
948
+ select?: Prisma.ReportSelect<ExtArgs> | null
949
+ /**
950
+ * Omit specific fields from the Report
951
+ */
952
+ omit?: Prisma.ReportOmit<ExtArgs> | null
953
+ /**
954
+ * Filter, which Report to fetch.
955
+ */
956
+ where?: Prisma.ReportWhereInput
957
+ /**
958
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
959
+ *
960
+ * Determine the order of Reports to fetch.
961
+ */
962
+ orderBy?: Prisma.ReportOrderByWithRelationInput | Prisma.ReportOrderByWithRelationInput[]
963
+ /**
964
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
965
+ *
966
+ * Sets the position for searching for Reports.
967
+ */
968
+ cursor?: Prisma.ReportWhereUniqueInput
969
+ /**
970
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
971
+ *
972
+ * Take `±n` Reports from the position of the cursor.
973
+ */
974
+ take?: number
975
+ /**
976
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
977
+ *
978
+ * Skip the first `n` Reports.
979
+ */
980
+ skip?: number
981
+ /**
982
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
983
+ *
984
+ * Filter by unique combinations of Reports.
985
+ */
986
+ distinct?: Prisma.ReportScalarFieldEnum | Prisma.ReportScalarFieldEnum[]
987
+ }
988
+
989
+ /**
990
+ * Report findMany
991
+ */
992
+ export type ReportFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
993
+ /**
994
+ * Select specific fields to fetch from the Report
995
+ */
996
+ select?: Prisma.ReportSelect<ExtArgs> | null
997
+ /**
998
+ * Omit specific fields from the Report
999
+ */
1000
+ omit?: Prisma.ReportOmit<ExtArgs> | null
1001
+ /**
1002
+ * Filter, which Reports to fetch.
1003
+ */
1004
+ where?: Prisma.ReportWhereInput
1005
+ /**
1006
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1007
+ *
1008
+ * Determine the order of Reports to fetch.
1009
+ */
1010
+ orderBy?: Prisma.ReportOrderByWithRelationInput | Prisma.ReportOrderByWithRelationInput[]
1011
+ /**
1012
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1013
+ *
1014
+ * Sets the position for listing Reports.
1015
+ */
1016
+ cursor?: Prisma.ReportWhereUniqueInput
1017
+ /**
1018
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1019
+ *
1020
+ * Take `±n` Reports from the position of the cursor.
1021
+ */
1022
+ take?: number
1023
+ /**
1024
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1025
+ *
1026
+ * Skip the first `n` Reports.
1027
+ */
1028
+ skip?: number
1029
+ /**
1030
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1031
+ *
1032
+ * Filter by unique combinations of Reports.
1033
+ */
1034
+ distinct?: Prisma.ReportScalarFieldEnum | Prisma.ReportScalarFieldEnum[]
1035
+ }
1036
+
1037
+ /**
1038
+ * Report create
1039
+ */
1040
+ export type ReportCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1041
+ /**
1042
+ * Select specific fields to fetch from the Report
1043
+ */
1044
+ select?: Prisma.ReportSelect<ExtArgs> | null
1045
+ /**
1046
+ * Omit specific fields from the Report
1047
+ */
1048
+ omit?: Prisma.ReportOmit<ExtArgs> | null
1049
+ /**
1050
+ * The data needed to create a Report.
1051
+ */
1052
+ data: Prisma.XOR<Prisma.ReportCreateInput, Prisma.ReportUncheckedCreateInput>
1053
+ }
1054
+
1055
+ /**
1056
+ * Report createMany
1057
+ */
1058
+ export type ReportCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1059
+ /**
1060
+ * The data used to create many Reports.
1061
+ */
1062
+ data: Prisma.ReportCreateManyInput | Prisma.ReportCreateManyInput[]
1063
+ }
1064
+
1065
+ /**
1066
+ * Report createManyAndReturn
1067
+ */
1068
+ export type ReportCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1069
+ /**
1070
+ * Select specific fields to fetch from the Report
1071
+ */
1072
+ select?: Prisma.ReportSelectCreateManyAndReturn<ExtArgs> | null
1073
+ /**
1074
+ * Omit specific fields from the Report
1075
+ */
1076
+ omit?: Prisma.ReportOmit<ExtArgs> | null
1077
+ /**
1078
+ * The data used to create many Reports.
1079
+ */
1080
+ data: Prisma.ReportCreateManyInput | Prisma.ReportCreateManyInput[]
1081
+ }
1082
+
1083
+ /**
1084
+ * Report update
1085
+ */
1086
+ export type ReportUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1087
+ /**
1088
+ * Select specific fields to fetch from the Report
1089
+ */
1090
+ select?: Prisma.ReportSelect<ExtArgs> | null
1091
+ /**
1092
+ * Omit specific fields from the Report
1093
+ */
1094
+ omit?: Prisma.ReportOmit<ExtArgs> | null
1095
+ /**
1096
+ * The data needed to update a Report.
1097
+ */
1098
+ data: Prisma.XOR<Prisma.ReportUpdateInput, Prisma.ReportUncheckedUpdateInput>
1099
+ /**
1100
+ * Choose, which Report to update.
1101
+ */
1102
+ where: Prisma.ReportWhereUniqueInput
1103
+ }
1104
+
1105
+ /**
1106
+ * Report updateMany
1107
+ */
1108
+ export type ReportUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1109
+ /**
1110
+ * The data used to update Reports.
1111
+ */
1112
+ data: Prisma.XOR<Prisma.ReportUpdateManyMutationInput, Prisma.ReportUncheckedUpdateManyInput>
1113
+ /**
1114
+ * Filter which Reports to update
1115
+ */
1116
+ where?: Prisma.ReportWhereInput
1117
+ /**
1118
+ * Limit how many Reports to update.
1119
+ */
1120
+ limit?: number
1121
+ }
1122
+
1123
+ /**
1124
+ * Report updateManyAndReturn
1125
+ */
1126
+ export type ReportUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1127
+ /**
1128
+ * Select specific fields to fetch from the Report
1129
+ */
1130
+ select?: Prisma.ReportSelectUpdateManyAndReturn<ExtArgs> | null
1131
+ /**
1132
+ * Omit specific fields from the Report
1133
+ */
1134
+ omit?: Prisma.ReportOmit<ExtArgs> | null
1135
+ /**
1136
+ * The data used to update Reports.
1137
+ */
1138
+ data: Prisma.XOR<Prisma.ReportUpdateManyMutationInput, Prisma.ReportUncheckedUpdateManyInput>
1139
+ /**
1140
+ * Filter which Reports to update
1141
+ */
1142
+ where?: Prisma.ReportWhereInput
1143
+ /**
1144
+ * Limit how many Reports to update.
1145
+ */
1146
+ limit?: number
1147
+ }
1148
+
1149
+ /**
1150
+ * Report upsert
1151
+ */
1152
+ export type ReportUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1153
+ /**
1154
+ * Select specific fields to fetch from the Report
1155
+ */
1156
+ select?: Prisma.ReportSelect<ExtArgs> | null
1157
+ /**
1158
+ * Omit specific fields from the Report
1159
+ */
1160
+ omit?: Prisma.ReportOmit<ExtArgs> | null
1161
+ /**
1162
+ * The filter to search for the Report to update in case it exists.
1163
+ */
1164
+ where: Prisma.ReportWhereUniqueInput
1165
+ /**
1166
+ * In case the Report found by the `where` argument doesn't exist, create a new Report with this data.
1167
+ */
1168
+ create: Prisma.XOR<Prisma.ReportCreateInput, Prisma.ReportUncheckedCreateInput>
1169
+ /**
1170
+ * In case the Report was found with the provided `where` argument, update it with this data.
1171
+ */
1172
+ update: Prisma.XOR<Prisma.ReportUpdateInput, Prisma.ReportUncheckedUpdateInput>
1173
+ }
1174
+
1175
+ /**
1176
+ * Report delete
1177
+ */
1178
+ export type ReportDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1179
+ /**
1180
+ * Select specific fields to fetch from the Report
1181
+ */
1182
+ select?: Prisma.ReportSelect<ExtArgs> | null
1183
+ /**
1184
+ * Omit specific fields from the Report
1185
+ */
1186
+ omit?: Prisma.ReportOmit<ExtArgs> | null
1187
+ /**
1188
+ * Filter which Report to delete.
1189
+ */
1190
+ where: Prisma.ReportWhereUniqueInput
1191
+ }
1192
+
1193
+ /**
1194
+ * Report deleteMany
1195
+ */
1196
+ export type ReportDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1197
+ /**
1198
+ * Filter which Reports to delete
1199
+ */
1200
+ where?: Prisma.ReportWhereInput
1201
+ /**
1202
+ * Limit how many Reports to delete.
1203
+ */
1204
+ limit?: number
1205
+ }
1206
+
1207
+ /**
1208
+ * Report without action
1209
+ */
1210
+ export type ReportDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
+ /**
1212
+ * Select specific fields to fetch from the Report
1213
+ */
1214
+ select?: Prisma.ReportSelect<ExtArgs> | null
1215
+ /**
1216
+ * Omit specific fields from the Report
1217
+ */
1218
+ omit?: Prisma.ReportOmit<ExtArgs> | null
1219
+ }