agent-tower 0.5.1 → 0.5.2-beta.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 (133) hide show
  1. package/dist/app.d.ts.map +1 -1
  2. package/dist/app.js +4 -0
  3. package/dist/app.js.map +1 -1
  4. package/dist/core/container.d.ts +2 -0
  5. package/dist/core/container.d.ts.map +1 -1
  6. package/dist/core/container.js +8 -0
  7. package/dist/core/container.js.map +1 -1
  8. package/dist/executors/__tests__/codex.executor.test.js +348 -7
  9. package/dist/executors/__tests__/codex.executor.test.js.map +1 -1
  10. package/dist/executors/codex.executor.d.ts +18 -1
  11. package/dist/executors/codex.executor.d.ts.map +1 -1
  12. package/dist/executors/codex.executor.js +75 -7
  13. package/dist/executors/codex.executor.js.map +1 -1
  14. package/dist/routes/__tests__/tasks.test.js +37 -0
  15. package/dist/routes/__tests__/tasks.test.js.map +1 -1
  16. package/dist/routes/sessions.d.ts.map +1 -1
  17. package/dist/routes/sessions.js +12 -0
  18. package/dist/routes/sessions.js.map +1 -1
  19. package/dist/routes/tasks.js +2 -2
  20. package/dist/routes/tasks.js.map +1 -1
  21. package/dist/services/__tests__/project.service.test.d.ts +2 -0
  22. package/dist/services/__tests__/project.service.test.d.ts.map +1 -0
  23. package/dist/services/__tests__/project.service.test.js +62 -0
  24. package/dist/services/__tests__/project.service.test.js.map +1 -0
  25. package/dist/services/__tests__/session-manager.team-run.test.js +98 -0
  26. package/dist/services/__tests__/session-manager.team-run.test.js.map +1 -1
  27. package/dist/services/__tests__/task.service.test.js +352 -38
  28. package/dist/services/__tests__/task.service.test.js.map +1 -1
  29. package/dist/services/__tests__/team-reconciler.service.test.js +68 -0
  30. package/dist/services/__tests__/team-reconciler.service.test.js.map +1 -1
  31. package/dist/services/__tests__/team-run.service.test.js +47 -1
  32. package/dist/services/__tests__/team-run.service.test.js.map +1 -1
  33. package/dist/services/__tests__/team-scheduler.service.test.js +49 -0
  34. package/dist/services/__tests__/team-scheduler.service.test.js.map +1 -1
  35. package/dist/services/__tests__/workspace.service.test.js +102 -0
  36. package/dist/services/__tests__/workspace.service.test.js.map +1 -1
  37. package/dist/services/deleted-task-guard.d.ts +11 -0
  38. package/dist/services/deleted-task-guard.d.ts.map +1 -0
  39. package/dist/services/deleted-task-guard.js +10 -0
  40. package/dist/services/deleted-task-guard.js.map +1 -0
  41. package/dist/services/project.service.d.ts +1 -0
  42. package/dist/services/project.service.d.ts.map +1 -1
  43. package/dist/services/project.service.js +1 -1
  44. package/dist/services/project.service.js.map +1 -1
  45. package/dist/services/session-manager.d.ts +47 -1
  46. package/dist/services/session-manager.d.ts.map +1 -1
  47. package/dist/services/session-manager.js +124 -35
  48. package/dist/services/session-manager.js.map +1 -1
  49. package/dist/services/task-cleanup.service.d.ts +46 -0
  50. package/dist/services/task-cleanup.service.d.ts.map +1 -0
  51. package/dist/services/task-cleanup.service.js +202 -0
  52. package/dist/services/task-cleanup.service.js.map +1 -0
  53. package/dist/services/task.service.d.ts +15 -7
  54. package/dist/services/task.service.d.ts.map +1 -1
  55. package/dist/services/task.service.js +136 -63
  56. package/dist/services/task.service.js.map +1 -1
  57. package/dist/services/team-reconciler.service.d.ts.map +1 -1
  58. package/dist/services/team-reconciler.service.js +21 -1
  59. package/dist/services/team-reconciler.service.js.map +1 -1
  60. package/dist/services/team-run.service.d.ts.map +1 -1
  61. package/dist/services/team-run.service.js +15 -1
  62. package/dist/services/team-run.service.js.map +1 -1
  63. package/dist/services/team-scheduler.service.d.ts +3 -1
  64. package/dist/services/team-scheduler.service.d.ts.map +1 -1
  65. package/dist/services/team-scheduler.service.js +16 -0
  66. package/dist/services/team-scheduler.service.js.map +1 -1
  67. package/dist/services/workspace.service.d.ts +8 -0
  68. package/dist/services/workspace.service.d.ts.map +1 -1
  69. package/dist/services/workspace.service.js +70 -12
  70. package/dist/services/workspace.service.js.map +1 -1
  71. package/dist/web/assets/AgentDemoPage-CWcu7-P7.js +1 -0
  72. package/dist/web/assets/{DemoPage-DeXHpe0f.js → DemoPage-6hMli_sP.js} +3 -3
  73. package/dist/web/assets/GeneralSettingsPage-DUaFSgCY.js +1 -0
  74. package/dist/web/assets/MemberAvatar-S-eJAdWH.js +1 -0
  75. package/dist/web/assets/NotificationSettingsPage-Cl5x8F4G.js +1 -0
  76. package/dist/web/assets/ProfileSettingsPage-QFN9385l.js +3 -0
  77. package/dist/web/assets/ProjectKanbanPage-Dye8K5K1.js +89 -0
  78. package/dist/web/assets/ProjectSettingsPage-Do3Q1_r4.js +2 -0
  79. package/dist/web/assets/ProviderSettingsPage-DYOb33XQ.js +54 -0
  80. package/dist/web/assets/SettingsSection-D0Zzbbhp.js +1 -0
  81. package/dist/web/assets/TeamSettingsPage-Dq_DU1S8.js +1 -0
  82. package/dist/web/assets/arrow-left-D0xGRsQG.js +1 -0
  83. package/dist/web/assets/button-C-IDw2d8.js +1 -0
  84. package/dist/web/assets/check-KjbNKANU.js +1 -0
  85. package/dist/web/assets/chevron-down-C735lPj9.js +1 -0
  86. package/dist/web/assets/chevron-right-DfFiWY3R.js +1 -0
  87. package/dist/web/assets/{chevron-up-xy9sRgGr.js → chevron-up-DqGc0SsZ.js} +1 -1
  88. package/dist/web/assets/{circle-check-D53Ur01f.js → circle-check-CSlvn06a.js} +1 -1
  89. package/dist/web/assets/{code-block-OCS4YCEC-BHTzJkrx.js → code-block-OCS4YCEC-BRT1Nrpy.js} +1 -1
  90. package/dist/web/assets/confirm-dialog-BtsxywSG.js +1 -0
  91. package/dist/web/assets/folder-picker-BuvfyaHB.js +1 -0
  92. package/dist/web/assets/index-BAz6UxmL.js +13 -0
  93. package/dist/web/assets/index-r8en4dlI.css +1 -0
  94. package/dist/web/assets/loader-circle-BLO3w-ze.js +1 -0
  95. package/dist/web/assets/{mermaid-NOHMQCX5-BSPQ7bmi.js → mermaid-NOHMQCX5-BLfGHrOE.js} +53 -53
  96. package/dist/web/assets/message-square-CIyucdyo.js +1 -0
  97. package/dist/web/assets/modal-D_VShm6D.js +1 -0
  98. package/dist/web/assets/{pencil-zfyDXHtM.js → pencil-CdJXJig-.js} +1 -1
  99. package/dist/web/assets/rotate-ccw-B42Jf1RW.js +1 -0
  100. package/dist/web/assets/{select-CEtSClHi.js → select-kVmZCXo9.js} +1 -1
  101. package/dist/web/assets/{use-profiles-BrCaq-M0.js → use-profiles-Bvj_EW-7.js} +1 -1
  102. package/dist/web/assets/{use-providers-BmGR6zlI.js → use-providers-CcFzAUyf.js} +1 -1
  103. package/dist/web/index.html +2 -2
  104. package/node_modules/@prisma/client/.prisma/client/edge.js +22 -5
  105. package/node_modules/@prisma/client/.prisma/client/index-browser.js +17 -0
  106. package/node_modules/@prisma/client/.prisma/client/index.d.ts +1534 -142
  107. package/node_modules/@prisma/client/.prisma/client/index.js +22 -5
  108. package/node_modules/@prisma/client/.prisma/client/package.json +1 -1
  109. package/node_modules/@prisma/client/.prisma/client/schema.prisma +23 -0
  110. package/node_modules/@prisma/client/.prisma/client/wasm.js +17 -0
  111. package/package.json +1 -1
  112. package/prisma/migrations/20260603000000_add_task_cleanup_jobs/migration.sql +21 -0
  113. package/prisma/schema.prisma +23 -0
  114. package/dist/web/assets/AgentDemoPage-C41Npg-J.js +0 -1
  115. package/dist/web/assets/GeneralSettingsPage-ROIAXf_I.js +0 -1
  116. package/dist/web/assets/MemberAvatar-Bgb9cNkt.js +0 -1
  117. package/dist/web/assets/NotificationSettingsPage-BSFFB_Xk.js +0 -1
  118. package/dist/web/assets/ProfileSettingsPage-n6J_nKUb.js +0 -3
  119. package/dist/web/assets/ProjectKanbanPage-BUwfUX3X.js +0 -90
  120. package/dist/web/assets/ProjectSettingsPage-Dv5Ab2MY.js +0 -2
  121. package/dist/web/assets/ProviderSettingsPage-Ckp_pVCi.js +0 -54
  122. package/dist/web/assets/TeamSettingsPage-DjlyHMct.js +0 -1
  123. package/dist/web/assets/button-_UA8cNod.js +0 -1
  124. package/dist/web/assets/chevron-down-qLfxqOnz.js +0 -1
  125. package/dist/web/assets/chevron-right-SY4_v7-h.js +0 -1
  126. package/dist/web/assets/confirm-dialog-D9WQU47x.js +0 -1
  127. package/dist/web/assets/folder-picker-DPW13OyX.js +0 -1
  128. package/dist/web/assets/index-BjIvVVfi.css +0 -1
  129. package/dist/web/assets/index-BsrxN6e4.js +0 -13
  130. package/dist/web/assets/loader-circle-CPz4Agyr.js +0 -1
  131. package/dist/web/assets/modal-BLPS1r7Q.js +0 -1
  132. package/dist/web/assets/upload-hdDyQIIu.js +0 -1
  133. package/dist/web/assets/utils-CkSf8FUe.js +0 -1
@@ -23,6 +23,11 @@ export type Project = $Result.DefaultSelection<Prisma.$ProjectPayload>
23
23
  *
24
24
  */
25
25
  export type Task = $Result.DefaultSelection<Prisma.$TaskPayload>
26
+ /**
27
+ * Model TaskCleanupJob
28
+ *
29
+ */
30
+ export type TaskCleanupJob = $Result.DefaultSelection<Prisma.$TaskCleanupJobPayload>
26
31
  /**
27
32
  * Model MemberPreset
28
33
  *
@@ -247,6 +252,16 @@ export class PrismaClient<
247
252
  */
248
253
  get task(): Prisma.TaskDelegate<ExtArgs>;
249
254
 
255
+ /**
256
+ * `prisma.taskCleanupJob`: Exposes CRUD operations for the **TaskCleanupJob** model.
257
+ * Example usage:
258
+ * ```ts
259
+ * // Fetch zero or more TaskCleanupJobs
260
+ * const taskCleanupJobs = await prisma.taskCleanupJob.findMany()
261
+ * ```
262
+ */
263
+ get taskCleanupJob(): Prisma.TaskCleanupJobDelegate<ExtArgs>;
264
+
250
265
  /**
251
266
  * `prisma.memberPreset`: Exposes CRUD operations for the **MemberPreset** model.
252
267
  * Example usage:
@@ -849,6 +864,7 @@ export namespace Prisma {
849
864
  export const ModelName: {
850
865
  Project: 'Project',
851
866
  Task: 'Task',
867
+ TaskCleanupJob: 'TaskCleanupJob',
852
868
  MemberPreset: 'MemberPreset',
853
869
  TeamTemplate: 'TeamTemplate',
854
870
  TeamTemplateMember: 'TeamTemplateMember',
@@ -880,7 +896,7 @@ export namespace Prisma {
880
896
 
881
897
  export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
882
898
  meta: {
883
- modelProps: "project" | "task" | "memberPreset" | "teamTemplate" | "teamTemplateMember" | "teamRun" | "teamMember" | "roomMessage" | "roomMessageParticipant" | "workRequest" | "agentInvocation" | "workspace" | "session" | "executionProcess" | "executionLog" | "attachment" | "appSettings" | "notificationSettings"
899
+ modelProps: "project" | "task" | "taskCleanupJob" | "memberPreset" | "teamTemplate" | "teamTemplateMember" | "teamRun" | "teamMember" | "roomMessage" | "roomMessageParticipant" | "workRequest" | "agentInvocation" | "workspace" | "session" | "executionProcess" | "executionLog" | "attachment" | "appSettings" | "notificationSettings"
884
900
  txIsolationLevel: Prisma.TransactionIsolationLevel
885
901
  }
886
902
  model: {
@@ -1024,6 +1040,76 @@ export namespace Prisma {
1024
1040
  }
1025
1041
  }
1026
1042
  }
1043
+ TaskCleanupJob: {
1044
+ payload: Prisma.$TaskCleanupJobPayload<ExtArgs>
1045
+ fields: Prisma.TaskCleanupJobFieldRefs
1046
+ operations: {
1047
+ findUnique: {
1048
+ args: Prisma.TaskCleanupJobFindUniqueArgs<ExtArgs>
1049
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload> | null
1050
+ }
1051
+ findUniqueOrThrow: {
1052
+ args: Prisma.TaskCleanupJobFindUniqueOrThrowArgs<ExtArgs>
1053
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload>
1054
+ }
1055
+ findFirst: {
1056
+ args: Prisma.TaskCleanupJobFindFirstArgs<ExtArgs>
1057
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload> | null
1058
+ }
1059
+ findFirstOrThrow: {
1060
+ args: Prisma.TaskCleanupJobFindFirstOrThrowArgs<ExtArgs>
1061
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload>
1062
+ }
1063
+ findMany: {
1064
+ args: Prisma.TaskCleanupJobFindManyArgs<ExtArgs>
1065
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload>[]
1066
+ }
1067
+ create: {
1068
+ args: Prisma.TaskCleanupJobCreateArgs<ExtArgs>
1069
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload>
1070
+ }
1071
+ createMany: {
1072
+ args: Prisma.TaskCleanupJobCreateManyArgs<ExtArgs>
1073
+ result: BatchPayload
1074
+ }
1075
+ createManyAndReturn: {
1076
+ args: Prisma.TaskCleanupJobCreateManyAndReturnArgs<ExtArgs>
1077
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload>[]
1078
+ }
1079
+ delete: {
1080
+ args: Prisma.TaskCleanupJobDeleteArgs<ExtArgs>
1081
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload>
1082
+ }
1083
+ update: {
1084
+ args: Prisma.TaskCleanupJobUpdateArgs<ExtArgs>
1085
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload>
1086
+ }
1087
+ deleteMany: {
1088
+ args: Prisma.TaskCleanupJobDeleteManyArgs<ExtArgs>
1089
+ result: BatchPayload
1090
+ }
1091
+ updateMany: {
1092
+ args: Prisma.TaskCleanupJobUpdateManyArgs<ExtArgs>
1093
+ result: BatchPayload
1094
+ }
1095
+ upsert: {
1096
+ args: Prisma.TaskCleanupJobUpsertArgs<ExtArgs>
1097
+ result: $Utils.PayloadToResult<Prisma.$TaskCleanupJobPayload>
1098
+ }
1099
+ aggregate: {
1100
+ args: Prisma.TaskCleanupJobAggregateArgs<ExtArgs>
1101
+ result: $Utils.Optional<AggregateTaskCleanupJob>
1102
+ }
1103
+ groupBy: {
1104
+ args: Prisma.TaskCleanupJobGroupByArgs<ExtArgs>
1105
+ result: $Utils.Optional<TaskCleanupJobGroupByOutputType>[]
1106
+ }
1107
+ count: {
1108
+ args: Prisma.TaskCleanupJobCountArgs<ExtArgs>
1109
+ result: $Utils.Optional<TaskCleanupJobCountAggregateOutputType> | number
1110
+ }
1111
+ }
1112
+ }
1027
1113
  MemberPreset: {
1028
1114
  payload: Prisma.$MemberPresetPayload<ExtArgs>
1029
1115
  fields: Prisma.MemberPresetFieldRefs
@@ -3678,6 +3764,7 @@ export namespace Prisma {
3678
3764
  priority: number | null
3679
3765
  position: number | null
3680
3766
  projectId: string | null
3767
+ deletedAt: Date | null
3681
3768
  createdAt: Date | null
3682
3769
  updatedAt: Date | null
3683
3770
  }
@@ -3690,6 +3777,7 @@ export namespace Prisma {
3690
3777
  priority: number | null
3691
3778
  position: number | null
3692
3779
  projectId: string | null
3780
+ deletedAt: Date | null
3693
3781
  createdAt: Date | null
3694
3782
  updatedAt: Date | null
3695
3783
  }
@@ -3702,6 +3790,7 @@ export namespace Prisma {
3702
3790
  priority: number
3703
3791
  position: number
3704
3792
  projectId: number
3793
+ deletedAt: number
3705
3794
  createdAt: number
3706
3795
  updatedAt: number
3707
3796
  _all: number
@@ -3726,6 +3815,7 @@ export namespace Prisma {
3726
3815
  priority?: true
3727
3816
  position?: true
3728
3817
  projectId?: true
3818
+ deletedAt?: true
3729
3819
  createdAt?: true
3730
3820
  updatedAt?: true
3731
3821
  }
@@ -3738,6 +3828,7 @@ export namespace Prisma {
3738
3828
  priority?: true
3739
3829
  position?: true
3740
3830
  projectId?: true
3831
+ deletedAt?: true
3741
3832
  createdAt?: true
3742
3833
  updatedAt?: true
3743
3834
  }
@@ -3750,6 +3841,7 @@ export namespace Prisma {
3750
3841
  priority?: true
3751
3842
  position?: true
3752
3843
  projectId?: true
3844
+ deletedAt?: true
3753
3845
  createdAt?: true
3754
3846
  updatedAt?: true
3755
3847
  _all?: true
@@ -3849,6 +3941,7 @@ export namespace Prisma {
3849
3941
  priority: number
3850
3942
  position: number
3851
3943
  projectId: string
3944
+ deletedAt: Date | null
3852
3945
  createdAt: Date
3853
3946
  updatedAt: Date
3854
3947
  _count: TaskCountAggregateOutputType | null
@@ -3880,6 +3973,7 @@ export namespace Prisma {
3880
3973
  priority?: boolean
3881
3974
  position?: boolean
3882
3975
  projectId?: boolean
3976
+ deletedAt?: boolean
3883
3977
  createdAt?: boolean
3884
3978
  updatedAt?: boolean
3885
3979
  project?: boolean | ProjectDefaultArgs<ExtArgs>
@@ -3896,6 +3990,7 @@ export namespace Prisma {
3896
3990
  priority?: boolean
3897
3991
  position?: boolean
3898
3992
  projectId?: boolean
3993
+ deletedAt?: boolean
3899
3994
  createdAt?: boolean
3900
3995
  updatedAt?: boolean
3901
3996
  project?: boolean | ProjectDefaultArgs<ExtArgs>
@@ -3909,6 +4004,7 @@ export namespace Prisma {
3909
4004
  priority?: boolean
3910
4005
  position?: boolean
3911
4006
  projectId?: boolean
4007
+ deletedAt?: boolean
3912
4008
  createdAt?: boolean
3913
4009
  updatedAt?: boolean
3914
4010
  }
@@ -3938,6 +4034,7 @@ export namespace Prisma {
3938
4034
  priority: number
3939
4035
  position: number
3940
4036
  projectId: string
4037
+ deletedAt: Date | null
3941
4038
  createdAt: Date
3942
4039
  updatedAt: Date
3943
4040
  }, ExtArgs["result"]["task"]>
@@ -4343,6 +4440,7 @@ export namespace Prisma {
4343
4440
  readonly priority: FieldRef<"Task", 'Int'>
4344
4441
  readonly position: FieldRef<"Task", 'Int'>
4345
4442
  readonly projectId: FieldRef<"Task", 'String'>
4443
+ readonly deletedAt: FieldRef<"Task", 'DateTime'>
4346
4444
  readonly createdAt: FieldRef<"Task", 'DateTime'>
4347
4445
  readonly updatedAt: FieldRef<"Task", 'DateTime'>
4348
4446
  }
@@ -4444,269 +4542,1263 @@ export namespace Prisma {
4444
4542
  /**
4445
4543
  * Choose, which related nodes to fetch as well
4446
4544
  */
4447
- include?: TaskInclude<ExtArgs> | null
4545
+ include?: TaskInclude<ExtArgs> | null
4546
+ /**
4547
+ * Filter, which Task to fetch.
4548
+ */
4549
+ where?: TaskWhereInput
4550
+ /**
4551
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4552
+ *
4553
+ * Determine the order of Tasks to fetch.
4554
+ */
4555
+ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[]
4556
+ /**
4557
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4558
+ *
4559
+ * Sets the position for searching for Tasks.
4560
+ */
4561
+ cursor?: TaskWhereUniqueInput
4562
+ /**
4563
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4564
+ *
4565
+ * Take `±n` Tasks from the position of the cursor.
4566
+ */
4567
+ take?: number
4568
+ /**
4569
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4570
+ *
4571
+ * Skip the first `n` Tasks.
4572
+ */
4573
+ skip?: number
4574
+ /**
4575
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
4576
+ *
4577
+ * Filter by unique combinations of Tasks.
4578
+ */
4579
+ distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[]
4580
+ }
4581
+
4582
+ /**
4583
+ * Task findMany
4584
+ */
4585
+ export type TaskFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4586
+ /**
4587
+ * Select specific fields to fetch from the Task
4588
+ */
4589
+ select?: TaskSelect<ExtArgs> | null
4590
+ /**
4591
+ * Choose, which related nodes to fetch as well
4592
+ */
4593
+ include?: TaskInclude<ExtArgs> | null
4594
+ /**
4595
+ * Filter, which Tasks to fetch.
4596
+ */
4597
+ where?: TaskWhereInput
4598
+ /**
4599
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4600
+ *
4601
+ * Determine the order of Tasks to fetch.
4602
+ */
4603
+ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[]
4604
+ /**
4605
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4606
+ *
4607
+ * Sets the position for listing Tasks.
4608
+ */
4609
+ cursor?: TaskWhereUniqueInput
4610
+ /**
4611
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4612
+ *
4613
+ * Take `±n` Tasks from the position of the cursor.
4614
+ */
4615
+ take?: number
4616
+ /**
4617
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4618
+ *
4619
+ * Skip the first `n` Tasks.
4620
+ */
4621
+ skip?: number
4622
+ distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[]
4623
+ }
4624
+
4625
+ /**
4626
+ * Task create
4627
+ */
4628
+ export type TaskCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4629
+ /**
4630
+ * Select specific fields to fetch from the Task
4631
+ */
4632
+ select?: TaskSelect<ExtArgs> | null
4633
+ /**
4634
+ * Choose, which related nodes to fetch as well
4635
+ */
4636
+ include?: TaskInclude<ExtArgs> | null
4637
+ /**
4638
+ * The data needed to create a Task.
4639
+ */
4640
+ data: XOR<TaskCreateInput, TaskUncheckedCreateInput>
4641
+ }
4642
+
4643
+ /**
4644
+ * Task createMany
4645
+ */
4646
+ export type TaskCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4647
+ /**
4648
+ * The data used to create many Tasks.
4649
+ */
4650
+ data: TaskCreateManyInput | TaskCreateManyInput[]
4651
+ }
4652
+
4653
+ /**
4654
+ * Task createManyAndReturn
4655
+ */
4656
+ export type TaskCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4657
+ /**
4658
+ * Select specific fields to fetch from the Task
4659
+ */
4660
+ select?: TaskSelectCreateManyAndReturn<ExtArgs> | null
4661
+ /**
4662
+ * The data used to create many Tasks.
4663
+ */
4664
+ data: TaskCreateManyInput | TaskCreateManyInput[]
4665
+ /**
4666
+ * Choose, which related nodes to fetch as well
4667
+ */
4668
+ include?: TaskIncludeCreateManyAndReturn<ExtArgs> | null
4669
+ }
4670
+
4671
+ /**
4672
+ * Task update
4673
+ */
4674
+ export type TaskUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4675
+ /**
4676
+ * Select specific fields to fetch from the Task
4677
+ */
4678
+ select?: TaskSelect<ExtArgs> | null
4679
+ /**
4680
+ * Choose, which related nodes to fetch as well
4681
+ */
4682
+ include?: TaskInclude<ExtArgs> | null
4683
+ /**
4684
+ * The data needed to update a Task.
4685
+ */
4686
+ data: XOR<TaskUpdateInput, TaskUncheckedUpdateInput>
4687
+ /**
4688
+ * Choose, which Task to update.
4689
+ */
4690
+ where: TaskWhereUniqueInput
4691
+ }
4692
+
4693
+ /**
4694
+ * Task updateMany
4695
+ */
4696
+ export type TaskUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4697
+ /**
4698
+ * The data used to update Tasks.
4699
+ */
4700
+ data: XOR<TaskUpdateManyMutationInput, TaskUncheckedUpdateManyInput>
4701
+ /**
4702
+ * Filter which Tasks to update
4703
+ */
4704
+ where?: TaskWhereInput
4705
+ }
4706
+
4707
+ /**
4708
+ * Task upsert
4709
+ */
4710
+ export type TaskUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4711
+ /**
4712
+ * Select specific fields to fetch from the Task
4713
+ */
4714
+ select?: TaskSelect<ExtArgs> | null
4715
+ /**
4716
+ * Choose, which related nodes to fetch as well
4717
+ */
4718
+ include?: TaskInclude<ExtArgs> | null
4719
+ /**
4720
+ * The filter to search for the Task to update in case it exists.
4721
+ */
4722
+ where: TaskWhereUniqueInput
4723
+ /**
4724
+ * In case the Task found by the `where` argument doesn't exist, create a new Task with this data.
4725
+ */
4726
+ create: XOR<TaskCreateInput, TaskUncheckedCreateInput>
4727
+ /**
4728
+ * In case the Task was found with the provided `where` argument, update it with this data.
4729
+ */
4730
+ update: XOR<TaskUpdateInput, TaskUncheckedUpdateInput>
4731
+ }
4732
+
4733
+ /**
4734
+ * Task delete
4735
+ */
4736
+ export type TaskDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4737
+ /**
4738
+ * Select specific fields to fetch from the Task
4739
+ */
4740
+ select?: TaskSelect<ExtArgs> | null
4741
+ /**
4742
+ * Choose, which related nodes to fetch as well
4743
+ */
4744
+ include?: TaskInclude<ExtArgs> | null
4745
+ /**
4746
+ * Filter which Task to delete.
4747
+ */
4748
+ where: TaskWhereUniqueInput
4749
+ }
4750
+
4751
+ /**
4752
+ * Task deleteMany
4753
+ */
4754
+ export type TaskDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4755
+ /**
4756
+ * Filter which Tasks to delete
4757
+ */
4758
+ where?: TaskWhereInput
4759
+ }
4760
+
4761
+ /**
4762
+ * Task.workspaces
4763
+ */
4764
+ export type Task$workspacesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4765
+ /**
4766
+ * Select specific fields to fetch from the Workspace
4767
+ */
4768
+ select?: WorkspaceSelect<ExtArgs> | null
4769
+ /**
4770
+ * Choose, which related nodes to fetch as well
4771
+ */
4772
+ include?: WorkspaceInclude<ExtArgs> | null
4773
+ where?: WorkspaceWhereInput
4774
+ orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
4775
+ cursor?: WorkspaceWhereUniqueInput
4776
+ take?: number
4777
+ skip?: number
4778
+ distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
4779
+ }
4780
+
4781
+ /**
4782
+ * Task.teamRun
4783
+ */
4784
+ export type Task$teamRunArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4785
+ /**
4786
+ * Select specific fields to fetch from the TeamRun
4787
+ */
4788
+ select?: TeamRunSelect<ExtArgs> | null
4789
+ /**
4790
+ * Choose, which related nodes to fetch as well
4791
+ */
4792
+ include?: TeamRunInclude<ExtArgs> | null
4793
+ where?: TeamRunWhereInput
4794
+ }
4795
+
4796
+ /**
4797
+ * Task without action
4798
+ */
4799
+ export type TaskDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4800
+ /**
4801
+ * Select specific fields to fetch from the Task
4802
+ */
4803
+ select?: TaskSelect<ExtArgs> | null
4804
+ /**
4805
+ * Choose, which related nodes to fetch as well
4806
+ */
4807
+ include?: TaskInclude<ExtArgs> | null
4808
+ }
4809
+
4810
+
4811
+ /**
4812
+ * Model TaskCleanupJob
4813
+ */
4814
+
4815
+ export type AggregateTaskCleanupJob = {
4816
+ _count: TaskCleanupJobCountAggregateOutputType | null
4817
+ _avg: TaskCleanupJobAvgAggregateOutputType | null
4818
+ _sum: TaskCleanupJobSumAggregateOutputType | null
4819
+ _min: TaskCleanupJobMinAggregateOutputType | null
4820
+ _max: TaskCleanupJobMaxAggregateOutputType | null
4821
+ }
4822
+
4823
+ export type TaskCleanupJobAvgAggregateOutputType = {
4824
+ attempts: number | null
4825
+ }
4826
+
4827
+ export type TaskCleanupJobSumAggregateOutputType = {
4828
+ attempts: number | null
4829
+ }
4830
+
4831
+ export type TaskCleanupJobMinAggregateOutputType = {
4832
+ id: string | null
4833
+ taskId: string | null
4834
+ projectId: string | null
4835
+ payload: string | null
4836
+ status: string | null
4837
+ attempts: number | null
4838
+ lastError: string | null
4839
+ nextRetryAt: Date | null
4840
+ startedAt: Date | null
4841
+ completedAt: Date | null
4842
+ createdAt: Date | null
4843
+ updatedAt: Date | null
4844
+ }
4845
+
4846
+ export type TaskCleanupJobMaxAggregateOutputType = {
4847
+ id: string | null
4848
+ taskId: string | null
4849
+ projectId: string | null
4850
+ payload: string | null
4851
+ status: string | null
4852
+ attempts: number | null
4853
+ lastError: string | null
4854
+ nextRetryAt: Date | null
4855
+ startedAt: Date | null
4856
+ completedAt: Date | null
4857
+ createdAt: Date | null
4858
+ updatedAt: Date | null
4859
+ }
4860
+
4861
+ export type TaskCleanupJobCountAggregateOutputType = {
4862
+ id: number
4863
+ taskId: number
4864
+ projectId: number
4865
+ payload: number
4866
+ status: number
4867
+ attempts: number
4868
+ lastError: number
4869
+ nextRetryAt: number
4870
+ startedAt: number
4871
+ completedAt: number
4872
+ createdAt: number
4873
+ updatedAt: number
4874
+ _all: number
4875
+ }
4876
+
4877
+
4878
+ export type TaskCleanupJobAvgAggregateInputType = {
4879
+ attempts?: true
4880
+ }
4881
+
4882
+ export type TaskCleanupJobSumAggregateInputType = {
4883
+ attempts?: true
4884
+ }
4885
+
4886
+ export type TaskCleanupJobMinAggregateInputType = {
4887
+ id?: true
4888
+ taskId?: true
4889
+ projectId?: true
4890
+ payload?: true
4891
+ status?: true
4892
+ attempts?: true
4893
+ lastError?: true
4894
+ nextRetryAt?: true
4895
+ startedAt?: true
4896
+ completedAt?: true
4897
+ createdAt?: true
4898
+ updatedAt?: true
4899
+ }
4900
+
4901
+ export type TaskCleanupJobMaxAggregateInputType = {
4902
+ id?: true
4903
+ taskId?: true
4904
+ projectId?: true
4905
+ payload?: true
4906
+ status?: true
4907
+ attempts?: true
4908
+ lastError?: true
4909
+ nextRetryAt?: true
4910
+ startedAt?: true
4911
+ completedAt?: true
4912
+ createdAt?: true
4913
+ updatedAt?: true
4914
+ }
4915
+
4916
+ export type TaskCleanupJobCountAggregateInputType = {
4917
+ id?: true
4918
+ taskId?: true
4919
+ projectId?: true
4920
+ payload?: true
4921
+ status?: true
4922
+ attempts?: true
4923
+ lastError?: true
4924
+ nextRetryAt?: true
4925
+ startedAt?: true
4926
+ completedAt?: true
4927
+ createdAt?: true
4928
+ updatedAt?: true
4929
+ _all?: true
4930
+ }
4931
+
4932
+ export type TaskCleanupJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4933
+ /**
4934
+ * Filter which TaskCleanupJob to aggregate.
4935
+ */
4936
+ where?: TaskCleanupJobWhereInput
4937
+ /**
4938
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4939
+ *
4940
+ * Determine the order of TaskCleanupJobs to fetch.
4941
+ */
4942
+ orderBy?: TaskCleanupJobOrderByWithRelationInput | TaskCleanupJobOrderByWithRelationInput[]
4943
+ /**
4944
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4945
+ *
4946
+ * Sets the start position
4947
+ */
4948
+ cursor?: TaskCleanupJobWhereUniqueInput
4949
+ /**
4950
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4951
+ *
4952
+ * Take `±n` TaskCleanupJobs from the position of the cursor.
4953
+ */
4954
+ take?: number
4955
+ /**
4956
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4957
+ *
4958
+ * Skip the first `n` TaskCleanupJobs.
4959
+ */
4960
+ skip?: number
4961
+ /**
4962
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
4963
+ *
4964
+ * Count returned TaskCleanupJobs
4965
+ **/
4966
+ _count?: true | TaskCleanupJobCountAggregateInputType
4967
+ /**
4968
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
4969
+ *
4970
+ * Select which fields to average
4971
+ **/
4972
+ _avg?: TaskCleanupJobAvgAggregateInputType
4973
+ /**
4974
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
4975
+ *
4976
+ * Select which fields to sum
4977
+ **/
4978
+ _sum?: TaskCleanupJobSumAggregateInputType
4979
+ /**
4980
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
4981
+ *
4982
+ * Select which fields to find the minimum value
4983
+ **/
4984
+ _min?: TaskCleanupJobMinAggregateInputType
4985
+ /**
4986
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
4987
+ *
4988
+ * Select which fields to find the maximum value
4989
+ **/
4990
+ _max?: TaskCleanupJobMaxAggregateInputType
4991
+ }
4992
+
4993
+ export type GetTaskCleanupJobAggregateType<T extends TaskCleanupJobAggregateArgs> = {
4994
+ [P in keyof T & keyof AggregateTaskCleanupJob]: P extends '_count' | 'count'
4995
+ ? T[P] extends true
4996
+ ? number
4997
+ : GetScalarType<T[P], AggregateTaskCleanupJob[P]>
4998
+ : GetScalarType<T[P], AggregateTaskCleanupJob[P]>
4999
+ }
5000
+
5001
+
5002
+
5003
+
5004
+ export type TaskCleanupJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5005
+ where?: TaskCleanupJobWhereInput
5006
+ orderBy?: TaskCleanupJobOrderByWithAggregationInput | TaskCleanupJobOrderByWithAggregationInput[]
5007
+ by: TaskCleanupJobScalarFieldEnum[] | TaskCleanupJobScalarFieldEnum
5008
+ having?: TaskCleanupJobScalarWhereWithAggregatesInput
5009
+ take?: number
5010
+ skip?: number
5011
+ _count?: TaskCleanupJobCountAggregateInputType | true
5012
+ _avg?: TaskCleanupJobAvgAggregateInputType
5013
+ _sum?: TaskCleanupJobSumAggregateInputType
5014
+ _min?: TaskCleanupJobMinAggregateInputType
5015
+ _max?: TaskCleanupJobMaxAggregateInputType
5016
+ }
5017
+
5018
+ export type TaskCleanupJobGroupByOutputType = {
5019
+ id: string
5020
+ taskId: string
5021
+ projectId: string
5022
+ payload: string
5023
+ status: string
5024
+ attempts: number
5025
+ lastError: string | null
5026
+ nextRetryAt: Date | null
5027
+ startedAt: Date | null
5028
+ completedAt: Date | null
5029
+ createdAt: Date
5030
+ updatedAt: Date
5031
+ _count: TaskCleanupJobCountAggregateOutputType | null
5032
+ _avg: TaskCleanupJobAvgAggregateOutputType | null
5033
+ _sum: TaskCleanupJobSumAggregateOutputType | null
5034
+ _min: TaskCleanupJobMinAggregateOutputType | null
5035
+ _max: TaskCleanupJobMaxAggregateOutputType | null
5036
+ }
5037
+
5038
+ type GetTaskCleanupJobGroupByPayload<T extends TaskCleanupJobGroupByArgs> = Prisma.PrismaPromise<
5039
+ Array<
5040
+ PickEnumerable<TaskCleanupJobGroupByOutputType, T['by']> &
5041
+ {
5042
+ [P in ((keyof T) & (keyof TaskCleanupJobGroupByOutputType))]: P extends '_count'
5043
+ ? T[P] extends boolean
5044
+ ? number
5045
+ : GetScalarType<T[P], TaskCleanupJobGroupByOutputType[P]>
5046
+ : GetScalarType<T[P], TaskCleanupJobGroupByOutputType[P]>
5047
+ }
5048
+ >
5049
+ >
5050
+
5051
+
5052
+ export type TaskCleanupJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5053
+ id?: boolean
5054
+ taskId?: boolean
5055
+ projectId?: boolean
5056
+ payload?: boolean
5057
+ status?: boolean
5058
+ attempts?: boolean
5059
+ lastError?: boolean
5060
+ nextRetryAt?: boolean
5061
+ startedAt?: boolean
5062
+ completedAt?: boolean
5063
+ createdAt?: boolean
5064
+ updatedAt?: boolean
5065
+ }, ExtArgs["result"]["taskCleanupJob"]>
5066
+
5067
+ export type TaskCleanupJobSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5068
+ id?: boolean
5069
+ taskId?: boolean
5070
+ projectId?: boolean
5071
+ payload?: boolean
5072
+ status?: boolean
5073
+ attempts?: boolean
5074
+ lastError?: boolean
5075
+ nextRetryAt?: boolean
5076
+ startedAt?: boolean
5077
+ completedAt?: boolean
5078
+ createdAt?: boolean
5079
+ updatedAt?: boolean
5080
+ }, ExtArgs["result"]["taskCleanupJob"]>
5081
+
5082
+ export type TaskCleanupJobSelectScalar = {
5083
+ id?: boolean
5084
+ taskId?: boolean
5085
+ projectId?: boolean
5086
+ payload?: boolean
5087
+ status?: boolean
5088
+ attempts?: boolean
5089
+ lastError?: boolean
5090
+ nextRetryAt?: boolean
5091
+ startedAt?: boolean
5092
+ completedAt?: boolean
5093
+ createdAt?: boolean
5094
+ updatedAt?: boolean
5095
+ }
5096
+
5097
+
5098
+ export type $TaskCleanupJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5099
+ name: "TaskCleanupJob"
5100
+ objects: {}
5101
+ scalars: $Extensions.GetPayloadResult<{
5102
+ id: string
5103
+ taskId: string
5104
+ projectId: string
5105
+ payload: string
5106
+ status: string
5107
+ attempts: number
5108
+ lastError: string | null
5109
+ nextRetryAt: Date | null
5110
+ startedAt: Date | null
5111
+ completedAt: Date | null
5112
+ createdAt: Date
5113
+ updatedAt: Date
5114
+ }, ExtArgs["result"]["taskCleanupJob"]>
5115
+ composites: {}
5116
+ }
5117
+
5118
+ type TaskCleanupJobGetPayload<S extends boolean | null | undefined | TaskCleanupJobDefaultArgs> = $Result.GetResult<Prisma.$TaskCleanupJobPayload, S>
5119
+
5120
+ type TaskCleanupJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
5121
+ Omit<TaskCleanupJobFindManyArgs, 'select' | 'include' | 'distinct'> & {
5122
+ select?: TaskCleanupJobCountAggregateInputType | true
5123
+ }
5124
+
5125
+ export interface TaskCleanupJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
5126
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TaskCleanupJob'], meta: { name: 'TaskCleanupJob' } }
5127
+ /**
5128
+ * Find zero or one TaskCleanupJob that matches the filter.
5129
+ * @param {TaskCleanupJobFindUniqueArgs} args - Arguments to find a TaskCleanupJob
5130
+ * @example
5131
+ * // Get one TaskCleanupJob
5132
+ * const taskCleanupJob = await prisma.taskCleanupJob.findUnique({
5133
+ * where: {
5134
+ * // ... provide filter here
5135
+ * }
5136
+ * })
5137
+ */
5138
+ findUnique<T extends TaskCleanupJobFindUniqueArgs>(args: SelectSubset<T, TaskCleanupJobFindUniqueArgs<ExtArgs>>): Prisma__TaskCleanupJobClient<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
5139
+
5140
+ /**
5141
+ * Find one TaskCleanupJob that matches the filter or throw an error with `error.code='P2025'`
5142
+ * if no matches were found.
5143
+ * @param {TaskCleanupJobFindUniqueOrThrowArgs} args - Arguments to find a TaskCleanupJob
5144
+ * @example
5145
+ * // Get one TaskCleanupJob
5146
+ * const taskCleanupJob = await prisma.taskCleanupJob.findUniqueOrThrow({
5147
+ * where: {
5148
+ * // ... provide filter here
5149
+ * }
5150
+ * })
5151
+ */
5152
+ findUniqueOrThrow<T extends TaskCleanupJobFindUniqueOrThrowArgs>(args: SelectSubset<T, TaskCleanupJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TaskCleanupJobClient<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
5153
+
5154
+ /**
5155
+ * Find the first TaskCleanupJob that matches the filter.
5156
+ * Note, that providing `undefined` is treated as the value not being there.
5157
+ * Read more here: https://pris.ly/d/null-undefined
5158
+ * @param {TaskCleanupJobFindFirstArgs} args - Arguments to find a TaskCleanupJob
5159
+ * @example
5160
+ * // Get one TaskCleanupJob
5161
+ * const taskCleanupJob = await prisma.taskCleanupJob.findFirst({
5162
+ * where: {
5163
+ * // ... provide filter here
5164
+ * }
5165
+ * })
5166
+ */
5167
+ findFirst<T extends TaskCleanupJobFindFirstArgs>(args?: SelectSubset<T, TaskCleanupJobFindFirstArgs<ExtArgs>>): Prisma__TaskCleanupJobClient<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
5168
+
5169
+ /**
5170
+ * Find the first TaskCleanupJob that matches the filter or
5171
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
5172
+ * Note, that providing `undefined` is treated as the value not being there.
5173
+ * Read more here: https://pris.ly/d/null-undefined
5174
+ * @param {TaskCleanupJobFindFirstOrThrowArgs} args - Arguments to find a TaskCleanupJob
5175
+ * @example
5176
+ * // Get one TaskCleanupJob
5177
+ * const taskCleanupJob = await prisma.taskCleanupJob.findFirstOrThrow({
5178
+ * where: {
5179
+ * // ... provide filter here
5180
+ * }
5181
+ * })
5182
+ */
5183
+ findFirstOrThrow<T extends TaskCleanupJobFindFirstOrThrowArgs>(args?: SelectSubset<T, TaskCleanupJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__TaskCleanupJobClient<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
5184
+
5185
+ /**
5186
+ * Find zero or more TaskCleanupJobs that matches the filter.
5187
+ * Note, that providing `undefined` is treated as the value not being there.
5188
+ * Read more here: https://pris.ly/d/null-undefined
5189
+ * @param {TaskCleanupJobFindManyArgs} args - Arguments to filter and select certain fields only.
5190
+ * @example
5191
+ * // Get all TaskCleanupJobs
5192
+ * const taskCleanupJobs = await prisma.taskCleanupJob.findMany()
5193
+ *
5194
+ * // Get first 10 TaskCleanupJobs
5195
+ * const taskCleanupJobs = await prisma.taskCleanupJob.findMany({ take: 10 })
5196
+ *
5197
+ * // Only select the `id`
5198
+ * const taskCleanupJobWithIdOnly = await prisma.taskCleanupJob.findMany({ select: { id: true } })
5199
+ *
5200
+ */
5201
+ findMany<T extends TaskCleanupJobFindManyArgs>(args?: SelectSubset<T, TaskCleanupJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "findMany">>
5202
+
5203
+ /**
5204
+ * Create a TaskCleanupJob.
5205
+ * @param {TaskCleanupJobCreateArgs} args - Arguments to create a TaskCleanupJob.
5206
+ * @example
5207
+ * // Create one TaskCleanupJob
5208
+ * const TaskCleanupJob = await prisma.taskCleanupJob.create({
5209
+ * data: {
5210
+ * // ... data to create a TaskCleanupJob
5211
+ * }
5212
+ * })
5213
+ *
5214
+ */
5215
+ create<T extends TaskCleanupJobCreateArgs>(args: SelectSubset<T, TaskCleanupJobCreateArgs<ExtArgs>>): Prisma__TaskCleanupJobClient<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "create">, never, ExtArgs>
5216
+
5217
+ /**
5218
+ * Create many TaskCleanupJobs.
5219
+ * @param {TaskCleanupJobCreateManyArgs} args - Arguments to create many TaskCleanupJobs.
5220
+ * @example
5221
+ * // Create many TaskCleanupJobs
5222
+ * const taskCleanupJob = await prisma.taskCleanupJob.createMany({
5223
+ * data: [
5224
+ * // ... provide data here
5225
+ * ]
5226
+ * })
5227
+ *
5228
+ */
5229
+ createMany<T extends TaskCleanupJobCreateManyArgs>(args?: SelectSubset<T, TaskCleanupJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
5230
+
5231
+ /**
5232
+ * Create many TaskCleanupJobs and returns the data saved in the database.
5233
+ * @param {TaskCleanupJobCreateManyAndReturnArgs} args - Arguments to create many TaskCleanupJobs.
5234
+ * @example
5235
+ * // Create many TaskCleanupJobs
5236
+ * const taskCleanupJob = await prisma.taskCleanupJob.createManyAndReturn({
5237
+ * data: [
5238
+ * // ... provide data here
5239
+ * ]
5240
+ * })
5241
+ *
5242
+ * // Create many TaskCleanupJobs and only return the `id`
5243
+ * const taskCleanupJobWithIdOnly = await prisma.taskCleanupJob.createManyAndReturn({
5244
+ * select: { id: true },
5245
+ * data: [
5246
+ * // ... provide data here
5247
+ * ]
5248
+ * })
5249
+ * Note, that providing `undefined` is treated as the value not being there.
5250
+ * Read more here: https://pris.ly/d/null-undefined
5251
+ *
5252
+ */
5253
+ createManyAndReturn<T extends TaskCleanupJobCreateManyAndReturnArgs>(args?: SelectSubset<T, TaskCleanupJobCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "createManyAndReturn">>
5254
+
5255
+ /**
5256
+ * Delete a TaskCleanupJob.
5257
+ * @param {TaskCleanupJobDeleteArgs} args - Arguments to delete one TaskCleanupJob.
5258
+ * @example
5259
+ * // Delete one TaskCleanupJob
5260
+ * const TaskCleanupJob = await prisma.taskCleanupJob.delete({
5261
+ * where: {
5262
+ * // ... filter to delete one TaskCleanupJob
5263
+ * }
5264
+ * })
5265
+ *
5266
+ */
5267
+ delete<T extends TaskCleanupJobDeleteArgs>(args: SelectSubset<T, TaskCleanupJobDeleteArgs<ExtArgs>>): Prisma__TaskCleanupJobClient<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "delete">, never, ExtArgs>
5268
+
5269
+ /**
5270
+ * Update one TaskCleanupJob.
5271
+ * @param {TaskCleanupJobUpdateArgs} args - Arguments to update one TaskCleanupJob.
5272
+ * @example
5273
+ * // Update one TaskCleanupJob
5274
+ * const taskCleanupJob = await prisma.taskCleanupJob.update({
5275
+ * where: {
5276
+ * // ... provide filter here
5277
+ * },
5278
+ * data: {
5279
+ * // ... provide data here
5280
+ * }
5281
+ * })
5282
+ *
5283
+ */
5284
+ update<T extends TaskCleanupJobUpdateArgs>(args: SelectSubset<T, TaskCleanupJobUpdateArgs<ExtArgs>>): Prisma__TaskCleanupJobClient<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "update">, never, ExtArgs>
5285
+
5286
+ /**
5287
+ * Delete zero or more TaskCleanupJobs.
5288
+ * @param {TaskCleanupJobDeleteManyArgs} args - Arguments to filter TaskCleanupJobs to delete.
5289
+ * @example
5290
+ * // Delete a few TaskCleanupJobs
5291
+ * const { count } = await prisma.taskCleanupJob.deleteMany({
5292
+ * where: {
5293
+ * // ... provide filter here
5294
+ * }
5295
+ * })
5296
+ *
5297
+ */
5298
+ deleteMany<T extends TaskCleanupJobDeleteManyArgs>(args?: SelectSubset<T, TaskCleanupJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
5299
+
5300
+ /**
5301
+ * Update zero or more TaskCleanupJobs.
5302
+ * Note, that providing `undefined` is treated as the value not being there.
5303
+ * Read more here: https://pris.ly/d/null-undefined
5304
+ * @param {TaskCleanupJobUpdateManyArgs} args - Arguments to update one or more rows.
5305
+ * @example
5306
+ * // Update many TaskCleanupJobs
5307
+ * const taskCleanupJob = await prisma.taskCleanupJob.updateMany({
5308
+ * where: {
5309
+ * // ... provide filter here
5310
+ * },
5311
+ * data: {
5312
+ * // ... provide data here
5313
+ * }
5314
+ * })
5315
+ *
5316
+ */
5317
+ updateMany<T extends TaskCleanupJobUpdateManyArgs>(args: SelectSubset<T, TaskCleanupJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
5318
+
5319
+ /**
5320
+ * Create or update one TaskCleanupJob.
5321
+ * @param {TaskCleanupJobUpsertArgs} args - Arguments to update or create a TaskCleanupJob.
5322
+ * @example
5323
+ * // Update or create a TaskCleanupJob
5324
+ * const taskCleanupJob = await prisma.taskCleanupJob.upsert({
5325
+ * create: {
5326
+ * // ... data to create a TaskCleanupJob
5327
+ * },
5328
+ * update: {
5329
+ * // ... in case it already exists, update
5330
+ * },
5331
+ * where: {
5332
+ * // ... the filter for the TaskCleanupJob we want to update
5333
+ * }
5334
+ * })
5335
+ */
5336
+ upsert<T extends TaskCleanupJobUpsertArgs>(args: SelectSubset<T, TaskCleanupJobUpsertArgs<ExtArgs>>): Prisma__TaskCleanupJobClient<$Result.GetResult<Prisma.$TaskCleanupJobPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
5337
+
5338
+
5339
+ /**
5340
+ * Count the number of TaskCleanupJobs.
5341
+ * Note, that providing `undefined` is treated as the value not being there.
5342
+ * Read more here: https://pris.ly/d/null-undefined
5343
+ * @param {TaskCleanupJobCountArgs} args - Arguments to filter TaskCleanupJobs to count.
5344
+ * @example
5345
+ * // Count the number of TaskCleanupJobs
5346
+ * const count = await prisma.taskCleanupJob.count({
5347
+ * where: {
5348
+ * // ... the filter for the TaskCleanupJobs we want to count
5349
+ * }
5350
+ * })
5351
+ **/
5352
+ count<T extends TaskCleanupJobCountArgs>(
5353
+ args?: Subset<T, TaskCleanupJobCountArgs>,
5354
+ ): Prisma.PrismaPromise<
5355
+ T extends $Utils.Record<'select', any>
5356
+ ? T['select'] extends true
5357
+ ? number
5358
+ : GetScalarType<T['select'], TaskCleanupJobCountAggregateOutputType>
5359
+ : number
5360
+ >
5361
+
5362
+ /**
5363
+ * Allows you to perform aggregations operations on a TaskCleanupJob.
5364
+ * Note, that providing `undefined` is treated as the value not being there.
5365
+ * Read more here: https://pris.ly/d/null-undefined
5366
+ * @param {TaskCleanupJobAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
5367
+ * @example
5368
+ * // Ordered by age ascending
5369
+ * // Where email contains prisma.io
5370
+ * // Limited to the 10 users
5371
+ * const aggregations = await prisma.user.aggregate({
5372
+ * _avg: {
5373
+ * age: true,
5374
+ * },
5375
+ * where: {
5376
+ * email: {
5377
+ * contains: "prisma.io",
5378
+ * },
5379
+ * },
5380
+ * orderBy: {
5381
+ * age: "asc",
5382
+ * },
5383
+ * take: 10,
5384
+ * })
5385
+ **/
5386
+ aggregate<T extends TaskCleanupJobAggregateArgs>(args: Subset<T, TaskCleanupJobAggregateArgs>): Prisma.PrismaPromise<GetTaskCleanupJobAggregateType<T>>
5387
+
5388
+ /**
5389
+ * Group by TaskCleanupJob.
5390
+ * Note, that providing `undefined` is treated as the value not being there.
5391
+ * Read more here: https://pris.ly/d/null-undefined
5392
+ * @param {TaskCleanupJobGroupByArgs} args - Group by arguments.
5393
+ * @example
5394
+ * // Group by city, order by createdAt, get count
5395
+ * const result = await prisma.user.groupBy({
5396
+ * by: ['city', 'createdAt'],
5397
+ * orderBy: {
5398
+ * createdAt: true
5399
+ * },
5400
+ * _count: {
5401
+ * _all: true
5402
+ * },
5403
+ * })
5404
+ *
5405
+ **/
5406
+ groupBy<
5407
+ T extends TaskCleanupJobGroupByArgs,
5408
+ HasSelectOrTake extends Or<
5409
+ Extends<'skip', Keys<T>>,
5410
+ Extends<'take', Keys<T>>
5411
+ >,
5412
+ OrderByArg extends True extends HasSelectOrTake
5413
+ ? { orderBy: TaskCleanupJobGroupByArgs['orderBy'] }
5414
+ : { orderBy?: TaskCleanupJobGroupByArgs['orderBy'] },
5415
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
5416
+ ByFields extends MaybeTupleToUnion<T['by']>,
5417
+ ByValid extends Has<ByFields, OrderFields>,
5418
+ HavingFields extends GetHavingFields<T['having']>,
5419
+ HavingValid extends Has<ByFields, HavingFields>,
5420
+ ByEmpty extends T['by'] extends never[] ? True : False,
5421
+ InputErrors extends ByEmpty extends True
5422
+ ? `Error: "by" must not be empty.`
5423
+ : HavingValid extends False
5424
+ ? {
5425
+ [P in HavingFields]: P extends ByFields
5426
+ ? never
5427
+ : P extends string
5428
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
5429
+ : [
5430
+ Error,
5431
+ 'Field ',
5432
+ P,
5433
+ ` in "having" needs to be provided in "by"`,
5434
+ ]
5435
+ }[HavingFields]
5436
+ : 'take' extends Keys<T>
5437
+ ? 'orderBy' extends Keys<T>
5438
+ ? ByValid extends True
5439
+ ? {}
5440
+ : {
5441
+ [P in OrderFields]: P extends ByFields
5442
+ ? never
5443
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
5444
+ }[OrderFields]
5445
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
5446
+ : 'skip' extends Keys<T>
5447
+ ? 'orderBy' extends Keys<T>
5448
+ ? ByValid extends True
5449
+ ? {}
5450
+ : {
5451
+ [P in OrderFields]: P extends ByFields
5452
+ ? never
5453
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
5454
+ }[OrderFields]
5455
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
5456
+ : ByValid extends True
5457
+ ? {}
5458
+ : {
5459
+ [P in OrderFields]: P extends ByFields
5460
+ ? never
5461
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
5462
+ }[OrderFields]
5463
+ >(args: SubsetIntersection<T, TaskCleanupJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTaskCleanupJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
5464
+ /**
5465
+ * Fields of the TaskCleanupJob model
5466
+ */
5467
+ readonly fields: TaskCleanupJobFieldRefs;
5468
+ }
5469
+
5470
+ /**
5471
+ * The delegate class that acts as a "Promise-like" for TaskCleanupJob.
5472
+ * Why is this prefixed with `Prisma__`?
5473
+ * Because we want to prevent naming conflicts as mentioned in
5474
+ * https://github.com/prisma/prisma-client-js/issues/707
5475
+ */
5476
+ export interface Prisma__TaskCleanupJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
5477
+ readonly [Symbol.toStringTag]: "PrismaPromise"
5478
+ /**
5479
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
5480
+ * @param onfulfilled The callback to execute when the Promise is resolved.
5481
+ * @param onrejected The callback to execute when the Promise is rejected.
5482
+ * @returns A Promise for the completion of which ever callback is executed.
5483
+ */
5484
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
5485
+ /**
5486
+ * Attaches a callback for only the rejection of the Promise.
5487
+ * @param onrejected The callback to execute when the Promise is rejected.
5488
+ * @returns A Promise for the completion of the callback.
5489
+ */
5490
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
5491
+ /**
5492
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
5493
+ * resolved value cannot be modified from the callback.
5494
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
5495
+ * @returns A Promise for the completion of the callback.
5496
+ */
5497
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
5498
+ }
5499
+
5500
+
5501
+
5502
+
5503
+ /**
5504
+ * Fields of the TaskCleanupJob model
5505
+ */
5506
+ interface TaskCleanupJobFieldRefs {
5507
+ readonly id: FieldRef<"TaskCleanupJob", 'String'>
5508
+ readonly taskId: FieldRef<"TaskCleanupJob", 'String'>
5509
+ readonly projectId: FieldRef<"TaskCleanupJob", 'String'>
5510
+ readonly payload: FieldRef<"TaskCleanupJob", 'String'>
5511
+ readonly status: FieldRef<"TaskCleanupJob", 'String'>
5512
+ readonly attempts: FieldRef<"TaskCleanupJob", 'Int'>
5513
+ readonly lastError: FieldRef<"TaskCleanupJob", 'String'>
5514
+ readonly nextRetryAt: FieldRef<"TaskCleanupJob", 'DateTime'>
5515
+ readonly startedAt: FieldRef<"TaskCleanupJob", 'DateTime'>
5516
+ readonly completedAt: FieldRef<"TaskCleanupJob", 'DateTime'>
5517
+ readonly createdAt: FieldRef<"TaskCleanupJob", 'DateTime'>
5518
+ readonly updatedAt: FieldRef<"TaskCleanupJob", 'DateTime'>
5519
+ }
5520
+
5521
+
5522
+ // Custom InputTypes
5523
+ /**
5524
+ * TaskCleanupJob findUnique
5525
+ */
5526
+ export type TaskCleanupJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5527
+ /**
5528
+ * Select specific fields to fetch from the TaskCleanupJob
5529
+ */
5530
+ select?: TaskCleanupJobSelect<ExtArgs> | null
5531
+ /**
5532
+ * Filter, which TaskCleanupJob to fetch.
5533
+ */
5534
+ where: TaskCleanupJobWhereUniqueInput
5535
+ }
5536
+
5537
+ /**
5538
+ * TaskCleanupJob findUniqueOrThrow
5539
+ */
5540
+ export type TaskCleanupJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5541
+ /**
5542
+ * Select specific fields to fetch from the TaskCleanupJob
5543
+ */
5544
+ select?: TaskCleanupJobSelect<ExtArgs> | null
5545
+ /**
5546
+ * Filter, which TaskCleanupJob to fetch.
5547
+ */
5548
+ where: TaskCleanupJobWhereUniqueInput
5549
+ }
5550
+
5551
+ /**
5552
+ * TaskCleanupJob findFirst
5553
+ */
5554
+ export type TaskCleanupJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5555
+ /**
5556
+ * Select specific fields to fetch from the TaskCleanupJob
5557
+ */
5558
+ select?: TaskCleanupJobSelect<ExtArgs> | null
5559
+ /**
5560
+ * Filter, which TaskCleanupJob to fetch.
5561
+ */
5562
+ where?: TaskCleanupJobWhereInput
5563
+ /**
5564
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
5565
+ *
5566
+ * Determine the order of TaskCleanupJobs to fetch.
5567
+ */
5568
+ orderBy?: TaskCleanupJobOrderByWithRelationInput | TaskCleanupJobOrderByWithRelationInput[]
5569
+ /**
5570
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
5571
+ *
5572
+ * Sets the position for searching for TaskCleanupJobs.
5573
+ */
5574
+ cursor?: TaskCleanupJobWhereUniqueInput
5575
+ /**
5576
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5577
+ *
5578
+ * Take `±n` TaskCleanupJobs from the position of the cursor.
5579
+ */
5580
+ take?: number
5581
+ /**
5582
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
5583
+ *
5584
+ * Skip the first `n` TaskCleanupJobs.
5585
+ */
5586
+ skip?: number
5587
+ /**
5588
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
5589
+ *
5590
+ * Filter by unique combinations of TaskCleanupJobs.
5591
+ */
5592
+ distinct?: TaskCleanupJobScalarFieldEnum | TaskCleanupJobScalarFieldEnum[]
5593
+ }
5594
+
5595
+ /**
5596
+ * TaskCleanupJob findFirstOrThrow
5597
+ */
5598
+ export type TaskCleanupJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5599
+ /**
5600
+ * Select specific fields to fetch from the TaskCleanupJob
5601
+ */
5602
+ select?: TaskCleanupJobSelect<ExtArgs> | null
4448
5603
  /**
4449
- * Filter, which Task to fetch.
5604
+ * Filter, which TaskCleanupJob to fetch.
4450
5605
  */
4451
- where?: TaskWhereInput
5606
+ where?: TaskCleanupJobWhereInput
4452
5607
  /**
4453
5608
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4454
5609
  *
4455
- * Determine the order of Tasks to fetch.
5610
+ * Determine the order of TaskCleanupJobs to fetch.
4456
5611
  */
4457
- orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[]
5612
+ orderBy?: TaskCleanupJobOrderByWithRelationInput | TaskCleanupJobOrderByWithRelationInput[]
4458
5613
  /**
4459
5614
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4460
5615
  *
4461
- * Sets the position for searching for Tasks.
5616
+ * Sets the position for searching for TaskCleanupJobs.
4462
5617
  */
4463
- cursor?: TaskWhereUniqueInput
5618
+ cursor?: TaskCleanupJobWhereUniqueInput
4464
5619
  /**
4465
5620
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4466
5621
  *
4467
- * Take `±n` Tasks from the position of the cursor.
5622
+ * Take `±n` TaskCleanupJobs from the position of the cursor.
4468
5623
  */
4469
5624
  take?: number
4470
5625
  /**
4471
5626
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4472
5627
  *
4473
- * Skip the first `n` Tasks.
5628
+ * Skip the first `n` TaskCleanupJobs.
4474
5629
  */
4475
5630
  skip?: number
4476
5631
  /**
4477
5632
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
4478
5633
  *
4479
- * Filter by unique combinations of Tasks.
5634
+ * Filter by unique combinations of TaskCleanupJobs.
4480
5635
  */
4481
- distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[]
5636
+ distinct?: TaskCleanupJobScalarFieldEnum | TaskCleanupJobScalarFieldEnum[]
4482
5637
  }
4483
5638
 
4484
5639
  /**
4485
- * Task findMany
5640
+ * TaskCleanupJob findMany
4486
5641
  */
4487
- export type TaskFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4488
- /**
4489
- * Select specific fields to fetch from the Task
4490
- */
4491
- select?: TaskSelect<ExtArgs> | null
5642
+ export type TaskCleanupJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4492
5643
  /**
4493
- * Choose, which related nodes to fetch as well
5644
+ * Select specific fields to fetch from the TaskCleanupJob
4494
5645
  */
4495
- include?: TaskInclude<ExtArgs> | null
5646
+ select?: TaskCleanupJobSelect<ExtArgs> | null
4496
5647
  /**
4497
- * Filter, which Tasks to fetch.
5648
+ * Filter, which TaskCleanupJobs to fetch.
4498
5649
  */
4499
- where?: TaskWhereInput
5650
+ where?: TaskCleanupJobWhereInput
4500
5651
  /**
4501
5652
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
4502
5653
  *
4503
- * Determine the order of Tasks to fetch.
5654
+ * Determine the order of TaskCleanupJobs to fetch.
4504
5655
  */
4505
- orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[]
5656
+ orderBy?: TaskCleanupJobOrderByWithRelationInput | TaskCleanupJobOrderByWithRelationInput[]
4506
5657
  /**
4507
5658
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
4508
5659
  *
4509
- * Sets the position for listing Tasks.
5660
+ * Sets the position for listing TaskCleanupJobs.
4510
5661
  */
4511
- cursor?: TaskWhereUniqueInput
5662
+ cursor?: TaskCleanupJobWhereUniqueInput
4512
5663
  /**
4513
5664
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4514
5665
  *
4515
- * Take `±n` Tasks from the position of the cursor.
5666
+ * Take `±n` TaskCleanupJobs from the position of the cursor.
4516
5667
  */
4517
5668
  take?: number
4518
5669
  /**
4519
5670
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
4520
5671
  *
4521
- * Skip the first `n` Tasks.
5672
+ * Skip the first `n` TaskCleanupJobs.
4522
5673
  */
4523
5674
  skip?: number
4524
- distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[]
5675
+ distinct?: TaskCleanupJobScalarFieldEnum | TaskCleanupJobScalarFieldEnum[]
4525
5676
  }
4526
5677
 
4527
5678
  /**
4528
- * Task create
5679
+ * TaskCleanupJob create
4529
5680
  */
4530
- export type TaskCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4531
- /**
4532
- * Select specific fields to fetch from the Task
4533
- */
4534
- select?: TaskSelect<ExtArgs> | null
5681
+ export type TaskCleanupJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4535
5682
  /**
4536
- * Choose, which related nodes to fetch as well
5683
+ * Select specific fields to fetch from the TaskCleanupJob
4537
5684
  */
4538
- include?: TaskInclude<ExtArgs> | null
5685
+ select?: TaskCleanupJobSelect<ExtArgs> | null
4539
5686
  /**
4540
- * The data needed to create a Task.
5687
+ * The data needed to create a TaskCleanupJob.
4541
5688
  */
4542
- data: XOR<TaskCreateInput, TaskUncheckedCreateInput>
5689
+ data: XOR<TaskCleanupJobCreateInput, TaskCleanupJobUncheckedCreateInput>
4543
5690
  }
4544
5691
 
4545
5692
  /**
4546
- * Task createMany
5693
+ * TaskCleanupJob createMany
4547
5694
  */
4548
- export type TaskCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5695
+ export type TaskCleanupJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4549
5696
  /**
4550
- * The data used to create many Tasks.
5697
+ * The data used to create many TaskCleanupJobs.
4551
5698
  */
4552
- data: TaskCreateManyInput | TaskCreateManyInput[]
5699
+ data: TaskCleanupJobCreateManyInput | TaskCleanupJobCreateManyInput[]
4553
5700
  }
4554
5701
 
4555
5702
  /**
4556
- * Task createManyAndReturn
5703
+ * TaskCleanupJob createManyAndReturn
4557
5704
  */
4558
- export type TaskCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4559
- /**
4560
- * Select specific fields to fetch from the Task
4561
- */
4562
- select?: TaskSelectCreateManyAndReturn<ExtArgs> | null
5705
+ export type TaskCleanupJobCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4563
5706
  /**
4564
- * The data used to create many Tasks.
5707
+ * Select specific fields to fetch from the TaskCleanupJob
4565
5708
  */
4566
- data: TaskCreateManyInput | TaskCreateManyInput[]
5709
+ select?: TaskCleanupJobSelectCreateManyAndReturn<ExtArgs> | null
4567
5710
  /**
4568
- * Choose, which related nodes to fetch as well
5711
+ * The data used to create many TaskCleanupJobs.
4569
5712
  */
4570
- include?: TaskIncludeCreateManyAndReturn<ExtArgs> | null
5713
+ data: TaskCleanupJobCreateManyInput | TaskCleanupJobCreateManyInput[]
4571
5714
  }
4572
5715
 
4573
5716
  /**
4574
- * Task update
5717
+ * TaskCleanupJob update
4575
5718
  */
4576
- export type TaskUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4577
- /**
4578
- * Select specific fields to fetch from the Task
4579
- */
4580
- select?: TaskSelect<ExtArgs> | null
4581
- /**
4582
- * Choose, which related nodes to fetch as well
4583
- */
4584
- include?: TaskInclude<ExtArgs> | null
4585
- /**
4586
- * The data needed to update a Task.
4587
- */
4588
- data: XOR<TaskUpdateInput, TaskUncheckedUpdateInput>
5719
+ export type TaskCleanupJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4589
5720
  /**
4590
- * Choose, which Task to update.
5721
+ * Select specific fields to fetch from the TaskCleanupJob
4591
5722
  */
4592
- where: TaskWhereUniqueInput
4593
- }
4594
-
4595
- /**
4596
- * Task updateMany
4597
- */
4598
- export type TaskUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5723
+ select?: TaskCleanupJobSelect<ExtArgs> | null
4599
5724
  /**
4600
- * The data used to update Tasks.
5725
+ * The data needed to update a TaskCleanupJob.
4601
5726
  */
4602
- data: XOR<TaskUpdateManyMutationInput, TaskUncheckedUpdateManyInput>
5727
+ data: XOR<TaskCleanupJobUpdateInput, TaskCleanupJobUncheckedUpdateInput>
4603
5728
  /**
4604
- * Filter which Tasks to update
5729
+ * Choose, which TaskCleanupJob to update.
4605
5730
  */
4606
- where?: TaskWhereInput
5731
+ where: TaskCleanupJobWhereUniqueInput
4607
5732
  }
4608
5733
 
4609
5734
  /**
4610
- * Task upsert
5735
+ * TaskCleanupJob updateMany
4611
5736
  */
4612
- export type TaskUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5737
+ export type TaskCleanupJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4613
5738
  /**
4614
- * Select specific fields to fetch from the Task
4615
- */
4616
- select?: TaskSelect<ExtArgs> | null
4617
- /**
4618
- * Choose, which related nodes to fetch as well
4619
- */
4620
- include?: TaskInclude<ExtArgs> | null
4621
- /**
4622
- * The filter to search for the Task to update in case it exists.
4623
- */
4624
- where: TaskWhereUniqueInput
4625
- /**
4626
- * In case the Task found by the `where` argument doesn't exist, create a new Task with this data.
5739
+ * The data used to update TaskCleanupJobs.
4627
5740
  */
4628
- create: XOR<TaskCreateInput, TaskUncheckedCreateInput>
5741
+ data: XOR<TaskCleanupJobUpdateManyMutationInput, TaskCleanupJobUncheckedUpdateManyInput>
4629
5742
  /**
4630
- * In case the Task was found with the provided `where` argument, update it with this data.
5743
+ * Filter which TaskCleanupJobs to update
4631
5744
  */
4632
- update: XOR<TaskUpdateInput, TaskUncheckedUpdateInput>
5745
+ where?: TaskCleanupJobWhereInput
4633
5746
  }
4634
5747
 
4635
5748
  /**
4636
- * Task delete
5749
+ * TaskCleanupJob upsert
4637
5750
  */
4638
- export type TaskDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5751
+ export type TaskCleanupJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4639
5752
  /**
4640
- * Select specific fields to fetch from the Task
5753
+ * Select specific fields to fetch from the TaskCleanupJob
4641
5754
  */
4642
- select?: TaskSelect<ExtArgs> | null
5755
+ select?: TaskCleanupJobSelect<ExtArgs> | null
4643
5756
  /**
4644
- * Choose, which related nodes to fetch as well
5757
+ * The filter to search for the TaskCleanupJob to update in case it exists.
4645
5758
  */
4646
- include?: TaskInclude<ExtArgs> | null
5759
+ where: TaskCleanupJobWhereUniqueInput
4647
5760
  /**
4648
- * Filter which Task to delete.
5761
+ * In case the TaskCleanupJob found by the `where` argument doesn't exist, create a new TaskCleanupJob with this data.
4649
5762
  */
4650
- where: TaskWhereUniqueInput
4651
- }
4652
-
4653
- /**
4654
- * Task deleteMany
4655
- */
4656
- export type TaskDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5763
+ create: XOR<TaskCleanupJobCreateInput, TaskCleanupJobUncheckedCreateInput>
4657
5764
  /**
4658
- * Filter which Tasks to delete
5765
+ * In case the TaskCleanupJob was found with the provided `where` argument, update it with this data.
4659
5766
  */
4660
- where?: TaskWhereInput
5767
+ update: XOR<TaskCleanupJobUpdateInput, TaskCleanupJobUncheckedUpdateInput>
4661
5768
  }
4662
5769
 
4663
5770
  /**
4664
- * Task.workspaces
5771
+ * TaskCleanupJob delete
4665
5772
  */
4666
- export type Task$workspacesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5773
+ export type TaskCleanupJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4667
5774
  /**
4668
- * Select specific fields to fetch from the Workspace
5775
+ * Select specific fields to fetch from the TaskCleanupJob
4669
5776
  */
4670
- select?: WorkspaceSelect<ExtArgs> | null
5777
+ select?: TaskCleanupJobSelect<ExtArgs> | null
4671
5778
  /**
4672
- * Choose, which related nodes to fetch as well
5779
+ * Filter which TaskCleanupJob to delete.
4673
5780
  */
4674
- include?: WorkspaceInclude<ExtArgs> | null
4675
- where?: WorkspaceWhereInput
4676
- orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
4677
- cursor?: WorkspaceWhereUniqueInput
4678
- take?: number
4679
- skip?: number
4680
- distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
5781
+ where: TaskCleanupJobWhereUniqueInput
4681
5782
  }
4682
5783
 
4683
5784
  /**
4684
- * Task.teamRun
5785
+ * TaskCleanupJob deleteMany
4685
5786
  */
4686
- export type Task$teamRunArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4687
- /**
4688
- * Select specific fields to fetch from the TeamRun
4689
- */
4690
- select?: TeamRunSelect<ExtArgs> | null
5787
+ export type TaskCleanupJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4691
5788
  /**
4692
- * Choose, which related nodes to fetch as well
5789
+ * Filter which TaskCleanupJobs to delete
4693
5790
  */
4694
- include?: TeamRunInclude<ExtArgs> | null
4695
- where?: TeamRunWhereInput
5791
+ where?: TaskCleanupJobWhereInput
4696
5792
  }
4697
5793
 
4698
5794
  /**
4699
- * Task without action
5795
+ * TaskCleanupJob without action
4700
5796
  */
4701
- export type TaskDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4702
- /**
4703
- * Select specific fields to fetch from the Task
4704
- */
4705
- select?: TaskSelect<ExtArgs> | null
5797
+ export type TaskCleanupJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4706
5798
  /**
4707
- * Choose, which related nodes to fetch as well
5799
+ * Select specific fields to fetch from the TaskCleanupJob
4708
5800
  */
4709
- include?: TaskInclude<ExtArgs> | null
5801
+ select?: TaskCleanupJobSelect<ExtArgs> | null
4710
5802
  }
4711
5803
 
4712
5804
 
@@ -20575,6 +21667,7 @@ export namespace Prisma {
20575
21667
  priority: 'priority',
20576
21668
  position: 'position',
20577
21669
  projectId: 'projectId',
21670
+ deletedAt: 'deletedAt',
20578
21671
  createdAt: 'createdAt',
20579
21672
  updatedAt: 'updatedAt'
20580
21673
  };
@@ -20582,6 +21675,24 @@ export namespace Prisma {
20582
21675
  export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum]
20583
21676
 
20584
21677
 
21678
+ export const TaskCleanupJobScalarFieldEnum: {
21679
+ id: 'id',
21680
+ taskId: 'taskId',
21681
+ projectId: 'projectId',
21682
+ payload: 'payload',
21683
+ status: 'status',
21684
+ attempts: 'attempts',
21685
+ lastError: 'lastError',
21686
+ nextRetryAt: 'nextRetryAt',
21687
+ startedAt: 'startedAt',
21688
+ completedAt: 'completedAt',
21689
+ createdAt: 'createdAt',
21690
+ updatedAt: 'updatedAt'
21691
+ };
21692
+
21693
+ export type TaskCleanupJobScalarFieldEnum = (typeof TaskCleanupJobScalarFieldEnum)[keyof typeof TaskCleanupJobScalarFieldEnum]
21694
+
21695
+
20585
21696
  export const MemberPresetScalarFieldEnum: {
20586
21697
  id: 'id',
20587
21698
  name: 'name',
@@ -20982,6 +22093,7 @@ export namespace Prisma {
20982
22093
  priority?: IntFilter<"Task"> | number
20983
22094
  position?: IntFilter<"Task"> | number
20984
22095
  projectId?: StringFilter<"Task"> | string
22096
+ deletedAt?: DateTimeNullableFilter<"Task"> | Date | string | null
20985
22097
  createdAt?: DateTimeFilter<"Task"> | Date | string
20986
22098
  updatedAt?: DateTimeFilter<"Task"> | Date | string
20987
22099
  project?: XOR<ProjectRelationFilter, ProjectWhereInput>
@@ -20997,6 +22109,7 @@ export namespace Prisma {
20997
22109
  priority?: SortOrder
20998
22110
  position?: SortOrder
20999
22111
  projectId?: SortOrder
22112
+ deletedAt?: SortOrderInput | SortOrder
21000
22113
  createdAt?: SortOrder
21001
22114
  updatedAt?: SortOrder
21002
22115
  project?: ProjectOrderByWithRelationInput
@@ -21015,6 +22128,7 @@ export namespace Prisma {
21015
22128
  priority?: IntFilter<"Task"> | number
21016
22129
  position?: IntFilter<"Task"> | number
21017
22130
  projectId?: StringFilter<"Task"> | string
22131
+ deletedAt?: DateTimeNullableFilter<"Task"> | Date | string | null
21018
22132
  createdAt?: DateTimeFilter<"Task"> | Date | string
21019
22133
  updatedAt?: DateTimeFilter<"Task"> | Date | string
21020
22134
  project?: XOR<ProjectRelationFilter, ProjectWhereInput>
@@ -21030,6 +22144,7 @@ export namespace Prisma {
21030
22144
  priority?: SortOrder
21031
22145
  position?: SortOrder
21032
22146
  projectId?: SortOrder
22147
+ deletedAt?: SortOrderInput | SortOrder
21033
22148
  createdAt?: SortOrder
21034
22149
  updatedAt?: SortOrder
21035
22150
  _count?: TaskCountOrderByAggregateInput
@@ -21050,10 +22165,100 @@ export namespace Prisma {
21050
22165
  priority?: IntWithAggregatesFilter<"Task"> | number
21051
22166
  position?: IntWithAggregatesFilter<"Task"> | number
21052
22167
  projectId?: StringWithAggregatesFilter<"Task"> | string
22168
+ deletedAt?: DateTimeNullableWithAggregatesFilter<"Task"> | Date | string | null
21053
22169
  createdAt?: DateTimeWithAggregatesFilter<"Task"> | Date | string
21054
22170
  updatedAt?: DateTimeWithAggregatesFilter<"Task"> | Date | string
21055
22171
  }
21056
22172
 
22173
+ export type TaskCleanupJobWhereInput = {
22174
+ AND?: TaskCleanupJobWhereInput | TaskCleanupJobWhereInput[]
22175
+ OR?: TaskCleanupJobWhereInput[]
22176
+ NOT?: TaskCleanupJobWhereInput | TaskCleanupJobWhereInput[]
22177
+ id?: StringFilter<"TaskCleanupJob"> | string
22178
+ taskId?: StringFilter<"TaskCleanupJob"> | string
22179
+ projectId?: StringFilter<"TaskCleanupJob"> | string
22180
+ payload?: StringFilter<"TaskCleanupJob"> | string
22181
+ status?: StringFilter<"TaskCleanupJob"> | string
22182
+ attempts?: IntFilter<"TaskCleanupJob"> | number
22183
+ lastError?: StringNullableFilter<"TaskCleanupJob"> | string | null
22184
+ nextRetryAt?: DateTimeNullableFilter<"TaskCleanupJob"> | Date | string | null
22185
+ startedAt?: DateTimeNullableFilter<"TaskCleanupJob"> | Date | string | null
22186
+ completedAt?: DateTimeNullableFilter<"TaskCleanupJob"> | Date | string | null
22187
+ createdAt?: DateTimeFilter<"TaskCleanupJob"> | Date | string
22188
+ updatedAt?: DateTimeFilter<"TaskCleanupJob"> | Date | string
22189
+ }
22190
+
22191
+ export type TaskCleanupJobOrderByWithRelationInput = {
22192
+ id?: SortOrder
22193
+ taskId?: SortOrder
22194
+ projectId?: SortOrder
22195
+ payload?: SortOrder
22196
+ status?: SortOrder
22197
+ attempts?: SortOrder
22198
+ lastError?: SortOrderInput | SortOrder
22199
+ nextRetryAt?: SortOrderInput | SortOrder
22200
+ startedAt?: SortOrderInput | SortOrder
22201
+ completedAt?: SortOrderInput | SortOrder
22202
+ createdAt?: SortOrder
22203
+ updatedAt?: SortOrder
22204
+ }
22205
+
22206
+ export type TaskCleanupJobWhereUniqueInput = Prisma.AtLeast<{
22207
+ id?: string
22208
+ AND?: TaskCleanupJobWhereInput | TaskCleanupJobWhereInput[]
22209
+ OR?: TaskCleanupJobWhereInput[]
22210
+ NOT?: TaskCleanupJobWhereInput | TaskCleanupJobWhereInput[]
22211
+ taskId?: StringFilter<"TaskCleanupJob"> | string
22212
+ projectId?: StringFilter<"TaskCleanupJob"> | string
22213
+ payload?: StringFilter<"TaskCleanupJob"> | string
22214
+ status?: StringFilter<"TaskCleanupJob"> | string
22215
+ attempts?: IntFilter<"TaskCleanupJob"> | number
22216
+ lastError?: StringNullableFilter<"TaskCleanupJob"> | string | null
22217
+ nextRetryAt?: DateTimeNullableFilter<"TaskCleanupJob"> | Date | string | null
22218
+ startedAt?: DateTimeNullableFilter<"TaskCleanupJob"> | Date | string | null
22219
+ completedAt?: DateTimeNullableFilter<"TaskCleanupJob"> | Date | string | null
22220
+ createdAt?: DateTimeFilter<"TaskCleanupJob"> | Date | string
22221
+ updatedAt?: DateTimeFilter<"TaskCleanupJob"> | Date | string
22222
+ }, "id">
22223
+
22224
+ export type TaskCleanupJobOrderByWithAggregationInput = {
22225
+ id?: SortOrder
22226
+ taskId?: SortOrder
22227
+ projectId?: SortOrder
22228
+ payload?: SortOrder
22229
+ status?: SortOrder
22230
+ attempts?: SortOrder
22231
+ lastError?: SortOrderInput | SortOrder
22232
+ nextRetryAt?: SortOrderInput | SortOrder
22233
+ startedAt?: SortOrderInput | SortOrder
22234
+ completedAt?: SortOrderInput | SortOrder
22235
+ createdAt?: SortOrder
22236
+ updatedAt?: SortOrder
22237
+ _count?: TaskCleanupJobCountOrderByAggregateInput
22238
+ _avg?: TaskCleanupJobAvgOrderByAggregateInput
22239
+ _max?: TaskCleanupJobMaxOrderByAggregateInput
22240
+ _min?: TaskCleanupJobMinOrderByAggregateInput
22241
+ _sum?: TaskCleanupJobSumOrderByAggregateInput
22242
+ }
22243
+
22244
+ export type TaskCleanupJobScalarWhereWithAggregatesInput = {
22245
+ AND?: TaskCleanupJobScalarWhereWithAggregatesInput | TaskCleanupJobScalarWhereWithAggregatesInput[]
22246
+ OR?: TaskCleanupJobScalarWhereWithAggregatesInput[]
22247
+ NOT?: TaskCleanupJobScalarWhereWithAggregatesInput | TaskCleanupJobScalarWhereWithAggregatesInput[]
22248
+ id?: StringWithAggregatesFilter<"TaskCleanupJob"> | string
22249
+ taskId?: StringWithAggregatesFilter<"TaskCleanupJob"> | string
22250
+ projectId?: StringWithAggregatesFilter<"TaskCleanupJob"> | string
22251
+ payload?: StringWithAggregatesFilter<"TaskCleanupJob"> | string
22252
+ status?: StringWithAggregatesFilter<"TaskCleanupJob"> | string
22253
+ attempts?: IntWithAggregatesFilter<"TaskCleanupJob"> | number
22254
+ lastError?: StringNullableWithAggregatesFilter<"TaskCleanupJob"> | string | null
22255
+ nextRetryAt?: DateTimeNullableWithAggregatesFilter<"TaskCleanupJob"> | Date | string | null
22256
+ startedAt?: DateTimeNullableWithAggregatesFilter<"TaskCleanupJob"> | Date | string | null
22257
+ completedAt?: DateTimeNullableWithAggregatesFilter<"TaskCleanupJob"> | Date | string | null
22258
+ createdAt?: DateTimeWithAggregatesFilter<"TaskCleanupJob"> | Date | string
22259
+ updatedAt?: DateTimeWithAggregatesFilter<"TaskCleanupJob"> | Date | string
22260
+ }
22261
+
21057
22262
  export type MemberPresetWhereInput = {
21058
22263
  AND?: MemberPresetWhereInput | MemberPresetWhereInput[]
21059
22264
  OR?: MemberPresetWhereInput[]
@@ -22392,6 +23597,7 @@ export namespace Prisma {
22392
23597
  status?: string
22393
23598
  priority?: number
22394
23599
  position?: number
23600
+ deletedAt?: Date | string | null
22395
23601
  createdAt?: Date | string
22396
23602
  updatedAt?: Date | string
22397
23603
  project: ProjectCreateNestedOneWithoutTasksInput
@@ -22407,6 +23613,7 @@ export namespace Prisma {
22407
23613
  priority?: number
22408
23614
  position?: number
22409
23615
  projectId: string
23616
+ deletedAt?: Date | string | null
22410
23617
  createdAt?: Date | string
22411
23618
  updatedAt?: Date | string
22412
23619
  workspaces?: WorkspaceUncheckedCreateNestedManyWithoutTaskInput
@@ -22420,6 +23627,7 @@ export namespace Prisma {
22420
23627
  status?: StringFieldUpdateOperationsInput | string
22421
23628
  priority?: IntFieldUpdateOperationsInput | number
22422
23629
  position?: IntFieldUpdateOperationsInput | number
23630
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22423
23631
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22424
23632
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22425
23633
  project?: ProjectUpdateOneRequiredWithoutTasksNestedInput
@@ -22435,6 +23643,7 @@ export namespace Prisma {
22435
23643
  priority?: IntFieldUpdateOperationsInput | number
22436
23644
  position?: IntFieldUpdateOperationsInput | number
22437
23645
  projectId?: StringFieldUpdateOperationsInput | string
23646
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22438
23647
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22439
23648
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22440
23649
  workspaces?: WorkspaceUncheckedUpdateManyWithoutTaskNestedInput
@@ -22449,6 +23658,7 @@ export namespace Prisma {
22449
23658
  priority?: number
22450
23659
  position?: number
22451
23660
  projectId: string
23661
+ deletedAt?: Date | string | null
22452
23662
  createdAt?: Date | string
22453
23663
  updatedAt?: Date | string
22454
23664
  }
@@ -22460,6 +23670,7 @@ export namespace Prisma {
22460
23670
  status?: StringFieldUpdateOperationsInput | string
22461
23671
  priority?: IntFieldUpdateOperationsInput | number
22462
23672
  position?: IntFieldUpdateOperationsInput | number
23673
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22463
23674
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22464
23675
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22465
23676
  }
@@ -22472,6 +23683,112 @@ export namespace Prisma {
22472
23683
  priority?: IntFieldUpdateOperationsInput | number
22473
23684
  position?: IntFieldUpdateOperationsInput | number
22474
23685
  projectId?: StringFieldUpdateOperationsInput | string
23686
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23687
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23688
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23689
+ }
23690
+
23691
+ export type TaskCleanupJobCreateInput = {
23692
+ id?: string
23693
+ taskId: string
23694
+ projectId: string
23695
+ payload: string
23696
+ status?: string
23697
+ attempts?: number
23698
+ lastError?: string | null
23699
+ nextRetryAt?: Date | string | null
23700
+ startedAt?: Date | string | null
23701
+ completedAt?: Date | string | null
23702
+ createdAt?: Date | string
23703
+ updatedAt?: Date | string
23704
+ }
23705
+
23706
+ export type TaskCleanupJobUncheckedCreateInput = {
23707
+ id?: string
23708
+ taskId: string
23709
+ projectId: string
23710
+ payload: string
23711
+ status?: string
23712
+ attempts?: number
23713
+ lastError?: string | null
23714
+ nextRetryAt?: Date | string | null
23715
+ startedAt?: Date | string | null
23716
+ completedAt?: Date | string | null
23717
+ createdAt?: Date | string
23718
+ updatedAt?: Date | string
23719
+ }
23720
+
23721
+ export type TaskCleanupJobUpdateInput = {
23722
+ id?: StringFieldUpdateOperationsInput | string
23723
+ taskId?: StringFieldUpdateOperationsInput | string
23724
+ projectId?: StringFieldUpdateOperationsInput | string
23725
+ payload?: StringFieldUpdateOperationsInput | string
23726
+ status?: StringFieldUpdateOperationsInput | string
23727
+ attempts?: IntFieldUpdateOperationsInput | number
23728
+ lastError?: NullableStringFieldUpdateOperationsInput | string | null
23729
+ nextRetryAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23730
+ startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23731
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23732
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23733
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23734
+ }
23735
+
23736
+ export type TaskCleanupJobUncheckedUpdateInput = {
23737
+ id?: StringFieldUpdateOperationsInput | string
23738
+ taskId?: StringFieldUpdateOperationsInput | string
23739
+ projectId?: StringFieldUpdateOperationsInput | string
23740
+ payload?: StringFieldUpdateOperationsInput | string
23741
+ status?: StringFieldUpdateOperationsInput | string
23742
+ attempts?: IntFieldUpdateOperationsInput | number
23743
+ lastError?: NullableStringFieldUpdateOperationsInput | string | null
23744
+ nextRetryAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23745
+ startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23746
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23747
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23748
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23749
+ }
23750
+
23751
+ export type TaskCleanupJobCreateManyInput = {
23752
+ id?: string
23753
+ taskId: string
23754
+ projectId: string
23755
+ payload: string
23756
+ status?: string
23757
+ attempts?: number
23758
+ lastError?: string | null
23759
+ nextRetryAt?: Date | string | null
23760
+ startedAt?: Date | string | null
23761
+ completedAt?: Date | string | null
23762
+ createdAt?: Date | string
23763
+ updatedAt?: Date | string
23764
+ }
23765
+
23766
+ export type TaskCleanupJobUpdateManyMutationInput = {
23767
+ id?: StringFieldUpdateOperationsInput | string
23768
+ taskId?: StringFieldUpdateOperationsInput | string
23769
+ projectId?: StringFieldUpdateOperationsInput | string
23770
+ payload?: StringFieldUpdateOperationsInput | string
23771
+ status?: StringFieldUpdateOperationsInput | string
23772
+ attempts?: IntFieldUpdateOperationsInput | number
23773
+ lastError?: NullableStringFieldUpdateOperationsInput | string | null
23774
+ nextRetryAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23775
+ startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23776
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23777
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23778
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23779
+ }
23780
+
23781
+ export type TaskCleanupJobUncheckedUpdateManyInput = {
23782
+ id?: StringFieldUpdateOperationsInput | string
23783
+ taskId?: StringFieldUpdateOperationsInput | string
23784
+ projectId?: StringFieldUpdateOperationsInput | string
23785
+ payload?: StringFieldUpdateOperationsInput | string
23786
+ status?: StringFieldUpdateOperationsInput | string
23787
+ attempts?: IntFieldUpdateOperationsInput | number
23788
+ lastError?: NullableStringFieldUpdateOperationsInput | string | null
23789
+ nextRetryAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23790
+ startedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23791
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22475
23792
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22476
23793
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22477
23794
  }
@@ -24033,6 +25350,7 @@ export namespace Prisma {
24033
25350
  priority?: SortOrder
24034
25351
  position?: SortOrder
24035
25352
  projectId?: SortOrder
25353
+ deletedAt?: SortOrder
24036
25354
  createdAt?: SortOrder
24037
25355
  updatedAt?: SortOrder
24038
25356
  }
@@ -24050,6 +25368,7 @@ export namespace Prisma {
24050
25368
  priority?: SortOrder
24051
25369
  position?: SortOrder
24052
25370
  projectId?: SortOrder
25371
+ deletedAt?: SortOrder
24053
25372
  createdAt?: SortOrder
24054
25373
  updatedAt?: SortOrder
24055
25374
  }
@@ -24062,6 +25381,7 @@ export namespace Prisma {
24062
25381
  priority?: SortOrder
24063
25382
  position?: SortOrder
24064
25383
  projectId?: SortOrder
25384
+ deletedAt?: SortOrder
24065
25385
  createdAt?: SortOrder
24066
25386
  updatedAt?: SortOrder
24067
25387
  }
@@ -24087,6 +25407,59 @@ export namespace Prisma {
24087
25407
  _max?: NestedIntFilter<$PrismaModel>
24088
25408
  }
24089
25409
 
25410
+ export type TaskCleanupJobCountOrderByAggregateInput = {
25411
+ id?: SortOrder
25412
+ taskId?: SortOrder
25413
+ projectId?: SortOrder
25414
+ payload?: SortOrder
25415
+ status?: SortOrder
25416
+ attempts?: SortOrder
25417
+ lastError?: SortOrder
25418
+ nextRetryAt?: SortOrder
25419
+ startedAt?: SortOrder
25420
+ completedAt?: SortOrder
25421
+ createdAt?: SortOrder
25422
+ updatedAt?: SortOrder
25423
+ }
25424
+
25425
+ export type TaskCleanupJobAvgOrderByAggregateInput = {
25426
+ attempts?: SortOrder
25427
+ }
25428
+
25429
+ export type TaskCleanupJobMaxOrderByAggregateInput = {
25430
+ id?: SortOrder
25431
+ taskId?: SortOrder
25432
+ projectId?: SortOrder
25433
+ payload?: SortOrder
25434
+ status?: SortOrder
25435
+ attempts?: SortOrder
25436
+ lastError?: SortOrder
25437
+ nextRetryAt?: SortOrder
25438
+ startedAt?: SortOrder
25439
+ completedAt?: SortOrder
25440
+ createdAt?: SortOrder
25441
+ updatedAt?: SortOrder
25442
+ }
25443
+
25444
+ export type TaskCleanupJobMinOrderByAggregateInput = {
25445
+ id?: SortOrder
25446
+ taskId?: SortOrder
25447
+ projectId?: SortOrder
25448
+ payload?: SortOrder
25449
+ status?: SortOrder
25450
+ attempts?: SortOrder
25451
+ lastError?: SortOrder
25452
+ nextRetryAt?: SortOrder
25453
+ startedAt?: SortOrder
25454
+ completedAt?: SortOrder
25455
+ createdAt?: SortOrder
25456
+ updatedAt?: SortOrder
25457
+ }
25458
+
25459
+ export type TaskCleanupJobSumOrderByAggregateInput = {
25460
+ attempts?: SortOrder
25461
+ }
25462
+
24090
25463
  export type MemberPresetCountOrderByAggregateInput = {
24091
25464
  id?: SortOrder
24092
25465
  name?: SortOrder
@@ -25947,6 +27320,7 @@ export namespace Prisma {
25947
27320
  status?: string
25948
27321
  priority?: number
25949
27322
  position?: number
27323
+ deletedAt?: Date | string | null
25950
27324
  createdAt?: Date | string
25951
27325
  updatedAt?: Date | string
25952
27326
  workspaces?: WorkspaceCreateNestedManyWithoutTaskInput
@@ -25960,6 +27334,7 @@ export namespace Prisma {
25960
27334
  status?: string
25961
27335
  priority?: number
25962
27336
  position?: number
27337
+ deletedAt?: Date | string | null
25963
27338
  createdAt?: Date | string
25964
27339
  updatedAt?: Date | string
25965
27340
  workspaces?: WorkspaceUncheckedCreateNestedManyWithoutTaskInput
@@ -26002,6 +27377,7 @@ export namespace Prisma {
26002
27377
  priority?: IntFilter<"Task"> | number
26003
27378
  position?: IntFilter<"Task"> | number
26004
27379
  projectId?: StringFilter<"Task"> | string
27380
+ deletedAt?: DateTimeNullableFilter<"Task"> | Date | string | null
26005
27381
  createdAt?: DateTimeFilter<"Task"> | Date | string
26006
27382
  updatedAt?: DateTimeFilter<"Task"> | Date | string
26007
27383
  }
@@ -26332,6 +27708,7 @@ export namespace Prisma {
26332
27708
  status?: string
26333
27709
  priority?: number
26334
27710
  position?: number
27711
+ deletedAt?: Date | string | null
26335
27712
  createdAt?: Date | string
26336
27713
  updatedAt?: Date | string
26337
27714
  project: ProjectCreateNestedOneWithoutTasksInput
@@ -26346,6 +27723,7 @@ export namespace Prisma {
26346
27723
  priority?: number
26347
27724
  position?: number
26348
27725
  projectId: string
27726
+ deletedAt?: Date | string | null
26349
27727
  createdAt?: Date | string
26350
27728
  updatedAt?: Date | string
26351
27729
  workspaces?: WorkspaceUncheckedCreateNestedManyWithoutTaskInput
@@ -26577,6 +27955,7 @@ export namespace Prisma {
26577
27955
  status?: StringFieldUpdateOperationsInput | string
26578
27956
  priority?: IntFieldUpdateOperationsInput | number
26579
27957
  position?: IntFieldUpdateOperationsInput | number
27958
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
26580
27959
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26581
27960
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
26582
27961
  project?: ProjectUpdateOneRequiredWithoutTasksNestedInput
@@ -26591,6 +27970,7 @@ export namespace Prisma {
26591
27970
  priority?: IntFieldUpdateOperationsInput | number
26592
27971
  position?: IntFieldUpdateOperationsInput | number
26593
27972
  projectId?: StringFieldUpdateOperationsInput | string
27973
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
26594
27974
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26595
27975
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
26596
27976
  workspaces?: WorkspaceUncheckedUpdateManyWithoutTaskNestedInput
@@ -27393,6 +28773,7 @@ export namespace Prisma {
27393
28773
  status?: string
27394
28774
  priority?: number
27395
28775
  position?: number
28776
+ deletedAt?: Date | string | null
27396
28777
  createdAt?: Date | string
27397
28778
  updatedAt?: Date | string
27398
28779
  project: ProjectCreateNestedOneWithoutTasksInput
@@ -27407,6 +28788,7 @@ export namespace Prisma {
27407
28788
  priority?: number
27408
28789
  position?: number
27409
28790
  projectId: string
28791
+ deletedAt?: Date | string | null
27410
28792
  createdAt?: Date | string
27411
28793
  updatedAt?: Date | string
27412
28794
  teamRun?: TeamRunUncheckedCreateNestedOneWithoutTaskInput
@@ -27640,6 +29022,7 @@ export namespace Prisma {
27640
29022
  status?: StringFieldUpdateOperationsInput | string
27641
29023
  priority?: IntFieldUpdateOperationsInput | number
27642
29024
  position?: IntFieldUpdateOperationsInput | number
29025
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
27643
29026
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
27644
29027
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
27645
29028
  project?: ProjectUpdateOneRequiredWithoutTasksNestedInput
@@ -27654,6 +29037,7 @@ export namespace Prisma {
27654
29037
  priority?: IntFieldUpdateOperationsInput | number
27655
29038
  position?: IntFieldUpdateOperationsInput | number
27656
29039
  projectId?: StringFieldUpdateOperationsInput | string
29040
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
27657
29041
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
27658
29042
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
27659
29043
  teamRun?: TeamRunUncheckedUpdateOneWithoutTaskNestedInput
@@ -28060,6 +29444,7 @@ export namespace Prisma {
28060
29444
  status?: string
28061
29445
  priority?: number
28062
29446
  position?: number
29447
+ deletedAt?: Date | string | null
28063
29448
  createdAt?: Date | string
28064
29449
  updatedAt?: Date | string
28065
29450
  }
@@ -28071,6 +29456,7 @@ export namespace Prisma {
28071
29456
  status?: StringFieldUpdateOperationsInput | string
28072
29457
  priority?: IntFieldUpdateOperationsInput | number
28073
29458
  position?: IntFieldUpdateOperationsInput | number
29459
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
28074
29460
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28075
29461
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28076
29462
  workspaces?: WorkspaceUpdateManyWithoutTaskNestedInput
@@ -28084,6 +29470,7 @@ export namespace Prisma {
28084
29470
  status?: StringFieldUpdateOperationsInput | string
28085
29471
  priority?: IntFieldUpdateOperationsInput | number
28086
29472
  position?: IntFieldUpdateOperationsInput | number
29473
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
28087
29474
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28088
29475
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28089
29476
  workspaces?: WorkspaceUncheckedUpdateManyWithoutTaskNestedInput
@@ -28097,6 +29484,7 @@ export namespace Prisma {
28097
29484
  status?: StringFieldUpdateOperationsInput | string
28098
29485
  priority?: IntFieldUpdateOperationsInput | number
28099
29486
  position?: IntFieldUpdateOperationsInput | number
29487
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
28100
29488
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
28101
29489
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28102
29490
  }
@@ -28812,6 +30200,10 @@ export namespace Prisma {
28812
30200
  * @deprecated Use TaskDefaultArgs instead
28813
30201
  */
28814
30202
  export type TaskArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TaskDefaultArgs<ExtArgs>
30203
+ /**
30204
+ * @deprecated Use TaskCleanupJobDefaultArgs instead
30205
+ */
30206
+ export type TaskCleanupJobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TaskCleanupJobDefaultArgs<ExtArgs>
28815
30207
  /**
28816
30208
  * @deprecated Use MemberPresetDefaultArgs instead
28817
30209
  */