@actuate-media/cms-core 0.12.0 → 0.14.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 (110) hide show
  1. package/LICENSE +21 -21
  2. package/dist/__tests__/api/api-key-auth.test.d.ts +2 -0
  3. package/dist/__tests__/api/api-key-auth.test.d.ts.map +1 -0
  4. package/dist/__tests__/api/api-key-auth.test.js +217 -0
  5. package/dist/__tests__/api/api-key-auth.test.js.map +1 -0
  6. package/dist/__tests__/api/health.test.d.ts +2 -0
  7. package/dist/__tests__/api/health.test.d.ts.map +1 -0
  8. package/dist/__tests__/api/health.test.js +140 -0
  9. package/dist/__tests__/api/health.test.js.map +1 -0
  10. package/dist/__tests__/auth/oauth.test.d.ts +2 -0
  11. package/dist/__tests__/auth/oauth.test.d.ts.map +1 -0
  12. package/dist/__tests__/auth/oauth.test.js +406 -0
  13. package/dist/__tests__/auth/oauth.test.js.map +1 -0
  14. package/dist/__tests__/auth/reset.test.d.ts +2 -0
  15. package/dist/__tests__/auth/reset.test.d.ts.map +1 -0
  16. package/dist/__tests__/auth/reset.test.js +303 -0
  17. package/dist/__tests__/auth/reset.test.js.map +1 -0
  18. package/dist/__tests__/diagnostics/env.test.d.ts +2 -0
  19. package/dist/__tests__/diagnostics/env.test.d.ts.map +1 -0
  20. package/dist/__tests__/diagnostics/env.test.js +119 -0
  21. package/dist/__tests__/diagnostics/env.test.js.map +1 -0
  22. package/dist/__tests__/diagnostics/logger.test.d.ts +2 -0
  23. package/dist/__tests__/diagnostics/logger.test.d.ts.map +1 -0
  24. package/dist/__tests__/diagnostics/logger.test.js +111 -0
  25. package/dist/__tests__/diagnostics/logger.test.js.map +1 -0
  26. package/dist/__tests__/security/api-key-enhanced.test.d.ts +2 -0
  27. package/dist/__tests__/security/api-key-enhanced.test.d.ts.map +1 -0
  28. package/dist/__tests__/security/api-key-enhanced.test.js +110 -0
  29. package/dist/__tests__/security/api-key-enhanced.test.js.map +1 -0
  30. package/dist/__tests__/security/rate-limit.test.js +42 -0
  31. package/dist/__tests__/security/rate-limit.test.js.map +1 -1
  32. package/dist/actions.d.ts.map +1 -1
  33. package/dist/actions.js +7 -6
  34. package/dist/actions.js.map +1 -1
  35. package/dist/api/handler-factory.d.ts.map +1 -1
  36. package/dist/api/handler-factory.js +31 -8
  37. package/dist/api/handler-factory.js.map +1 -1
  38. package/dist/api/handlers.d.ts.map +1 -1
  39. package/dist/api/handlers.js +508 -55
  40. package/dist/api/handlers.js.map +1 -1
  41. package/dist/auth/oauth.d.ts.map +1 -1
  42. package/dist/auth/oauth.js +5 -1
  43. package/dist/auth/oauth.js.map +1 -1
  44. package/dist/auth/reset.d.ts.map +1 -1
  45. package/dist/auth/reset.js +2 -1
  46. package/dist/auth/reset.js.map +1 -1
  47. package/dist/config/runtime.d.ts +99 -0
  48. package/dist/config/runtime.d.ts.map +1 -0
  49. package/dist/config/runtime.js +43 -0
  50. package/dist/config/runtime.js.map +1 -0
  51. package/dist/config/types.d.ts +21 -0
  52. package/dist/config/types.d.ts.map +1 -1
  53. package/dist/diagnostics/env.d.ts +44 -0
  54. package/dist/diagnostics/env.d.ts.map +1 -0
  55. package/dist/diagnostics/env.js +293 -0
  56. package/dist/diagnostics/env.js.map +1 -0
  57. package/dist/diagnostics/logger.d.ts +38 -0
  58. package/dist/diagnostics/logger.d.ts.map +1 -0
  59. package/dist/diagnostics/logger.js +89 -0
  60. package/dist/diagnostics/logger.js.map +1 -0
  61. package/dist/page-builder/blocks.d.ts.map +1 -1
  62. package/dist/page-builder/blocks.js +6 -1
  63. package/dist/page-builder/blocks.js.map +1 -1
  64. package/dist/security/api-key-enhanced.d.ts +48 -5
  65. package/dist/security/api-key-enhanced.d.ts.map +1 -1
  66. package/dist/security/api-key-enhanced.js +60 -9
  67. package/dist/security/api-key-enhanced.js.map +1 -1
  68. package/dist/security/audit.d.ts.map +1 -1
  69. package/dist/security/audit.js +3 -1
  70. package/dist/security/audit.js.map +1 -1
  71. package/dist/security/rate-limit.d.ts +8 -0
  72. package/dist/security/rate-limit.d.ts.map +1 -1
  73. package/dist/security/rate-limit.js +81 -3
  74. package/dist/security/rate-limit.js.map +1 -1
  75. package/generated/browser.ts +109 -0
  76. package/generated/client.ts +133 -0
  77. package/generated/commonInputTypes.ts +709 -0
  78. package/generated/enums.ts +125 -0
  79. package/generated/internal/class.ts +376 -0
  80. package/generated/internal/prismaNamespace.ts +2617 -0
  81. package/generated/internal/prismaNamespaceBrowser.ts +611 -0
  82. package/generated/models/ApiKey.ts +1550 -0
  83. package/generated/models/AuditLog.ts +1206 -0
  84. package/generated/models/BackupRecord.ts +1250 -0
  85. package/generated/models/ContentLock.ts +1472 -0
  86. package/generated/models/ContentTemplate.ts +1416 -0
  87. package/generated/models/Document.ts +3005 -0
  88. package/generated/models/Folder.ts +1904 -0
  89. package/generated/models/FormSubmission.ts +1200 -0
  90. package/generated/models/InAppNotification.ts +1457 -0
  91. package/generated/models/Media.ts +2340 -0
  92. package/generated/models/MediaUsage.ts +1472 -0
  93. package/generated/models/OAuthAccount.ts +1463 -0
  94. package/generated/models/Redirect.ts +1284 -0
  95. package/generated/models/Session.ts +1492 -0
  96. package/generated/models/Site.ts +1206 -0
  97. package/generated/models/User.ts +3513 -0
  98. package/generated/models/Version.ts +1511 -0
  99. package/generated/models/WorkflowState.ts +1514 -0
  100. package/generated/models.ts +29 -0
  101. package/package.json +1 -1
  102. package/prisma/cms-schema.prisma +306 -306
  103. package/prisma/migrations/0001_init/migration.sql +384 -384
  104. package/prisma/migrations/0002_folders/migration.sql +39 -39
  105. package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -50
  106. package/prisma/migrations/0004_script_tags/migration.sql +21 -21
  107. package/prisma/migrations/0005_password_reset_tokens/migration.sql +20 -20
  108. package/prisma/migrations/0006_page_builder/migration.sql +38 -38
  109. package/prisma/migrations/migration_lock.toml +3 -3
  110. package/prisma/schema.prisma +549 -549
@@ -0,0 +1,1514 @@
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"
13
+ import type * as Prisma from "../internal/prismaNamespace"
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
+ 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'> & {
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
+ }
1104
+
1105
+ /**
1106
+ * WorkflowState findUniqueOrThrow
1107
+ */
1108
+ export type WorkflowStateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1109
+ /**
1110
+ * Select specific fields to fetch from the WorkflowState
1111
+ */
1112
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1113
+ /**
1114
+ * Omit specific fields from the WorkflowState
1115
+ */
1116
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1117
+ /**
1118
+ * Choose, which related nodes to fetch as well
1119
+ */
1120
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1121
+ /**
1122
+ * Filter, which WorkflowState to fetch.
1123
+ */
1124
+ where: Prisma.WorkflowStateWhereUniqueInput
1125
+ }
1126
+
1127
+ /**
1128
+ * WorkflowState findFirst
1129
+ */
1130
+ export type WorkflowStateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1131
+ /**
1132
+ * Select specific fields to fetch from the WorkflowState
1133
+ */
1134
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1135
+ /**
1136
+ * Omit specific fields from the WorkflowState
1137
+ */
1138
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1139
+ /**
1140
+ * Choose, which related nodes to fetch as well
1141
+ */
1142
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1143
+ /**
1144
+ * Filter, which WorkflowState to fetch.
1145
+ */
1146
+ where?: Prisma.WorkflowStateWhereInput
1147
+ /**
1148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1149
+ *
1150
+ * Determine the order of WorkflowStates to fetch.
1151
+ */
1152
+ orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[]
1153
+ /**
1154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1155
+ *
1156
+ * Sets the position for searching for WorkflowStates.
1157
+ */
1158
+ cursor?: Prisma.WorkflowStateWhereUniqueInput
1159
+ /**
1160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1161
+ *
1162
+ * Take `±n` WorkflowStates from the position of the cursor.
1163
+ */
1164
+ take?: number
1165
+ /**
1166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1167
+ *
1168
+ * Skip the first `n` WorkflowStates.
1169
+ */
1170
+ skip?: number
1171
+ /**
1172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1173
+ *
1174
+ * Filter by unique combinations of WorkflowStates.
1175
+ */
1176
+ distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[]
1177
+ }
1178
+
1179
+ /**
1180
+ * WorkflowState findFirstOrThrow
1181
+ */
1182
+ export type WorkflowStateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1183
+ /**
1184
+ * Select specific fields to fetch from the WorkflowState
1185
+ */
1186
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1187
+ /**
1188
+ * Omit specific fields from the WorkflowState
1189
+ */
1190
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1191
+ /**
1192
+ * Choose, which related nodes to fetch as well
1193
+ */
1194
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1195
+ /**
1196
+ * Filter, which WorkflowState to fetch.
1197
+ */
1198
+ where?: Prisma.WorkflowStateWhereInput
1199
+ /**
1200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1201
+ *
1202
+ * Determine the order of WorkflowStates to fetch.
1203
+ */
1204
+ orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[]
1205
+ /**
1206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1207
+ *
1208
+ * Sets the position for searching for WorkflowStates.
1209
+ */
1210
+ cursor?: Prisma.WorkflowStateWhereUniqueInput
1211
+ /**
1212
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1213
+ *
1214
+ * Take `±n` WorkflowStates from the position of the cursor.
1215
+ */
1216
+ take?: number
1217
+ /**
1218
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1219
+ *
1220
+ * Skip the first `n` WorkflowStates.
1221
+ */
1222
+ skip?: number
1223
+ /**
1224
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1225
+ *
1226
+ * Filter by unique combinations of WorkflowStates.
1227
+ */
1228
+ distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[]
1229
+ }
1230
+
1231
+ /**
1232
+ * WorkflowState findMany
1233
+ */
1234
+ export type WorkflowStateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1235
+ /**
1236
+ * Select specific fields to fetch from the WorkflowState
1237
+ */
1238
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1239
+ /**
1240
+ * Omit specific fields from the WorkflowState
1241
+ */
1242
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1243
+ /**
1244
+ * Choose, which related nodes to fetch as well
1245
+ */
1246
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1247
+ /**
1248
+ * Filter, which WorkflowStates to fetch.
1249
+ */
1250
+ where?: Prisma.WorkflowStateWhereInput
1251
+ /**
1252
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1253
+ *
1254
+ * Determine the order of WorkflowStates to fetch.
1255
+ */
1256
+ orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[]
1257
+ /**
1258
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1259
+ *
1260
+ * Sets the position for listing WorkflowStates.
1261
+ */
1262
+ cursor?: Prisma.WorkflowStateWhereUniqueInput
1263
+ /**
1264
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1265
+ *
1266
+ * Take `±n` WorkflowStates from the position of the cursor.
1267
+ */
1268
+ take?: number
1269
+ /**
1270
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1271
+ *
1272
+ * Skip the first `n` WorkflowStates.
1273
+ */
1274
+ skip?: number
1275
+ /**
1276
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1277
+ *
1278
+ * Filter by unique combinations of WorkflowStates.
1279
+ */
1280
+ distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[]
1281
+ }
1282
+
1283
+ /**
1284
+ * WorkflowState create
1285
+ */
1286
+ export type WorkflowStateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1287
+ /**
1288
+ * Select specific fields to fetch from the WorkflowState
1289
+ */
1290
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1291
+ /**
1292
+ * Omit specific fields from the WorkflowState
1293
+ */
1294
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1295
+ /**
1296
+ * Choose, which related nodes to fetch as well
1297
+ */
1298
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1299
+ /**
1300
+ * The data needed to create a WorkflowState.
1301
+ */
1302
+ data: Prisma.XOR<Prisma.WorkflowStateCreateInput, Prisma.WorkflowStateUncheckedCreateInput>
1303
+ }
1304
+
1305
+ /**
1306
+ * WorkflowState createMany
1307
+ */
1308
+ export type WorkflowStateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1309
+ /**
1310
+ * The data used to create many WorkflowStates.
1311
+ */
1312
+ data: Prisma.WorkflowStateCreateManyInput | Prisma.WorkflowStateCreateManyInput[]
1313
+ skipDuplicates?: boolean
1314
+ }
1315
+
1316
+ /**
1317
+ * WorkflowState createManyAndReturn
1318
+ */
1319
+ export type WorkflowStateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1320
+ /**
1321
+ * Select specific fields to fetch from the WorkflowState
1322
+ */
1323
+ select?: Prisma.WorkflowStateSelectCreateManyAndReturn<ExtArgs> | null
1324
+ /**
1325
+ * Omit specific fields from the WorkflowState
1326
+ */
1327
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1328
+ /**
1329
+ * The data used to create many WorkflowStates.
1330
+ */
1331
+ data: Prisma.WorkflowStateCreateManyInput | Prisma.WorkflowStateCreateManyInput[]
1332
+ skipDuplicates?: boolean
1333
+ /**
1334
+ * Choose, which related nodes to fetch as well
1335
+ */
1336
+ include?: Prisma.WorkflowStateIncludeCreateManyAndReturn<ExtArgs> | null
1337
+ }
1338
+
1339
+ /**
1340
+ * WorkflowState update
1341
+ */
1342
+ export type WorkflowStateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1343
+ /**
1344
+ * Select specific fields to fetch from the WorkflowState
1345
+ */
1346
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1347
+ /**
1348
+ * Omit specific fields from the WorkflowState
1349
+ */
1350
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1351
+ /**
1352
+ * Choose, which related nodes to fetch as well
1353
+ */
1354
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1355
+ /**
1356
+ * The data needed to update a WorkflowState.
1357
+ */
1358
+ data: Prisma.XOR<Prisma.WorkflowStateUpdateInput, Prisma.WorkflowStateUncheckedUpdateInput>
1359
+ /**
1360
+ * Choose, which WorkflowState to update.
1361
+ */
1362
+ where: Prisma.WorkflowStateWhereUniqueInput
1363
+ }
1364
+
1365
+ /**
1366
+ * WorkflowState updateMany
1367
+ */
1368
+ export type WorkflowStateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1369
+ /**
1370
+ * The data used to update WorkflowStates.
1371
+ */
1372
+ data: Prisma.XOR<Prisma.WorkflowStateUpdateManyMutationInput, Prisma.WorkflowStateUncheckedUpdateManyInput>
1373
+ /**
1374
+ * Filter which WorkflowStates to update
1375
+ */
1376
+ where?: Prisma.WorkflowStateWhereInput
1377
+ /**
1378
+ * Limit how many WorkflowStates to update.
1379
+ */
1380
+ limit?: number
1381
+ }
1382
+
1383
+ /**
1384
+ * WorkflowState updateManyAndReturn
1385
+ */
1386
+ export type WorkflowStateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1387
+ /**
1388
+ * Select specific fields to fetch from the WorkflowState
1389
+ */
1390
+ select?: Prisma.WorkflowStateSelectUpdateManyAndReturn<ExtArgs> | null
1391
+ /**
1392
+ * Omit specific fields from the WorkflowState
1393
+ */
1394
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1395
+ /**
1396
+ * The data used to update WorkflowStates.
1397
+ */
1398
+ data: Prisma.XOR<Prisma.WorkflowStateUpdateManyMutationInput, Prisma.WorkflowStateUncheckedUpdateManyInput>
1399
+ /**
1400
+ * Filter which WorkflowStates to update
1401
+ */
1402
+ where?: Prisma.WorkflowStateWhereInput
1403
+ /**
1404
+ * Limit how many WorkflowStates to update.
1405
+ */
1406
+ limit?: number
1407
+ /**
1408
+ * Choose, which related nodes to fetch as well
1409
+ */
1410
+ include?: Prisma.WorkflowStateIncludeUpdateManyAndReturn<ExtArgs> | null
1411
+ }
1412
+
1413
+ /**
1414
+ * WorkflowState upsert
1415
+ */
1416
+ export type WorkflowStateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1417
+ /**
1418
+ * Select specific fields to fetch from the WorkflowState
1419
+ */
1420
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1421
+ /**
1422
+ * Omit specific fields from the WorkflowState
1423
+ */
1424
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1425
+ /**
1426
+ * Choose, which related nodes to fetch as well
1427
+ */
1428
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1429
+ /**
1430
+ * The filter to search for the WorkflowState to update in case it exists.
1431
+ */
1432
+ where: Prisma.WorkflowStateWhereUniqueInput
1433
+ /**
1434
+ * In case the WorkflowState found by the `where` argument doesn't exist, create a new WorkflowState with this data.
1435
+ */
1436
+ create: Prisma.XOR<Prisma.WorkflowStateCreateInput, Prisma.WorkflowStateUncheckedCreateInput>
1437
+ /**
1438
+ * In case the WorkflowState was found with the provided `where` argument, update it with this data.
1439
+ */
1440
+ update: Prisma.XOR<Prisma.WorkflowStateUpdateInput, Prisma.WorkflowStateUncheckedUpdateInput>
1441
+ }
1442
+
1443
+ /**
1444
+ * WorkflowState delete
1445
+ */
1446
+ export type WorkflowStateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1447
+ /**
1448
+ * Select specific fields to fetch from the WorkflowState
1449
+ */
1450
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1451
+ /**
1452
+ * Omit specific fields from the WorkflowState
1453
+ */
1454
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1455
+ /**
1456
+ * Choose, which related nodes to fetch as well
1457
+ */
1458
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1459
+ /**
1460
+ * Filter which WorkflowState to delete.
1461
+ */
1462
+ where: Prisma.WorkflowStateWhereUniqueInput
1463
+ }
1464
+
1465
+ /**
1466
+ * WorkflowState deleteMany
1467
+ */
1468
+ export type WorkflowStateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1469
+ /**
1470
+ * Filter which WorkflowStates to delete
1471
+ */
1472
+ where?: Prisma.WorkflowStateWhereInput
1473
+ /**
1474
+ * Limit how many WorkflowStates to delete.
1475
+ */
1476
+ limit?: number
1477
+ }
1478
+
1479
+ /**
1480
+ * WorkflowState.assignedTo
1481
+ */
1482
+ export type WorkflowState$assignedToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1483
+ /**
1484
+ * Select specific fields to fetch from the User
1485
+ */
1486
+ select?: Prisma.UserSelect<ExtArgs> | null
1487
+ /**
1488
+ * Omit specific fields from the User
1489
+ */
1490
+ omit?: Prisma.UserOmit<ExtArgs> | null
1491
+ /**
1492
+ * Choose, which related nodes to fetch as well
1493
+ */
1494
+ include?: Prisma.UserInclude<ExtArgs> | null
1495
+ where?: Prisma.UserWhereInput
1496
+ }
1497
+
1498
+ /**
1499
+ * WorkflowState without action
1500
+ */
1501
+ export type WorkflowStateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
+ /**
1503
+ * Select specific fields to fetch from the WorkflowState
1504
+ */
1505
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null
1506
+ /**
1507
+ * Omit specific fields from the WorkflowState
1508
+ */
1509
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null
1510
+ /**
1511
+ * Choose, which related nodes to fetch as well
1512
+ */
1513
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null
1514
+ }