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