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