@allbluecn/database 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/desktop-init.ts +2 -2
  2. package/dist/get-prisma.js +1 -1
  3. package/dist/lib/share-utils.js +3 -3
  4. package/generated/browser.ts +115 -25
  5. package/generated/client.ts +115 -25
  6. package/generated/commonInputTypes.ts +34 -0
  7. package/generated/enums.ts +14 -0
  8. package/generated/internal/class.ts +234 -54
  9. package/generated/internal/prismaNamespace.ts +2190 -511
  10. package/generated/internal/prismaNamespaceBrowser.ts +391 -76
  11. package/generated/models/AgentConversation.ts +89 -89
  12. package/generated/models/AiProvider.ts +3 -3
  13. package/generated/models/AiStreamChunk.ts +3 -3
  14. package/generated/models/AnyHubMarketApp.ts +8 -8
  15. package/generated/models/AuditLog.ts +6 -6
  16. package/generated/models/BlockInstance.ts +17 -17
  17. package/generated/models/Bug.ts +5023 -0
  18. package/generated/models/BugActivity.ts +1765 -0
  19. package/generated/models/BugComment.ts +1853 -0
  20. package/generated/models/BugEvent.ts +1339 -0
  21. package/generated/models/BugFilterView.ts +1438 -0
  22. package/generated/models/BugFixRun.ts +1479 -0
  23. package/generated/models/BugLabel.ts +1349 -0
  24. package/generated/models/BugProjectSettings.ts +1403 -0
  25. package/generated/models/BugReproRun.ts +1582 -0
  26. package/generated/models/ChatPersistenceMeta.ts +3 -3
  27. package/generated/models/Comment.ts +99 -99
  28. package/generated/models/Component.ts +9 -9
  29. package/generated/models/ComponentInstance.ts +17 -17
  30. package/generated/models/CustomRole.ts +8 -8
  31. package/generated/models/Design.ts +2872 -0
  32. package/generated/models/DesignPage.ts +2402 -0
  33. package/generated/models/DesignTag.ts +1430 -0
  34. package/generated/models/DesignVersion.ts +2121 -0
  35. package/generated/models/DesktopSetting.ts +3 -3
  36. package/generated/models/Iteration.ts +148 -0
  37. package/generated/models/Label.ts +118 -0
  38. package/generated/models/LicenseKey.ts +16 -16
  39. package/generated/models/NotificationPreference.ts +5 -5
  40. package/generated/models/PageVersion.ts +49 -49
  41. package/generated/models/Plan.ts +5 -5
  42. package/generated/models/Project.ts +1970 -58
  43. package/generated/models/ProjectAccessToken.ts +1705 -0
  44. package/generated/models/ProjectWebhook.ts +1409 -0
  45. package/generated/models/Review.ts +118 -118
  46. package/generated/models/Share.ts +83 -83
  47. package/generated/models/ShareVersion.ts +15 -15
  48. package/generated/models/SsoProvider.ts +8 -8
  49. package/generated/models/Story.ts +973 -87
  50. package/generated/models/StoryDesignLink.ts +1430 -0
  51. package/generated/models/StoryFilterView.ts +12 -12
  52. package/generated/models/SystemPromptVersion.ts +6 -6
  53. package/generated/models/Tag.ts +49 -49
  54. package/generated/models/TestAutomationArtifact.ts +1790 -0
  55. package/generated/models/TestCase.ts +3568 -0
  56. package/generated/models/TestCaseFilterView.ts +1587 -0
  57. package/generated/models/TestCaseFolder.ts +1795 -0
  58. package/generated/models/TestExecRun.ts +1673 -0
  59. package/generated/models/TestGenerationRun.ts +1952 -0
  60. package/generated/models/TestPlan.ts +1950 -0
  61. package/generated/models/TestPlanCase.ts +1430 -0
  62. package/generated/models/TestRun.ts +1979 -0
  63. package/generated/models/TestRunCase.ts +2772 -0
  64. package/generated/models/ThirdPartyDependency.ts +19 -15
  65. package/generated/models/User.ts +12141 -2721
  66. package/generated/models.ts +26 -8
  67. package/generated-sqlite/browser.ts +8 -23
  68. package/generated-sqlite/client.ts +8 -23
  69. package/generated-sqlite/internal/class.ts +20 -50
  70. package/generated-sqlite/internal/prismaNamespace.ts +166 -437
  71. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +25 -71
  72. package/generated-sqlite/models/AgentConversation.ts +89 -89
  73. package/generated-sqlite/models/AiProvider.ts +3 -3
  74. package/generated-sqlite/models/AiStreamChunk.ts +3 -3
  75. package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
  76. package/generated-sqlite/models/BlockInstance.ts +17 -17
  77. package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
  78. package/generated-sqlite/models/Comment.ts +99 -99
  79. package/generated-sqlite/models/Component.ts +9 -9
  80. package/generated-sqlite/models/ComponentInstance.ts +17 -17
  81. package/generated-sqlite/models/Design.ts +2679 -0
  82. package/generated-sqlite/models/DesignPage.ts +2398 -0
  83. package/generated-sqlite/models/DesignTag.ts +1426 -0
  84. package/generated-sqlite/models/DesignVersion.ts +2117 -0
  85. package/generated-sqlite/models/DesktopSetting.ts +3 -3
  86. package/generated-sqlite/models/KnowledgeBase.ts +240 -1
  87. package/generated-sqlite/models/NotificationPreference.ts +5 -5
  88. package/generated-sqlite/models/PageVersion.ts +49 -49
  89. package/generated-sqlite/models/Review.ts +118 -118
  90. package/generated-sqlite/models/Share.ts +83 -83
  91. package/generated-sqlite/models/ShareVersion.ts +15 -15
  92. package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
  93. package/generated-sqlite/models/Tag.ts +49 -49
  94. package/generated-sqlite/models/User.ts +1201 -1321
  95. package/generated-sqlite/models/Workspace.ts +164 -0
  96. package/generated-sqlite/models.ts +4 -7
  97. package/index.ts +17 -3
  98. package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
  99. package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
  100. package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
  101. package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
  102. package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
  103. package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
  104. package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
  105. package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
  106. package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
  107. package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
  108. package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
  109. package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
  110. package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
  111. package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
  112. package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
  113. package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
  114. package/package.json +4 -4
  115. package/schema.prisma +687 -177
  116. package/schema.sqlite.prisma +149 -151
  117. package/src/lib/share-utils.ts +2 -2
  118. package/generated/models/Artboard.ts +0 -1811
  119. package/generated/models/ArtboardExport.ts +0 -1548
  120. package/generated/models/DesignProject.ts +0 -1643
  121. package/generated/models/PRD.ts +0 -2805
  122. package/generated/models/PRDPage.ts +0 -2402
  123. package/generated/models/PRDTag.ts +0 -1430
  124. package/generated/models/PRDVersion.ts +0 -2121
  125. package/generated/models/StoryPrdLink.ts +0 -1430
  126. package/generated-sqlite/models/Artboard.ts +0 -1808
  127. package/generated-sqlite/models/ArtboardExport.ts +0 -1545
  128. package/generated-sqlite/models/DesignProject.ts +0 -1640
  129. package/generated-sqlite/models/PRD.ts +0 -2616
  130. package/generated-sqlite/models/PRDPage.ts +0 -2398
  131. package/generated-sqlite/models/PRDTag.ts +0 -1426
  132. package/generated-sqlite/models/PRDVersion.ts +0 -2117
@@ -0,0 +1,1979 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `TestRun` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model TestRun
17
+ *
18
+ */
19
+ export type TestRunModel = runtime.Types.Result.DefaultSelection<Prisma.$TestRunPayload>
20
+
21
+ export type AggregateTestRun = {
22
+ _count: TestRunCountAggregateOutputType | null
23
+ _min: TestRunMinAggregateOutputType | null
24
+ _max: TestRunMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type TestRunMinAggregateOutputType = {
28
+ id: string | null
29
+ projectId: string | null
30
+ planId: string | null
31
+ name: string | null
32
+ trigger: string | null
33
+ executorType: string | null
34
+ targetEnv: string | null
35
+ status: string | null
36
+ startedAt: Date | null
37
+ completedAt: Date | null
38
+ createdById: string | null
39
+ createdAt: Date | null
40
+ }
41
+
42
+ export type TestRunMaxAggregateOutputType = {
43
+ id: string | null
44
+ projectId: string | null
45
+ planId: string | null
46
+ name: string | null
47
+ trigger: string | null
48
+ executorType: string | null
49
+ targetEnv: string | null
50
+ status: string | null
51
+ startedAt: Date | null
52
+ completedAt: Date | null
53
+ createdById: string | null
54
+ createdAt: Date | null
55
+ }
56
+
57
+ export type TestRunCountAggregateOutputType = {
58
+ id: number
59
+ projectId: number
60
+ planId: number
61
+ name: number
62
+ trigger: number
63
+ executorType: number
64
+ targetEnv: number
65
+ status: number
66
+ summary: number
67
+ startedAt: number
68
+ completedAt: number
69
+ createdById: number
70
+ createdAt: number
71
+ _all: number
72
+ }
73
+
74
+
75
+ export type TestRunMinAggregateInputType = {
76
+ id?: true
77
+ projectId?: true
78
+ planId?: true
79
+ name?: true
80
+ trigger?: true
81
+ executorType?: true
82
+ targetEnv?: true
83
+ status?: true
84
+ startedAt?: true
85
+ completedAt?: true
86
+ createdById?: true
87
+ createdAt?: true
88
+ }
89
+
90
+ export type TestRunMaxAggregateInputType = {
91
+ id?: true
92
+ projectId?: true
93
+ planId?: true
94
+ name?: true
95
+ trigger?: true
96
+ executorType?: true
97
+ targetEnv?: true
98
+ status?: true
99
+ startedAt?: true
100
+ completedAt?: true
101
+ createdById?: true
102
+ createdAt?: true
103
+ }
104
+
105
+ export type TestRunCountAggregateInputType = {
106
+ id?: true
107
+ projectId?: true
108
+ planId?: true
109
+ name?: true
110
+ trigger?: true
111
+ executorType?: true
112
+ targetEnv?: true
113
+ status?: true
114
+ summary?: true
115
+ startedAt?: true
116
+ completedAt?: true
117
+ createdById?: true
118
+ createdAt?: true
119
+ _all?: true
120
+ }
121
+
122
+ export type TestRunAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
123
+ /**
124
+ * Filter which TestRun to aggregate.
125
+ */
126
+ where?: Prisma.TestRunWhereInput
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
129
+ *
130
+ * Determine the order of TestRuns to fetch.
131
+ */
132
+ orderBy?: Prisma.TestRunOrderByWithRelationInput | Prisma.TestRunOrderByWithRelationInput[]
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
135
+ *
136
+ * Sets the start position
137
+ */
138
+ cursor?: Prisma.TestRunWhereUniqueInput
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
141
+ *
142
+ * Take `±n` TestRuns from the position of the cursor.
143
+ */
144
+ take?: number
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
147
+ *
148
+ * Skip the first `n` TestRuns.
149
+ */
150
+ skip?: number
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Count returned TestRuns
155
+ **/
156
+ _count?: true | TestRunCountAggregateInputType
157
+ /**
158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
159
+ *
160
+ * Select which fields to find the minimum value
161
+ **/
162
+ _min?: TestRunMinAggregateInputType
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
+ *
166
+ * Select which fields to find the maximum value
167
+ **/
168
+ _max?: TestRunMaxAggregateInputType
169
+ }
170
+
171
+ export type GetTestRunAggregateType<T extends TestRunAggregateArgs> = {
172
+ [P in keyof T & keyof AggregateTestRun]: P extends '_count' | 'count'
173
+ ? T[P] extends true
174
+ ? number
175
+ : Prisma.GetScalarType<T[P], AggregateTestRun[P]>
176
+ : Prisma.GetScalarType<T[P], AggregateTestRun[P]>
177
+ }
178
+
179
+
180
+
181
+
182
+ export type TestRunGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
183
+ where?: Prisma.TestRunWhereInput
184
+ orderBy?: Prisma.TestRunOrderByWithAggregationInput | Prisma.TestRunOrderByWithAggregationInput[]
185
+ by: Prisma.TestRunScalarFieldEnum[] | Prisma.TestRunScalarFieldEnum
186
+ having?: Prisma.TestRunScalarWhereWithAggregatesInput
187
+ take?: number
188
+ skip?: number
189
+ _count?: TestRunCountAggregateInputType | true
190
+ _min?: TestRunMinAggregateInputType
191
+ _max?: TestRunMaxAggregateInputType
192
+ }
193
+
194
+ export type TestRunGroupByOutputType = {
195
+ id: string
196
+ projectId: string
197
+ planId: string | null
198
+ name: string
199
+ trigger: string
200
+ executorType: string
201
+ targetEnv: string | null
202
+ status: string
203
+ summary: runtime.JsonValue | null
204
+ startedAt: Date | null
205
+ completedAt: Date | null
206
+ createdById: string
207
+ createdAt: Date
208
+ _count: TestRunCountAggregateOutputType | null
209
+ _min: TestRunMinAggregateOutputType | null
210
+ _max: TestRunMaxAggregateOutputType | null
211
+ }
212
+
213
+ export type GetTestRunGroupByPayload<T extends TestRunGroupByArgs> = Prisma.PrismaPromise<
214
+ Array<
215
+ Prisma.PickEnumerable<TestRunGroupByOutputType, T['by']> &
216
+ {
217
+ [P in ((keyof T) & (keyof TestRunGroupByOutputType))]: P extends '_count'
218
+ ? T[P] extends boolean
219
+ ? number
220
+ : Prisma.GetScalarType<T[P], TestRunGroupByOutputType[P]>
221
+ : Prisma.GetScalarType<T[P], TestRunGroupByOutputType[P]>
222
+ }
223
+ >
224
+ >
225
+
226
+
227
+
228
+ export type TestRunWhereInput = {
229
+ AND?: Prisma.TestRunWhereInput | Prisma.TestRunWhereInput[]
230
+ OR?: Prisma.TestRunWhereInput[]
231
+ NOT?: Prisma.TestRunWhereInput | Prisma.TestRunWhereInput[]
232
+ id?: Prisma.StringFilter<"TestRun"> | string
233
+ projectId?: Prisma.StringFilter<"TestRun"> | string
234
+ planId?: Prisma.StringNullableFilter<"TestRun"> | string | null
235
+ name?: Prisma.StringFilter<"TestRun"> | string
236
+ trigger?: Prisma.StringFilter<"TestRun"> | string
237
+ executorType?: Prisma.StringFilter<"TestRun"> | string
238
+ targetEnv?: Prisma.StringNullableFilter<"TestRun"> | string | null
239
+ status?: Prisma.StringFilter<"TestRun"> | string
240
+ summary?: Prisma.JsonNullableFilter<"TestRun">
241
+ startedAt?: Prisma.DateTimeNullableFilter<"TestRun"> | Date | string | null
242
+ completedAt?: Prisma.DateTimeNullableFilter<"TestRun"> | Date | string | null
243
+ createdById?: Prisma.StringFilter<"TestRun"> | string
244
+ createdAt?: Prisma.DateTimeFilter<"TestRun"> | Date | string
245
+ project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
246
+ plan?: Prisma.XOR<Prisma.TestPlanNullableScalarRelationFilter, Prisma.TestPlanWhereInput> | null
247
+ cases?: Prisma.TestRunCaseListRelationFilter
248
+ }
249
+
250
+ export type TestRunOrderByWithRelationInput = {
251
+ id?: Prisma.SortOrder
252
+ projectId?: Prisma.SortOrder
253
+ planId?: Prisma.SortOrderInput | Prisma.SortOrder
254
+ name?: Prisma.SortOrder
255
+ trigger?: Prisma.SortOrder
256
+ executorType?: Prisma.SortOrder
257
+ targetEnv?: Prisma.SortOrderInput | Prisma.SortOrder
258
+ status?: Prisma.SortOrder
259
+ summary?: Prisma.SortOrderInput | Prisma.SortOrder
260
+ startedAt?: Prisma.SortOrderInput | Prisma.SortOrder
261
+ completedAt?: Prisma.SortOrderInput | Prisma.SortOrder
262
+ createdById?: Prisma.SortOrder
263
+ createdAt?: Prisma.SortOrder
264
+ project?: Prisma.ProjectOrderByWithRelationInput
265
+ plan?: Prisma.TestPlanOrderByWithRelationInput
266
+ cases?: Prisma.TestRunCaseOrderByRelationAggregateInput
267
+ }
268
+
269
+ export type TestRunWhereUniqueInput = Prisma.AtLeast<{
270
+ id?: string
271
+ AND?: Prisma.TestRunWhereInput | Prisma.TestRunWhereInput[]
272
+ OR?: Prisma.TestRunWhereInput[]
273
+ NOT?: Prisma.TestRunWhereInput | Prisma.TestRunWhereInput[]
274
+ projectId?: Prisma.StringFilter<"TestRun"> | string
275
+ planId?: Prisma.StringNullableFilter<"TestRun"> | string | null
276
+ name?: Prisma.StringFilter<"TestRun"> | string
277
+ trigger?: Prisma.StringFilter<"TestRun"> | string
278
+ executorType?: Prisma.StringFilter<"TestRun"> | string
279
+ targetEnv?: Prisma.StringNullableFilter<"TestRun"> | string | null
280
+ status?: Prisma.StringFilter<"TestRun"> | string
281
+ summary?: Prisma.JsonNullableFilter<"TestRun">
282
+ startedAt?: Prisma.DateTimeNullableFilter<"TestRun"> | Date | string | null
283
+ completedAt?: Prisma.DateTimeNullableFilter<"TestRun"> | Date | string | null
284
+ createdById?: Prisma.StringFilter<"TestRun"> | string
285
+ createdAt?: Prisma.DateTimeFilter<"TestRun"> | Date | string
286
+ project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
287
+ plan?: Prisma.XOR<Prisma.TestPlanNullableScalarRelationFilter, Prisma.TestPlanWhereInput> | null
288
+ cases?: Prisma.TestRunCaseListRelationFilter
289
+ }, "id">
290
+
291
+ export type TestRunOrderByWithAggregationInput = {
292
+ id?: Prisma.SortOrder
293
+ projectId?: Prisma.SortOrder
294
+ planId?: Prisma.SortOrderInput | Prisma.SortOrder
295
+ name?: Prisma.SortOrder
296
+ trigger?: Prisma.SortOrder
297
+ executorType?: Prisma.SortOrder
298
+ targetEnv?: Prisma.SortOrderInput | Prisma.SortOrder
299
+ status?: Prisma.SortOrder
300
+ summary?: Prisma.SortOrderInput | Prisma.SortOrder
301
+ startedAt?: Prisma.SortOrderInput | Prisma.SortOrder
302
+ completedAt?: Prisma.SortOrderInput | Prisma.SortOrder
303
+ createdById?: Prisma.SortOrder
304
+ createdAt?: Prisma.SortOrder
305
+ _count?: Prisma.TestRunCountOrderByAggregateInput
306
+ _max?: Prisma.TestRunMaxOrderByAggregateInput
307
+ _min?: Prisma.TestRunMinOrderByAggregateInput
308
+ }
309
+
310
+ export type TestRunScalarWhereWithAggregatesInput = {
311
+ AND?: Prisma.TestRunScalarWhereWithAggregatesInput | Prisma.TestRunScalarWhereWithAggregatesInput[]
312
+ OR?: Prisma.TestRunScalarWhereWithAggregatesInput[]
313
+ NOT?: Prisma.TestRunScalarWhereWithAggregatesInput | Prisma.TestRunScalarWhereWithAggregatesInput[]
314
+ id?: Prisma.StringWithAggregatesFilter<"TestRun"> | string
315
+ projectId?: Prisma.StringWithAggregatesFilter<"TestRun"> | string
316
+ planId?: Prisma.StringNullableWithAggregatesFilter<"TestRun"> | string | null
317
+ name?: Prisma.StringWithAggregatesFilter<"TestRun"> | string
318
+ trigger?: Prisma.StringWithAggregatesFilter<"TestRun"> | string
319
+ executorType?: Prisma.StringWithAggregatesFilter<"TestRun"> | string
320
+ targetEnv?: Prisma.StringNullableWithAggregatesFilter<"TestRun"> | string | null
321
+ status?: Prisma.StringWithAggregatesFilter<"TestRun"> | string
322
+ summary?: Prisma.JsonNullableWithAggregatesFilter<"TestRun">
323
+ startedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TestRun"> | Date | string | null
324
+ completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TestRun"> | Date | string | null
325
+ createdById?: Prisma.StringWithAggregatesFilter<"TestRun"> | string
326
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"TestRun"> | Date | string
327
+ }
328
+
329
+ export type TestRunCreateInput = {
330
+ id?: string
331
+ name: string
332
+ trigger?: string
333
+ executorType?: string
334
+ targetEnv?: string | null
335
+ status?: string
336
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
337
+ startedAt?: Date | string | null
338
+ completedAt?: Date | string | null
339
+ createdById: string
340
+ createdAt?: Date | string
341
+ project: Prisma.ProjectCreateNestedOneWithoutTestRunsInput
342
+ plan?: Prisma.TestPlanCreateNestedOneWithoutRunsInput
343
+ cases?: Prisma.TestRunCaseCreateNestedManyWithoutRunInput
344
+ }
345
+
346
+ export type TestRunUncheckedCreateInput = {
347
+ id?: string
348
+ projectId: string
349
+ planId?: string | null
350
+ name: string
351
+ trigger?: string
352
+ executorType?: string
353
+ targetEnv?: string | null
354
+ status?: string
355
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
356
+ startedAt?: Date | string | null
357
+ completedAt?: Date | string | null
358
+ createdById: string
359
+ createdAt?: Date | string
360
+ cases?: Prisma.TestRunCaseUncheckedCreateNestedManyWithoutRunInput
361
+ }
362
+
363
+ export type TestRunUpdateInput = {
364
+ id?: Prisma.StringFieldUpdateOperationsInput | string
365
+ name?: Prisma.StringFieldUpdateOperationsInput | string
366
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
367
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
368
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
369
+ status?: Prisma.StringFieldUpdateOperationsInput | string
370
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
371
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
372
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
373
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
374
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
375
+ project?: Prisma.ProjectUpdateOneRequiredWithoutTestRunsNestedInput
376
+ plan?: Prisma.TestPlanUpdateOneWithoutRunsNestedInput
377
+ cases?: Prisma.TestRunCaseUpdateManyWithoutRunNestedInput
378
+ }
379
+
380
+ export type TestRunUncheckedUpdateInput = {
381
+ id?: Prisma.StringFieldUpdateOperationsInput | string
382
+ projectId?: Prisma.StringFieldUpdateOperationsInput | string
383
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
384
+ name?: Prisma.StringFieldUpdateOperationsInput | string
385
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
386
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
387
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
388
+ status?: Prisma.StringFieldUpdateOperationsInput | string
389
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
390
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
391
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
392
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
393
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
394
+ cases?: Prisma.TestRunCaseUncheckedUpdateManyWithoutRunNestedInput
395
+ }
396
+
397
+ export type TestRunCreateManyInput = {
398
+ id?: string
399
+ projectId: string
400
+ planId?: string | null
401
+ name: string
402
+ trigger?: string
403
+ executorType?: string
404
+ targetEnv?: string | null
405
+ status?: string
406
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
407
+ startedAt?: Date | string | null
408
+ completedAt?: Date | string | null
409
+ createdById: string
410
+ createdAt?: Date | string
411
+ }
412
+
413
+ export type TestRunUpdateManyMutationInput = {
414
+ id?: Prisma.StringFieldUpdateOperationsInput | string
415
+ name?: Prisma.StringFieldUpdateOperationsInput | string
416
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
417
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
418
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
419
+ status?: Prisma.StringFieldUpdateOperationsInput | string
420
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
421
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
422
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
423
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
424
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
425
+ }
426
+
427
+ export type TestRunUncheckedUpdateManyInput = {
428
+ id?: Prisma.StringFieldUpdateOperationsInput | string
429
+ projectId?: Prisma.StringFieldUpdateOperationsInput | string
430
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
431
+ name?: Prisma.StringFieldUpdateOperationsInput | string
432
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
433
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
434
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
435
+ status?: Prisma.StringFieldUpdateOperationsInput | string
436
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
437
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
438
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
439
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
440
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
441
+ }
442
+
443
+ export type TestRunListRelationFilter = {
444
+ every?: Prisma.TestRunWhereInput
445
+ some?: Prisma.TestRunWhereInput
446
+ none?: Prisma.TestRunWhereInput
447
+ }
448
+
449
+ export type TestRunOrderByRelationAggregateInput = {
450
+ _count?: Prisma.SortOrder
451
+ }
452
+
453
+ export type TestRunCountOrderByAggregateInput = {
454
+ id?: Prisma.SortOrder
455
+ projectId?: Prisma.SortOrder
456
+ planId?: Prisma.SortOrder
457
+ name?: Prisma.SortOrder
458
+ trigger?: Prisma.SortOrder
459
+ executorType?: Prisma.SortOrder
460
+ targetEnv?: Prisma.SortOrder
461
+ status?: Prisma.SortOrder
462
+ summary?: Prisma.SortOrder
463
+ startedAt?: Prisma.SortOrder
464
+ completedAt?: Prisma.SortOrder
465
+ createdById?: Prisma.SortOrder
466
+ createdAt?: Prisma.SortOrder
467
+ }
468
+
469
+ export type TestRunMaxOrderByAggregateInput = {
470
+ id?: Prisma.SortOrder
471
+ projectId?: Prisma.SortOrder
472
+ planId?: Prisma.SortOrder
473
+ name?: Prisma.SortOrder
474
+ trigger?: Prisma.SortOrder
475
+ executorType?: Prisma.SortOrder
476
+ targetEnv?: Prisma.SortOrder
477
+ status?: Prisma.SortOrder
478
+ startedAt?: Prisma.SortOrder
479
+ completedAt?: Prisma.SortOrder
480
+ createdById?: Prisma.SortOrder
481
+ createdAt?: Prisma.SortOrder
482
+ }
483
+
484
+ export type TestRunMinOrderByAggregateInput = {
485
+ id?: Prisma.SortOrder
486
+ projectId?: Prisma.SortOrder
487
+ planId?: Prisma.SortOrder
488
+ name?: Prisma.SortOrder
489
+ trigger?: Prisma.SortOrder
490
+ executorType?: Prisma.SortOrder
491
+ targetEnv?: Prisma.SortOrder
492
+ status?: Prisma.SortOrder
493
+ startedAt?: Prisma.SortOrder
494
+ completedAt?: Prisma.SortOrder
495
+ createdById?: Prisma.SortOrder
496
+ createdAt?: Prisma.SortOrder
497
+ }
498
+
499
+ export type TestRunScalarRelationFilter = {
500
+ is?: Prisma.TestRunWhereInput
501
+ isNot?: Prisma.TestRunWhereInput
502
+ }
503
+
504
+ export type TestRunCreateNestedManyWithoutProjectInput = {
505
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutProjectInput, Prisma.TestRunUncheckedCreateWithoutProjectInput> | Prisma.TestRunCreateWithoutProjectInput[] | Prisma.TestRunUncheckedCreateWithoutProjectInput[]
506
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutProjectInput | Prisma.TestRunCreateOrConnectWithoutProjectInput[]
507
+ createMany?: Prisma.TestRunCreateManyProjectInputEnvelope
508
+ connect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
509
+ }
510
+
511
+ export type TestRunUncheckedCreateNestedManyWithoutProjectInput = {
512
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutProjectInput, Prisma.TestRunUncheckedCreateWithoutProjectInput> | Prisma.TestRunCreateWithoutProjectInput[] | Prisma.TestRunUncheckedCreateWithoutProjectInput[]
513
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutProjectInput | Prisma.TestRunCreateOrConnectWithoutProjectInput[]
514
+ createMany?: Prisma.TestRunCreateManyProjectInputEnvelope
515
+ connect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
516
+ }
517
+
518
+ export type TestRunUpdateManyWithoutProjectNestedInput = {
519
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutProjectInput, Prisma.TestRunUncheckedCreateWithoutProjectInput> | Prisma.TestRunCreateWithoutProjectInput[] | Prisma.TestRunUncheckedCreateWithoutProjectInput[]
520
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutProjectInput | Prisma.TestRunCreateOrConnectWithoutProjectInput[]
521
+ upsert?: Prisma.TestRunUpsertWithWhereUniqueWithoutProjectInput | Prisma.TestRunUpsertWithWhereUniqueWithoutProjectInput[]
522
+ createMany?: Prisma.TestRunCreateManyProjectInputEnvelope
523
+ set?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
524
+ disconnect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
525
+ delete?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
526
+ connect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
527
+ update?: Prisma.TestRunUpdateWithWhereUniqueWithoutProjectInput | Prisma.TestRunUpdateWithWhereUniqueWithoutProjectInput[]
528
+ updateMany?: Prisma.TestRunUpdateManyWithWhereWithoutProjectInput | Prisma.TestRunUpdateManyWithWhereWithoutProjectInput[]
529
+ deleteMany?: Prisma.TestRunScalarWhereInput | Prisma.TestRunScalarWhereInput[]
530
+ }
531
+
532
+ export type TestRunUncheckedUpdateManyWithoutProjectNestedInput = {
533
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutProjectInput, Prisma.TestRunUncheckedCreateWithoutProjectInput> | Prisma.TestRunCreateWithoutProjectInput[] | Prisma.TestRunUncheckedCreateWithoutProjectInput[]
534
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutProjectInput | Prisma.TestRunCreateOrConnectWithoutProjectInput[]
535
+ upsert?: Prisma.TestRunUpsertWithWhereUniqueWithoutProjectInput | Prisma.TestRunUpsertWithWhereUniqueWithoutProjectInput[]
536
+ createMany?: Prisma.TestRunCreateManyProjectInputEnvelope
537
+ set?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
538
+ disconnect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
539
+ delete?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
540
+ connect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
541
+ update?: Prisma.TestRunUpdateWithWhereUniqueWithoutProjectInput | Prisma.TestRunUpdateWithWhereUniqueWithoutProjectInput[]
542
+ updateMany?: Prisma.TestRunUpdateManyWithWhereWithoutProjectInput | Prisma.TestRunUpdateManyWithWhereWithoutProjectInput[]
543
+ deleteMany?: Prisma.TestRunScalarWhereInput | Prisma.TestRunScalarWhereInput[]
544
+ }
545
+
546
+ export type TestRunCreateNestedManyWithoutPlanInput = {
547
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutPlanInput, Prisma.TestRunUncheckedCreateWithoutPlanInput> | Prisma.TestRunCreateWithoutPlanInput[] | Prisma.TestRunUncheckedCreateWithoutPlanInput[]
548
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutPlanInput | Prisma.TestRunCreateOrConnectWithoutPlanInput[]
549
+ createMany?: Prisma.TestRunCreateManyPlanInputEnvelope
550
+ connect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
551
+ }
552
+
553
+ export type TestRunUncheckedCreateNestedManyWithoutPlanInput = {
554
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutPlanInput, Prisma.TestRunUncheckedCreateWithoutPlanInput> | Prisma.TestRunCreateWithoutPlanInput[] | Prisma.TestRunUncheckedCreateWithoutPlanInput[]
555
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutPlanInput | Prisma.TestRunCreateOrConnectWithoutPlanInput[]
556
+ createMany?: Prisma.TestRunCreateManyPlanInputEnvelope
557
+ connect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
558
+ }
559
+
560
+ export type TestRunUpdateManyWithoutPlanNestedInput = {
561
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutPlanInput, Prisma.TestRunUncheckedCreateWithoutPlanInput> | Prisma.TestRunCreateWithoutPlanInput[] | Prisma.TestRunUncheckedCreateWithoutPlanInput[]
562
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutPlanInput | Prisma.TestRunCreateOrConnectWithoutPlanInput[]
563
+ upsert?: Prisma.TestRunUpsertWithWhereUniqueWithoutPlanInput | Prisma.TestRunUpsertWithWhereUniqueWithoutPlanInput[]
564
+ createMany?: Prisma.TestRunCreateManyPlanInputEnvelope
565
+ set?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
566
+ disconnect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
567
+ delete?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
568
+ connect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
569
+ update?: Prisma.TestRunUpdateWithWhereUniqueWithoutPlanInput | Prisma.TestRunUpdateWithWhereUniqueWithoutPlanInput[]
570
+ updateMany?: Prisma.TestRunUpdateManyWithWhereWithoutPlanInput | Prisma.TestRunUpdateManyWithWhereWithoutPlanInput[]
571
+ deleteMany?: Prisma.TestRunScalarWhereInput | Prisma.TestRunScalarWhereInput[]
572
+ }
573
+
574
+ export type TestRunUncheckedUpdateManyWithoutPlanNestedInput = {
575
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutPlanInput, Prisma.TestRunUncheckedCreateWithoutPlanInput> | Prisma.TestRunCreateWithoutPlanInput[] | Prisma.TestRunUncheckedCreateWithoutPlanInput[]
576
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutPlanInput | Prisma.TestRunCreateOrConnectWithoutPlanInput[]
577
+ upsert?: Prisma.TestRunUpsertWithWhereUniqueWithoutPlanInput | Prisma.TestRunUpsertWithWhereUniqueWithoutPlanInput[]
578
+ createMany?: Prisma.TestRunCreateManyPlanInputEnvelope
579
+ set?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
580
+ disconnect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
581
+ delete?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
582
+ connect?: Prisma.TestRunWhereUniqueInput | Prisma.TestRunWhereUniqueInput[]
583
+ update?: Prisma.TestRunUpdateWithWhereUniqueWithoutPlanInput | Prisma.TestRunUpdateWithWhereUniqueWithoutPlanInput[]
584
+ updateMany?: Prisma.TestRunUpdateManyWithWhereWithoutPlanInput | Prisma.TestRunUpdateManyWithWhereWithoutPlanInput[]
585
+ deleteMany?: Prisma.TestRunScalarWhereInput | Prisma.TestRunScalarWhereInput[]
586
+ }
587
+
588
+ export type TestRunCreateNestedOneWithoutCasesInput = {
589
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutCasesInput, Prisma.TestRunUncheckedCreateWithoutCasesInput>
590
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutCasesInput
591
+ connect?: Prisma.TestRunWhereUniqueInput
592
+ }
593
+
594
+ export type TestRunUpdateOneRequiredWithoutCasesNestedInput = {
595
+ create?: Prisma.XOR<Prisma.TestRunCreateWithoutCasesInput, Prisma.TestRunUncheckedCreateWithoutCasesInput>
596
+ connectOrCreate?: Prisma.TestRunCreateOrConnectWithoutCasesInput
597
+ upsert?: Prisma.TestRunUpsertWithoutCasesInput
598
+ connect?: Prisma.TestRunWhereUniqueInput
599
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TestRunUpdateToOneWithWhereWithoutCasesInput, Prisma.TestRunUpdateWithoutCasesInput>, Prisma.TestRunUncheckedUpdateWithoutCasesInput>
600
+ }
601
+
602
+ export type TestRunCreateWithoutProjectInput = {
603
+ id?: string
604
+ name: string
605
+ trigger?: string
606
+ executorType?: string
607
+ targetEnv?: string | null
608
+ status?: string
609
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
610
+ startedAt?: Date | string | null
611
+ completedAt?: Date | string | null
612
+ createdById: string
613
+ createdAt?: Date | string
614
+ plan?: Prisma.TestPlanCreateNestedOneWithoutRunsInput
615
+ cases?: Prisma.TestRunCaseCreateNestedManyWithoutRunInput
616
+ }
617
+
618
+ export type TestRunUncheckedCreateWithoutProjectInput = {
619
+ id?: string
620
+ planId?: string | null
621
+ name: string
622
+ trigger?: string
623
+ executorType?: string
624
+ targetEnv?: string | null
625
+ status?: string
626
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
627
+ startedAt?: Date | string | null
628
+ completedAt?: Date | string | null
629
+ createdById: string
630
+ createdAt?: Date | string
631
+ cases?: Prisma.TestRunCaseUncheckedCreateNestedManyWithoutRunInput
632
+ }
633
+
634
+ export type TestRunCreateOrConnectWithoutProjectInput = {
635
+ where: Prisma.TestRunWhereUniqueInput
636
+ create: Prisma.XOR<Prisma.TestRunCreateWithoutProjectInput, Prisma.TestRunUncheckedCreateWithoutProjectInput>
637
+ }
638
+
639
+ export type TestRunCreateManyProjectInputEnvelope = {
640
+ data: Prisma.TestRunCreateManyProjectInput | Prisma.TestRunCreateManyProjectInput[]
641
+ skipDuplicates?: boolean
642
+ }
643
+
644
+ export type TestRunUpsertWithWhereUniqueWithoutProjectInput = {
645
+ where: Prisma.TestRunWhereUniqueInput
646
+ update: Prisma.XOR<Prisma.TestRunUpdateWithoutProjectInput, Prisma.TestRunUncheckedUpdateWithoutProjectInput>
647
+ create: Prisma.XOR<Prisma.TestRunCreateWithoutProjectInput, Prisma.TestRunUncheckedCreateWithoutProjectInput>
648
+ }
649
+
650
+ export type TestRunUpdateWithWhereUniqueWithoutProjectInput = {
651
+ where: Prisma.TestRunWhereUniqueInput
652
+ data: Prisma.XOR<Prisma.TestRunUpdateWithoutProjectInput, Prisma.TestRunUncheckedUpdateWithoutProjectInput>
653
+ }
654
+
655
+ export type TestRunUpdateManyWithWhereWithoutProjectInput = {
656
+ where: Prisma.TestRunScalarWhereInput
657
+ data: Prisma.XOR<Prisma.TestRunUpdateManyMutationInput, Prisma.TestRunUncheckedUpdateManyWithoutProjectInput>
658
+ }
659
+
660
+ export type TestRunScalarWhereInput = {
661
+ AND?: Prisma.TestRunScalarWhereInput | Prisma.TestRunScalarWhereInput[]
662
+ OR?: Prisma.TestRunScalarWhereInput[]
663
+ NOT?: Prisma.TestRunScalarWhereInput | Prisma.TestRunScalarWhereInput[]
664
+ id?: Prisma.StringFilter<"TestRun"> | string
665
+ projectId?: Prisma.StringFilter<"TestRun"> | string
666
+ planId?: Prisma.StringNullableFilter<"TestRun"> | string | null
667
+ name?: Prisma.StringFilter<"TestRun"> | string
668
+ trigger?: Prisma.StringFilter<"TestRun"> | string
669
+ executorType?: Prisma.StringFilter<"TestRun"> | string
670
+ targetEnv?: Prisma.StringNullableFilter<"TestRun"> | string | null
671
+ status?: Prisma.StringFilter<"TestRun"> | string
672
+ summary?: Prisma.JsonNullableFilter<"TestRun">
673
+ startedAt?: Prisma.DateTimeNullableFilter<"TestRun"> | Date | string | null
674
+ completedAt?: Prisma.DateTimeNullableFilter<"TestRun"> | Date | string | null
675
+ createdById?: Prisma.StringFilter<"TestRun"> | string
676
+ createdAt?: Prisma.DateTimeFilter<"TestRun"> | Date | string
677
+ }
678
+
679
+ export type TestRunCreateWithoutPlanInput = {
680
+ id?: string
681
+ name: string
682
+ trigger?: string
683
+ executorType?: string
684
+ targetEnv?: string | null
685
+ status?: string
686
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
687
+ startedAt?: Date | string | null
688
+ completedAt?: Date | string | null
689
+ createdById: string
690
+ createdAt?: Date | string
691
+ project: Prisma.ProjectCreateNestedOneWithoutTestRunsInput
692
+ cases?: Prisma.TestRunCaseCreateNestedManyWithoutRunInput
693
+ }
694
+
695
+ export type TestRunUncheckedCreateWithoutPlanInput = {
696
+ id?: string
697
+ projectId: string
698
+ name: string
699
+ trigger?: string
700
+ executorType?: string
701
+ targetEnv?: string | null
702
+ status?: string
703
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
704
+ startedAt?: Date | string | null
705
+ completedAt?: Date | string | null
706
+ createdById: string
707
+ createdAt?: Date | string
708
+ cases?: Prisma.TestRunCaseUncheckedCreateNestedManyWithoutRunInput
709
+ }
710
+
711
+ export type TestRunCreateOrConnectWithoutPlanInput = {
712
+ where: Prisma.TestRunWhereUniqueInput
713
+ create: Prisma.XOR<Prisma.TestRunCreateWithoutPlanInput, Prisma.TestRunUncheckedCreateWithoutPlanInput>
714
+ }
715
+
716
+ export type TestRunCreateManyPlanInputEnvelope = {
717
+ data: Prisma.TestRunCreateManyPlanInput | Prisma.TestRunCreateManyPlanInput[]
718
+ skipDuplicates?: boolean
719
+ }
720
+
721
+ export type TestRunUpsertWithWhereUniqueWithoutPlanInput = {
722
+ where: Prisma.TestRunWhereUniqueInput
723
+ update: Prisma.XOR<Prisma.TestRunUpdateWithoutPlanInput, Prisma.TestRunUncheckedUpdateWithoutPlanInput>
724
+ create: Prisma.XOR<Prisma.TestRunCreateWithoutPlanInput, Prisma.TestRunUncheckedCreateWithoutPlanInput>
725
+ }
726
+
727
+ export type TestRunUpdateWithWhereUniqueWithoutPlanInput = {
728
+ where: Prisma.TestRunWhereUniqueInput
729
+ data: Prisma.XOR<Prisma.TestRunUpdateWithoutPlanInput, Prisma.TestRunUncheckedUpdateWithoutPlanInput>
730
+ }
731
+
732
+ export type TestRunUpdateManyWithWhereWithoutPlanInput = {
733
+ where: Prisma.TestRunScalarWhereInput
734
+ data: Prisma.XOR<Prisma.TestRunUpdateManyMutationInput, Prisma.TestRunUncheckedUpdateManyWithoutPlanInput>
735
+ }
736
+
737
+ export type TestRunCreateWithoutCasesInput = {
738
+ id?: string
739
+ name: string
740
+ trigger?: string
741
+ executorType?: string
742
+ targetEnv?: string | null
743
+ status?: string
744
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
745
+ startedAt?: Date | string | null
746
+ completedAt?: Date | string | null
747
+ createdById: string
748
+ createdAt?: Date | string
749
+ project: Prisma.ProjectCreateNestedOneWithoutTestRunsInput
750
+ plan?: Prisma.TestPlanCreateNestedOneWithoutRunsInput
751
+ }
752
+
753
+ export type TestRunUncheckedCreateWithoutCasesInput = {
754
+ id?: string
755
+ projectId: string
756
+ planId?: string | null
757
+ name: string
758
+ trigger?: string
759
+ executorType?: string
760
+ targetEnv?: string | null
761
+ status?: string
762
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
763
+ startedAt?: Date | string | null
764
+ completedAt?: Date | string | null
765
+ createdById: string
766
+ createdAt?: Date | string
767
+ }
768
+
769
+ export type TestRunCreateOrConnectWithoutCasesInput = {
770
+ where: Prisma.TestRunWhereUniqueInput
771
+ create: Prisma.XOR<Prisma.TestRunCreateWithoutCasesInput, Prisma.TestRunUncheckedCreateWithoutCasesInput>
772
+ }
773
+
774
+ export type TestRunUpsertWithoutCasesInput = {
775
+ update: Prisma.XOR<Prisma.TestRunUpdateWithoutCasesInput, Prisma.TestRunUncheckedUpdateWithoutCasesInput>
776
+ create: Prisma.XOR<Prisma.TestRunCreateWithoutCasesInput, Prisma.TestRunUncheckedCreateWithoutCasesInput>
777
+ where?: Prisma.TestRunWhereInput
778
+ }
779
+
780
+ export type TestRunUpdateToOneWithWhereWithoutCasesInput = {
781
+ where?: Prisma.TestRunWhereInput
782
+ data: Prisma.XOR<Prisma.TestRunUpdateWithoutCasesInput, Prisma.TestRunUncheckedUpdateWithoutCasesInput>
783
+ }
784
+
785
+ export type TestRunUpdateWithoutCasesInput = {
786
+ id?: Prisma.StringFieldUpdateOperationsInput | string
787
+ name?: Prisma.StringFieldUpdateOperationsInput | string
788
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
789
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
790
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
791
+ status?: Prisma.StringFieldUpdateOperationsInput | string
792
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
793
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
794
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
795
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
796
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
797
+ project?: Prisma.ProjectUpdateOneRequiredWithoutTestRunsNestedInput
798
+ plan?: Prisma.TestPlanUpdateOneWithoutRunsNestedInput
799
+ }
800
+
801
+ export type TestRunUncheckedUpdateWithoutCasesInput = {
802
+ id?: Prisma.StringFieldUpdateOperationsInput | string
803
+ projectId?: Prisma.StringFieldUpdateOperationsInput | string
804
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
805
+ name?: Prisma.StringFieldUpdateOperationsInput | string
806
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
807
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
808
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
809
+ status?: Prisma.StringFieldUpdateOperationsInput | string
810
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
811
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
812
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
813
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
814
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
815
+ }
816
+
817
+ export type TestRunCreateManyProjectInput = {
818
+ id?: string
819
+ planId?: string | null
820
+ name: string
821
+ trigger?: string
822
+ executorType?: string
823
+ targetEnv?: string | null
824
+ status?: string
825
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
826
+ startedAt?: Date | string | null
827
+ completedAt?: Date | string | null
828
+ createdById: string
829
+ createdAt?: Date | string
830
+ }
831
+
832
+ export type TestRunUpdateWithoutProjectInput = {
833
+ id?: Prisma.StringFieldUpdateOperationsInput | string
834
+ name?: Prisma.StringFieldUpdateOperationsInput | string
835
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
836
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
837
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
838
+ status?: Prisma.StringFieldUpdateOperationsInput | string
839
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
840
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
841
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
842
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
843
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
844
+ plan?: Prisma.TestPlanUpdateOneWithoutRunsNestedInput
845
+ cases?: Prisma.TestRunCaseUpdateManyWithoutRunNestedInput
846
+ }
847
+
848
+ export type TestRunUncheckedUpdateWithoutProjectInput = {
849
+ id?: Prisma.StringFieldUpdateOperationsInput | string
850
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
851
+ name?: Prisma.StringFieldUpdateOperationsInput | string
852
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
853
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
854
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
855
+ status?: Prisma.StringFieldUpdateOperationsInput | string
856
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
857
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
858
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
859
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
860
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
861
+ cases?: Prisma.TestRunCaseUncheckedUpdateManyWithoutRunNestedInput
862
+ }
863
+
864
+ export type TestRunUncheckedUpdateManyWithoutProjectInput = {
865
+ id?: Prisma.StringFieldUpdateOperationsInput | string
866
+ planId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
867
+ name?: Prisma.StringFieldUpdateOperationsInput | string
868
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
869
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
870
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
871
+ status?: Prisma.StringFieldUpdateOperationsInput | string
872
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
873
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
874
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
875
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
876
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
877
+ }
878
+
879
+ export type TestRunCreateManyPlanInput = {
880
+ id?: string
881
+ projectId: string
882
+ name: string
883
+ trigger?: string
884
+ executorType?: string
885
+ targetEnv?: string | null
886
+ status?: string
887
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
888
+ startedAt?: Date | string | null
889
+ completedAt?: Date | string | null
890
+ createdById: string
891
+ createdAt?: Date | string
892
+ }
893
+
894
+ export type TestRunUpdateWithoutPlanInput = {
895
+ id?: Prisma.StringFieldUpdateOperationsInput | string
896
+ name?: Prisma.StringFieldUpdateOperationsInput | string
897
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
898
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
899
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
900
+ status?: Prisma.StringFieldUpdateOperationsInput | string
901
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
902
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
903
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
904
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
905
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
906
+ project?: Prisma.ProjectUpdateOneRequiredWithoutTestRunsNestedInput
907
+ cases?: Prisma.TestRunCaseUpdateManyWithoutRunNestedInput
908
+ }
909
+
910
+ export type TestRunUncheckedUpdateWithoutPlanInput = {
911
+ id?: Prisma.StringFieldUpdateOperationsInput | string
912
+ projectId?: Prisma.StringFieldUpdateOperationsInput | string
913
+ name?: Prisma.StringFieldUpdateOperationsInput | string
914
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
915
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
916
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
917
+ status?: Prisma.StringFieldUpdateOperationsInput | string
918
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
919
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
920
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
921
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
922
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
923
+ cases?: Prisma.TestRunCaseUncheckedUpdateManyWithoutRunNestedInput
924
+ }
925
+
926
+ export type TestRunUncheckedUpdateManyWithoutPlanInput = {
927
+ id?: Prisma.StringFieldUpdateOperationsInput | string
928
+ projectId?: Prisma.StringFieldUpdateOperationsInput | string
929
+ name?: Prisma.StringFieldUpdateOperationsInput | string
930
+ trigger?: Prisma.StringFieldUpdateOperationsInput | string
931
+ executorType?: Prisma.StringFieldUpdateOperationsInput | string
932
+ targetEnv?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
933
+ status?: Prisma.StringFieldUpdateOperationsInput | string
934
+ summary?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
935
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
936
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
937
+ createdById?: Prisma.StringFieldUpdateOperationsInput | string
938
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
939
+ }
940
+
941
+
942
+ /**
943
+ * Count Type TestRunCountOutputType
944
+ */
945
+
946
+ export type TestRunCountOutputType = {
947
+ cases: number
948
+ }
949
+
950
+ export type TestRunCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
951
+ cases?: boolean | TestRunCountOutputTypeCountCasesArgs
952
+ }
953
+
954
+ /**
955
+ * TestRunCountOutputType without action
956
+ */
957
+ export type TestRunCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
958
+ /**
959
+ * Select specific fields to fetch from the TestRunCountOutputType
960
+ */
961
+ select?: Prisma.TestRunCountOutputTypeSelect<ExtArgs> | null
962
+ }
963
+
964
+ /**
965
+ * TestRunCountOutputType without action
966
+ */
967
+ export type TestRunCountOutputTypeCountCasesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
968
+ where?: Prisma.TestRunCaseWhereInput
969
+ }
970
+
971
+
972
+ export type TestRunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
973
+ id?: boolean
974
+ projectId?: boolean
975
+ planId?: boolean
976
+ name?: boolean
977
+ trigger?: boolean
978
+ executorType?: boolean
979
+ targetEnv?: boolean
980
+ status?: boolean
981
+ summary?: boolean
982
+ startedAt?: boolean
983
+ completedAt?: boolean
984
+ createdById?: boolean
985
+ createdAt?: boolean
986
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
987
+ plan?: boolean | Prisma.TestRun$planArgs<ExtArgs>
988
+ cases?: boolean | Prisma.TestRun$casesArgs<ExtArgs>
989
+ _count?: boolean | Prisma.TestRunCountOutputTypeDefaultArgs<ExtArgs>
990
+ }, ExtArgs["result"]["testRun"]>
991
+
992
+ export type TestRunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
993
+ id?: boolean
994
+ projectId?: boolean
995
+ planId?: boolean
996
+ name?: boolean
997
+ trigger?: boolean
998
+ executorType?: boolean
999
+ targetEnv?: boolean
1000
+ status?: boolean
1001
+ summary?: boolean
1002
+ startedAt?: boolean
1003
+ completedAt?: boolean
1004
+ createdById?: boolean
1005
+ createdAt?: boolean
1006
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
1007
+ plan?: boolean | Prisma.TestRun$planArgs<ExtArgs>
1008
+ }, ExtArgs["result"]["testRun"]>
1009
+
1010
+ export type TestRunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1011
+ id?: boolean
1012
+ projectId?: boolean
1013
+ planId?: boolean
1014
+ name?: boolean
1015
+ trigger?: boolean
1016
+ executorType?: boolean
1017
+ targetEnv?: boolean
1018
+ status?: boolean
1019
+ summary?: boolean
1020
+ startedAt?: boolean
1021
+ completedAt?: boolean
1022
+ createdById?: boolean
1023
+ createdAt?: boolean
1024
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
1025
+ plan?: boolean | Prisma.TestRun$planArgs<ExtArgs>
1026
+ }, ExtArgs["result"]["testRun"]>
1027
+
1028
+ export type TestRunSelectScalar = {
1029
+ id?: boolean
1030
+ projectId?: boolean
1031
+ planId?: boolean
1032
+ name?: boolean
1033
+ trigger?: boolean
1034
+ executorType?: boolean
1035
+ targetEnv?: boolean
1036
+ status?: boolean
1037
+ summary?: boolean
1038
+ startedAt?: boolean
1039
+ completedAt?: boolean
1040
+ createdById?: boolean
1041
+ createdAt?: boolean
1042
+ }
1043
+
1044
+ export type TestRunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "projectId" | "planId" | "name" | "trigger" | "executorType" | "targetEnv" | "status" | "summary" | "startedAt" | "completedAt" | "createdById" | "createdAt", ExtArgs["result"]["testRun"]>
1045
+ export type TestRunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1046
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
1047
+ plan?: boolean | Prisma.TestRun$planArgs<ExtArgs>
1048
+ cases?: boolean | Prisma.TestRun$casesArgs<ExtArgs>
1049
+ _count?: boolean | Prisma.TestRunCountOutputTypeDefaultArgs<ExtArgs>
1050
+ }
1051
+ export type TestRunIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1052
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
1053
+ plan?: boolean | Prisma.TestRun$planArgs<ExtArgs>
1054
+ }
1055
+ export type TestRunIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1056
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
1057
+ plan?: boolean | Prisma.TestRun$planArgs<ExtArgs>
1058
+ }
1059
+
1060
+ export type $TestRunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1061
+ name: "TestRun"
1062
+ objects: {
1063
+ project: Prisma.$ProjectPayload<ExtArgs>
1064
+ plan: Prisma.$TestPlanPayload<ExtArgs> | null
1065
+ cases: Prisma.$TestRunCasePayload<ExtArgs>[]
1066
+ }
1067
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1068
+ id: string
1069
+ projectId: string
1070
+ planId: string | null
1071
+ name: string
1072
+ trigger: string
1073
+ executorType: string
1074
+ targetEnv: string | null
1075
+ status: string
1076
+ summary: runtime.JsonValue | null
1077
+ startedAt: Date | null
1078
+ completedAt: Date | null
1079
+ createdById: string
1080
+ createdAt: Date
1081
+ }, ExtArgs["result"]["testRun"]>
1082
+ composites: {}
1083
+ }
1084
+
1085
+ export type TestRunGetPayload<S extends boolean | null | undefined | TestRunDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TestRunPayload, S>
1086
+
1087
+ export type TestRunCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1088
+ Omit<TestRunFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1089
+ select?: TestRunCountAggregateInputType | true
1090
+ }
1091
+
1092
+ export interface TestRunDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1093
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TestRun'], meta: { name: 'TestRun' } }
1094
+ /**
1095
+ * Find zero or one TestRun that matches the filter.
1096
+ * @param {TestRunFindUniqueArgs} args - Arguments to find a TestRun
1097
+ * @example
1098
+ * // Get one TestRun
1099
+ * const testRun = await prisma.testRun.findUnique({
1100
+ * where: {
1101
+ * // ... provide filter here
1102
+ * }
1103
+ * })
1104
+ */
1105
+ findUnique<T extends TestRunFindUniqueArgs>(args: Prisma.SelectSubset<T, TestRunFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TestRunClient<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1106
+
1107
+ /**
1108
+ * Find one TestRun that matches the filter or throw an error with `error.code='P2025'`
1109
+ * if no matches were found.
1110
+ * @param {TestRunFindUniqueOrThrowArgs} args - Arguments to find a TestRun
1111
+ * @example
1112
+ * // Get one TestRun
1113
+ * const testRun = await prisma.testRun.findUniqueOrThrow({
1114
+ * where: {
1115
+ * // ... provide filter here
1116
+ * }
1117
+ * })
1118
+ */
1119
+ findUniqueOrThrow<T extends TestRunFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TestRunFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TestRunClient<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1120
+
1121
+ /**
1122
+ * Find the first TestRun that matches the filter.
1123
+ * Note, that providing `undefined` is treated as the value not being there.
1124
+ * Read more here: https://pris.ly/d/null-undefined
1125
+ * @param {TestRunFindFirstArgs} args - Arguments to find a TestRun
1126
+ * @example
1127
+ * // Get one TestRun
1128
+ * const testRun = await prisma.testRun.findFirst({
1129
+ * where: {
1130
+ * // ... provide filter here
1131
+ * }
1132
+ * })
1133
+ */
1134
+ findFirst<T extends TestRunFindFirstArgs>(args?: Prisma.SelectSubset<T, TestRunFindFirstArgs<ExtArgs>>): Prisma.Prisma__TestRunClient<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1135
+
1136
+ /**
1137
+ * Find the first TestRun that matches the filter or
1138
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1139
+ * Note, that providing `undefined` is treated as the value not being there.
1140
+ * Read more here: https://pris.ly/d/null-undefined
1141
+ * @param {TestRunFindFirstOrThrowArgs} args - Arguments to find a TestRun
1142
+ * @example
1143
+ * // Get one TestRun
1144
+ * const testRun = await prisma.testRun.findFirstOrThrow({
1145
+ * where: {
1146
+ * // ... provide filter here
1147
+ * }
1148
+ * })
1149
+ */
1150
+ findFirstOrThrow<T extends TestRunFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TestRunFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TestRunClient<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1151
+
1152
+ /**
1153
+ * Find zero or more TestRuns that matches the filter.
1154
+ * Note, that providing `undefined` is treated as the value not being there.
1155
+ * Read more here: https://pris.ly/d/null-undefined
1156
+ * @param {TestRunFindManyArgs} args - Arguments to filter and select certain fields only.
1157
+ * @example
1158
+ * // Get all TestRuns
1159
+ * const testRuns = await prisma.testRun.findMany()
1160
+ *
1161
+ * // Get first 10 TestRuns
1162
+ * const testRuns = await prisma.testRun.findMany({ take: 10 })
1163
+ *
1164
+ * // Only select the `id`
1165
+ * const testRunWithIdOnly = await prisma.testRun.findMany({ select: { id: true } })
1166
+ *
1167
+ */
1168
+ findMany<T extends TestRunFindManyArgs>(args?: Prisma.SelectSubset<T, TestRunFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1169
+
1170
+ /**
1171
+ * Create a TestRun.
1172
+ * @param {TestRunCreateArgs} args - Arguments to create a TestRun.
1173
+ * @example
1174
+ * // Create one TestRun
1175
+ * const TestRun = await prisma.testRun.create({
1176
+ * data: {
1177
+ * // ... data to create a TestRun
1178
+ * }
1179
+ * })
1180
+ *
1181
+ */
1182
+ create<T extends TestRunCreateArgs>(args: Prisma.SelectSubset<T, TestRunCreateArgs<ExtArgs>>): Prisma.Prisma__TestRunClient<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1183
+
1184
+ /**
1185
+ * Create many TestRuns.
1186
+ * @param {TestRunCreateManyArgs} args - Arguments to create many TestRuns.
1187
+ * @example
1188
+ * // Create many TestRuns
1189
+ * const testRun = await prisma.testRun.createMany({
1190
+ * data: [
1191
+ * // ... provide data here
1192
+ * ]
1193
+ * })
1194
+ *
1195
+ */
1196
+ createMany<T extends TestRunCreateManyArgs>(args?: Prisma.SelectSubset<T, TestRunCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1197
+
1198
+ /**
1199
+ * Create many TestRuns and returns the data saved in the database.
1200
+ * @param {TestRunCreateManyAndReturnArgs} args - Arguments to create many TestRuns.
1201
+ * @example
1202
+ * // Create many TestRuns
1203
+ * const testRun = await prisma.testRun.createManyAndReturn({
1204
+ * data: [
1205
+ * // ... provide data here
1206
+ * ]
1207
+ * })
1208
+ *
1209
+ * // Create many TestRuns and only return the `id`
1210
+ * const testRunWithIdOnly = await prisma.testRun.createManyAndReturn({
1211
+ * select: { id: true },
1212
+ * data: [
1213
+ * // ... provide data here
1214
+ * ]
1215
+ * })
1216
+ * Note, that providing `undefined` is treated as the value not being there.
1217
+ * Read more here: https://pris.ly/d/null-undefined
1218
+ *
1219
+ */
1220
+ createManyAndReturn<T extends TestRunCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TestRunCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1221
+
1222
+ /**
1223
+ * Delete a TestRun.
1224
+ * @param {TestRunDeleteArgs} args - Arguments to delete one TestRun.
1225
+ * @example
1226
+ * // Delete one TestRun
1227
+ * const TestRun = await prisma.testRun.delete({
1228
+ * where: {
1229
+ * // ... filter to delete one TestRun
1230
+ * }
1231
+ * })
1232
+ *
1233
+ */
1234
+ delete<T extends TestRunDeleteArgs>(args: Prisma.SelectSubset<T, TestRunDeleteArgs<ExtArgs>>): Prisma.Prisma__TestRunClient<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1235
+
1236
+ /**
1237
+ * Update one TestRun.
1238
+ * @param {TestRunUpdateArgs} args - Arguments to update one TestRun.
1239
+ * @example
1240
+ * // Update one TestRun
1241
+ * const testRun = await prisma.testRun.update({
1242
+ * where: {
1243
+ * // ... provide filter here
1244
+ * },
1245
+ * data: {
1246
+ * // ... provide data here
1247
+ * }
1248
+ * })
1249
+ *
1250
+ */
1251
+ update<T extends TestRunUpdateArgs>(args: Prisma.SelectSubset<T, TestRunUpdateArgs<ExtArgs>>): Prisma.Prisma__TestRunClient<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1252
+
1253
+ /**
1254
+ * Delete zero or more TestRuns.
1255
+ * @param {TestRunDeleteManyArgs} args - Arguments to filter TestRuns to delete.
1256
+ * @example
1257
+ * // Delete a few TestRuns
1258
+ * const { count } = await prisma.testRun.deleteMany({
1259
+ * where: {
1260
+ * // ... provide filter here
1261
+ * }
1262
+ * })
1263
+ *
1264
+ */
1265
+ deleteMany<T extends TestRunDeleteManyArgs>(args?: Prisma.SelectSubset<T, TestRunDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1266
+
1267
+ /**
1268
+ * Update zero or more TestRuns.
1269
+ * Note, that providing `undefined` is treated as the value not being there.
1270
+ * Read more here: https://pris.ly/d/null-undefined
1271
+ * @param {TestRunUpdateManyArgs} args - Arguments to update one or more rows.
1272
+ * @example
1273
+ * // Update many TestRuns
1274
+ * const testRun = await prisma.testRun.updateMany({
1275
+ * where: {
1276
+ * // ... provide filter here
1277
+ * },
1278
+ * data: {
1279
+ * // ... provide data here
1280
+ * }
1281
+ * })
1282
+ *
1283
+ */
1284
+ updateMany<T extends TestRunUpdateManyArgs>(args: Prisma.SelectSubset<T, TestRunUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1285
+
1286
+ /**
1287
+ * Update zero or more TestRuns and returns the data updated in the database.
1288
+ * @param {TestRunUpdateManyAndReturnArgs} args - Arguments to update many TestRuns.
1289
+ * @example
1290
+ * // Update many TestRuns
1291
+ * const testRun = await prisma.testRun.updateManyAndReturn({
1292
+ * where: {
1293
+ * // ... provide filter here
1294
+ * },
1295
+ * data: [
1296
+ * // ... provide data here
1297
+ * ]
1298
+ * })
1299
+ *
1300
+ * // Update zero or more TestRuns and only return the `id`
1301
+ * const testRunWithIdOnly = await prisma.testRun.updateManyAndReturn({
1302
+ * select: { id: true },
1303
+ * where: {
1304
+ * // ... provide filter here
1305
+ * },
1306
+ * data: [
1307
+ * // ... provide data here
1308
+ * ]
1309
+ * })
1310
+ * Note, that providing `undefined` is treated as the value not being there.
1311
+ * Read more here: https://pris.ly/d/null-undefined
1312
+ *
1313
+ */
1314
+ updateManyAndReturn<T extends TestRunUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TestRunUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1315
+
1316
+ /**
1317
+ * Create or update one TestRun.
1318
+ * @param {TestRunUpsertArgs} args - Arguments to update or create a TestRun.
1319
+ * @example
1320
+ * // Update or create a TestRun
1321
+ * const testRun = await prisma.testRun.upsert({
1322
+ * create: {
1323
+ * // ... data to create a TestRun
1324
+ * },
1325
+ * update: {
1326
+ * // ... in case it already exists, update
1327
+ * },
1328
+ * where: {
1329
+ * // ... the filter for the TestRun we want to update
1330
+ * }
1331
+ * })
1332
+ */
1333
+ upsert<T extends TestRunUpsertArgs>(args: Prisma.SelectSubset<T, TestRunUpsertArgs<ExtArgs>>): Prisma.Prisma__TestRunClient<runtime.Types.Result.GetResult<Prisma.$TestRunPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1334
+
1335
+
1336
+ /**
1337
+ * Count the number of TestRuns.
1338
+ * Note, that providing `undefined` is treated as the value not being there.
1339
+ * Read more here: https://pris.ly/d/null-undefined
1340
+ * @param {TestRunCountArgs} args - Arguments to filter TestRuns to count.
1341
+ * @example
1342
+ * // Count the number of TestRuns
1343
+ * const count = await prisma.testRun.count({
1344
+ * where: {
1345
+ * // ... the filter for the TestRuns we want to count
1346
+ * }
1347
+ * })
1348
+ **/
1349
+ count<T extends TestRunCountArgs>(
1350
+ args?: Prisma.Subset<T, TestRunCountArgs>,
1351
+ ): Prisma.PrismaPromise<
1352
+ T extends runtime.Types.Utils.Record<'select', any>
1353
+ ? T['select'] extends true
1354
+ ? number
1355
+ : Prisma.GetScalarType<T['select'], TestRunCountAggregateOutputType>
1356
+ : number
1357
+ >
1358
+
1359
+ /**
1360
+ * Allows you to perform aggregations operations on a TestRun.
1361
+ * Note, that providing `undefined` is treated as the value not being there.
1362
+ * Read more here: https://pris.ly/d/null-undefined
1363
+ * @param {TestRunAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1364
+ * @example
1365
+ * // Ordered by age ascending
1366
+ * // Where email contains prisma.io
1367
+ * // Limited to the 10 users
1368
+ * const aggregations = await prisma.user.aggregate({
1369
+ * _avg: {
1370
+ * age: true,
1371
+ * },
1372
+ * where: {
1373
+ * email: {
1374
+ * contains: "prisma.io",
1375
+ * },
1376
+ * },
1377
+ * orderBy: {
1378
+ * age: "asc",
1379
+ * },
1380
+ * take: 10,
1381
+ * })
1382
+ **/
1383
+ aggregate<T extends TestRunAggregateArgs>(args: Prisma.Subset<T, TestRunAggregateArgs>): Prisma.PrismaPromise<GetTestRunAggregateType<T>>
1384
+
1385
+ /**
1386
+ * Group by TestRun.
1387
+ * Note, that providing `undefined` is treated as the value not being there.
1388
+ * Read more here: https://pris.ly/d/null-undefined
1389
+ * @param {TestRunGroupByArgs} args - Group by arguments.
1390
+ * @example
1391
+ * // Group by city, order by createdAt, get count
1392
+ * const result = await prisma.user.groupBy({
1393
+ * by: ['city', 'createdAt'],
1394
+ * orderBy: {
1395
+ * createdAt: true
1396
+ * },
1397
+ * _count: {
1398
+ * _all: true
1399
+ * },
1400
+ * })
1401
+ *
1402
+ **/
1403
+ groupBy<
1404
+ T extends TestRunGroupByArgs,
1405
+ HasSelectOrTake extends Prisma.Or<
1406
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1407
+ Prisma.Extends<'take', Prisma.Keys<T>>
1408
+ >,
1409
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1410
+ ? { orderBy: TestRunGroupByArgs['orderBy'] }
1411
+ : { orderBy?: TestRunGroupByArgs['orderBy'] },
1412
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1413
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1414
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1415
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1416
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1417
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1418
+ InputErrors extends ByEmpty extends Prisma.True
1419
+ ? `Error: "by" must not be empty.`
1420
+ : HavingValid extends Prisma.False
1421
+ ? {
1422
+ [P in HavingFields]: P extends ByFields
1423
+ ? never
1424
+ : P extends string
1425
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1426
+ : [
1427
+ Error,
1428
+ 'Field ',
1429
+ P,
1430
+ ` in "having" needs to be provided in "by"`,
1431
+ ]
1432
+ }[HavingFields]
1433
+ : 'take' extends Prisma.Keys<T>
1434
+ ? 'orderBy' extends Prisma.Keys<T>
1435
+ ? ByValid extends Prisma.True
1436
+ ? {}
1437
+ : {
1438
+ [P in OrderFields]: P extends ByFields
1439
+ ? never
1440
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1441
+ }[OrderFields]
1442
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1443
+ : 'skip' extends Prisma.Keys<T>
1444
+ ? 'orderBy' extends Prisma.Keys<T>
1445
+ ? ByValid extends Prisma.True
1446
+ ? {}
1447
+ : {
1448
+ [P in OrderFields]: P extends ByFields
1449
+ ? never
1450
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1451
+ }[OrderFields]
1452
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1453
+ : ByValid extends Prisma.True
1454
+ ? {}
1455
+ : {
1456
+ [P in OrderFields]: P extends ByFields
1457
+ ? never
1458
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1459
+ }[OrderFields]
1460
+ >(args: Prisma.SubsetIntersection<T, TestRunGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTestRunGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1461
+ /**
1462
+ * Fields of the TestRun model
1463
+ */
1464
+ readonly fields: TestRunFieldRefs;
1465
+ }
1466
+
1467
+ /**
1468
+ * The delegate class that acts as a "Promise-like" for TestRun.
1469
+ * Why is this prefixed with `Prisma__`?
1470
+ * Because we want to prevent naming conflicts as mentioned in
1471
+ * https://github.com/prisma/prisma-client-js/issues/707
1472
+ */
1473
+ export interface Prisma__TestRunClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1474
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1475
+ project<T extends Prisma.ProjectDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProjectDefaultArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1476
+ plan<T extends Prisma.TestRun$planArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TestRun$planArgs<ExtArgs>>): Prisma.Prisma__TestPlanClient<runtime.Types.Result.GetResult<Prisma.$TestPlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1477
+ cases<T extends Prisma.TestRun$casesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TestRun$casesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TestRunCasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1478
+ /**
1479
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1480
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1481
+ * @param onrejected The callback to execute when the Promise is rejected.
1482
+ * @returns A Promise for the completion of which ever callback is executed.
1483
+ */
1484
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
1485
+ /**
1486
+ * Attaches a callback for only the rejection of the Promise.
1487
+ * @param onrejected The callback to execute when the Promise is rejected.
1488
+ * @returns A Promise for the completion of the callback.
1489
+ */
1490
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1491
+ /**
1492
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1493
+ * resolved value cannot be modified from the callback.
1494
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1495
+ * @returns A Promise for the completion of the callback.
1496
+ */
1497
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1498
+ }
1499
+
1500
+
1501
+
1502
+
1503
+ /**
1504
+ * Fields of the TestRun model
1505
+ */
1506
+ export interface TestRunFieldRefs {
1507
+ readonly id: Prisma.FieldRef<"TestRun", 'String'>
1508
+ readonly projectId: Prisma.FieldRef<"TestRun", 'String'>
1509
+ readonly planId: Prisma.FieldRef<"TestRun", 'String'>
1510
+ readonly name: Prisma.FieldRef<"TestRun", 'String'>
1511
+ readonly trigger: Prisma.FieldRef<"TestRun", 'String'>
1512
+ readonly executorType: Prisma.FieldRef<"TestRun", 'String'>
1513
+ readonly targetEnv: Prisma.FieldRef<"TestRun", 'String'>
1514
+ readonly status: Prisma.FieldRef<"TestRun", 'String'>
1515
+ readonly summary: Prisma.FieldRef<"TestRun", 'Json'>
1516
+ readonly startedAt: Prisma.FieldRef<"TestRun", 'DateTime'>
1517
+ readonly completedAt: Prisma.FieldRef<"TestRun", 'DateTime'>
1518
+ readonly createdById: Prisma.FieldRef<"TestRun", 'String'>
1519
+ readonly createdAt: Prisma.FieldRef<"TestRun", 'DateTime'>
1520
+ }
1521
+
1522
+
1523
+ // Custom InputTypes
1524
+ /**
1525
+ * TestRun findUnique
1526
+ */
1527
+ export type TestRunFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1528
+ /**
1529
+ * Select specific fields to fetch from the TestRun
1530
+ */
1531
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1532
+ /**
1533
+ * Omit specific fields from the TestRun
1534
+ */
1535
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1536
+ /**
1537
+ * Choose, which related nodes to fetch as well
1538
+ */
1539
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1540
+ /**
1541
+ * Filter, which TestRun to fetch.
1542
+ */
1543
+ where: Prisma.TestRunWhereUniqueInput
1544
+ }
1545
+
1546
+ /**
1547
+ * TestRun findUniqueOrThrow
1548
+ */
1549
+ export type TestRunFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1550
+ /**
1551
+ * Select specific fields to fetch from the TestRun
1552
+ */
1553
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1554
+ /**
1555
+ * Omit specific fields from the TestRun
1556
+ */
1557
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1558
+ /**
1559
+ * Choose, which related nodes to fetch as well
1560
+ */
1561
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1562
+ /**
1563
+ * Filter, which TestRun to fetch.
1564
+ */
1565
+ where: Prisma.TestRunWhereUniqueInput
1566
+ }
1567
+
1568
+ /**
1569
+ * TestRun findFirst
1570
+ */
1571
+ export type TestRunFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1572
+ /**
1573
+ * Select specific fields to fetch from the TestRun
1574
+ */
1575
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1576
+ /**
1577
+ * Omit specific fields from the TestRun
1578
+ */
1579
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1580
+ /**
1581
+ * Choose, which related nodes to fetch as well
1582
+ */
1583
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1584
+ /**
1585
+ * Filter, which TestRun to fetch.
1586
+ */
1587
+ where?: Prisma.TestRunWhereInput
1588
+ /**
1589
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1590
+ *
1591
+ * Determine the order of TestRuns to fetch.
1592
+ */
1593
+ orderBy?: Prisma.TestRunOrderByWithRelationInput | Prisma.TestRunOrderByWithRelationInput[]
1594
+ /**
1595
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1596
+ *
1597
+ * Sets the position for searching for TestRuns.
1598
+ */
1599
+ cursor?: Prisma.TestRunWhereUniqueInput
1600
+ /**
1601
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1602
+ *
1603
+ * Take `±n` TestRuns from the position of the cursor.
1604
+ */
1605
+ take?: number
1606
+ /**
1607
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1608
+ *
1609
+ * Skip the first `n` TestRuns.
1610
+ */
1611
+ skip?: number
1612
+ /**
1613
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1614
+ *
1615
+ * Filter by unique combinations of TestRuns.
1616
+ */
1617
+ distinct?: Prisma.TestRunScalarFieldEnum | Prisma.TestRunScalarFieldEnum[]
1618
+ }
1619
+
1620
+ /**
1621
+ * TestRun findFirstOrThrow
1622
+ */
1623
+ export type TestRunFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1624
+ /**
1625
+ * Select specific fields to fetch from the TestRun
1626
+ */
1627
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1628
+ /**
1629
+ * Omit specific fields from the TestRun
1630
+ */
1631
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1632
+ /**
1633
+ * Choose, which related nodes to fetch as well
1634
+ */
1635
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1636
+ /**
1637
+ * Filter, which TestRun to fetch.
1638
+ */
1639
+ where?: Prisma.TestRunWhereInput
1640
+ /**
1641
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1642
+ *
1643
+ * Determine the order of TestRuns to fetch.
1644
+ */
1645
+ orderBy?: Prisma.TestRunOrderByWithRelationInput | Prisma.TestRunOrderByWithRelationInput[]
1646
+ /**
1647
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1648
+ *
1649
+ * Sets the position for searching for TestRuns.
1650
+ */
1651
+ cursor?: Prisma.TestRunWhereUniqueInput
1652
+ /**
1653
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1654
+ *
1655
+ * Take `±n` TestRuns from the position of the cursor.
1656
+ */
1657
+ take?: number
1658
+ /**
1659
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1660
+ *
1661
+ * Skip the first `n` TestRuns.
1662
+ */
1663
+ skip?: number
1664
+ /**
1665
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1666
+ *
1667
+ * Filter by unique combinations of TestRuns.
1668
+ */
1669
+ distinct?: Prisma.TestRunScalarFieldEnum | Prisma.TestRunScalarFieldEnum[]
1670
+ }
1671
+
1672
+ /**
1673
+ * TestRun findMany
1674
+ */
1675
+ export type TestRunFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1676
+ /**
1677
+ * Select specific fields to fetch from the TestRun
1678
+ */
1679
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1680
+ /**
1681
+ * Omit specific fields from the TestRun
1682
+ */
1683
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1684
+ /**
1685
+ * Choose, which related nodes to fetch as well
1686
+ */
1687
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1688
+ /**
1689
+ * Filter, which TestRuns to fetch.
1690
+ */
1691
+ where?: Prisma.TestRunWhereInput
1692
+ /**
1693
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1694
+ *
1695
+ * Determine the order of TestRuns to fetch.
1696
+ */
1697
+ orderBy?: Prisma.TestRunOrderByWithRelationInput | Prisma.TestRunOrderByWithRelationInput[]
1698
+ /**
1699
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1700
+ *
1701
+ * Sets the position for listing TestRuns.
1702
+ */
1703
+ cursor?: Prisma.TestRunWhereUniqueInput
1704
+ /**
1705
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1706
+ *
1707
+ * Take `±n` TestRuns from the position of the cursor.
1708
+ */
1709
+ take?: number
1710
+ /**
1711
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1712
+ *
1713
+ * Skip the first `n` TestRuns.
1714
+ */
1715
+ skip?: number
1716
+ /**
1717
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1718
+ *
1719
+ * Filter by unique combinations of TestRuns.
1720
+ */
1721
+ distinct?: Prisma.TestRunScalarFieldEnum | Prisma.TestRunScalarFieldEnum[]
1722
+ }
1723
+
1724
+ /**
1725
+ * TestRun create
1726
+ */
1727
+ export type TestRunCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1728
+ /**
1729
+ * Select specific fields to fetch from the TestRun
1730
+ */
1731
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1732
+ /**
1733
+ * Omit specific fields from the TestRun
1734
+ */
1735
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1736
+ /**
1737
+ * Choose, which related nodes to fetch as well
1738
+ */
1739
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1740
+ /**
1741
+ * The data needed to create a TestRun.
1742
+ */
1743
+ data: Prisma.XOR<Prisma.TestRunCreateInput, Prisma.TestRunUncheckedCreateInput>
1744
+ }
1745
+
1746
+ /**
1747
+ * TestRun createMany
1748
+ */
1749
+ export type TestRunCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1750
+ /**
1751
+ * The data used to create many TestRuns.
1752
+ */
1753
+ data: Prisma.TestRunCreateManyInput | Prisma.TestRunCreateManyInput[]
1754
+ skipDuplicates?: boolean
1755
+ }
1756
+
1757
+ /**
1758
+ * TestRun createManyAndReturn
1759
+ */
1760
+ export type TestRunCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1761
+ /**
1762
+ * Select specific fields to fetch from the TestRun
1763
+ */
1764
+ select?: Prisma.TestRunSelectCreateManyAndReturn<ExtArgs> | null
1765
+ /**
1766
+ * Omit specific fields from the TestRun
1767
+ */
1768
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1769
+ /**
1770
+ * The data used to create many TestRuns.
1771
+ */
1772
+ data: Prisma.TestRunCreateManyInput | Prisma.TestRunCreateManyInput[]
1773
+ skipDuplicates?: boolean
1774
+ /**
1775
+ * Choose, which related nodes to fetch as well
1776
+ */
1777
+ include?: Prisma.TestRunIncludeCreateManyAndReturn<ExtArgs> | null
1778
+ }
1779
+
1780
+ /**
1781
+ * TestRun update
1782
+ */
1783
+ export type TestRunUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1784
+ /**
1785
+ * Select specific fields to fetch from the TestRun
1786
+ */
1787
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1788
+ /**
1789
+ * Omit specific fields from the TestRun
1790
+ */
1791
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1792
+ /**
1793
+ * Choose, which related nodes to fetch as well
1794
+ */
1795
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1796
+ /**
1797
+ * The data needed to update a TestRun.
1798
+ */
1799
+ data: Prisma.XOR<Prisma.TestRunUpdateInput, Prisma.TestRunUncheckedUpdateInput>
1800
+ /**
1801
+ * Choose, which TestRun to update.
1802
+ */
1803
+ where: Prisma.TestRunWhereUniqueInput
1804
+ }
1805
+
1806
+ /**
1807
+ * TestRun updateMany
1808
+ */
1809
+ export type TestRunUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1810
+ /**
1811
+ * The data used to update TestRuns.
1812
+ */
1813
+ data: Prisma.XOR<Prisma.TestRunUpdateManyMutationInput, Prisma.TestRunUncheckedUpdateManyInput>
1814
+ /**
1815
+ * Filter which TestRuns to update
1816
+ */
1817
+ where?: Prisma.TestRunWhereInput
1818
+ /**
1819
+ * Limit how many TestRuns to update.
1820
+ */
1821
+ limit?: number
1822
+ }
1823
+
1824
+ /**
1825
+ * TestRun updateManyAndReturn
1826
+ */
1827
+ export type TestRunUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1828
+ /**
1829
+ * Select specific fields to fetch from the TestRun
1830
+ */
1831
+ select?: Prisma.TestRunSelectUpdateManyAndReturn<ExtArgs> | null
1832
+ /**
1833
+ * Omit specific fields from the TestRun
1834
+ */
1835
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1836
+ /**
1837
+ * The data used to update TestRuns.
1838
+ */
1839
+ data: Prisma.XOR<Prisma.TestRunUpdateManyMutationInput, Prisma.TestRunUncheckedUpdateManyInput>
1840
+ /**
1841
+ * Filter which TestRuns to update
1842
+ */
1843
+ where?: Prisma.TestRunWhereInput
1844
+ /**
1845
+ * Limit how many TestRuns to update.
1846
+ */
1847
+ limit?: number
1848
+ /**
1849
+ * Choose, which related nodes to fetch as well
1850
+ */
1851
+ include?: Prisma.TestRunIncludeUpdateManyAndReturn<ExtArgs> | null
1852
+ }
1853
+
1854
+ /**
1855
+ * TestRun upsert
1856
+ */
1857
+ export type TestRunUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1858
+ /**
1859
+ * Select specific fields to fetch from the TestRun
1860
+ */
1861
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1862
+ /**
1863
+ * Omit specific fields from the TestRun
1864
+ */
1865
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1866
+ /**
1867
+ * Choose, which related nodes to fetch as well
1868
+ */
1869
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1870
+ /**
1871
+ * The filter to search for the TestRun to update in case it exists.
1872
+ */
1873
+ where: Prisma.TestRunWhereUniqueInput
1874
+ /**
1875
+ * In case the TestRun found by the `where` argument doesn't exist, create a new TestRun with this data.
1876
+ */
1877
+ create: Prisma.XOR<Prisma.TestRunCreateInput, Prisma.TestRunUncheckedCreateInput>
1878
+ /**
1879
+ * In case the TestRun was found with the provided `where` argument, update it with this data.
1880
+ */
1881
+ update: Prisma.XOR<Prisma.TestRunUpdateInput, Prisma.TestRunUncheckedUpdateInput>
1882
+ }
1883
+
1884
+ /**
1885
+ * TestRun delete
1886
+ */
1887
+ export type TestRunDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1888
+ /**
1889
+ * Select specific fields to fetch from the TestRun
1890
+ */
1891
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1892
+ /**
1893
+ * Omit specific fields from the TestRun
1894
+ */
1895
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1896
+ /**
1897
+ * Choose, which related nodes to fetch as well
1898
+ */
1899
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1900
+ /**
1901
+ * Filter which TestRun to delete.
1902
+ */
1903
+ where: Prisma.TestRunWhereUniqueInput
1904
+ }
1905
+
1906
+ /**
1907
+ * TestRun deleteMany
1908
+ */
1909
+ export type TestRunDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1910
+ /**
1911
+ * Filter which TestRuns to delete
1912
+ */
1913
+ where?: Prisma.TestRunWhereInput
1914
+ /**
1915
+ * Limit how many TestRuns to delete.
1916
+ */
1917
+ limit?: number
1918
+ }
1919
+
1920
+ /**
1921
+ * TestRun.plan
1922
+ */
1923
+ export type TestRun$planArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1924
+ /**
1925
+ * Select specific fields to fetch from the TestPlan
1926
+ */
1927
+ select?: Prisma.TestPlanSelect<ExtArgs> | null
1928
+ /**
1929
+ * Omit specific fields from the TestPlan
1930
+ */
1931
+ omit?: Prisma.TestPlanOmit<ExtArgs> | null
1932
+ /**
1933
+ * Choose, which related nodes to fetch as well
1934
+ */
1935
+ include?: Prisma.TestPlanInclude<ExtArgs> | null
1936
+ where?: Prisma.TestPlanWhereInput
1937
+ }
1938
+
1939
+ /**
1940
+ * TestRun.cases
1941
+ */
1942
+ export type TestRun$casesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1943
+ /**
1944
+ * Select specific fields to fetch from the TestRunCase
1945
+ */
1946
+ select?: Prisma.TestRunCaseSelect<ExtArgs> | null
1947
+ /**
1948
+ * Omit specific fields from the TestRunCase
1949
+ */
1950
+ omit?: Prisma.TestRunCaseOmit<ExtArgs> | null
1951
+ /**
1952
+ * Choose, which related nodes to fetch as well
1953
+ */
1954
+ include?: Prisma.TestRunCaseInclude<ExtArgs> | null
1955
+ where?: Prisma.TestRunCaseWhereInput
1956
+ orderBy?: Prisma.TestRunCaseOrderByWithRelationInput | Prisma.TestRunCaseOrderByWithRelationInput[]
1957
+ cursor?: Prisma.TestRunCaseWhereUniqueInput
1958
+ take?: number
1959
+ skip?: number
1960
+ distinct?: Prisma.TestRunCaseScalarFieldEnum | Prisma.TestRunCaseScalarFieldEnum[]
1961
+ }
1962
+
1963
+ /**
1964
+ * TestRun without action
1965
+ */
1966
+ export type TestRunDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1967
+ /**
1968
+ * Select specific fields to fetch from the TestRun
1969
+ */
1970
+ select?: Prisma.TestRunSelect<ExtArgs> | null
1971
+ /**
1972
+ * Omit specific fields from the TestRun
1973
+ */
1974
+ omit?: Prisma.TestRunOmit<ExtArgs> | null
1975
+ /**
1976
+ * Choose, which related nodes to fetch as well
1977
+ */
1978
+ include?: Prisma.TestRunInclude<ExtArgs> | null
1979
+ }