@actuate-media/cms-core 0.90.0 → 0.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/actions.d.ts +31 -1
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +76 -21
  5. package/dist/actions.js.map +1 -1
  6. package/dist/api/route-helpers.d.ts +4 -1
  7. package/dist/api/route-helpers.d.ts.map +1 -1
  8. package/dist/api/route-helpers.js +2 -2
  9. package/dist/api/route-helpers.js.map +1 -1
  10. package/dist/api/routes/documents.d.ts.map +1 -1
  11. package/dist/api/routes/documents.js +4 -1
  12. package/dist/api/routes/documents.js.map +1 -1
  13. package/dist/api/routes/media.d.ts.map +1 -1
  14. package/dist/api/routes/media.js +10 -0
  15. package/dist/api/routes/media.js.map +1 -1
  16. package/dist/api/routes/url-resolution.d.ts.map +1 -1
  17. package/dist/api/routes/url-resolution.js +4 -1
  18. package/dist/api/routes/url-resolution.js.map +1 -1
  19. package/dist/config/index.d.ts +16 -0
  20. package/dist/config/index.d.ts.map +1 -1
  21. package/dist/config/index.js +59 -2
  22. package/dist/config/index.js.map +1 -1
  23. package/dist/config/runtime.d.ts +8 -0
  24. package/dist/config/runtime.d.ts.map +1 -1
  25. package/dist/config/runtime.js.map +1 -1
  26. package/dist/config/types.d.ts +35 -4
  27. package/dist/config/types.d.ts.map +1 -1
  28. package/dist/index.d.ts +3 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +1 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/media/usage-sync.d.ts +37 -0
  33. package/dist/media/usage-sync.d.ts.map +1 -0
  34. package/dist/media/usage-sync.js +234 -0
  35. package/dist/media/usage-sync.js.map +1 -0
  36. package/dist/realtime/comments.d.ts +1 -1
  37. package/dist/realtime/comments.js +1 -1
  38. package/dist/realtime/notifications.d.ts +1 -1
  39. package/dist/realtime/notifications.js +1 -1
  40. package/dist/realtime/persistence.d.ts +1 -1
  41. package/dist/search/index.d.ts.map +1 -1
  42. package/dist/search/index.js +58 -35
  43. package/dist/search/index.js.map +1 -1
  44. package/generated/browser.ts +229 -0
  45. package/generated/client.ts +253 -0
  46. package/generated/commonInputTypes.ts +1024 -0
  47. package/generated/enums.ts +211 -0
  48. package/generated/internal/class.ts +547 -0
  49. package/generated/internal/prismaNamespace.ts +4596 -0
  50. package/generated/internal/prismaNamespaceBrowser.ts +1188 -0
  51. package/generated/models/AiCrawlerHit.ts +1275 -0
  52. package/generated/models/ApiKey.ts +1559 -0
  53. package/generated/models/ApiRequestMetric.ts +1390 -0
  54. package/generated/models/AuditLog.ts +1215 -0
  55. package/generated/models/BackupRecord.ts +1259 -0
  56. package/generated/models/ContentIssue.ts +1496 -0
  57. package/generated/models/ContentLock.ts +1481 -0
  58. package/generated/models/ContentTemplate.ts +1425 -0
  59. package/generated/models/Document.ts +3486 -0
  60. package/generated/models/Folder.ts +1905 -0
  61. package/generated/models/FormSchemaVersion.ts +1265 -0
  62. package/generated/models/FormSubmission.ts +2105 -0
  63. package/generated/models/FormSubmissionFile.ts +1615 -0
  64. package/generated/models/FormWebhook.ts +1371 -0
  65. package/generated/models/InAppNotification.ts +1466 -0
  66. package/generated/models/Invite.ts +1393 -0
  67. package/generated/models/Media.ts +2887 -0
  68. package/generated/models/MediaUsage.ts +1488 -0
  69. package/generated/models/OAuthAccount.ts +1472 -0
  70. package/generated/models/PageTemplate.ts +1271 -0
  71. package/generated/models/PasswordResetToken.ts +1396 -0
  72. package/generated/models/Redirect.ts +1501 -0
  73. package/generated/models/Redirect404Hit.ts +1266 -0
  74. package/generated/models/RedirectSuggestion.ts +1344 -0
  75. package/generated/models/SavedSection.ts +1315 -0
  76. package/generated/models/ScriptTag.ts +1453 -0
  77. package/generated/models/SeoAuditRun.ts +1745 -0
  78. package/generated/models/SeoIssue.ts +2047 -0
  79. package/generated/models/Session.ts +1501 -0
  80. package/generated/models/Site.ts +1215 -0
  81. package/generated/models/User.ts +4558 -0
  82. package/generated/models/Version.ts +1520 -0
  83. package/generated/models/WebhookDeliveryLog.ts +1656 -0
  84. package/generated/models/WebhookEndpoint.ts +1433 -0
  85. package/generated/models/WorkflowState.ts +1523 -0
  86. package/generated/models.ts +46 -0
  87. package/package.json +10 -3
  88. package/{prisma → schema-fragments}/cms-schema.prisma +15 -2
@@ -0,0 +1,1523 @@
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 `WorkflowState` 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.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
14
+
15
+ /**
16
+ * Model WorkflowState
17
+ *
18
+ */
19
+ export type WorkflowStateModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkflowStatePayload>
20
+
21
+ export type AggregateWorkflowState = {
22
+ _count: WorkflowStateCountAggregateOutputType | null
23
+ _avg: WorkflowStateAvgAggregateOutputType | null
24
+ _sum: WorkflowStateSumAggregateOutputType | null
25
+ _min: WorkflowStateMinAggregateOutputType | null
26
+ _max: WorkflowStateMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type WorkflowStateAvgAggregateOutputType = {
30
+ currentStep: number | null
31
+ }
32
+
33
+ export type WorkflowStateSumAggregateOutputType = {
34
+ currentStep: number | null
35
+ }
36
+
37
+ export type WorkflowStateMinAggregateOutputType = {
38
+ id: string | null
39
+ documentId: string | null
40
+ currentStep: number | null
41
+ assignedToId: string | null
42
+ status: string | null
43
+ createdAt: Date | null
44
+ updatedAt: Date | null
45
+ }
46
+
47
+ export type WorkflowStateMaxAggregateOutputType = {
48
+ id: string | null
49
+ documentId: string | null
50
+ currentStep: number | null
51
+ assignedToId: string | null
52
+ status: string | null
53
+ createdAt: Date | null
54
+ updatedAt: Date | null
55
+ }
56
+
57
+ export type WorkflowStateCountAggregateOutputType = {
58
+ id: number
59
+ documentId: number
60
+ currentStep: number
61
+ assignedToId: number
62
+ status: number
63
+ definition: number
64
+ createdAt: number
65
+ updatedAt: number
66
+ _all: number
67
+ }
68
+
69
+
70
+ export type WorkflowStateAvgAggregateInputType = {
71
+ currentStep?: true
72
+ }
73
+
74
+ export type WorkflowStateSumAggregateInputType = {
75
+ currentStep?: true
76
+ }
77
+
78
+ export type WorkflowStateMinAggregateInputType = {
79
+ id?: true
80
+ documentId?: true
81
+ currentStep?: true
82
+ assignedToId?: true
83
+ status?: true
84
+ createdAt?: true
85
+ updatedAt?: true
86
+ }
87
+
88
+ export type WorkflowStateMaxAggregateInputType = {
89
+ id?: true
90
+ documentId?: true
91
+ currentStep?: true
92
+ assignedToId?: true
93
+ status?: true
94
+ createdAt?: true
95
+ updatedAt?: true
96
+ }
97
+
98
+ export type WorkflowStateCountAggregateInputType = {
99
+ id?: true
100
+ documentId?: true
101
+ currentStep?: true
102
+ assignedToId?: true
103
+ status?: true
104
+ definition?: true
105
+ createdAt?: true
106
+ updatedAt?: true
107
+ _all?: true
108
+ }
109
+
110
+ export type WorkflowStateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
111
+ /**
112
+ * Filter which WorkflowState to aggregate.
113
+ */
114
+ where?: Prisma.WorkflowStateWhereInput
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
117
+ *
118
+ * Determine the order of WorkflowStates to fetch.
119
+ */
120
+ orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[]
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
123
+ *
124
+ * Sets the start position
125
+ */
126
+ cursor?: Prisma.WorkflowStateWhereUniqueInput
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
+ *
130
+ * Take `±n` WorkflowStates from the position of the cursor.
131
+ */
132
+ take?: number
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
+ *
136
+ * Skip the first `n` WorkflowStates.
137
+ */
138
+ skip?: number
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Count returned WorkflowStates
143
+ **/
144
+ _count?: true | WorkflowStateCountAggregateInputType
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to average
149
+ **/
150
+ _avg?: WorkflowStateAvgAggregateInputType
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to sum
155
+ **/
156
+ _sum?: WorkflowStateSumAggregateInputType
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?: WorkflowStateMinAggregateInputType
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?: WorkflowStateMaxAggregateInputType
169
+ }
170
+
171
+ export type GetWorkflowStateAggregateType<T extends WorkflowStateAggregateArgs> = {
172
+ [P in keyof T & keyof AggregateWorkflowState]: P extends '_count' | 'count'
173
+ ? T[P] extends true
174
+ ? number
175
+ : Prisma.GetScalarType<T[P], AggregateWorkflowState[P]>
176
+ : Prisma.GetScalarType<T[P], AggregateWorkflowState[P]>
177
+ }
178
+
179
+
180
+
181
+
182
+ export type WorkflowStateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
183
+ where?: Prisma.WorkflowStateWhereInput
184
+ orderBy?: Prisma.WorkflowStateOrderByWithAggregationInput | Prisma.WorkflowStateOrderByWithAggregationInput[]
185
+ by: Prisma.WorkflowStateScalarFieldEnum[] | Prisma.WorkflowStateScalarFieldEnum
186
+ having?: Prisma.WorkflowStateScalarWhereWithAggregatesInput
187
+ take?: number
188
+ skip?: number
189
+ _count?: WorkflowStateCountAggregateInputType | true
190
+ _avg?: WorkflowStateAvgAggregateInputType
191
+ _sum?: WorkflowStateSumAggregateInputType
192
+ _min?: WorkflowStateMinAggregateInputType
193
+ _max?: WorkflowStateMaxAggregateInputType
194
+ }
195
+
196
+ export type WorkflowStateGroupByOutputType = {
197
+ id: string
198
+ documentId: string
199
+ currentStep: number
200
+ assignedToId: string | null
201
+ status: string
202
+ definition: runtime.JsonValue
203
+ createdAt: Date
204
+ updatedAt: Date
205
+ _count: WorkflowStateCountAggregateOutputType | null
206
+ _avg: WorkflowStateAvgAggregateOutputType | null
207
+ _sum: WorkflowStateSumAggregateOutputType | null
208
+ _min: WorkflowStateMinAggregateOutputType | null
209
+ _max: WorkflowStateMaxAggregateOutputType | null
210
+ }
211
+
212
+ export type GetWorkflowStateGroupByPayload<T extends WorkflowStateGroupByArgs> = Prisma.PrismaPromise<
213
+ Array<
214
+ Prisma.PickEnumerable<WorkflowStateGroupByOutputType, T['by']> &
215
+ {
216
+ [P in ((keyof T) & (keyof WorkflowStateGroupByOutputType))]: P extends '_count'
217
+ ? T[P] extends boolean
218
+ ? number
219
+ : Prisma.GetScalarType<T[P], WorkflowStateGroupByOutputType[P]>
220
+ : Prisma.GetScalarType<T[P], WorkflowStateGroupByOutputType[P]>
221
+ }
222
+ >
223
+ >
224
+
225
+
226
+
227
+ export type WorkflowStateWhereInput = {
228
+ AND?: Prisma.WorkflowStateWhereInput | Prisma.WorkflowStateWhereInput[]
229
+ OR?: Prisma.WorkflowStateWhereInput[]
230
+ NOT?: Prisma.WorkflowStateWhereInput | Prisma.WorkflowStateWhereInput[]
231
+ id?: Prisma.StringFilter<"WorkflowState"> | string
232
+ documentId?: Prisma.StringFilter<"WorkflowState"> | string
233
+ currentStep?: Prisma.IntFilter<"WorkflowState"> | number
234
+ assignedToId?: Prisma.StringNullableFilter<"WorkflowState"> | string | null
235
+ status?: Prisma.StringFilter<"WorkflowState"> | string
236
+ definition?: Prisma.JsonFilter<"WorkflowState">
237
+ createdAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string
238
+ updatedAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string
239
+ assignedTo?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
240
+ }
241
+
242
+ export type WorkflowStateOrderByWithRelationInput = {
243
+ id?: Prisma.SortOrder
244
+ documentId?: Prisma.SortOrder
245
+ currentStep?: Prisma.SortOrder
246
+ assignedToId?: Prisma.SortOrderInput | Prisma.SortOrder
247
+ status?: Prisma.SortOrder
248
+ definition?: Prisma.SortOrder
249
+ createdAt?: Prisma.SortOrder
250
+ updatedAt?: Prisma.SortOrder
251
+ assignedTo?: Prisma.UserOrderByWithRelationInput
252
+ _relevance?: Prisma.WorkflowStateOrderByRelevanceInput
253
+ }
254
+
255
+ export type WorkflowStateWhereUniqueInput = Prisma.AtLeast<{
256
+ id?: string
257
+ documentId?: string
258
+ AND?: Prisma.WorkflowStateWhereInput | Prisma.WorkflowStateWhereInput[]
259
+ OR?: Prisma.WorkflowStateWhereInput[]
260
+ NOT?: Prisma.WorkflowStateWhereInput | Prisma.WorkflowStateWhereInput[]
261
+ currentStep?: Prisma.IntFilter<"WorkflowState"> | number
262
+ assignedToId?: Prisma.StringNullableFilter<"WorkflowState"> | string | null
263
+ status?: Prisma.StringFilter<"WorkflowState"> | string
264
+ definition?: Prisma.JsonFilter<"WorkflowState">
265
+ createdAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string
266
+ updatedAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string
267
+ assignedTo?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
268
+ }, "id" | "documentId">
269
+
270
+ export type WorkflowStateOrderByWithAggregationInput = {
271
+ id?: Prisma.SortOrder
272
+ documentId?: Prisma.SortOrder
273
+ currentStep?: Prisma.SortOrder
274
+ assignedToId?: Prisma.SortOrderInput | Prisma.SortOrder
275
+ status?: Prisma.SortOrder
276
+ definition?: Prisma.SortOrder
277
+ createdAt?: Prisma.SortOrder
278
+ updatedAt?: Prisma.SortOrder
279
+ _count?: Prisma.WorkflowStateCountOrderByAggregateInput
280
+ _avg?: Prisma.WorkflowStateAvgOrderByAggregateInput
281
+ _max?: Prisma.WorkflowStateMaxOrderByAggregateInput
282
+ _min?: Prisma.WorkflowStateMinOrderByAggregateInput
283
+ _sum?: Prisma.WorkflowStateSumOrderByAggregateInput
284
+ }
285
+
286
+ export type WorkflowStateScalarWhereWithAggregatesInput = {
287
+ AND?: Prisma.WorkflowStateScalarWhereWithAggregatesInput | Prisma.WorkflowStateScalarWhereWithAggregatesInput[]
288
+ OR?: Prisma.WorkflowStateScalarWhereWithAggregatesInput[]
289
+ NOT?: Prisma.WorkflowStateScalarWhereWithAggregatesInput | Prisma.WorkflowStateScalarWhereWithAggregatesInput[]
290
+ id?: Prisma.StringWithAggregatesFilter<"WorkflowState"> | string
291
+ documentId?: Prisma.StringWithAggregatesFilter<"WorkflowState"> | string
292
+ currentStep?: Prisma.IntWithAggregatesFilter<"WorkflowState"> | number
293
+ assignedToId?: Prisma.StringNullableWithAggregatesFilter<"WorkflowState"> | string | null
294
+ status?: Prisma.StringWithAggregatesFilter<"WorkflowState"> | string
295
+ definition?: Prisma.JsonWithAggregatesFilter<"WorkflowState">
296
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"WorkflowState"> | Date | string
297
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WorkflowState"> | Date | string
298
+ }
299
+
300
+ export type WorkflowStateCreateInput = {
301
+ id?: string
302
+ documentId: string
303
+ currentStep?: number
304
+ status?: string
305
+ definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
306
+ createdAt?: Date | string
307
+ updatedAt?: Date | string
308
+ assignedTo?: Prisma.UserCreateNestedOneWithoutWorkflowAssignedInput
309
+ }
310
+
311
+ export type WorkflowStateUncheckedCreateInput = {
312
+ id?: string
313
+ documentId: string
314
+ currentStep?: number
315
+ assignedToId?: string | null
316
+ status?: string
317
+ definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
318
+ createdAt?: Date | string
319
+ updatedAt?: Date | string
320
+ }
321
+
322
+ export type WorkflowStateUpdateInput = {
323
+ id?: Prisma.StringFieldUpdateOperationsInput | string
324
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string
325
+ currentStep?: Prisma.IntFieldUpdateOperationsInput | number
326
+ status?: Prisma.StringFieldUpdateOperationsInput | string
327
+ definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
328
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
329
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
330
+ assignedTo?: Prisma.UserUpdateOneWithoutWorkflowAssignedNestedInput
331
+ }
332
+
333
+ export type WorkflowStateUncheckedUpdateInput = {
334
+ id?: Prisma.StringFieldUpdateOperationsInput | string
335
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string
336
+ currentStep?: Prisma.IntFieldUpdateOperationsInput | number
337
+ assignedToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
338
+ status?: Prisma.StringFieldUpdateOperationsInput | string
339
+ definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
340
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
341
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
342
+ }
343
+
344
+ export type WorkflowStateCreateManyInput = {
345
+ id?: string
346
+ documentId: string
347
+ currentStep?: number
348
+ assignedToId?: string | null
349
+ status?: string
350
+ definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
351
+ createdAt?: Date | string
352
+ updatedAt?: Date | string
353
+ }
354
+
355
+ export type WorkflowStateUpdateManyMutationInput = {
356
+ id?: Prisma.StringFieldUpdateOperationsInput | string
357
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string
358
+ currentStep?: Prisma.IntFieldUpdateOperationsInput | number
359
+ status?: Prisma.StringFieldUpdateOperationsInput | string
360
+ definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
361
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
362
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
363
+ }
364
+
365
+ export type WorkflowStateUncheckedUpdateManyInput = {
366
+ id?: Prisma.StringFieldUpdateOperationsInput | string
367
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string
368
+ currentStep?: Prisma.IntFieldUpdateOperationsInput | number
369
+ assignedToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
370
+ status?: Prisma.StringFieldUpdateOperationsInput | string
371
+ definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
372
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
373
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
374
+ }
375
+
376
+ export type WorkflowStateListRelationFilter = {
377
+ every?: Prisma.WorkflowStateWhereInput
378
+ some?: Prisma.WorkflowStateWhereInput
379
+ none?: Prisma.WorkflowStateWhereInput
380
+ }
381
+
382
+ export type WorkflowStateOrderByRelationAggregateInput = {
383
+ _count?: Prisma.SortOrder
384
+ }
385
+
386
+ export type WorkflowStateOrderByRelevanceInput = {
387
+ fields: Prisma.WorkflowStateOrderByRelevanceFieldEnum | Prisma.WorkflowStateOrderByRelevanceFieldEnum[]
388
+ sort: Prisma.SortOrder
389
+ search: string
390
+ }
391
+
392
+ export type WorkflowStateCountOrderByAggregateInput = {
393
+ id?: Prisma.SortOrder
394
+ documentId?: Prisma.SortOrder
395
+ currentStep?: Prisma.SortOrder
396
+ assignedToId?: Prisma.SortOrder
397
+ status?: Prisma.SortOrder
398
+ definition?: Prisma.SortOrder
399
+ createdAt?: Prisma.SortOrder
400
+ updatedAt?: Prisma.SortOrder
401
+ }
402
+
403
+ export type WorkflowStateAvgOrderByAggregateInput = {
404
+ currentStep?: Prisma.SortOrder
405
+ }
406
+
407
+ export type WorkflowStateMaxOrderByAggregateInput = {
408
+ id?: Prisma.SortOrder
409
+ documentId?: Prisma.SortOrder
410
+ currentStep?: Prisma.SortOrder
411
+ assignedToId?: Prisma.SortOrder
412
+ status?: Prisma.SortOrder
413
+ createdAt?: Prisma.SortOrder
414
+ updatedAt?: Prisma.SortOrder
415
+ }
416
+
417
+ export type WorkflowStateMinOrderByAggregateInput = {
418
+ id?: Prisma.SortOrder
419
+ documentId?: Prisma.SortOrder
420
+ currentStep?: Prisma.SortOrder
421
+ assignedToId?: Prisma.SortOrder
422
+ status?: Prisma.SortOrder
423
+ createdAt?: Prisma.SortOrder
424
+ updatedAt?: Prisma.SortOrder
425
+ }
426
+
427
+ export type WorkflowStateSumOrderByAggregateInput = {
428
+ currentStep?: Prisma.SortOrder
429
+ }
430
+
431
+ export type WorkflowStateCreateNestedManyWithoutAssignedToInput = {
432
+ create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput> | Prisma.WorkflowStateCreateWithoutAssignedToInput[] | Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput[]
433
+ connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput | Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput[]
434
+ createMany?: Prisma.WorkflowStateCreateManyAssignedToInputEnvelope
435
+ connect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
436
+ }
437
+
438
+ export type WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput = {
439
+ create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput> | Prisma.WorkflowStateCreateWithoutAssignedToInput[] | Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput[]
440
+ connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput | Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput[]
441
+ createMany?: Prisma.WorkflowStateCreateManyAssignedToInputEnvelope
442
+ connect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
443
+ }
444
+
445
+ export type WorkflowStateUpdateManyWithoutAssignedToNestedInput = {
446
+ create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput> | Prisma.WorkflowStateCreateWithoutAssignedToInput[] | Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput[]
447
+ connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput | Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput[]
448
+ upsert?: Prisma.WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput | Prisma.WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput[]
449
+ createMany?: Prisma.WorkflowStateCreateManyAssignedToInputEnvelope
450
+ set?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
451
+ disconnect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
452
+ delete?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
453
+ connect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
454
+ update?: Prisma.WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput | Prisma.WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput[]
455
+ updateMany?: Prisma.WorkflowStateUpdateManyWithWhereWithoutAssignedToInput | Prisma.WorkflowStateUpdateManyWithWhereWithoutAssignedToInput[]
456
+ deleteMany?: Prisma.WorkflowStateScalarWhereInput | Prisma.WorkflowStateScalarWhereInput[]
457
+ }
458
+
459
+ export type WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput = {
460
+ create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput> | Prisma.WorkflowStateCreateWithoutAssignedToInput[] | Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput[]
461
+ connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput | Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput[]
462
+ upsert?: Prisma.WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput | Prisma.WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput[]
463
+ createMany?: Prisma.WorkflowStateCreateManyAssignedToInputEnvelope
464
+ set?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
465
+ disconnect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
466
+ delete?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
467
+ connect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[]
468
+ update?: Prisma.WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput | Prisma.WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput[]
469
+ updateMany?: Prisma.WorkflowStateUpdateManyWithWhereWithoutAssignedToInput | Prisma.WorkflowStateUpdateManyWithWhereWithoutAssignedToInput[]
470
+ deleteMany?: Prisma.WorkflowStateScalarWhereInput | Prisma.WorkflowStateScalarWhereInput[]
471
+ }
472
+
473
+ export type WorkflowStateCreateWithoutAssignedToInput = {
474
+ id?: string
475
+ documentId: string
476
+ currentStep?: number
477
+ status?: string
478
+ definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
479
+ createdAt?: Date | string
480
+ updatedAt?: Date | string
481
+ }
482
+
483
+ export type WorkflowStateUncheckedCreateWithoutAssignedToInput = {
484
+ id?: string
485
+ documentId: string
486
+ currentStep?: number
487
+ status?: string
488
+ definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
489
+ createdAt?: Date | string
490
+ updatedAt?: Date | string
491
+ }
492
+
493
+ export type WorkflowStateCreateOrConnectWithoutAssignedToInput = {
494
+ where: Prisma.WorkflowStateWhereUniqueInput
495
+ create: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput>
496
+ }
497
+
498
+ export type WorkflowStateCreateManyAssignedToInputEnvelope = {
499
+ data: Prisma.WorkflowStateCreateManyAssignedToInput | Prisma.WorkflowStateCreateManyAssignedToInput[]
500
+ skipDuplicates?: boolean
501
+ }
502
+
503
+ export type WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput = {
504
+ where: Prisma.WorkflowStateWhereUniqueInput
505
+ update: Prisma.XOR<Prisma.WorkflowStateUpdateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedUpdateWithoutAssignedToInput>
506
+ create: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput>
507
+ }
508
+
509
+ export type WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput = {
510
+ where: Prisma.WorkflowStateWhereUniqueInput
511
+ data: Prisma.XOR<Prisma.WorkflowStateUpdateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedUpdateWithoutAssignedToInput>
512
+ }
513
+
514
+ export type WorkflowStateUpdateManyWithWhereWithoutAssignedToInput = {
515
+ where: Prisma.WorkflowStateScalarWhereInput
516
+ data: Prisma.XOR<Prisma.WorkflowStateUpdateManyMutationInput, Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToInput>
517
+ }
518
+
519
+ export type WorkflowStateScalarWhereInput = {
520
+ AND?: Prisma.WorkflowStateScalarWhereInput | Prisma.WorkflowStateScalarWhereInput[]
521
+ OR?: Prisma.WorkflowStateScalarWhereInput[]
522
+ NOT?: Prisma.WorkflowStateScalarWhereInput | Prisma.WorkflowStateScalarWhereInput[]
523
+ id?: Prisma.StringFilter<"WorkflowState"> | string
524
+ documentId?: Prisma.StringFilter<"WorkflowState"> | string
525
+ currentStep?: Prisma.IntFilter<"WorkflowState"> | number
526
+ assignedToId?: Prisma.StringNullableFilter<"WorkflowState"> | string | null
527
+ status?: Prisma.StringFilter<"WorkflowState"> | string
528
+ definition?: Prisma.JsonFilter<"WorkflowState">
529
+ createdAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string
530
+ updatedAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string
531
+ }
532
+
533
+ export type WorkflowStateCreateManyAssignedToInput = {
534
+ id?: string
535
+ documentId: string
536
+ currentStep?: number
537
+ status?: string
538
+ definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
539
+ createdAt?: Date | string
540
+ updatedAt?: Date | string
541
+ }
542
+
543
+ export type WorkflowStateUpdateWithoutAssignedToInput = {
544
+ id?: Prisma.StringFieldUpdateOperationsInput | string
545
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string
546
+ currentStep?: Prisma.IntFieldUpdateOperationsInput | number
547
+ status?: Prisma.StringFieldUpdateOperationsInput | string
548
+ definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
549
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
550
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
551
+ }
552
+
553
+ export type WorkflowStateUncheckedUpdateWithoutAssignedToInput = {
554
+ id?: Prisma.StringFieldUpdateOperationsInput | string
555
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string
556
+ currentStep?: Prisma.IntFieldUpdateOperationsInput | number
557
+ status?: Prisma.StringFieldUpdateOperationsInput | string
558
+ definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
559
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
560
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
561
+ }
562
+
563
+ export type WorkflowStateUncheckedUpdateManyWithoutAssignedToInput = {
564
+ id?: Prisma.StringFieldUpdateOperationsInput | string
565
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string
566
+ currentStep?: Prisma.IntFieldUpdateOperationsInput | number
567
+ status?: Prisma.StringFieldUpdateOperationsInput | string
568
+ definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
569
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
570
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
571
+ }
572
+
573
+
574
+
575
+ export type WorkflowStateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
576
+ id?: boolean
577
+ documentId?: boolean
578
+ currentStep?: boolean
579
+ assignedToId?: boolean
580
+ status?: boolean
581
+ definition?: boolean
582
+ createdAt?: boolean
583
+ updatedAt?: boolean
584
+ assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>
585
+ }, ExtArgs["result"]["workflowState"]>
586
+
587
+ export type WorkflowStateSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
588
+ id?: boolean
589
+ documentId?: boolean
590
+ currentStep?: boolean
591
+ assignedToId?: boolean
592
+ status?: boolean
593
+ definition?: boolean
594
+ createdAt?: boolean
595
+ updatedAt?: boolean
596
+ assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>
597
+ }, ExtArgs["result"]["workflowState"]>
598
+
599
+ export type WorkflowStateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
600
+ id?: boolean
601
+ documentId?: boolean
602
+ currentStep?: boolean
603
+ assignedToId?: boolean
604
+ status?: boolean
605
+ definition?: boolean
606
+ createdAt?: boolean
607
+ updatedAt?: boolean
608
+ assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>
609
+ }, ExtArgs["result"]["workflowState"]>
610
+
611
+ export type WorkflowStateSelectScalar = {
612
+ id?: boolean
613
+ documentId?: boolean
614
+ currentStep?: boolean
615
+ assignedToId?: boolean
616
+ status?: boolean
617
+ definition?: boolean
618
+ createdAt?: boolean
619
+ updatedAt?: boolean
620
+ }
621
+
622
+ export type WorkflowStateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "documentId" | "currentStep" | "assignedToId" | "status" | "definition" | "createdAt" | "updatedAt", ExtArgs["result"]["workflowState"]>
623
+ export type WorkflowStateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
624
+ assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>
625
+ }
626
+ export type WorkflowStateIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
627
+ assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>
628
+ }
629
+ export type WorkflowStateIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
630
+ assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>
631
+ }
632
+
633
+ export type $WorkflowStatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
634
+ name: "WorkflowState"
635
+ objects: {
636
+ assignedTo: Prisma.$UserPayload<ExtArgs> | null
637
+ }
638
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
639
+ id: string
640
+ documentId: string
641
+ currentStep: number
642
+ assignedToId: string | null
643
+ status: string
644
+ definition: runtime.JsonValue
645
+ createdAt: Date
646
+ updatedAt: Date
647
+ }, ExtArgs["result"]["workflowState"]>
648
+ composites: {}
649
+ }
650
+
651
+ export type WorkflowStateGetPayload<S extends boolean | null | undefined | WorkflowStateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload, S>
652
+
653
+ export type WorkflowStateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
654
+ Omit<WorkflowStateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
655
+ select?: WorkflowStateCountAggregateInputType | true
656
+ }
657
+
658
+ export interface WorkflowStateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
659
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WorkflowState'], meta: { name: 'WorkflowState' } }
660
+ /**
661
+ * Find zero or one WorkflowState that matches the filter.
662
+ * @param {WorkflowStateFindUniqueArgs} args - Arguments to find a WorkflowState
663
+ * @example
664
+ * // Get one WorkflowState
665
+ * const workflowState = await prisma.workflowState.findUnique({
666
+ * where: {
667
+ * // ... provide filter here
668
+ * }
669
+ * })
670
+ */
671
+ findUnique<T extends WorkflowStateFindUniqueArgs>(args: Prisma.SelectSubset<T, WorkflowStateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
672
+
673
+ /**
674
+ * Find one WorkflowState that matches the filter or throw an error with `error.code='P2025'`
675
+ * if no matches were found.
676
+ * @param {WorkflowStateFindUniqueOrThrowArgs} args - Arguments to find a WorkflowState
677
+ * @example
678
+ * // Get one WorkflowState
679
+ * const workflowState = await prisma.workflowState.findUniqueOrThrow({
680
+ * where: {
681
+ * // ... provide filter here
682
+ * }
683
+ * })
684
+ */
685
+ findUniqueOrThrow<T extends WorkflowStateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorkflowStateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
686
+
687
+ /**
688
+ * Find the first WorkflowState that matches the filter.
689
+ * Note, that providing `undefined` is treated as the value not being there.
690
+ * Read more here: https://pris.ly/d/null-undefined
691
+ * @param {WorkflowStateFindFirstArgs} args - Arguments to find a WorkflowState
692
+ * @example
693
+ * // Get one WorkflowState
694
+ * const workflowState = await prisma.workflowState.findFirst({
695
+ * where: {
696
+ * // ... provide filter here
697
+ * }
698
+ * })
699
+ */
700
+ findFirst<T extends WorkflowStateFindFirstArgs>(args?: Prisma.SelectSubset<T, WorkflowStateFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
701
+
702
+ /**
703
+ * Find the first WorkflowState that matches the filter or
704
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
705
+ * Note, that providing `undefined` is treated as the value not being there.
706
+ * Read more here: https://pris.ly/d/null-undefined
707
+ * @param {WorkflowStateFindFirstOrThrowArgs} args - Arguments to find a WorkflowState
708
+ * @example
709
+ * // Get one WorkflowState
710
+ * const workflowState = await prisma.workflowState.findFirstOrThrow({
711
+ * where: {
712
+ * // ... provide filter here
713
+ * }
714
+ * })
715
+ */
716
+ findFirstOrThrow<T extends WorkflowStateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorkflowStateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
717
+
718
+ /**
719
+ * Find zero or more WorkflowStates that matches the filter.
720
+ * Note, that providing `undefined` is treated as the value not being there.
721
+ * Read more here: https://pris.ly/d/null-undefined
722
+ * @param {WorkflowStateFindManyArgs} args - Arguments to filter and select certain fields only.
723
+ * @example
724
+ * // Get all WorkflowStates
725
+ * const workflowStates = await prisma.workflowState.findMany()
726
+ *
727
+ * // Get first 10 WorkflowStates
728
+ * const workflowStates = await prisma.workflowState.findMany({ take: 10 })
729
+ *
730
+ * // Only select the `id`
731
+ * const workflowStateWithIdOnly = await prisma.workflowState.findMany({ select: { id: true } })
732
+ *
733
+ */
734
+ findMany<T extends WorkflowStateFindManyArgs>(args?: Prisma.SelectSubset<T, WorkflowStateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
735
+
736
+ /**
737
+ * Create a WorkflowState.
738
+ * @param {WorkflowStateCreateArgs} args - Arguments to create a WorkflowState.
739
+ * @example
740
+ * // Create one WorkflowState
741
+ * const WorkflowState = await prisma.workflowState.create({
742
+ * data: {
743
+ * // ... data to create a WorkflowState
744
+ * }
745
+ * })
746
+ *
747
+ */
748
+ create<T extends WorkflowStateCreateArgs>(args: Prisma.SelectSubset<T, WorkflowStateCreateArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
749
+
750
+ /**
751
+ * Create many WorkflowStates.
752
+ * @param {WorkflowStateCreateManyArgs} args - Arguments to create many WorkflowStates.
753
+ * @example
754
+ * // Create many WorkflowStates
755
+ * const workflowState = await prisma.workflowState.createMany({
756
+ * data: [
757
+ * // ... provide data here
758
+ * ]
759
+ * })
760
+ *
761
+ */
762
+ createMany<T extends WorkflowStateCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkflowStateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
763
+
764
+ /**
765
+ * Create many WorkflowStates and returns the data saved in the database.
766
+ * @param {WorkflowStateCreateManyAndReturnArgs} args - Arguments to create many WorkflowStates.
767
+ * @example
768
+ * // Create many WorkflowStates
769
+ * const workflowState = await prisma.workflowState.createManyAndReturn({
770
+ * data: [
771
+ * // ... provide data here
772
+ * ]
773
+ * })
774
+ *
775
+ * // Create many WorkflowStates and only return the `id`
776
+ * const workflowStateWithIdOnly = await prisma.workflowState.createManyAndReturn({
777
+ * select: { id: true },
778
+ * data: [
779
+ * // ... provide data here
780
+ * ]
781
+ * })
782
+ * Note, that providing `undefined` is treated as the value not being there.
783
+ * Read more here: https://pris.ly/d/null-undefined
784
+ *
785
+ */
786
+ createManyAndReturn<T extends WorkflowStateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorkflowStateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
787
+
788
+ /**
789
+ * Delete a WorkflowState.
790
+ * @param {WorkflowStateDeleteArgs} args - Arguments to delete one WorkflowState.
791
+ * @example
792
+ * // Delete one WorkflowState
793
+ * const WorkflowState = await prisma.workflowState.delete({
794
+ * where: {
795
+ * // ... filter to delete one WorkflowState
796
+ * }
797
+ * })
798
+ *
799
+ */
800
+ delete<T extends WorkflowStateDeleteArgs>(args: Prisma.SelectSubset<T, WorkflowStateDeleteArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
801
+
802
+ /**
803
+ * Update one WorkflowState.
804
+ * @param {WorkflowStateUpdateArgs} args - Arguments to update one WorkflowState.
805
+ * @example
806
+ * // Update one WorkflowState
807
+ * const workflowState = await prisma.workflowState.update({
808
+ * where: {
809
+ * // ... provide filter here
810
+ * },
811
+ * data: {
812
+ * // ... provide data here
813
+ * }
814
+ * })
815
+ *
816
+ */
817
+ update<T extends WorkflowStateUpdateArgs>(args: Prisma.SelectSubset<T, WorkflowStateUpdateArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
818
+
819
+ /**
820
+ * Delete zero or more WorkflowStates.
821
+ * @param {WorkflowStateDeleteManyArgs} args - Arguments to filter WorkflowStates to delete.
822
+ * @example
823
+ * // Delete a few WorkflowStates
824
+ * const { count } = await prisma.workflowState.deleteMany({
825
+ * where: {
826
+ * // ... provide filter here
827
+ * }
828
+ * })
829
+ *
830
+ */
831
+ deleteMany<T extends WorkflowStateDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkflowStateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
832
+
833
+ /**
834
+ * Update zero or more WorkflowStates.
835
+ * Note, that providing `undefined` is treated as the value not being there.
836
+ * Read more here: https://pris.ly/d/null-undefined
837
+ * @param {WorkflowStateUpdateManyArgs} args - Arguments to update one or more rows.
838
+ * @example
839
+ * // Update many WorkflowStates
840
+ * const workflowState = await prisma.workflowState.updateMany({
841
+ * where: {
842
+ * // ... provide filter here
843
+ * },
844
+ * data: {
845
+ * // ... provide data here
846
+ * }
847
+ * })
848
+ *
849
+ */
850
+ updateMany<T extends WorkflowStateUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkflowStateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
851
+
852
+ /**
853
+ * Update zero or more WorkflowStates and returns the data updated in the database.
854
+ * @param {WorkflowStateUpdateManyAndReturnArgs} args - Arguments to update many WorkflowStates.
855
+ * @example
856
+ * // Update many WorkflowStates
857
+ * const workflowState = await prisma.workflowState.updateManyAndReturn({
858
+ * where: {
859
+ * // ... provide filter here
860
+ * },
861
+ * data: [
862
+ * // ... provide data here
863
+ * ]
864
+ * })
865
+ *
866
+ * // Update zero or more WorkflowStates and only return the `id`
867
+ * const workflowStateWithIdOnly = await prisma.workflowState.updateManyAndReturn({
868
+ * select: { id: true },
869
+ * where: {
870
+ * // ... provide filter here
871
+ * },
872
+ * data: [
873
+ * // ... provide data here
874
+ * ]
875
+ * })
876
+ * Note, that providing `undefined` is treated as the value not being there.
877
+ * Read more here: https://pris.ly/d/null-undefined
878
+ *
879
+ */
880
+ updateManyAndReturn<T extends WorkflowStateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorkflowStateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
881
+
882
+ /**
883
+ * Create or update one WorkflowState.
884
+ * @param {WorkflowStateUpsertArgs} args - Arguments to update or create a WorkflowState.
885
+ * @example
886
+ * // Update or create a WorkflowState
887
+ * const workflowState = await prisma.workflowState.upsert({
888
+ * create: {
889
+ * // ... data to create a WorkflowState
890
+ * },
891
+ * update: {
892
+ * // ... in case it already exists, update
893
+ * },
894
+ * where: {
895
+ * // ... the filter for the WorkflowState we want to update
896
+ * }
897
+ * })
898
+ */
899
+ upsert<T extends WorkflowStateUpsertArgs>(args: Prisma.SelectSubset<T, WorkflowStateUpsertArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
900
+
901
+
902
+ /**
903
+ * Count the number of WorkflowStates.
904
+ * Note, that providing `undefined` is treated as the value not being there.
905
+ * Read more here: https://pris.ly/d/null-undefined
906
+ * @param {WorkflowStateCountArgs} args - Arguments to filter WorkflowStates to count.
907
+ * @example
908
+ * // Count the number of WorkflowStates
909
+ * const count = await prisma.workflowState.count({
910
+ * where: {
911
+ * // ... the filter for the WorkflowStates we want to count
912
+ * }
913
+ * })
914
+ **/
915
+ count<T extends WorkflowStateCountArgs>(
916
+ args?: Prisma.Subset<T, WorkflowStateCountArgs>,
917
+ ): Prisma.PrismaPromise<
918
+ T extends runtime.Types.Utils.Record<'select', any>
919
+ ? T['select'] extends true
920
+ ? number
921
+ : Prisma.GetScalarType<T['select'], WorkflowStateCountAggregateOutputType>
922
+ : number
923
+ >
924
+
925
+ /**
926
+ * Allows you to perform aggregations operations on a WorkflowState.
927
+ * Note, that providing `undefined` is treated as the value not being there.
928
+ * Read more here: https://pris.ly/d/null-undefined
929
+ * @param {WorkflowStateAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
930
+ * @example
931
+ * // Ordered by age ascending
932
+ * // Where email contains prisma.io
933
+ * // Limited to the 10 users
934
+ * const aggregations = await prisma.user.aggregate({
935
+ * _avg: {
936
+ * age: true,
937
+ * },
938
+ * where: {
939
+ * email: {
940
+ * contains: "prisma.io",
941
+ * },
942
+ * },
943
+ * orderBy: {
944
+ * age: "asc",
945
+ * },
946
+ * take: 10,
947
+ * })
948
+ **/
949
+ aggregate<T extends WorkflowStateAggregateArgs>(args: Prisma.Subset<T, WorkflowStateAggregateArgs>): Prisma.PrismaPromise<GetWorkflowStateAggregateType<T>>
950
+
951
+ /**
952
+ * Group by WorkflowState.
953
+ * Note, that providing `undefined` is treated as the value not being there.
954
+ * Read more here: https://pris.ly/d/null-undefined
955
+ * @param {WorkflowStateGroupByArgs} args - Group by arguments.
956
+ * @example
957
+ * // Group by city, order by createdAt, get count
958
+ * const result = await prisma.user.groupBy({
959
+ * by: ['city', 'createdAt'],
960
+ * orderBy: {
961
+ * createdAt: true
962
+ * },
963
+ * _count: {
964
+ * _all: true
965
+ * },
966
+ * })
967
+ *
968
+ **/
969
+ groupBy<
970
+ T extends WorkflowStateGroupByArgs,
971
+ HasSelectOrTake extends Prisma.Or<
972
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
973
+ Prisma.Extends<'take', Prisma.Keys<T>>
974
+ >,
975
+ OrderByArg extends Prisma.True extends HasSelectOrTake
976
+ ? { orderBy: WorkflowStateGroupByArgs['orderBy'] }
977
+ : { orderBy?: WorkflowStateGroupByArgs['orderBy'] },
978
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
979
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
980
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
981
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
982
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
983
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
984
+ InputErrors extends ByEmpty extends Prisma.True
985
+ ? `Error: "by" must not be empty.`
986
+ : HavingValid extends Prisma.False
987
+ ? {
988
+ [P in HavingFields]: P extends ByFields
989
+ ? never
990
+ : P extends string
991
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
992
+ : [
993
+ Error,
994
+ 'Field ',
995
+ P,
996
+ ` in "having" needs to be provided in "by"`,
997
+ ]
998
+ }[HavingFields]
999
+ : 'take' extends Prisma.Keys<T>
1000
+ ? 'orderBy' extends Prisma.Keys<T>
1001
+ ? ByValid extends Prisma.True
1002
+ ? {}
1003
+ : {
1004
+ [P in OrderFields]: P extends ByFields
1005
+ ? never
1006
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1007
+ }[OrderFields]
1008
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1009
+ : 'skip' extends Prisma.Keys<T>
1010
+ ? 'orderBy' extends Prisma.Keys<T>
1011
+ ? ByValid extends Prisma.True
1012
+ ? {}
1013
+ : {
1014
+ [P in OrderFields]: P extends ByFields
1015
+ ? never
1016
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1017
+ }[OrderFields]
1018
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1019
+ : ByValid extends Prisma.True
1020
+ ? {}
1021
+ : {
1022
+ [P in OrderFields]: P extends ByFields
1023
+ ? never
1024
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1025
+ }[OrderFields]
1026
+ >(args: Prisma.SubsetIntersection<T, WorkflowStateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkflowStateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1027
+ /**
1028
+ * Fields of the WorkflowState model
1029
+ */
1030
+ readonly fields: WorkflowStateFieldRefs;
1031
+ }
1032
+
1033
+ /**
1034
+ * The delegate class that acts as a "Promise-like" for WorkflowState.
1035
+ * Why is this prefixed with `Prisma__`?
1036
+ * Because we want to prevent naming conflicts as mentioned in
1037
+ * https://github.com/prisma/prisma-client-js/issues/707
1038
+ */
1039
+ export interface Prisma__WorkflowStateClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1040
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1041
+ assignedTo<T extends Prisma.WorkflowState$assignedToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkflowState$assignedToArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1042
+ /**
1043
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1044
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1045
+ * @param onrejected The callback to execute when the Promise is rejected.
1046
+ * @returns A Promise for the completion of which ever callback is executed.
1047
+ */
1048
+ 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>
1049
+ /**
1050
+ * Attaches a callback for only the rejection of the Promise.
1051
+ * @param onrejected The callback to execute when the Promise is rejected.
1052
+ * @returns A Promise for the completion of the callback.
1053
+ */
1054
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1055
+ /**
1056
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1057
+ * resolved value cannot be modified from the callback.
1058
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1059
+ * @returns A Promise for the completion of the callback.
1060
+ */
1061
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1062
+ }
1063
+
1064
+
1065
+
1066
+
1067
+ /**
1068
+ * Fields of the WorkflowState model
1069
+ */
1070
+ export interface WorkflowStateFieldRefs {
1071
+ readonly id: Prisma.FieldRef<"WorkflowState", 'String'>
1072
+ readonly documentId: Prisma.FieldRef<"WorkflowState", 'String'>
1073
+ readonly currentStep: Prisma.FieldRef<"WorkflowState", 'Int'>
1074
+ readonly assignedToId: Prisma.FieldRef<"WorkflowState", 'String'>
1075
+ readonly status: Prisma.FieldRef<"WorkflowState", 'String'>
1076
+ readonly definition: Prisma.FieldRef<"WorkflowState", 'Json'>
1077
+ readonly createdAt: Prisma.FieldRef<"WorkflowState", 'DateTime'>
1078
+ readonly updatedAt: Prisma.FieldRef<"WorkflowState", 'DateTime'>
1079
+ }
1080
+
1081
+
1082
+ // Custom InputTypes
1083
+ /**
1084
+ * WorkflowState findUnique
1085
+ */
1086
+ export type WorkflowStateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1087
+ /**
1088
+ * Select specific fields to fetch from the WorkflowState
1089
+ */
1090
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1091
+ /**
1092
+ * Omit specific fields from the WorkflowState
1093
+ */
1094
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1095
+ /**
1096
+ * Choose, which related nodes to fetch as well
1097
+ */
1098
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1099
+ /**
1100
+ * Filter, which WorkflowState to fetch.
1101
+ */
1102
+ where: Prisma.WorkflowStateWhereUniqueInput
1103
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1104
+ }
1105
+
1106
+ /**
1107
+ * WorkflowState findUniqueOrThrow
1108
+ */
1109
+ export type WorkflowStateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1110
+ /**
1111
+ * Select specific fields to fetch from the WorkflowState
1112
+ */
1113
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1114
+ /**
1115
+ * Omit specific fields from the WorkflowState
1116
+ */
1117
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1118
+ /**
1119
+ * Choose, which related nodes to fetch as well
1120
+ */
1121
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1122
+ /**
1123
+ * Filter, which WorkflowState to fetch.
1124
+ */
1125
+ where: Prisma.WorkflowStateWhereUniqueInput
1126
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1127
+ }
1128
+
1129
+ /**
1130
+ * WorkflowState findFirst
1131
+ */
1132
+ export type WorkflowStateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1133
+ /**
1134
+ * Select specific fields to fetch from the WorkflowState
1135
+ */
1136
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1137
+ /**
1138
+ * Omit specific fields from the WorkflowState
1139
+ */
1140
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1141
+ /**
1142
+ * Choose, which related nodes to fetch as well
1143
+ */
1144
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1145
+ /**
1146
+ * Filter, which WorkflowState to fetch.
1147
+ */
1148
+ where?: Prisma.WorkflowStateWhereInput
1149
+ /**
1150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1151
+ *
1152
+ * Determine the order of WorkflowStates to fetch.
1153
+ */
1154
+ orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[]
1155
+ /**
1156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1157
+ *
1158
+ * Sets the position for searching for WorkflowStates.
1159
+ */
1160
+ cursor?: Prisma.WorkflowStateWhereUniqueInput
1161
+ /**
1162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1163
+ *
1164
+ * Take `±n` WorkflowStates from the position of the cursor.
1165
+ */
1166
+ take?: number
1167
+ /**
1168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1169
+ *
1170
+ * Skip the first `n` WorkflowStates.
1171
+ */
1172
+ skip?: number
1173
+ /**
1174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1175
+ *
1176
+ * Filter by unique combinations of WorkflowStates.
1177
+ */
1178
+ distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[]
1179
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1180
+ }
1181
+
1182
+ /**
1183
+ * WorkflowState findFirstOrThrow
1184
+ */
1185
+ export type WorkflowStateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1186
+ /**
1187
+ * Select specific fields to fetch from the WorkflowState
1188
+ */
1189
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1190
+ /**
1191
+ * Omit specific fields from the WorkflowState
1192
+ */
1193
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1194
+ /**
1195
+ * Choose, which related nodes to fetch as well
1196
+ */
1197
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1198
+ /**
1199
+ * Filter, which WorkflowState to fetch.
1200
+ */
1201
+ where?: Prisma.WorkflowStateWhereInput
1202
+ /**
1203
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1204
+ *
1205
+ * Determine the order of WorkflowStates to fetch.
1206
+ */
1207
+ orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[]
1208
+ /**
1209
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1210
+ *
1211
+ * Sets the position for searching for WorkflowStates.
1212
+ */
1213
+ cursor?: Prisma.WorkflowStateWhereUniqueInput
1214
+ /**
1215
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1216
+ *
1217
+ * Take `±n` WorkflowStates from the position of the cursor.
1218
+ */
1219
+ take?: number
1220
+ /**
1221
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1222
+ *
1223
+ * Skip the first `n` WorkflowStates.
1224
+ */
1225
+ skip?: number
1226
+ /**
1227
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1228
+ *
1229
+ * Filter by unique combinations of WorkflowStates.
1230
+ */
1231
+ distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[]
1232
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1233
+ }
1234
+
1235
+ /**
1236
+ * WorkflowState findMany
1237
+ */
1238
+ export type WorkflowStateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1239
+ /**
1240
+ * Select specific fields to fetch from the WorkflowState
1241
+ */
1242
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1243
+ /**
1244
+ * Omit specific fields from the WorkflowState
1245
+ */
1246
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1247
+ /**
1248
+ * Choose, which related nodes to fetch as well
1249
+ */
1250
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1251
+ /**
1252
+ * Filter, which WorkflowStates to fetch.
1253
+ */
1254
+ where?: Prisma.WorkflowStateWhereInput
1255
+ /**
1256
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1257
+ *
1258
+ * Determine the order of WorkflowStates to fetch.
1259
+ */
1260
+ orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[]
1261
+ /**
1262
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1263
+ *
1264
+ * Sets the position for listing WorkflowStates.
1265
+ */
1266
+ cursor?: Prisma.WorkflowStateWhereUniqueInput
1267
+ /**
1268
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1269
+ *
1270
+ * Take `±n` WorkflowStates from the position of the cursor.
1271
+ */
1272
+ take?: number
1273
+ /**
1274
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1275
+ *
1276
+ * Skip the first `n` WorkflowStates.
1277
+ */
1278
+ skip?: number
1279
+ /**
1280
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1281
+ *
1282
+ * Filter by unique combinations of WorkflowStates.
1283
+ */
1284
+ distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[]
1285
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1286
+ }
1287
+
1288
+ /**
1289
+ * WorkflowState create
1290
+ */
1291
+ export type WorkflowStateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1292
+ /**
1293
+ * Select specific fields to fetch from the WorkflowState
1294
+ */
1295
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1296
+ /**
1297
+ * Omit specific fields from the WorkflowState
1298
+ */
1299
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1300
+ /**
1301
+ * Choose, which related nodes to fetch as well
1302
+ */
1303
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1304
+ /**
1305
+ * The data needed to create a WorkflowState.
1306
+ */
1307
+ data: Prisma.XOR<Prisma.WorkflowStateCreateInput, Prisma.WorkflowStateUncheckedCreateInput>
1308
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1309
+ }
1310
+
1311
+ /**
1312
+ * WorkflowState createMany
1313
+ */
1314
+ export type WorkflowStateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1315
+ /**
1316
+ * The data used to create many WorkflowStates.
1317
+ */
1318
+ data: Prisma.WorkflowStateCreateManyInput | Prisma.WorkflowStateCreateManyInput[]
1319
+ skipDuplicates?: boolean
1320
+ }
1321
+
1322
+ /**
1323
+ * WorkflowState createManyAndReturn
1324
+ */
1325
+ export type WorkflowStateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
+ /**
1327
+ * Select specific fields to fetch from the WorkflowState
1328
+ */
1329
+ select?: Prisma.WorkflowStateSelectCreateManyAndReturn<ExtArgs> | null
1330
+ /**
1331
+ * Omit specific fields from the WorkflowState
1332
+ */
1333
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1334
+ /**
1335
+ * The data used to create many WorkflowStates.
1336
+ */
1337
+ data: Prisma.WorkflowStateCreateManyInput | Prisma.WorkflowStateCreateManyInput[]
1338
+ skipDuplicates?: boolean
1339
+ /**
1340
+ * Choose, which related nodes to fetch as well
1341
+ */
1342
+ include?: Prisma.WorkflowStateIncludeCreateManyAndReturn<ExtArgs> | null
1343
+ }
1344
+
1345
+ /**
1346
+ * WorkflowState update
1347
+ */
1348
+ export type WorkflowStateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * Select specific fields to fetch from the WorkflowState
1351
+ */
1352
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1353
+ /**
1354
+ * Omit specific fields from the WorkflowState
1355
+ */
1356
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1357
+ /**
1358
+ * Choose, which related nodes to fetch as well
1359
+ */
1360
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1361
+ /**
1362
+ * The data needed to update a WorkflowState.
1363
+ */
1364
+ data: Prisma.XOR<Prisma.WorkflowStateUpdateInput, Prisma.WorkflowStateUncheckedUpdateInput>
1365
+ /**
1366
+ * Choose, which WorkflowState to update.
1367
+ */
1368
+ where: Prisma.WorkflowStateWhereUniqueInput
1369
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1370
+ }
1371
+
1372
+ /**
1373
+ * WorkflowState updateMany
1374
+ */
1375
+ export type WorkflowStateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1376
+ /**
1377
+ * The data used to update WorkflowStates.
1378
+ */
1379
+ data: Prisma.XOR<Prisma.WorkflowStateUpdateManyMutationInput, Prisma.WorkflowStateUncheckedUpdateManyInput>
1380
+ /**
1381
+ * Filter which WorkflowStates to update
1382
+ */
1383
+ where?: Prisma.WorkflowStateWhereInput
1384
+ /**
1385
+ * Limit how many WorkflowStates to update.
1386
+ */
1387
+ limit?: number
1388
+ }
1389
+
1390
+ /**
1391
+ * WorkflowState updateManyAndReturn
1392
+ */
1393
+ export type WorkflowStateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1394
+ /**
1395
+ * Select specific fields to fetch from the WorkflowState
1396
+ */
1397
+ select?: Prisma.WorkflowStateSelectUpdateManyAndReturn<ExtArgs> | null
1398
+ /**
1399
+ * Omit specific fields from the WorkflowState
1400
+ */
1401
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1402
+ /**
1403
+ * The data used to update WorkflowStates.
1404
+ */
1405
+ data: Prisma.XOR<Prisma.WorkflowStateUpdateManyMutationInput, Prisma.WorkflowStateUncheckedUpdateManyInput>
1406
+ /**
1407
+ * Filter which WorkflowStates to update
1408
+ */
1409
+ where?: Prisma.WorkflowStateWhereInput
1410
+ /**
1411
+ * Limit how many WorkflowStates to update.
1412
+ */
1413
+ limit?: number
1414
+ /**
1415
+ * Choose, which related nodes to fetch as well
1416
+ */
1417
+ include?: Prisma.WorkflowStateIncludeUpdateManyAndReturn<ExtArgs> | null
1418
+ }
1419
+
1420
+ /**
1421
+ * WorkflowState upsert
1422
+ */
1423
+ export type WorkflowStateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1424
+ /**
1425
+ * Select specific fields to fetch from the WorkflowState
1426
+ */
1427
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1428
+ /**
1429
+ * Omit specific fields from the WorkflowState
1430
+ */
1431
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1432
+ /**
1433
+ * Choose, which related nodes to fetch as well
1434
+ */
1435
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1436
+ /**
1437
+ * The filter to search for the WorkflowState to update in case it exists.
1438
+ */
1439
+ where: Prisma.WorkflowStateWhereUniqueInput
1440
+ /**
1441
+ * In case the WorkflowState found by the `where` argument doesn't exist, create a new WorkflowState with this data.
1442
+ */
1443
+ create: Prisma.XOR<Prisma.WorkflowStateCreateInput, Prisma.WorkflowStateUncheckedCreateInput>
1444
+ /**
1445
+ * In case the WorkflowState was found with the provided `where` argument, update it with this data.
1446
+ */
1447
+ update: Prisma.XOR<Prisma.WorkflowStateUpdateInput, Prisma.WorkflowStateUncheckedUpdateInput>
1448
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1449
+ }
1450
+
1451
+ /**
1452
+ * WorkflowState delete
1453
+ */
1454
+ export type WorkflowStateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1455
+ /**
1456
+ * Select specific fields to fetch from the WorkflowState
1457
+ */
1458
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1459
+ /**
1460
+ * Omit specific fields from the WorkflowState
1461
+ */
1462
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1463
+ /**
1464
+ * Choose, which related nodes to fetch as well
1465
+ */
1466
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1467
+ /**
1468
+ * Filter which WorkflowState to delete.
1469
+ */
1470
+ where: Prisma.WorkflowStateWhereUniqueInput
1471
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1472
+ }
1473
+
1474
+ /**
1475
+ * WorkflowState deleteMany
1476
+ */
1477
+ export type WorkflowStateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1478
+ /**
1479
+ * Filter which WorkflowStates to delete
1480
+ */
1481
+ where?: Prisma.WorkflowStateWhereInput
1482
+ /**
1483
+ * Limit how many WorkflowStates to delete.
1484
+ */
1485
+ limit?: number
1486
+ }
1487
+
1488
+ /**
1489
+ * WorkflowState.assignedTo
1490
+ */
1491
+ export type WorkflowState$assignedToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1492
+ /**
1493
+ * Select specific fields to fetch from the User
1494
+ */
1495
+ select?: Prisma.UserSelect<ExtArgs> | null
1496
+ /**
1497
+ * Omit specific fields from the User
1498
+ */
1499
+ omit?: Prisma.UserOmit<ExtArgs> | null
1500
+ /**
1501
+ * Choose, which related nodes to fetch as well
1502
+ */
1503
+ include?: Prisma.UserInclude<ExtArgs> | null
1504
+ where?: Prisma.UserWhereInput
1505
+ }
1506
+
1507
+ /**
1508
+ * WorkflowState without action
1509
+ */
1510
+ export type WorkflowStateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1511
+ /**
1512
+ * Select specific fields to fetch from the WorkflowState
1513
+ */
1514
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1515
+ /**
1516
+ * Omit specific fields from the WorkflowState
1517
+ */
1518
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1519
+ /**
1520
+ * Choose, which related nodes to fetch as well
1521
+ */
1522
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1523
+ }