@valentine-efagene/qshelter-common 2.0.66 → 2.0.68

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 (36) hide show
  1. package/dist/generated/client/browser.d.ts +29 -0
  2. package/dist/generated/client/client.d.ts +29 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +120 -0
  4. package/dist/generated/client/enums.d.ts +33 -0
  5. package/dist/generated/client/enums.js +29 -0
  6. package/dist/generated/client/internal/class.d.ts +55 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +475 -1
  9. package/dist/generated/client/internal/prismaNamespace.js +113 -0
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +123 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +113 -0
  12. package/dist/generated/client/models/EventChannel.d.ts +1305 -0
  13. package/dist/generated/client/models/EventChannel.js +1 -0
  14. package/dist/generated/client/models/EventHandler.d.ts +1749 -0
  15. package/dist/generated/client/models/EventHandler.js +1 -0
  16. package/dist/generated/client/models/EventHandlerExecution.d.ts +1525 -0
  17. package/dist/generated/client/models/EventHandlerExecution.js +1 -0
  18. package/dist/generated/client/models/EventType.d.ts +1653 -0
  19. package/dist/generated/client/models/EventType.js +1 -0
  20. package/dist/generated/client/models/Tenant.d.ts +796 -0
  21. package/dist/generated/client/models/WorkflowEvent.d.ts +1654 -0
  22. package/dist/generated/client/models/WorkflowEvent.js +1 -0
  23. package/dist/generated/client/models/index.d.ts +5 -0
  24. package/dist/generated/client/models/index.js +5 -0
  25. package/dist/generated/client/models.d.ts +5 -0
  26. package/dist/src/events/event-config.service.d.ts +123 -0
  27. package/dist/src/events/event-config.service.js +416 -0
  28. package/dist/src/events/index.d.ts +3 -0
  29. package/dist/src/events/index.js +5 -0
  30. package/dist/src/events/workflow-event.service.d.ts +205 -0
  31. package/dist/src/events/workflow-event.service.js +660 -0
  32. package/dist/src/events/workflow-types.d.ts +315 -0
  33. package/dist/src/events/workflow-types.js +14 -0
  34. package/package.json +1 -1
  35. package/prisma/migrations/20260105151535_add_event_workflow_system/migration.sql +132 -0
  36. package/prisma/schema.prisma +272 -0
@@ -0,0 +1,1654 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model WorkflowEvent
6
+ * Workflow Event - An actual event instance that occurred
7
+ * This is the audit log of all events in the system
8
+ */
9
+ export type WorkflowEventModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkflowEventPayload>;
10
+ export type AggregateWorkflowEvent = {
11
+ _count: WorkflowEventCountAggregateOutputType | null;
12
+ _min: WorkflowEventMinAggregateOutputType | null;
13
+ _max: WorkflowEventMaxAggregateOutputType | null;
14
+ };
15
+ export type WorkflowEventMinAggregateOutputType = {
16
+ id: string | null;
17
+ tenantId: string | null;
18
+ eventTypeId: string | null;
19
+ correlationId: string | null;
20
+ causationId: string | null;
21
+ source: string | null;
22
+ actorId: string | null;
23
+ actorType: $Enums.ActorType | null;
24
+ status: $Enums.WorkflowEventStatus | null;
25
+ error: string | null;
26
+ processedAt: Date | null;
27
+ createdAt: Date | null;
28
+ };
29
+ export type WorkflowEventMaxAggregateOutputType = {
30
+ id: string | null;
31
+ tenantId: string | null;
32
+ eventTypeId: string | null;
33
+ correlationId: string | null;
34
+ causationId: string | null;
35
+ source: string | null;
36
+ actorId: string | null;
37
+ actorType: $Enums.ActorType | null;
38
+ status: $Enums.WorkflowEventStatus | null;
39
+ error: string | null;
40
+ processedAt: Date | null;
41
+ createdAt: Date | null;
42
+ };
43
+ export type WorkflowEventCountAggregateOutputType = {
44
+ id: number;
45
+ tenantId: number;
46
+ eventTypeId: number;
47
+ payload: number;
48
+ correlationId: number;
49
+ causationId: number;
50
+ source: number;
51
+ actorId: number;
52
+ actorType: number;
53
+ status: number;
54
+ error: number;
55
+ processedAt: number;
56
+ createdAt: number;
57
+ _all: number;
58
+ };
59
+ export type WorkflowEventMinAggregateInputType = {
60
+ id?: true;
61
+ tenantId?: true;
62
+ eventTypeId?: true;
63
+ correlationId?: true;
64
+ causationId?: true;
65
+ source?: true;
66
+ actorId?: true;
67
+ actorType?: true;
68
+ status?: true;
69
+ error?: true;
70
+ processedAt?: true;
71
+ createdAt?: true;
72
+ };
73
+ export type WorkflowEventMaxAggregateInputType = {
74
+ id?: true;
75
+ tenantId?: true;
76
+ eventTypeId?: true;
77
+ correlationId?: true;
78
+ causationId?: true;
79
+ source?: true;
80
+ actorId?: true;
81
+ actorType?: true;
82
+ status?: true;
83
+ error?: true;
84
+ processedAt?: true;
85
+ createdAt?: true;
86
+ };
87
+ export type WorkflowEventCountAggregateInputType = {
88
+ id?: true;
89
+ tenantId?: true;
90
+ eventTypeId?: true;
91
+ payload?: true;
92
+ correlationId?: true;
93
+ causationId?: true;
94
+ source?: true;
95
+ actorId?: true;
96
+ actorType?: true;
97
+ status?: true;
98
+ error?: true;
99
+ processedAt?: true;
100
+ createdAt?: true;
101
+ _all?: true;
102
+ };
103
+ export type WorkflowEventAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
104
+ /**
105
+ * Filter which WorkflowEvent to aggregate.
106
+ */
107
+ where?: Prisma.WorkflowEventWhereInput;
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
110
+ *
111
+ * Determine the order of WorkflowEvents to fetch.
112
+ */
113
+ orderBy?: Prisma.WorkflowEventOrderByWithRelationInput | Prisma.WorkflowEventOrderByWithRelationInput[];
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
116
+ *
117
+ * Sets the start position
118
+ */
119
+ cursor?: Prisma.WorkflowEventWhereUniqueInput;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
122
+ *
123
+ * Take `±n` WorkflowEvents from the position of the cursor.
124
+ */
125
+ take?: number;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
128
+ *
129
+ * Skip the first `n` WorkflowEvents.
130
+ */
131
+ skip?: number;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Count returned WorkflowEvents
136
+ **/
137
+ _count?: true | WorkflowEventCountAggregateInputType;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
+ *
141
+ * Select which fields to find the minimum value
142
+ **/
143
+ _min?: WorkflowEventMinAggregateInputType;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Select which fields to find the maximum value
148
+ **/
149
+ _max?: WorkflowEventMaxAggregateInputType;
150
+ };
151
+ export type GetWorkflowEventAggregateType<T extends WorkflowEventAggregateArgs> = {
152
+ [P in keyof T & keyof AggregateWorkflowEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateWorkflowEvent[P]> : Prisma.GetScalarType<T[P], AggregateWorkflowEvent[P]>;
153
+ };
154
+ export type WorkflowEventGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
155
+ where?: Prisma.WorkflowEventWhereInput;
156
+ orderBy?: Prisma.WorkflowEventOrderByWithAggregationInput | Prisma.WorkflowEventOrderByWithAggregationInput[];
157
+ by: Prisma.WorkflowEventScalarFieldEnum[] | Prisma.WorkflowEventScalarFieldEnum;
158
+ having?: Prisma.WorkflowEventScalarWhereWithAggregatesInput;
159
+ take?: number;
160
+ skip?: number;
161
+ _count?: WorkflowEventCountAggregateInputType | true;
162
+ _min?: WorkflowEventMinAggregateInputType;
163
+ _max?: WorkflowEventMaxAggregateInputType;
164
+ };
165
+ export type WorkflowEventGroupByOutputType = {
166
+ id: string;
167
+ tenantId: string;
168
+ eventTypeId: string;
169
+ payload: runtime.JsonValue;
170
+ correlationId: string | null;
171
+ causationId: string | null;
172
+ source: string;
173
+ actorId: string | null;
174
+ actorType: $Enums.ActorType;
175
+ status: $Enums.WorkflowEventStatus;
176
+ error: string | null;
177
+ processedAt: Date | null;
178
+ createdAt: Date;
179
+ _count: WorkflowEventCountAggregateOutputType | null;
180
+ _min: WorkflowEventMinAggregateOutputType | null;
181
+ _max: WorkflowEventMaxAggregateOutputType | null;
182
+ };
183
+ type GetWorkflowEventGroupByPayload<T extends WorkflowEventGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<WorkflowEventGroupByOutputType, T['by']> & {
184
+ [P in ((keyof T) & (keyof WorkflowEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], WorkflowEventGroupByOutputType[P]> : Prisma.GetScalarType<T[P], WorkflowEventGroupByOutputType[P]>;
185
+ }>>;
186
+ export type WorkflowEventWhereInput = {
187
+ AND?: Prisma.WorkflowEventWhereInput | Prisma.WorkflowEventWhereInput[];
188
+ OR?: Prisma.WorkflowEventWhereInput[];
189
+ NOT?: Prisma.WorkflowEventWhereInput | Prisma.WorkflowEventWhereInput[];
190
+ id?: Prisma.StringFilter<"WorkflowEvent"> | string;
191
+ tenantId?: Prisma.StringFilter<"WorkflowEvent"> | string;
192
+ eventTypeId?: Prisma.StringFilter<"WorkflowEvent"> | string;
193
+ payload?: Prisma.JsonFilter<"WorkflowEvent">;
194
+ correlationId?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
195
+ causationId?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
196
+ source?: Prisma.StringFilter<"WorkflowEvent"> | string;
197
+ actorId?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
198
+ actorType?: Prisma.EnumActorTypeFilter<"WorkflowEvent"> | $Enums.ActorType;
199
+ status?: Prisma.EnumWorkflowEventStatusFilter<"WorkflowEvent"> | $Enums.WorkflowEventStatus;
200
+ error?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
201
+ processedAt?: Prisma.DateTimeNullableFilter<"WorkflowEvent"> | Date | string | null;
202
+ createdAt?: Prisma.DateTimeFilter<"WorkflowEvent"> | Date | string;
203
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
204
+ eventType?: Prisma.XOR<Prisma.EventTypeScalarRelationFilter, Prisma.EventTypeWhereInput>;
205
+ executions?: Prisma.EventHandlerExecutionListRelationFilter;
206
+ };
207
+ export type WorkflowEventOrderByWithRelationInput = {
208
+ id?: Prisma.SortOrder;
209
+ tenantId?: Prisma.SortOrder;
210
+ eventTypeId?: Prisma.SortOrder;
211
+ payload?: Prisma.SortOrder;
212
+ correlationId?: Prisma.SortOrderInput | Prisma.SortOrder;
213
+ causationId?: Prisma.SortOrderInput | Prisma.SortOrder;
214
+ source?: Prisma.SortOrder;
215
+ actorId?: Prisma.SortOrderInput | Prisma.SortOrder;
216
+ actorType?: Prisma.SortOrder;
217
+ status?: Prisma.SortOrder;
218
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
219
+ processedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
220
+ createdAt?: Prisma.SortOrder;
221
+ tenant?: Prisma.TenantOrderByWithRelationInput;
222
+ eventType?: Prisma.EventTypeOrderByWithRelationInput;
223
+ executions?: Prisma.EventHandlerExecutionOrderByRelationAggregateInput;
224
+ _relevance?: Prisma.WorkflowEventOrderByRelevanceInput;
225
+ };
226
+ export type WorkflowEventWhereUniqueInput = Prisma.AtLeast<{
227
+ id?: string;
228
+ AND?: Prisma.WorkflowEventWhereInput | Prisma.WorkflowEventWhereInput[];
229
+ OR?: Prisma.WorkflowEventWhereInput[];
230
+ NOT?: Prisma.WorkflowEventWhereInput | Prisma.WorkflowEventWhereInput[];
231
+ tenantId?: Prisma.StringFilter<"WorkflowEvent"> | string;
232
+ eventTypeId?: Prisma.StringFilter<"WorkflowEvent"> | string;
233
+ payload?: Prisma.JsonFilter<"WorkflowEvent">;
234
+ correlationId?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
235
+ causationId?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
236
+ source?: Prisma.StringFilter<"WorkflowEvent"> | string;
237
+ actorId?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
238
+ actorType?: Prisma.EnumActorTypeFilter<"WorkflowEvent"> | $Enums.ActorType;
239
+ status?: Prisma.EnumWorkflowEventStatusFilter<"WorkflowEvent"> | $Enums.WorkflowEventStatus;
240
+ error?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
241
+ processedAt?: Prisma.DateTimeNullableFilter<"WorkflowEvent"> | Date | string | null;
242
+ createdAt?: Prisma.DateTimeFilter<"WorkflowEvent"> | Date | string;
243
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
244
+ eventType?: Prisma.XOR<Prisma.EventTypeScalarRelationFilter, Prisma.EventTypeWhereInput>;
245
+ executions?: Prisma.EventHandlerExecutionListRelationFilter;
246
+ }, "id">;
247
+ export type WorkflowEventOrderByWithAggregationInput = {
248
+ id?: Prisma.SortOrder;
249
+ tenantId?: Prisma.SortOrder;
250
+ eventTypeId?: Prisma.SortOrder;
251
+ payload?: Prisma.SortOrder;
252
+ correlationId?: Prisma.SortOrderInput | Prisma.SortOrder;
253
+ causationId?: Prisma.SortOrderInput | Prisma.SortOrder;
254
+ source?: Prisma.SortOrder;
255
+ actorId?: Prisma.SortOrderInput | Prisma.SortOrder;
256
+ actorType?: Prisma.SortOrder;
257
+ status?: Prisma.SortOrder;
258
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
259
+ processedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
260
+ createdAt?: Prisma.SortOrder;
261
+ _count?: Prisma.WorkflowEventCountOrderByAggregateInput;
262
+ _max?: Prisma.WorkflowEventMaxOrderByAggregateInput;
263
+ _min?: Prisma.WorkflowEventMinOrderByAggregateInput;
264
+ };
265
+ export type WorkflowEventScalarWhereWithAggregatesInput = {
266
+ AND?: Prisma.WorkflowEventScalarWhereWithAggregatesInput | Prisma.WorkflowEventScalarWhereWithAggregatesInput[];
267
+ OR?: Prisma.WorkflowEventScalarWhereWithAggregatesInput[];
268
+ NOT?: Prisma.WorkflowEventScalarWhereWithAggregatesInput | Prisma.WorkflowEventScalarWhereWithAggregatesInput[];
269
+ id?: Prisma.StringWithAggregatesFilter<"WorkflowEvent"> | string;
270
+ tenantId?: Prisma.StringWithAggregatesFilter<"WorkflowEvent"> | string;
271
+ eventTypeId?: Prisma.StringWithAggregatesFilter<"WorkflowEvent"> | string;
272
+ payload?: Prisma.JsonWithAggregatesFilter<"WorkflowEvent">;
273
+ correlationId?: Prisma.StringNullableWithAggregatesFilter<"WorkflowEvent"> | string | null;
274
+ causationId?: Prisma.StringNullableWithAggregatesFilter<"WorkflowEvent"> | string | null;
275
+ source?: Prisma.StringWithAggregatesFilter<"WorkflowEvent"> | string;
276
+ actorId?: Prisma.StringNullableWithAggregatesFilter<"WorkflowEvent"> | string | null;
277
+ actorType?: Prisma.EnumActorTypeWithAggregatesFilter<"WorkflowEvent"> | $Enums.ActorType;
278
+ status?: Prisma.EnumWorkflowEventStatusWithAggregatesFilter<"WorkflowEvent"> | $Enums.WorkflowEventStatus;
279
+ error?: Prisma.StringNullableWithAggregatesFilter<"WorkflowEvent"> | string | null;
280
+ processedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"WorkflowEvent"> | Date | string | null;
281
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"WorkflowEvent"> | Date | string;
282
+ };
283
+ export type WorkflowEventCreateInput = {
284
+ id?: string;
285
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
286
+ correlationId?: string | null;
287
+ causationId?: string | null;
288
+ source: string;
289
+ actorId?: string | null;
290
+ actorType?: $Enums.ActorType;
291
+ status?: $Enums.WorkflowEventStatus;
292
+ error?: string | null;
293
+ processedAt?: Date | string | null;
294
+ createdAt?: Date | string;
295
+ tenant: Prisma.TenantCreateNestedOneWithoutWorkflowEventsInput;
296
+ eventType: Prisma.EventTypeCreateNestedOneWithoutEventsInput;
297
+ executions?: Prisma.EventHandlerExecutionCreateNestedManyWithoutEventInput;
298
+ };
299
+ export type WorkflowEventUncheckedCreateInput = {
300
+ id?: string;
301
+ tenantId: string;
302
+ eventTypeId: string;
303
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
304
+ correlationId?: string | null;
305
+ causationId?: string | null;
306
+ source: string;
307
+ actorId?: string | null;
308
+ actorType?: $Enums.ActorType;
309
+ status?: $Enums.WorkflowEventStatus;
310
+ error?: string | null;
311
+ processedAt?: Date | string | null;
312
+ createdAt?: Date | string;
313
+ executions?: Prisma.EventHandlerExecutionUncheckedCreateNestedManyWithoutEventInput;
314
+ };
315
+ export type WorkflowEventUpdateInput = {
316
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
317
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
318
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
319
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
320
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
321
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
322
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
323
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
324
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
325
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
326
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
327
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutWorkflowEventsNestedInput;
328
+ eventType?: Prisma.EventTypeUpdateOneRequiredWithoutEventsNestedInput;
329
+ executions?: Prisma.EventHandlerExecutionUpdateManyWithoutEventNestedInput;
330
+ };
331
+ export type WorkflowEventUncheckedUpdateInput = {
332
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
333
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
334
+ eventTypeId?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
336
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
337
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
338
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
339
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
340
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
341
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
342
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
343
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
344
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
345
+ executions?: Prisma.EventHandlerExecutionUncheckedUpdateManyWithoutEventNestedInput;
346
+ };
347
+ export type WorkflowEventCreateManyInput = {
348
+ id?: string;
349
+ tenantId: string;
350
+ eventTypeId: string;
351
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
352
+ correlationId?: string | null;
353
+ causationId?: string | null;
354
+ source: string;
355
+ actorId?: string | null;
356
+ actorType?: $Enums.ActorType;
357
+ status?: $Enums.WorkflowEventStatus;
358
+ error?: string | null;
359
+ processedAt?: Date | string | null;
360
+ createdAt?: Date | string;
361
+ };
362
+ export type WorkflowEventUpdateManyMutationInput = {
363
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
364
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
365
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
366
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
367
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
368
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
369
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
370
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
371
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
372
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
373
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
374
+ };
375
+ export type WorkflowEventUncheckedUpdateManyInput = {
376
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
377
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
378
+ eventTypeId?: Prisma.StringFieldUpdateOperationsInput | string;
379
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
380
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
381
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
382
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
383
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
384
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
385
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
386
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
387
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
388
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
389
+ };
390
+ export type WorkflowEventListRelationFilter = {
391
+ every?: Prisma.WorkflowEventWhereInput;
392
+ some?: Prisma.WorkflowEventWhereInput;
393
+ none?: Prisma.WorkflowEventWhereInput;
394
+ };
395
+ export type WorkflowEventOrderByRelationAggregateInput = {
396
+ _count?: Prisma.SortOrder;
397
+ };
398
+ export type WorkflowEventOrderByRelevanceInput = {
399
+ fields: Prisma.WorkflowEventOrderByRelevanceFieldEnum | Prisma.WorkflowEventOrderByRelevanceFieldEnum[];
400
+ sort: Prisma.SortOrder;
401
+ search: string;
402
+ };
403
+ export type WorkflowEventCountOrderByAggregateInput = {
404
+ id?: Prisma.SortOrder;
405
+ tenantId?: Prisma.SortOrder;
406
+ eventTypeId?: Prisma.SortOrder;
407
+ payload?: Prisma.SortOrder;
408
+ correlationId?: Prisma.SortOrder;
409
+ causationId?: Prisma.SortOrder;
410
+ source?: Prisma.SortOrder;
411
+ actorId?: Prisma.SortOrder;
412
+ actorType?: Prisma.SortOrder;
413
+ status?: Prisma.SortOrder;
414
+ error?: Prisma.SortOrder;
415
+ processedAt?: Prisma.SortOrder;
416
+ createdAt?: Prisma.SortOrder;
417
+ };
418
+ export type WorkflowEventMaxOrderByAggregateInput = {
419
+ id?: Prisma.SortOrder;
420
+ tenantId?: Prisma.SortOrder;
421
+ eventTypeId?: Prisma.SortOrder;
422
+ correlationId?: Prisma.SortOrder;
423
+ causationId?: Prisma.SortOrder;
424
+ source?: Prisma.SortOrder;
425
+ actorId?: Prisma.SortOrder;
426
+ actorType?: Prisma.SortOrder;
427
+ status?: Prisma.SortOrder;
428
+ error?: Prisma.SortOrder;
429
+ processedAt?: Prisma.SortOrder;
430
+ createdAt?: Prisma.SortOrder;
431
+ };
432
+ export type WorkflowEventMinOrderByAggregateInput = {
433
+ id?: Prisma.SortOrder;
434
+ tenantId?: Prisma.SortOrder;
435
+ eventTypeId?: Prisma.SortOrder;
436
+ correlationId?: Prisma.SortOrder;
437
+ causationId?: Prisma.SortOrder;
438
+ source?: Prisma.SortOrder;
439
+ actorId?: Prisma.SortOrder;
440
+ actorType?: Prisma.SortOrder;
441
+ status?: Prisma.SortOrder;
442
+ error?: Prisma.SortOrder;
443
+ processedAt?: Prisma.SortOrder;
444
+ createdAt?: Prisma.SortOrder;
445
+ };
446
+ export type WorkflowEventScalarRelationFilter = {
447
+ is?: Prisma.WorkflowEventWhereInput;
448
+ isNot?: Prisma.WorkflowEventWhereInput;
449
+ };
450
+ export type WorkflowEventCreateNestedManyWithoutTenantInput = {
451
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutTenantInput, Prisma.WorkflowEventUncheckedCreateWithoutTenantInput> | Prisma.WorkflowEventCreateWithoutTenantInput[] | Prisma.WorkflowEventUncheckedCreateWithoutTenantInput[];
452
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutTenantInput | Prisma.WorkflowEventCreateOrConnectWithoutTenantInput[];
453
+ createMany?: Prisma.WorkflowEventCreateManyTenantInputEnvelope;
454
+ connect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
455
+ };
456
+ export type WorkflowEventUncheckedCreateNestedManyWithoutTenantInput = {
457
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutTenantInput, Prisma.WorkflowEventUncheckedCreateWithoutTenantInput> | Prisma.WorkflowEventCreateWithoutTenantInput[] | Prisma.WorkflowEventUncheckedCreateWithoutTenantInput[];
458
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutTenantInput | Prisma.WorkflowEventCreateOrConnectWithoutTenantInput[];
459
+ createMany?: Prisma.WorkflowEventCreateManyTenantInputEnvelope;
460
+ connect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
461
+ };
462
+ export type WorkflowEventUpdateManyWithoutTenantNestedInput = {
463
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutTenantInput, Prisma.WorkflowEventUncheckedCreateWithoutTenantInput> | Prisma.WorkflowEventCreateWithoutTenantInput[] | Prisma.WorkflowEventUncheckedCreateWithoutTenantInput[];
464
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutTenantInput | Prisma.WorkflowEventCreateOrConnectWithoutTenantInput[];
465
+ upsert?: Prisma.WorkflowEventUpsertWithWhereUniqueWithoutTenantInput | Prisma.WorkflowEventUpsertWithWhereUniqueWithoutTenantInput[];
466
+ createMany?: Prisma.WorkflowEventCreateManyTenantInputEnvelope;
467
+ set?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
468
+ disconnect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
469
+ delete?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
470
+ connect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
471
+ update?: Prisma.WorkflowEventUpdateWithWhereUniqueWithoutTenantInput | Prisma.WorkflowEventUpdateWithWhereUniqueWithoutTenantInput[];
472
+ updateMany?: Prisma.WorkflowEventUpdateManyWithWhereWithoutTenantInput | Prisma.WorkflowEventUpdateManyWithWhereWithoutTenantInput[];
473
+ deleteMany?: Prisma.WorkflowEventScalarWhereInput | Prisma.WorkflowEventScalarWhereInput[];
474
+ };
475
+ export type WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput = {
476
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutTenantInput, Prisma.WorkflowEventUncheckedCreateWithoutTenantInput> | Prisma.WorkflowEventCreateWithoutTenantInput[] | Prisma.WorkflowEventUncheckedCreateWithoutTenantInput[];
477
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutTenantInput | Prisma.WorkflowEventCreateOrConnectWithoutTenantInput[];
478
+ upsert?: Prisma.WorkflowEventUpsertWithWhereUniqueWithoutTenantInput | Prisma.WorkflowEventUpsertWithWhereUniqueWithoutTenantInput[];
479
+ createMany?: Prisma.WorkflowEventCreateManyTenantInputEnvelope;
480
+ set?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
481
+ disconnect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
482
+ delete?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
483
+ connect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
484
+ update?: Prisma.WorkflowEventUpdateWithWhereUniqueWithoutTenantInput | Prisma.WorkflowEventUpdateWithWhereUniqueWithoutTenantInput[];
485
+ updateMany?: Prisma.WorkflowEventUpdateManyWithWhereWithoutTenantInput | Prisma.WorkflowEventUpdateManyWithWhereWithoutTenantInput[];
486
+ deleteMany?: Prisma.WorkflowEventScalarWhereInput | Prisma.WorkflowEventScalarWhereInput[];
487
+ };
488
+ export type WorkflowEventCreateNestedManyWithoutEventTypeInput = {
489
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutEventTypeInput, Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput> | Prisma.WorkflowEventCreateWithoutEventTypeInput[] | Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput[];
490
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutEventTypeInput | Prisma.WorkflowEventCreateOrConnectWithoutEventTypeInput[];
491
+ createMany?: Prisma.WorkflowEventCreateManyEventTypeInputEnvelope;
492
+ connect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
493
+ };
494
+ export type WorkflowEventUncheckedCreateNestedManyWithoutEventTypeInput = {
495
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutEventTypeInput, Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput> | Prisma.WorkflowEventCreateWithoutEventTypeInput[] | Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput[];
496
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutEventTypeInput | Prisma.WorkflowEventCreateOrConnectWithoutEventTypeInput[];
497
+ createMany?: Prisma.WorkflowEventCreateManyEventTypeInputEnvelope;
498
+ connect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
499
+ };
500
+ export type WorkflowEventUpdateManyWithoutEventTypeNestedInput = {
501
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutEventTypeInput, Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput> | Prisma.WorkflowEventCreateWithoutEventTypeInput[] | Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput[];
502
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutEventTypeInput | Prisma.WorkflowEventCreateOrConnectWithoutEventTypeInput[];
503
+ upsert?: Prisma.WorkflowEventUpsertWithWhereUniqueWithoutEventTypeInput | Prisma.WorkflowEventUpsertWithWhereUniqueWithoutEventTypeInput[];
504
+ createMany?: Prisma.WorkflowEventCreateManyEventTypeInputEnvelope;
505
+ set?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
506
+ disconnect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
507
+ delete?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
508
+ connect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
509
+ update?: Prisma.WorkflowEventUpdateWithWhereUniqueWithoutEventTypeInput | Prisma.WorkflowEventUpdateWithWhereUniqueWithoutEventTypeInput[];
510
+ updateMany?: Prisma.WorkflowEventUpdateManyWithWhereWithoutEventTypeInput | Prisma.WorkflowEventUpdateManyWithWhereWithoutEventTypeInput[];
511
+ deleteMany?: Prisma.WorkflowEventScalarWhereInput | Prisma.WorkflowEventScalarWhereInput[];
512
+ };
513
+ export type WorkflowEventUncheckedUpdateManyWithoutEventTypeNestedInput = {
514
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutEventTypeInput, Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput> | Prisma.WorkflowEventCreateWithoutEventTypeInput[] | Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput[];
515
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutEventTypeInput | Prisma.WorkflowEventCreateOrConnectWithoutEventTypeInput[];
516
+ upsert?: Prisma.WorkflowEventUpsertWithWhereUniqueWithoutEventTypeInput | Prisma.WorkflowEventUpsertWithWhereUniqueWithoutEventTypeInput[];
517
+ createMany?: Prisma.WorkflowEventCreateManyEventTypeInputEnvelope;
518
+ set?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
519
+ disconnect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
520
+ delete?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
521
+ connect?: Prisma.WorkflowEventWhereUniqueInput | Prisma.WorkflowEventWhereUniqueInput[];
522
+ update?: Prisma.WorkflowEventUpdateWithWhereUniqueWithoutEventTypeInput | Prisma.WorkflowEventUpdateWithWhereUniqueWithoutEventTypeInput[];
523
+ updateMany?: Prisma.WorkflowEventUpdateManyWithWhereWithoutEventTypeInput | Prisma.WorkflowEventUpdateManyWithWhereWithoutEventTypeInput[];
524
+ deleteMany?: Prisma.WorkflowEventScalarWhereInput | Prisma.WorkflowEventScalarWhereInput[];
525
+ };
526
+ export type EnumActorTypeFieldUpdateOperationsInput = {
527
+ set?: $Enums.ActorType;
528
+ };
529
+ export type EnumWorkflowEventStatusFieldUpdateOperationsInput = {
530
+ set?: $Enums.WorkflowEventStatus;
531
+ };
532
+ export type WorkflowEventCreateNestedOneWithoutExecutionsInput = {
533
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutExecutionsInput, Prisma.WorkflowEventUncheckedCreateWithoutExecutionsInput>;
534
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutExecutionsInput;
535
+ connect?: Prisma.WorkflowEventWhereUniqueInput;
536
+ };
537
+ export type WorkflowEventUpdateOneRequiredWithoutExecutionsNestedInput = {
538
+ create?: Prisma.XOR<Prisma.WorkflowEventCreateWithoutExecutionsInput, Prisma.WorkflowEventUncheckedCreateWithoutExecutionsInput>;
539
+ connectOrCreate?: Prisma.WorkflowEventCreateOrConnectWithoutExecutionsInput;
540
+ upsert?: Prisma.WorkflowEventUpsertWithoutExecutionsInput;
541
+ connect?: Prisma.WorkflowEventWhereUniqueInput;
542
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkflowEventUpdateToOneWithWhereWithoutExecutionsInput, Prisma.WorkflowEventUpdateWithoutExecutionsInput>, Prisma.WorkflowEventUncheckedUpdateWithoutExecutionsInput>;
543
+ };
544
+ export type WorkflowEventCreateWithoutTenantInput = {
545
+ id?: string;
546
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
547
+ correlationId?: string | null;
548
+ causationId?: string | null;
549
+ source: string;
550
+ actorId?: string | null;
551
+ actorType?: $Enums.ActorType;
552
+ status?: $Enums.WorkflowEventStatus;
553
+ error?: string | null;
554
+ processedAt?: Date | string | null;
555
+ createdAt?: Date | string;
556
+ eventType: Prisma.EventTypeCreateNestedOneWithoutEventsInput;
557
+ executions?: Prisma.EventHandlerExecutionCreateNestedManyWithoutEventInput;
558
+ };
559
+ export type WorkflowEventUncheckedCreateWithoutTenantInput = {
560
+ id?: string;
561
+ eventTypeId: string;
562
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
563
+ correlationId?: string | null;
564
+ causationId?: string | null;
565
+ source: string;
566
+ actorId?: string | null;
567
+ actorType?: $Enums.ActorType;
568
+ status?: $Enums.WorkflowEventStatus;
569
+ error?: string | null;
570
+ processedAt?: Date | string | null;
571
+ createdAt?: Date | string;
572
+ executions?: Prisma.EventHandlerExecutionUncheckedCreateNestedManyWithoutEventInput;
573
+ };
574
+ export type WorkflowEventCreateOrConnectWithoutTenantInput = {
575
+ where: Prisma.WorkflowEventWhereUniqueInput;
576
+ create: Prisma.XOR<Prisma.WorkflowEventCreateWithoutTenantInput, Prisma.WorkflowEventUncheckedCreateWithoutTenantInput>;
577
+ };
578
+ export type WorkflowEventCreateManyTenantInputEnvelope = {
579
+ data: Prisma.WorkflowEventCreateManyTenantInput | Prisma.WorkflowEventCreateManyTenantInput[];
580
+ skipDuplicates?: boolean;
581
+ };
582
+ export type WorkflowEventUpsertWithWhereUniqueWithoutTenantInput = {
583
+ where: Prisma.WorkflowEventWhereUniqueInput;
584
+ update: Prisma.XOR<Prisma.WorkflowEventUpdateWithoutTenantInput, Prisma.WorkflowEventUncheckedUpdateWithoutTenantInput>;
585
+ create: Prisma.XOR<Prisma.WorkflowEventCreateWithoutTenantInput, Prisma.WorkflowEventUncheckedCreateWithoutTenantInput>;
586
+ };
587
+ export type WorkflowEventUpdateWithWhereUniqueWithoutTenantInput = {
588
+ where: Prisma.WorkflowEventWhereUniqueInput;
589
+ data: Prisma.XOR<Prisma.WorkflowEventUpdateWithoutTenantInput, Prisma.WorkflowEventUncheckedUpdateWithoutTenantInput>;
590
+ };
591
+ export type WorkflowEventUpdateManyWithWhereWithoutTenantInput = {
592
+ where: Prisma.WorkflowEventScalarWhereInput;
593
+ data: Prisma.XOR<Prisma.WorkflowEventUpdateManyMutationInput, Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantInput>;
594
+ };
595
+ export type WorkflowEventScalarWhereInput = {
596
+ AND?: Prisma.WorkflowEventScalarWhereInput | Prisma.WorkflowEventScalarWhereInput[];
597
+ OR?: Prisma.WorkflowEventScalarWhereInput[];
598
+ NOT?: Prisma.WorkflowEventScalarWhereInput | Prisma.WorkflowEventScalarWhereInput[];
599
+ id?: Prisma.StringFilter<"WorkflowEvent"> | string;
600
+ tenantId?: Prisma.StringFilter<"WorkflowEvent"> | string;
601
+ eventTypeId?: Prisma.StringFilter<"WorkflowEvent"> | string;
602
+ payload?: Prisma.JsonFilter<"WorkflowEvent">;
603
+ correlationId?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
604
+ causationId?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
605
+ source?: Prisma.StringFilter<"WorkflowEvent"> | string;
606
+ actorId?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
607
+ actorType?: Prisma.EnumActorTypeFilter<"WorkflowEvent"> | $Enums.ActorType;
608
+ status?: Prisma.EnumWorkflowEventStatusFilter<"WorkflowEvent"> | $Enums.WorkflowEventStatus;
609
+ error?: Prisma.StringNullableFilter<"WorkflowEvent"> | string | null;
610
+ processedAt?: Prisma.DateTimeNullableFilter<"WorkflowEvent"> | Date | string | null;
611
+ createdAt?: Prisma.DateTimeFilter<"WorkflowEvent"> | Date | string;
612
+ };
613
+ export type WorkflowEventCreateWithoutEventTypeInput = {
614
+ id?: string;
615
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
616
+ correlationId?: string | null;
617
+ causationId?: string | null;
618
+ source: string;
619
+ actorId?: string | null;
620
+ actorType?: $Enums.ActorType;
621
+ status?: $Enums.WorkflowEventStatus;
622
+ error?: string | null;
623
+ processedAt?: Date | string | null;
624
+ createdAt?: Date | string;
625
+ tenant: Prisma.TenantCreateNestedOneWithoutWorkflowEventsInput;
626
+ executions?: Prisma.EventHandlerExecutionCreateNestedManyWithoutEventInput;
627
+ };
628
+ export type WorkflowEventUncheckedCreateWithoutEventTypeInput = {
629
+ id?: string;
630
+ tenantId: string;
631
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
632
+ correlationId?: string | null;
633
+ causationId?: string | null;
634
+ source: string;
635
+ actorId?: string | null;
636
+ actorType?: $Enums.ActorType;
637
+ status?: $Enums.WorkflowEventStatus;
638
+ error?: string | null;
639
+ processedAt?: Date | string | null;
640
+ createdAt?: Date | string;
641
+ executions?: Prisma.EventHandlerExecutionUncheckedCreateNestedManyWithoutEventInput;
642
+ };
643
+ export type WorkflowEventCreateOrConnectWithoutEventTypeInput = {
644
+ where: Prisma.WorkflowEventWhereUniqueInput;
645
+ create: Prisma.XOR<Prisma.WorkflowEventCreateWithoutEventTypeInput, Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput>;
646
+ };
647
+ export type WorkflowEventCreateManyEventTypeInputEnvelope = {
648
+ data: Prisma.WorkflowEventCreateManyEventTypeInput | Prisma.WorkflowEventCreateManyEventTypeInput[];
649
+ skipDuplicates?: boolean;
650
+ };
651
+ export type WorkflowEventUpsertWithWhereUniqueWithoutEventTypeInput = {
652
+ where: Prisma.WorkflowEventWhereUniqueInput;
653
+ update: Prisma.XOR<Prisma.WorkflowEventUpdateWithoutEventTypeInput, Prisma.WorkflowEventUncheckedUpdateWithoutEventTypeInput>;
654
+ create: Prisma.XOR<Prisma.WorkflowEventCreateWithoutEventTypeInput, Prisma.WorkflowEventUncheckedCreateWithoutEventTypeInput>;
655
+ };
656
+ export type WorkflowEventUpdateWithWhereUniqueWithoutEventTypeInput = {
657
+ where: Prisma.WorkflowEventWhereUniqueInput;
658
+ data: Prisma.XOR<Prisma.WorkflowEventUpdateWithoutEventTypeInput, Prisma.WorkflowEventUncheckedUpdateWithoutEventTypeInput>;
659
+ };
660
+ export type WorkflowEventUpdateManyWithWhereWithoutEventTypeInput = {
661
+ where: Prisma.WorkflowEventScalarWhereInput;
662
+ data: Prisma.XOR<Prisma.WorkflowEventUpdateManyMutationInput, Prisma.WorkflowEventUncheckedUpdateManyWithoutEventTypeInput>;
663
+ };
664
+ export type WorkflowEventCreateWithoutExecutionsInput = {
665
+ id?: string;
666
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
667
+ correlationId?: string | null;
668
+ causationId?: string | null;
669
+ source: string;
670
+ actorId?: string | null;
671
+ actorType?: $Enums.ActorType;
672
+ status?: $Enums.WorkflowEventStatus;
673
+ error?: string | null;
674
+ processedAt?: Date | string | null;
675
+ createdAt?: Date | string;
676
+ tenant: Prisma.TenantCreateNestedOneWithoutWorkflowEventsInput;
677
+ eventType: Prisma.EventTypeCreateNestedOneWithoutEventsInput;
678
+ };
679
+ export type WorkflowEventUncheckedCreateWithoutExecutionsInput = {
680
+ id?: string;
681
+ tenantId: string;
682
+ eventTypeId: string;
683
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
684
+ correlationId?: string | null;
685
+ causationId?: string | null;
686
+ source: string;
687
+ actorId?: string | null;
688
+ actorType?: $Enums.ActorType;
689
+ status?: $Enums.WorkflowEventStatus;
690
+ error?: string | null;
691
+ processedAt?: Date | string | null;
692
+ createdAt?: Date | string;
693
+ };
694
+ export type WorkflowEventCreateOrConnectWithoutExecutionsInput = {
695
+ where: Prisma.WorkflowEventWhereUniqueInput;
696
+ create: Prisma.XOR<Prisma.WorkflowEventCreateWithoutExecutionsInput, Prisma.WorkflowEventUncheckedCreateWithoutExecutionsInput>;
697
+ };
698
+ export type WorkflowEventUpsertWithoutExecutionsInput = {
699
+ update: Prisma.XOR<Prisma.WorkflowEventUpdateWithoutExecutionsInput, Prisma.WorkflowEventUncheckedUpdateWithoutExecutionsInput>;
700
+ create: Prisma.XOR<Prisma.WorkflowEventCreateWithoutExecutionsInput, Prisma.WorkflowEventUncheckedCreateWithoutExecutionsInput>;
701
+ where?: Prisma.WorkflowEventWhereInput;
702
+ };
703
+ export type WorkflowEventUpdateToOneWithWhereWithoutExecutionsInput = {
704
+ where?: Prisma.WorkflowEventWhereInput;
705
+ data: Prisma.XOR<Prisma.WorkflowEventUpdateWithoutExecutionsInput, Prisma.WorkflowEventUncheckedUpdateWithoutExecutionsInput>;
706
+ };
707
+ export type WorkflowEventUpdateWithoutExecutionsInput = {
708
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
709
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
710
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
711
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
712
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
713
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
714
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
715
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
716
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
717
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
718
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
719
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutWorkflowEventsNestedInput;
720
+ eventType?: Prisma.EventTypeUpdateOneRequiredWithoutEventsNestedInput;
721
+ };
722
+ export type WorkflowEventUncheckedUpdateWithoutExecutionsInput = {
723
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
724
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
725
+ eventTypeId?: Prisma.StringFieldUpdateOperationsInput | string;
726
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
727
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
728
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
729
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
730
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
731
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
732
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
733
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
734
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
735
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
736
+ };
737
+ export type WorkflowEventCreateManyTenantInput = {
738
+ id?: string;
739
+ eventTypeId: string;
740
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
741
+ correlationId?: string | null;
742
+ causationId?: string | null;
743
+ source: string;
744
+ actorId?: string | null;
745
+ actorType?: $Enums.ActorType;
746
+ status?: $Enums.WorkflowEventStatus;
747
+ error?: string | null;
748
+ processedAt?: Date | string | null;
749
+ createdAt?: Date | string;
750
+ };
751
+ export type WorkflowEventUpdateWithoutTenantInput = {
752
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
753
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
754
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
755
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
756
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
757
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
758
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
759
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
760
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
761
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
762
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
763
+ eventType?: Prisma.EventTypeUpdateOneRequiredWithoutEventsNestedInput;
764
+ executions?: Prisma.EventHandlerExecutionUpdateManyWithoutEventNestedInput;
765
+ };
766
+ export type WorkflowEventUncheckedUpdateWithoutTenantInput = {
767
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
768
+ eventTypeId?: Prisma.StringFieldUpdateOperationsInput | string;
769
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
770
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
771
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
772
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
773
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
774
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
775
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
776
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
777
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
778
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
779
+ executions?: Prisma.EventHandlerExecutionUncheckedUpdateManyWithoutEventNestedInput;
780
+ };
781
+ export type WorkflowEventUncheckedUpdateManyWithoutTenantInput = {
782
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
783
+ eventTypeId?: Prisma.StringFieldUpdateOperationsInput | string;
784
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
785
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
786
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
787
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
788
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
789
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
790
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
791
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
792
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
793
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
794
+ };
795
+ export type WorkflowEventCreateManyEventTypeInput = {
796
+ id?: string;
797
+ tenantId: string;
798
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
799
+ correlationId?: string | null;
800
+ causationId?: string | null;
801
+ source: string;
802
+ actorId?: string | null;
803
+ actorType?: $Enums.ActorType;
804
+ status?: $Enums.WorkflowEventStatus;
805
+ error?: string | null;
806
+ processedAt?: Date | string | null;
807
+ createdAt?: Date | string;
808
+ };
809
+ export type WorkflowEventUpdateWithoutEventTypeInput = {
810
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
811
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
812
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
813
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
814
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
815
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
816
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
817
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
818
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
819
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
820
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
821
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutWorkflowEventsNestedInput;
822
+ executions?: Prisma.EventHandlerExecutionUpdateManyWithoutEventNestedInput;
823
+ };
824
+ export type WorkflowEventUncheckedUpdateWithoutEventTypeInput = {
825
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
826
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
827
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
828
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
829
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
830
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
831
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
832
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
833
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
834
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
835
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
836
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
837
+ executions?: Prisma.EventHandlerExecutionUncheckedUpdateManyWithoutEventNestedInput;
838
+ };
839
+ export type WorkflowEventUncheckedUpdateManyWithoutEventTypeInput = {
840
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
841
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
842
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
843
+ correlationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
844
+ causationId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
845
+ source?: Prisma.StringFieldUpdateOperationsInput | string;
846
+ actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
847
+ actorType?: Prisma.EnumActorTypeFieldUpdateOperationsInput | $Enums.ActorType;
848
+ status?: Prisma.EnumWorkflowEventStatusFieldUpdateOperationsInput | $Enums.WorkflowEventStatus;
849
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
850
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
851
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
852
+ };
853
+ /**
854
+ * Count Type WorkflowEventCountOutputType
855
+ */
856
+ export type WorkflowEventCountOutputType = {
857
+ executions: number;
858
+ };
859
+ export type WorkflowEventCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
860
+ executions?: boolean | WorkflowEventCountOutputTypeCountExecutionsArgs;
861
+ };
862
+ /**
863
+ * WorkflowEventCountOutputType without action
864
+ */
865
+ export type WorkflowEventCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
866
+ /**
867
+ * Select specific fields to fetch from the WorkflowEventCountOutputType
868
+ */
869
+ select?: Prisma.WorkflowEventCountOutputTypeSelect<ExtArgs> | null;
870
+ };
871
+ /**
872
+ * WorkflowEventCountOutputType without action
873
+ */
874
+ export type WorkflowEventCountOutputTypeCountExecutionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
875
+ where?: Prisma.EventHandlerExecutionWhereInput;
876
+ };
877
+ export type WorkflowEventSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
878
+ id?: boolean;
879
+ tenantId?: boolean;
880
+ eventTypeId?: boolean;
881
+ payload?: boolean;
882
+ correlationId?: boolean;
883
+ causationId?: boolean;
884
+ source?: boolean;
885
+ actorId?: boolean;
886
+ actorType?: boolean;
887
+ status?: boolean;
888
+ error?: boolean;
889
+ processedAt?: boolean;
890
+ createdAt?: boolean;
891
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
892
+ eventType?: boolean | Prisma.EventTypeDefaultArgs<ExtArgs>;
893
+ executions?: boolean | Prisma.WorkflowEvent$executionsArgs<ExtArgs>;
894
+ _count?: boolean | Prisma.WorkflowEventCountOutputTypeDefaultArgs<ExtArgs>;
895
+ }, ExtArgs["result"]["workflowEvent"]>;
896
+ export type WorkflowEventSelectScalar = {
897
+ id?: boolean;
898
+ tenantId?: boolean;
899
+ eventTypeId?: boolean;
900
+ payload?: boolean;
901
+ correlationId?: boolean;
902
+ causationId?: boolean;
903
+ source?: boolean;
904
+ actorId?: boolean;
905
+ actorType?: boolean;
906
+ status?: boolean;
907
+ error?: boolean;
908
+ processedAt?: boolean;
909
+ createdAt?: boolean;
910
+ };
911
+ export type WorkflowEventOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "eventTypeId" | "payload" | "correlationId" | "causationId" | "source" | "actorId" | "actorType" | "status" | "error" | "processedAt" | "createdAt", ExtArgs["result"]["workflowEvent"]>;
912
+ export type WorkflowEventInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
913
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
914
+ eventType?: boolean | Prisma.EventTypeDefaultArgs<ExtArgs>;
915
+ executions?: boolean | Prisma.WorkflowEvent$executionsArgs<ExtArgs>;
916
+ _count?: boolean | Prisma.WorkflowEventCountOutputTypeDefaultArgs<ExtArgs>;
917
+ };
918
+ export type $WorkflowEventPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
919
+ name: "WorkflowEvent";
920
+ objects: {
921
+ tenant: Prisma.$TenantPayload<ExtArgs>;
922
+ eventType: Prisma.$EventTypePayload<ExtArgs>;
923
+ /**
924
+ * Handler executions for this event
925
+ */
926
+ executions: Prisma.$EventHandlerExecutionPayload<ExtArgs>[];
927
+ };
928
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
929
+ id: string;
930
+ tenantId: string;
931
+ /**
932
+ * The type of this event
933
+ */
934
+ eventTypeId: string;
935
+ /**
936
+ * The event payload (actual data)
937
+ */
938
+ payload: runtime.JsonValue;
939
+ /**
940
+ * Optional correlation ID to link related events
941
+ */
942
+ correlationId: string | null;
943
+ /**
944
+ * Optional causation ID (which event caused this one)
945
+ */
946
+ causationId: string | null;
947
+ /**
948
+ * Source of the event (service name, user action, etc.)
949
+ */
950
+ source: string;
951
+ /**
952
+ * Actor who triggered the event (user ID, API key ID, "system")
953
+ */
954
+ actorId: string | null;
955
+ actorType: $Enums.ActorType;
956
+ /**
957
+ * Event status
958
+ */
959
+ status: $Enums.WorkflowEventStatus;
960
+ /**
961
+ * Error message if processing failed
962
+ */
963
+ error: string | null;
964
+ /**
965
+ * When the event was processed
966
+ */
967
+ processedAt: Date | null;
968
+ createdAt: Date;
969
+ }, ExtArgs["result"]["workflowEvent"]>;
970
+ composites: {};
971
+ };
972
+ export type WorkflowEventGetPayload<S extends boolean | null | undefined | WorkflowEventDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload, S>;
973
+ export type WorkflowEventCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<WorkflowEventFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
974
+ select?: WorkflowEventCountAggregateInputType | true;
975
+ };
976
+ export interface WorkflowEventDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
977
+ [K: symbol]: {
978
+ types: Prisma.TypeMap<ExtArgs>['model']['WorkflowEvent'];
979
+ meta: {
980
+ name: 'WorkflowEvent';
981
+ };
982
+ };
983
+ /**
984
+ * Find zero or one WorkflowEvent that matches the filter.
985
+ * @param {WorkflowEventFindUniqueArgs} args - Arguments to find a WorkflowEvent
986
+ * @example
987
+ * // Get one WorkflowEvent
988
+ * const workflowEvent = await prisma.workflowEvent.findUnique({
989
+ * where: {
990
+ * // ... provide filter here
991
+ * }
992
+ * })
993
+ */
994
+ findUnique<T extends WorkflowEventFindUniqueArgs>(args: Prisma.SelectSubset<T, WorkflowEventFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorkflowEventClient<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
995
+ /**
996
+ * Find one WorkflowEvent that matches the filter or throw an error with `error.code='P2025'`
997
+ * if no matches were found.
998
+ * @param {WorkflowEventFindUniqueOrThrowArgs} args - Arguments to find a WorkflowEvent
999
+ * @example
1000
+ * // Get one WorkflowEvent
1001
+ * const workflowEvent = await prisma.workflowEvent.findUniqueOrThrow({
1002
+ * where: {
1003
+ * // ... provide filter here
1004
+ * }
1005
+ * })
1006
+ */
1007
+ findUniqueOrThrow<T extends WorkflowEventFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorkflowEventFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkflowEventClient<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1008
+ /**
1009
+ * Find the first WorkflowEvent that matches the filter.
1010
+ * Note, that providing `undefined` is treated as the value not being there.
1011
+ * Read more here: https://pris.ly/d/null-undefined
1012
+ * @param {WorkflowEventFindFirstArgs} args - Arguments to find a WorkflowEvent
1013
+ * @example
1014
+ * // Get one WorkflowEvent
1015
+ * const workflowEvent = await prisma.workflowEvent.findFirst({
1016
+ * where: {
1017
+ * // ... provide filter here
1018
+ * }
1019
+ * })
1020
+ */
1021
+ findFirst<T extends WorkflowEventFindFirstArgs>(args?: Prisma.SelectSubset<T, WorkflowEventFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorkflowEventClient<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1022
+ /**
1023
+ * Find the first WorkflowEvent that matches the filter or
1024
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1025
+ * Note, that providing `undefined` is treated as the value not being there.
1026
+ * Read more here: https://pris.ly/d/null-undefined
1027
+ * @param {WorkflowEventFindFirstOrThrowArgs} args - Arguments to find a WorkflowEvent
1028
+ * @example
1029
+ * // Get one WorkflowEvent
1030
+ * const workflowEvent = await prisma.workflowEvent.findFirstOrThrow({
1031
+ * where: {
1032
+ * // ... provide filter here
1033
+ * }
1034
+ * })
1035
+ */
1036
+ findFirstOrThrow<T extends WorkflowEventFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorkflowEventFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkflowEventClient<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1037
+ /**
1038
+ * Find zero or more WorkflowEvents that matches the filter.
1039
+ * Note, that providing `undefined` is treated as the value not being there.
1040
+ * Read more here: https://pris.ly/d/null-undefined
1041
+ * @param {WorkflowEventFindManyArgs} args - Arguments to filter and select certain fields only.
1042
+ * @example
1043
+ * // Get all WorkflowEvents
1044
+ * const workflowEvents = await prisma.workflowEvent.findMany()
1045
+ *
1046
+ * // Get first 10 WorkflowEvents
1047
+ * const workflowEvents = await prisma.workflowEvent.findMany({ take: 10 })
1048
+ *
1049
+ * // Only select the `id`
1050
+ * const workflowEventWithIdOnly = await prisma.workflowEvent.findMany({ select: { id: true } })
1051
+ *
1052
+ */
1053
+ findMany<T extends WorkflowEventFindManyArgs>(args?: Prisma.SelectSubset<T, WorkflowEventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1054
+ /**
1055
+ * Create a WorkflowEvent.
1056
+ * @param {WorkflowEventCreateArgs} args - Arguments to create a WorkflowEvent.
1057
+ * @example
1058
+ * // Create one WorkflowEvent
1059
+ * const WorkflowEvent = await prisma.workflowEvent.create({
1060
+ * data: {
1061
+ * // ... data to create a WorkflowEvent
1062
+ * }
1063
+ * })
1064
+ *
1065
+ */
1066
+ create<T extends WorkflowEventCreateArgs>(args: Prisma.SelectSubset<T, WorkflowEventCreateArgs<ExtArgs>>): Prisma.Prisma__WorkflowEventClient<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1067
+ /**
1068
+ * Create many WorkflowEvents.
1069
+ * @param {WorkflowEventCreateManyArgs} args - Arguments to create many WorkflowEvents.
1070
+ * @example
1071
+ * // Create many WorkflowEvents
1072
+ * const workflowEvent = await prisma.workflowEvent.createMany({
1073
+ * data: [
1074
+ * // ... provide data here
1075
+ * ]
1076
+ * })
1077
+ *
1078
+ */
1079
+ createMany<T extends WorkflowEventCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkflowEventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1080
+ /**
1081
+ * Delete a WorkflowEvent.
1082
+ * @param {WorkflowEventDeleteArgs} args - Arguments to delete one WorkflowEvent.
1083
+ * @example
1084
+ * // Delete one WorkflowEvent
1085
+ * const WorkflowEvent = await prisma.workflowEvent.delete({
1086
+ * where: {
1087
+ * // ... filter to delete one WorkflowEvent
1088
+ * }
1089
+ * })
1090
+ *
1091
+ */
1092
+ delete<T extends WorkflowEventDeleteArgs>(args: Prisma.SelectSubset<T, WorkflowEventDeleteArgs<ExtArgs>>): Prisma.Prisma__WorkflowEventClient<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1093
+ /**
1094
+ * Update one WorkflowEvent.
1095
+ * @param {WorkflowEventUpdateArgs} args - Arguments to update one WorkflowEvent.
1096
+ * @example
1097
+ * // Update one WorkflowEvent
1098
+ * const workflowEvent = await prisma.workflowEvent.update({
1099
+ * where: {
1100
+ * // ... provide filter here
1101
+ * },
1102
+ * data: {
1103
+ * // ... provide data here
1104
+ * }
1105
+ * })
1106
+ *
1107
+ */
1108
+ update<T extends WorkflowEventUpdateArgs>(args: Prisma.SelectSubset<T, WorkflowEventUpdateArgs<ExtArgs>>): Prisma.Prisma__WorkflowEventClient<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1109
+ /**
1110
+ * Delete zero or more WorkflowEvents.
1111
+ * @param {WorkflowEventDeleteManyArgs} args - Arguments to filter WorkflowEvents to delete.
1112
+ * @example
1113
+ * // Delete a few WorkflowEvents
1114
+ * const { count } = await prisma.workflowEvent.deleteMany({
1115
+ * where: {
1116
+ * // ... provide filter here
1117
+ * }
1118
+ * })
1119
+ *
1120
+ */
1121
+ deleteMany<T extends WorkflowEventDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkflowEventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1122
+ /**
1123
+ * Update zero or more WorkflowEvents.
1124
+ * Note, that providing `undefined` is treated as the value not being there.
1125
+ * Read more here: https://pris.ly/d/null-undefined
1126
+ * @param {WorkflowEventUpdateManyArgs} args - Arguments to update one or more rows.
1127
+ * @example
1128
+ * // Update many WorkflowEvents
1129
+ * const workflowEvent = await prisma.workflowEvent.updateMany({
1130
+ * where: {
1131
+ * // ... provide filter here
1132
+ * },
1133
+ * data: {
1134
+ * // ... provide data here
1135
+ * }
1136
+ * })
1137
+ *
1138
+ */
1139
+ updateMany<T extends WorkflowEventUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkflowEventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1140
+ /**
1141
+ * Create or update one WorkflowEvent.
1142
+ * @param {WorkflowEventUpsertArgs} args - Arguments to update or create a WorkflowEvent.
1143
+ * @example
1144
+ * // Update or create a WorkflowEvent
1145
+ * const workflowEvent = await prisma.workflowEvent.upsert({
1146
+ * create: {
1147
+ * // ... data to create a WorkflowEvent
1148
+ * },
1149
+ * update: {
1150
+ * // ... in case it already exists, update
1151
+ * },
1152
+ * where: {
1153
+ * // ... the filter for the WorkflowEvent we want to update
1154
+ * }
1155
+ * })
1156
+ */
1157
+ upsert<T extends WorkflowEventUpsertArgs>(args: Prisma.SelectSubset<T, WorkflowEventUpsertArgs<ExtArgs>>): Prisma.Prisma__WorkflowEventClient<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1158
+ /**
1159
+ * Count the number of WorkflowEvents.
1160
+ * Note, that providing `undefined` is treated as the value not being there.
1161
+ * Read more here: https://pris.ly/d/null-undefined
1162
+ * @param {WorkflowEventCountArgs} args - Arguments to filter WorkflowEvents to count.
1163
+ * @example
1164
+ * // Count the number of WorkflowEvents
1165
+ * const count = await prisma.workflowEvent.count({
1166
+ * where: {
1167
+ * // ... the filter for the WorkflowEvents we want to count
1168
+ * }
1169
+ * })
1170
+ **/
1171
+ count<T extends WorkflowEventCountArgs>(args?: Prisma.Subset<T, WorkflowEventCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], WorkflowEventCountAggregateOutputType> : number>;
1172
+ /**
1173
+ * Allows you to perform aggregations operations on a WorkflowEvent.
1174
+ * Note, that providing `undefined` is treated as the value not being there.
1175
+ * Read more here: https://pris.ly/d/null-undefined
1176
+ * @param {WorkflowEventAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1177
+ * @example
1178
+ * // Ordered by age ascending
1179
+ * // Where email contains prisma.io
1180
+ * // Limited to the 10 users
1181
+ * const aggregations = await prisma.user.aggregate({
1182
+ * _avg: {
1183
+ * age: true,
1184
+ * },
1185
+ * where: {
1186
+ * email: {
1187
+ * contains: "prisma.io",
1188
+ * },
1189
+ * },
1190
+ * orderBy: {
1191
+ * age: "asc",
1192
+ * },
1193
+ * take: 10,
1194
+ * })
1195
+ **/
1196
+ aggregate<T extends WorkflowEventAggregateArgs>(args: Prisma.Subset<T, WorkflowEventAggregateArgs>): Prisma.PrismaPromise<GetWorkflowEventAggregateType<T>>;
1197
+ /**
1198
+ * Group by WorkflowEvent.
1199
+ * Note, that providing `undefined` is treated as the value not being there.
1200
+ * Read more here: https://pris.ly/d/null-undefined
1201
+ * @param {WorkflowEventGroupByArgs} args - Group by arguments.
1202
+ * @example
1203
+ * // Group by city, order by createdAt, get count
1204
+ * const result = await prisma.user.groupBy({
1205
+ * by: ['city', 'createdAt'],
1206
+ * orderBy: {
1207
+ * createdAt: true
1208
+ * },
1209
+ * _count: {
1210
+ * _all: true
1211
+ * },
1212
+ * })
1213
+ *
1214
+ **/
1215
+ groupBy<T extends WorkflowEventGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1216
+ orderBy: WorkflowEventGroupByArgs['orderBy'];
1217
+ } : {
1218
+ orderBy?: WorkflowEventGroupByArgs['orderBy'];
1219
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1220
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1221
+ Error,
1222
+ 'Field ',
1223
+ P,
1224
+ ` in "having" needs to be provided in "by"`
1225
+ ];
1226
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1227
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1228
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1229
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1230
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1231
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1232
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, WorkflowEventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkflowEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1233
+ /**
1234
+ * Fields of the WorkflowEvent model
1235
+ */
1236
+ readonly fields: WorkflowEventFieldRefs;
1237
+ }
1238
+ /**
1239
+ * The delegate class that acts as a "Promise-like" for WorkflowEvent.
1240
+ * Why is this prefixed with `Prisma__`?
1241
+ * Because we want to prevent naming conflicts as mentioned in
1242
+ * https://github.com/prisma/prisma-client-js/issues/707
1243
+ */
1244
+ export interface Prisma__WorkflowEventClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1245
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1246
+ tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1247
+ eventType<T extends Prisma.EventTypeDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventTypeDefaultArgs<ExtArgs>>): Prisma.Prisma__EventTypeClient<runtime.Types.Result.GetResult<Prisma.$EventTypePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1248
+ executions<T extends Prisma.WorkflowEvent$executionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkflowEvent$executionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventHandlerExecutionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1249
+ /**
1250
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1251
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1252
+ * @param onrejected The callback to execute when the Promise is rejected.
1253
+ * @returns A Promise for the completion of which ever callback is executed.
1254
+ */
1255
+ 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>;
1256
+ /**
1257
+ * Attaches a callback for only the rejection of the Promise.
1258
+ * @param onrejected The callback to execute when the Promise is rejected.
1259
+ * @returns A Promise for the completion of the callback.
1260
+ */
1261
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1262
+ /**
1263
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1264
+ * resolved value cannot be modified from the callback.
1265
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1266
+ * @returns A Promise for the completion of the callback.
1267
+ */
1268
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1269
+ }
1270
+ /**
1271
+ * Fields of the WorkflowEvent model
1272
+ */
1273
+ export interface WorkflowEventFieldRefs {
1274
+ readonly id: Prisma.FieldRef<"WorkflowEvent", 'String'>;
1275
+ readonly tenantId: Prisma.FieldRef<"WorkflowEvent", 'String'>;
1276
+ readonly eventTypeId: Prisma.FieldRef<"WorkflowEvent", 'String'>;
1277
+ readonly payload: Prisma.FieldRef<"WorkflowEvent", 'Json'>;
1278
+ readonly correlationId: Prisma.FieldRef<"WorkflowEvent", 'String'>;
1279
+ readonly causationId: Prisma.FieldRef<"WorkflowEvent", 'String'>;
1280
+ readonly source: Prisma.FieldRef<"WorkflowEvent", 'String'>;
1281
+ readonly actorId: Prisma.FieldRef<"WorkflowEvent", 'String'>;
1282
+ readonly actorType: Prisma.FieldRef<"WorkflowEvent", 'ActorType'>;
1283
+ readonly status: Prisma.FieldRef<"WorkflowEvent", 'WorkflowEventStatus'>;
1284
+ readonly error: Prisma.FieldRef<"WorkflowEvent", 'String'>;
1285
+ readonly processedAt: Prisma.FieldRef<"WorkflowEvent", 'DateTime'>;
1286
+ readonly createdAt: Prisma.FieldRef<"WorkflowEvent", 'DateTime'>;
1287
+ }
1288
+ /**
1289
+ * WorkflowEvent findUnique
1290
+ */
1291
+ export type WorkflowEventFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1292
+ /**
1293
+ * Select specific fields to fetch from the WorkflowEvent
1294
+ */
1295
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1296
+ /**
1297
+ * Omit specific fields from the WorkflowEvent
1298
+ */
1299
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1300
+ /**
1301
+ * Choose, which related nodes to fetch as well
1302
+ */
1303
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1304
+ /**
1305
+ * Filter, which WorkflowEvent to fetch.
1306
+ */
1307
+ where: Prisma.WorkflowEventWhereUniqueInput;
1308
+ };
1309
+ /**
1310
+ * WorkflowEvent findUniqueOrThrow
1311
+ */
1312
+ export type WorkflowEventFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1313
+ /**
1314
+ * Select specific fields to fetch from the WorkflowEvent
1315
+ */
1316
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1317
+ /**
1318
+ * Omit specific fields from the WorkflowEvent
1319
+ */
1320
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1321
+ /**
1322
+ * Choose, which related nodes to fetch as well
1323
+ */
1324
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1325
+ /**
1326
+ * Filter, which WorkflowEvent to fetch.
1327
+ */
1328
+ where: Prisma.WorkflowEventWhereUniqueInput;
1329
+ };
1330
+ /**
1331
+ * WorkflowEvent findFirst
1332
+ */
1333
+ export type WorkflowEventFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1334
+ /**
1335
+ * Select specific fields to fetch from the WorkflowEvent
1336
+ */
1337
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1338
+ /**
1339
+ * Omit specific fields from the WorkflowEvent
1340
+ */
1341
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1342
+ /**
1343
+ * Choose, which related nodes to fetch as well
1344
+ */
1345
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1346
+ /**
1347
+ * Filter, which WorkflowEvent to fetch.
1348
+ */
1349
+ where?: Prisma.WorkflowEventWhereInput;
1350
+ /**
1351
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1352
+ *
1353
+ * Determine the order of WorkflowEvents to fetch.
1354
+ */
1355
+ orderBy?: Prisma.WorkflowEventOrderByWithRelationInput | Prisma.WorkflowEventOrderByWithRelationInput[];
1356
+ /**
1357
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1358
+ *
1359
+ * Sets the position for searching for WorkflowEvents.
1360
+ */
1361
+ cursor?: Prisma.WorkflowEventWhereUniqueInput;
1362
+ /**
1363
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1364
+ *
1365
+ * Take `±n` WorkflowEvents from the position of the cursor.
1366
+ */
1367
+ take?: number;
1368
+ /**
1369
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1370
+ *
1371
+ * Skip the first `n` WorkflowEvents.
1372
+ */
1373
+ skip?: number;
1374
+ /**
1375
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1376
+ *
1377
+ * Filter by unique combinations of WorkflowEvents.
1378
+ */
1379
+ distinct?: Prisma.WorkflowEventScalarFieldEnum | Prisma.WorkflowEventScalarFieldEnum[];
1380
+ };
1381
+ /**
1382
+ * WorkflowEvent findFirstOrThrow
1383
+ */
1384
+ export type WorkflowEventFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1385
+ /**
1386
+ * Select specific fields to fetch from the WorkflowEvent
1387
+ */
1388
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1389
+ /**
1390
+ * Omit specific fields from the WorkflowEvent
1391
+ */
1392
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1393
+ /**
1394
+ * Choose, which related nodes to fetch as well
1395
+ */
1396
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1397
+ /**
1398
+ * Filter, which WorkflowEvent to fetch.
1399
+ */
1400
+ where?: Prisma.WorkflowEventWhereInput;
1401
+ /**
1402
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1403
+ *
1404
+ * Determine the order of WorkflowEvents to fetch.
1405
+ */
1406
+ orderBy?: Prisma.WorkflowEventOrderByWithRelationInput | Prisma.WorkflowEventOrderByWithRelationInput[];
1407
+ /**
1408
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1409
+ *
1410
+ * Sets the position for searching for WorkflowEvents.
1411
+ */
1412
+ cursor?: Prisma.WorkflowEventWhereUniqueInput;
1413
+ /**
1414
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1415
+ *
1416
+ * Take `±n` WorkflowEvents from the position of the cursor.
1417
+ */
1418
+ take?: number;
1419
+ /**
1420
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1421
+ *
1422
+ * Skip the first `n` WorkflowEvents.
1423
+ */
1424
+ skip?: number;
1425
+ /**
1426
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1427
+ *
1428
+ * Filter by unique combinations of WorkflowEvents.
1429
+ */
1430
+ distinct?: Prisma.WorkflowEventScalarFieldEnum | Prisma.WorkflowEventScalarFieldEnum[];
1431
+ };
1432
+ /**
1433
+ * WorkflowEvent findMany
1434
+ */
1435
+ export type WorkflowEventFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1436
+ /**
1437
+ * Select specific fields to fetch from the WorkflowEvent
1438
+ */
1439
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1440
+ /**
1441
+ * Omit specific fields from the WorkflowEvent
1442
+ */
1443
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1444
+ /**
1445
+ * Choose, which related nodes to fetch as well
1446
+ */
1447
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1448
+ /**
1449
+ * Filter, which WorkflowEvents to fetch.
1450
+ */
1451
+ where?: Prisma.WorkflowEventWhereInput;
1452
+ /**
1453
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1454
+ *
1455
+ * Determine the order of WorkflowEvents to fetch.
1456
+ */
1457
+ orderBy?: Prisma.WorkflowEventOrderByWithRelationInput | Prisma.WorkflowEventOrderByWithRelationInput[];
1458
+ /**
1459
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1460
+ *
1461
+ * Sets the position for listing WorkflowEvents.
1462
+ */
1463
+ cursor?: Prisma.WorkflowEventWhereUniqueInput;
1464
+ /**
1465
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1466
+ *
1467
+ * Take `±n` WorkflowEvents from the position of the cursor.
1468
+ */
1469
+ take?: number;
1470
+ /**
1471
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1472
+ *
1473
+ * Skip the first `n` WorkflowEvents.
1474
+ */
1475
+ skip?: number;
1476
+ distinct?: Prisma.WorkflowEventScalarFieldEnum | Prisma.WorkflowEventScalarFieldEnum[];
1477
+ };
1478
+ /**
1479
+ * WorkflowEvent create
1480
+ */
1481
+ export type WorkflowEventCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1482
+ /**
1483
+ * Select specific fields to fetch from the WorkflowEvent
1484
+ */
1485
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1486
+ /**
1487
+ * Omit specific fields from the WorkflowEvent
1488
+ */
1489
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1490
+ /**
1491
+ * Choose, which related nodes to fetch as well
1492
+ */
1493
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1494
+ /**
1495
+ * The data needed to create a WorkflowEvent.
1496
+ */
1497
+ data: Prisma.XOR<Prisma.WorkflowEventCreateInput, Prisma.WorkflowEventUncheckedCreateInput>;
1498
+ };
1499
+ /**
1500
+ * WorkflowEvent createMany
1501
+ */
1502
+ export type WorkflowEventCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1503
+ /**
1504
+ * The data used to create many WorkflowEvents.
1505
+ */
1506
+ data: Prisma.WorkflowEventCreateManyInput | Prisma.WorkflowEventCreateManyInput[];
1507
+ skipDuplicates?: boolean;
1508
+ };
1509
+ /**
1510
+ * WorkflowEvent update
1511
+ */
1512
+ export type WorkflowEventUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1513
+ /**
1514
+ * Select specific fields to fetch from the WorkflowEvent
1515
+ */
1516
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1517
+ /**
1518
+ * Omit specific fields from the WorkflowEvent
1519
+ */
1520
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1521
+ /**
1522
+ * Choose, which related nodes to fetch as well
1523
+ */
1524
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1525
+ /**
1526
+ * The data needed to update a WorkflowEvent.
1527
+ */
1528
+ data: Prisma.XOR<Prisma.WorkflowEventUpdateInput, Prisma.WorkflowEventUncheckedUpdateInput>;
1529
+ /**
1530
+ * Choose, which WorkflowEvent to update.
1531
+ */
1532
+ where: Prisma.WorkflowEventWhereUniqueInput;
1533
+ };
1534
+ /**
1535
+ * WorkflowEvent updateMany
1536
+ */
1537
+ export type WorkflowEventUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1538
+ /**
1539
+ * The data used to update WorkflowEvents.
1540
+ */
1541
+ data: Prisma.XOR<Prisma.WorkflowEventUpdateManyMutationInput, Prisma.WorkflowEventUncheckedUpdateManyInput>;
1542
+ /**
1543
+ * Filter which WorkflowEvents to update
1544
+ */
1545
+ where?: Prisma.WorkflowEventWhereInput;
1546
+ /**
1547
+ * Limit how many WorkflowEvents to update.
1548
+ */
1549
+ limit?: number;
1550
+ };
1551
+ /**
1552
+ * WorkflowEvent upsert
1553
+ */
1554
+ export type WorkflowEventUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1555
+ /**
1556
+ * Select specific fields to fetch from the WorkflowEvent
1557
+ */
1558
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1559
+ /**
1560
+ * Omit specific fields from the WorkflowEvent
1561
+ */
1562
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1563
+ /**
1564
+ * Choose, which related nodes to fetch as well
1565
+ */
1566
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1567
+ /**
1568
+ * The filter to search for the WorkflowEvent to update in case it exists.
1569
+ */
1570
+ where: Prisma.WorkflowEventWhereUniqueInput;
1571
+ /**
1572
+ * In case the WorkflowEvent found by the `where` argument doesn't exist, create a new WorkflowEvent with this data.
1573
+ */
1574
+ create: Prisma.XOR<Prisma.WorkflowEventCreateInput, Prisma.WorkflowEventUncheckedCreateInput>;
1575
+ /**
1576
+ * In case the WorkflowEvent was found with the provided `where` argument, update it with this data.
1577
+ */
1578
+ update: Prisma.XOR<Prisma.WorkflowEventUpdateInput, Prisma.WorkflowEventUncheckedUpdateInput>;
1579
+ };
1580
+ /**
1581
+ * WorkflowEvent delete
1582
+ */
1583
+ export type WorkflowEventDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1584
+ /**
1585
+ * Select specific fields to fetch from the WorkflowEvent
1586
+ */
1587
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1588
+ /**
1589
+ * Omit specific fields from the WorkflowEvent
1590
+ */
1591
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1592
+ /**
1593
+ * Choose, which related nodes to fetch as well
1594
+ */
1595
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1596
+ /**
1597
+ * Filter which WorkflowEvent to delete.
1598
+ */
1599
+ where: Prisma.WorkflowEventWhereUniqueInput;
1600
+ };
1601
+ /**
1602
+ * WorkflowEvent deleteMany
1603
+ */
1604
+ export type WorkflowEventDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1605
+ /**
1606
+ * Filter which WorkflowEvents to delete
1607
+ */
1608
+ where?: Prisma.WorkflowEventWhereInput;
1609
+ /**
1610
+ * Limit how many WorkflowEvents to delete.
1611
+ */
1612
+ limit?: number;
1613
+ };
1614
+ /**
1615
+ * WorkflowEvent.executions
1616
+ */
1617
+ export type WorkflowEvent$executionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1618
+ /**
1619
+ * Select specific fields to fetch from the EventHandlerExecution
1620
+ */
1621
+ select?: Prisma.EventHandlerExecutionSelect<ExtArgs> | null;
1622
+ /**
1623
+ * Omit specific fields from the EventHandlerExecution
1624
+ */
1625
+ omit?: Prisma.EventHandlerExecutionOmit<ExtArgs> | null;
1626
+ /**
1627
+ * Choose, which related nodes to fetch as well
1628
+ */
1629
+ include?: Prisma.EventHandlerExecutionInclude<ExtArgs> | null;
1630
+ where?: Prisma.EventHandlerExecutionWhereInput;
1631
+ orderBy?: Prisma.EventHandlerExecutionOrderByWithRelationInput | Prisma.EventHandlerExecutionOrderByWithRelationInput[];
1632
+ cursor?: Prisma.EventHandlerExecutionWhereUniqueInput;
1633
+ take?: number;
1634
+ skip?: number;
1635
+ distinct?: Prisma.EventHandlerExecutionScalarFieldEnum | Prisma.EventHandlerExecutionScalarFieldEnum[];
1636
+ };
1637
+ /**
1638
+ * WorkflowEvent without action
1639
+ */
1640
+ export type WorkflowEventDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1641
+ /**
1642
+ * Select specific fields to fetch from the WorkflowEvent
1643
+ */
1644
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
1645
+ /**
1646
+ * Omit specific fields from the WorkflowEvent
1647
+ */
1648
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
1649
+ /**
1650
+ * Choose, which related nodes to fetch as well
1651
+ */
1652
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
1653
+ };
1654
+ export {};