agentfit 0.1.0

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