@valentine-efagene/qshelter-common 2.0.65 → 2.0.67
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 +32 -0
- package/dist/generated/client/enums.js +28 -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 +189 -0
- package/dist/src/events/workflow-event.service.js +588 -0
- package/dist/src/events/workflow-types.d.ts +288 -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 +271 -0
|
@@ -0,0 +1,1305 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model EventChannel
|
|
5
|
+
* Event Channel - A logical grouping of events
|
|
6
|
+
* Channels help organize events and route them to appropriate handlers
|
|
7
|
+
*/
|
|
8
|
+
export type EventChannelModel = runtime.Types.Result.DefaultSelection<Prisma.$EventChannelPayload>;
|
|
9
|
+
export type AggregateEventChannel = {
|
|
10
|
+
_count: EventChannelCountAggregateOutputType | null;
|
|
11
|
+
_min: EventChannelMinAggregateOutputType | null;
|
|
12
|
+
_max: EventChannelMaxAggregateOutputType | null;
|
|
13
|
+
};
|
|
14
|
+
export type EventChannelMinAggregateOutputType = {
|
|
15
|
+
id: string | null;
|
|
16
|
+
tenantId: string | null;
|
|
17
|
+
code: string | null;
|
|
18
|
+
name: string | null;
|
|
19
|
+
description: string | null;
|
|
20
|
+
enabled: boolean | null;
|
|
21
|
+
createdAt: Date | null;
|
|
22
|
+
updatedAt: Date | null;
|
|
23
|
+
};
|
|
24
|
+
export type EventChannelMaxAggregateOutputType = {
|
|
25
|
+
id: string | null;
|
|
26
|
+
tenantId: string | null;
|
|
27
|
+
code: string | null;
|
|
28
|
+
name: string | null;
|
|
29
|
+
description: string | null;
|
|
30
|
+
enabled: boolean | null;
|
|
31
|
+
createdAt: Date | null;
|
|
32
|
+
updatedAt: Date | null;
|
|
33
|
+
};
|
|
34
|
+
export type EventChannelCountAggregateOutputType = {
|
|
35
|
+
id: number;
|
|
36
|
+
tenantId: number;
|
|
37
|
+
code: number;
|
|
38
|
+
name: number;
|
|
39
|
+
description: number;
|
|
40
|
+
enabled: number;
|
|
41
|
+
createdAt: number;
|
|
42
|
+
updatedAt: number;
|
|
43
|
+
_all: number;
|
|
44
|
+
};
|
|
45
|
+
export type EventChannelMinAggregateInputType = {
|
|
46
|
+
id?: true;
|
|
47
|
+
tenantId?: true;
|
|
48
|
+
code?: true;
|
|
49
|
+
name?: true;
|
|
50
|
+
description?: true;
|
|
51
|
+
enabled?: true;
|
|
52
|
+
createdAt?: true;
|
|
53
|
+
updatedAt?: true;
|
|
54
|
+
};
|
|
55
|
+
export type EventChannelMaxAggregateInputType = {
|
|
56
|
+
id?: true;
|
|
57
|
+
tenantId?: true;
|
|
58
|
+
code?: true;
|
|
59
|
+
name?: true;
|
|
60
|
+
description?: true;
|
|
61
|
+
enabled?: true;
|
|
62
|
+
createdAt?: true;
|
|
63
|
+
updatedAt?: true;
|
|
64
|
+
};
|
|
65
|
+
export type EventChannelCountAggregateInputType = {
|
|
66
|
+
id?: true;
|
|
67
|
+
tenantId?: true;
|
|
68
|
+
code?: true;
|
|
69
|
+
name?: true;
|
|
70
|
+
description?: true;
|
|
71
|
+
enabled?: true;
|
|
72
|
+
createdAt?: true;
|
|
73
|
+
updatedAt?: true;
|
|
74
|
+
_all?: true;
|
|
75
|
+
};
|
|
76
|
+
export type EventChannelAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
77
|
+
/**
|
|
78
|
+
* Filter which EventChannel to aggregate.
|
|
79
|
+
*/
|
|
80
|
+
where?: Prisma.EventChannelWhereInput;
|
|
81
|
+
/**
|
|
82
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
83
|
+
*
|
|
84
|
+
* Determine the order of EventChannels to fetch.
|
|
85
|
+
*/
|
|
86
|
+
orderBy?: Prisma.EventChannelOrderByWithRelationInput | Prisma.EventChannelOrderByWithRelationInput[];
|
|
87
|
+
/**
|
|
88
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
89
|
+
*
|
|
90
|
+
* Sets the start position
|
|
91
|
+
*/
|
|
92
|
+
cursor?: Prisma.EventChannelWhereUniqueInput;
|
|
93
|
+
/**
|
|
94
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
95
|
+
*
|
|
96
|
+
* Take `±n` EventChannels from the position of the cursor.
|
|
97
|
+
*/
|
|
98
|
+
take?: number;
|
|
99
|
+
/**
|
|
100
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
101
|
+
*
|
|
102
|
+
* Skip the first `n` EventChannels.
|
|
103
|
+
*/
|
|
104
|
+
skip?: number;
|
|
105
|
+
/**
|
|
106
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
107
|
+
*
|
|
108
|
+
* Count returned EventChannels
|
|
109
|
+
**/
|
|
110
|
+
_count?: true | EventChannelCountAggregateInputType;
|
|
111
|
+
/**
|
|
112
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
113
|
+
*
|
|
114
|
+
* Select which fields to find the minimum value
|
|
115
|
+
**/
|
|
116
|
+
_min?: EventChannelMinAggregateInputType;
|
|
117
|
+
/**
|
|
118
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
119
|
+
*
|
|
120
|
+
* Select which fields to find the maximum value
|
|
121
|
+
**/
|
|
122
|
+
_max?: EventChannelMaxAggregateInputType;
|
|
123
|
+
};
|
|
124
|
+
export type GetEventChannelAggregateType<T extends EventChannelAggregateArgs> = {
|
|
125
|
+
[P in keyof T & keyof AggregateEventChannel]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateEventChannel[P]> : Prisma.GetScalarType<T[P], AggregateEventChannel[P]>;
|
|
126
|
+
};
|
|
127
|
+
export type EventChannelGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
128
|
+
where?: Prisma.EventChannelWhereInput;
|
|
129
|
+
orderBy?: Prisma.EventChannelOrderByWithAggregationInput | Prisma.EventChannelOrderByWithAggregationInput[];
|
|
130
|
+
by: Prisma.EventChannelScalarFieldEnum[] | Prisma.EventChannelScalarFieldEnum;
|
|
131
|
+
having?: Prisma.EventChannelScalarWhereWithAggregatesInput;
|
|
132
|
+
take?: number;
|
|
133
|
+
skip?: number;
|
|
134
|
+
_count?: EventChannelCountAggregateInputType | true;
|
|
135
|
+
_min?: EventChannelMinAggregateInputType;
|
|
136
|
+
_max?: EventChannelMaxAggregateInputType;
|
|
137
|
+
};
|
|
138
|
+
export type EventChannelGroupByOutputType = {
|
|
139
|
+
id: string;
|
|
140
|
+
tenantId: string;
|
|
141
|
+
code: string;
|
|
142
|
+
name: string;
|
|
143
|
+
description: string | null;
|
|
144
|
+
enabled: boolean;
|
|
145
|
+
createdAt: Date;
|
|
146
|
+
updatedAt: Date;
|
|
147
|
+
_count: EventChannelCountAggregateOutputType | null;
|
|
148
|
+
_min: EventChannelMinAggregateOutputType | null;
|
|
149
|
+
_max: EventChannelMaxAggregateOutputType | null;
|
|
150
|
+
};
|
|
151
|
+
type GetEventChannelGroupByPayload<T extends EventChannelGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<EventChannelGroupByOutputType, T['by']> & {
|
|
152
|
+
[P in ((keyof T) & (keyof EventChannelGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], EventChannelGroupByOutputType[P]> : Prisma.GetScalarType<T[P], EventChannelGroupByOutputType[P]>;
|
|
153
|
+
}>>;
|
|
154
|
+
export type EventChannelWhereInput = {
|
|
155
|
+
AND?: Prisma.EventChannelWhereInput | Prisma.EventChannelWhereInput[];
|
|
156
|
+
OR?: Prisma.EventChannelWhereInput[];
|
|
157
|
+
NOT?: Prisma.EventChannelWhereInput | Prisma.EventChannelWhereInput[];
|
|
158
|
+
id?: Prisma.StringFilter<"EventChannel"> | string;
|
|
159
|
+
tenantId?: Prisma.StringFilter<"EventChannel"> | string;
|
|
160
|
+
code?: Prisma.StringFilter<"EventChannel"> | string;
|
|
161
|
+
name?: Prisma.StringFilter<"EventChannel"> | string;
|
|
162
|
+
description?: Prisma.StringNullableFilter<"EventChannel"> | string | null;
|
|
163
|
+
enabled?: Prisma.BoolFilter<"EventChannel"> | boolean;
|
|
164
|
+
createdAt?: Prisma.DateTimeFilter<"EventChannel"> | Date | string;
|
|
165
|
+
updatedAt?: Prisma.DateTimeFilter<"EventChannel"> | Date | string;
|
|
166
|
+
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
|
|
167
|
+
eventTypes?: Prisma.EventTypeListRelationFilter;
|
|
168
|
+
};
|
|
169
|
+
export type EventChannelOrderByWithRelationInput = {
|
|
170
|
+
id?: Prisma.SortOrder;
|
|
171
|
+
tenantId?: Prisma.SortOrder;
|
|
172
|
+
code?: Prisma.SortOrder;
|
|
173
|
+
name?: Prisma.SortOrder;
|
|
174
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
175
|
+
enabled?: Prisma.SortOrder;
|
|
176
|
+
createdAt?: Prisma.SortOrder;
|
|
177
|
+
updatedAt?: Prisma.SortOrder;
|
|
178
|
+
tenant?: Prisma.TenantOrderByWithRelationInput;
|
|
179
|
+
eventTypes?: Prisma.EventTypeOrderByRelationAggregateInput;
|
|
180
|
+
_relevance?: Prisma.EventChannelOrderByRelevanceInput;
|
|
181
|
+
};
|
|
182
|
+
export type EventChannelWhereUniqueInput = Prisma.AtLeast<{
|
|
183
|
+
id?: string;
|
|
184
|
+
tenantId_code?: Prisma.EventChannelTenantIdCodeCompoundUniqueInput;
|
|
185
|
+
AND?: Prisma.EventChannelWhereInput | Prisma.EventChannelWhereInput[];
|
|
186
|
+
OR?: Prisma.EventChannelWhereInput[];
|
|
187
|
+
NOT?: Prisma.EventChannelWhereInput | Prisma.EventChannelWhereInput[];
|
|
188
|
+
tenantId?: Prisma.StringFilter<"EventChannel"> | string;
|
|
189
|
+
code?: Prisma.StringFilter<"EventChannel"> | string;
|
|
190
|
+
name?: Prisma.StringFilter<"EventChannel"> | string;
|
|
191
|
+
description?: Prisma.StringNullableFilter<"EventChannel"> | string | null;
|
|
192
|
+
enabled?: Prisma.BoolFilter<"EventChannel"> | boolean;
|
|
193
|
+
createdAt?: Prisma.DateTimeFilter<"EventChannel"> | Date | string;
|
|
194
|
+
updatedAt?: Prisma.DateTimeFilter<"EventChannel"> | Date | string;
|
|
195
|
+
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
|
|
196
|
+
eventTypes?: Prisma.EventTypeListRelationFilter;
|
|
197
|
+
}, "id" | "tenantId_code">;
|
|
198
|
+
export type EventChannelOrderByWithAggregationInput = {
|
|
199
|
+
id?: Prisma.SortOrder;
|
|
200
|
+
tenantId?: Prisma.SortOrder;
|
|
201
|
+
code?: Prisma.SortOrder;
|
|
202
|
+
name?: Prisma.SortOrder;
|
|
203
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
204
|
+
enabled?: Prisma.SortOrder;
|
|
205
|
+
createdAt?: Prisma.SortOrder;
|
|
206
|
+
updatedAt?: Prisma.SortOrder;
|
|
207
|
+
_count?: Prisma.EventChannelCountOrderByAggregateInput;
|
|
208
|
+
_max?: Prisma.EventChannelMaxOrderByAggregateInput;
|
|
209
|
+
_min?: Prisma.EventChannelMinOrderByAggregateInput;
|
|
210
|
+
};
|
|
211
|
+
export type EventChannelScalarWhereWithAggregatesInput = {
|
|
212
|
+
AND?: Prisma.EventChannelScalarWhereWithAggregatesInput | Prisma.EventChannelScalarWhereWithAggregatesInput[];
|
|
213
|
+
OR?: Prisma.EventChannelScalarWhereWithAggregatesInput[];
|
|
214
|
+
NOT?: Prisma.EventChannelScalarWhereWithAggregatesInput | Prisma.EventChannelScalarWhereWithAggregatesInput[];
|
|
215
|
+
id?: Prisma.StringWithAggregatesFilter<"EventChannel"> | string;
|
|
216
|
+
tenantId?: Prisma.StringWithAggregatesFilter<"EventChannel"> | string;
|
|
217
|
+
code?: Prisma.StringWithAggregatesFilter<"EventChannel"> | string;
|
|
218
|
+
name?: Prisma.StringWithAggregatesFilter<"EventChannel"> | string;
|
|
219
|
+
description?: Prisma.StringNullableWithAggregatesFilter<"EventChannel"> | string | null;
|
|
220
|
+
enabled?: Prisma.BoolWithAggregatesFilter<"EventChannel"> | boolean;
|
|
221
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"EventChannel"> | Date | string;
|
|
222
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"EventChannel"> | Date | string;
|
|
223
|
+
};
|
|
224
|
+
export type EventChannelCreateInput = {
|
|
225
|
+
id?: string;
|
|
226
|
+
code: string;
|
|
227
|
+
name: string;
|
|
228
|
+
description?: string | null;
|
|
229
|
+
enabled?: boolean;
|
|
230
|
+
createdAt?: Date | string;
|
|
231
|
+
updatedAt?: Date | string;
|
|
232
|
+
tenant: Prisma.TenantCreateNestedOneWithoutEventChannelsInput;
|
|
233
|
+
eventTypes?: Prisma.EventTypeCreateNestedManyWithoutChannelInput;
|
|
234
|
+
};
|
|
235
|
+
export type EventChannelUncheckedCreateInput = {
|
|
236
|
+
id?: string;
|
|
237
|
+
tenantId: string;
|
|
238
|
+
code: string;
|
|
239
|
+
name: string;
|
|
240
|
+
description?: string | null;
|
|
241
|
+
enabled?: boolean;
|
|
242
|
+
createdAt?: Date | string;
|
|
243
|
+
updatedAt?: Date | string;
|
|
244
|
+
eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutChannelInput;
|
|
245
|
+
};
|
|
246
|
+
export type EventChannelUpdateInput = {
|
|
247
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
248
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
249
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
250
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
251
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
252
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
253
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
254
|
+
tenant?: Prisma.TenantUpdateOneRequiredWithoutEventChannelsNestedInput;
|
|
255
|
+
eventTypes?: Prisma.EventTypeUpdateManyWithoutChannelNestedInput;
|
|
256
|
+
};
|
|
257
|
+
export type EventChannelUncheckedUpdateInput = {
|
|
258
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
259
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
260
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
261
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
262
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
263
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
264
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
265
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
266
|
+
eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutChannelNestedInput;
|
|
267
|
+
};
|
|
268
|
+
export type EventChannelCreateManyInput = {
|
|
269
|
+
id?: string;
|
|
270
|
+
tenantId: string;
|
|
271
|
+
code: string;
|
|
272
|
+
name: string;
|
|
273
|
+
description?: string | null;
|
|
274
|
+
enabled?: boolean;
|
|
275
|
+
createdAt?: Date | string;
|
|
276
|
+
updatedAt?: Date | string;
|
|
277
|
+
};
|
|
278
|
+
export type EventChannelUpdateManyMutationInput = {
|
|
279
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
280
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
281
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
282
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
283
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
284
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
285
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
286
|
+
};
|
|
287
|
+
export type EventChannelUncheckedUpdateManyInput = {
|
|
288
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
289
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
290
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
291
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
292
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
293
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
294
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
295
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
296
|
+
};
|
|
297
|
+
export type EventChannelListRelationFilter = {
|
|
298
|
+
every?: Prisma.EventChannelWhereInput;
|
|
299
|
+
some?: Prisma.EventChannelWhereInput;
|
|
300
|
+
none?: Prisma.EventChannelWhereInput;
|
|
301
|
+
};
|
|
302
|
+
export type EventChannelOrderByRelationAggregateInput = {
|
|
303
|
+
_count?: Prisma.SortOrder;
|
|
304
|
+
};
|
|
305
|
+
export type EventChannelOrderByRelevanceInput = {
|
|
306
|
+
fields: Prisma.EventChannelOrderByRelevanceFieldEnum | Prisma.EventChannelOrderByRelevanceFieldEnum[];
|
|
307
|
+
sort: Prisma.SortOrder;
|
|
308
|
+
search: string;
|
|
309
|
+
};
|
|
310
|
+
export type EventChannelTenantIdCodeCompoundUniqueInput = {
|
|
311
|
+
tenantId: string;
|
|
312
|
+
code: string;
|
|
313
|
+
};
|
|
314
|
+
export type EventChannelCountOrderByAggregateInput = {
|
|
315
|
+
id?: Prisma.SortOrder;
|
|
316
|
+
tenantId?: Prisma.SortOrder;
|
|
317
|
+
code?: Prisma.SortOrder;
|
|
318
|
+
name?: Prisma.SortOrder;
|
|
319
|
+
description?: Prisma.SortOrder;
|
|
320
|
+
enabled?: Prisma.SortOrder;
|
|
321
|
+
createdAt?: Prisma.SortOrder;
|
|
322
|
+
updatedAt?: Prisma.SortOrder;
|
|
323
|
+
};
|
|
324
|
+
export type EventChannelMaxOrderByAggregateInput = {
|
|
325
|
+
id?: Prisma.SortOrder;
|
|
326
|
+
tenantId?: Prisma.SortOrder;
|
|
327
|
+
code?: Prisma.SortOrder;
|
|
328
|
+
name?: Prisma.SortOrder;
|
|
329
|
+
description?: Prisma.SortOrder;
|
|
330
|
+
enabled?: Prisma.SortOrder;
|
|
331
|
+
createdAt?: Prisma.SortOrder;
|
|
332
|
+
updatedAt?: Prisma.SortOrder;
|
|
333
|
+
};
|
|
334
|
+
export type EventChannelMinOrderByAggregateInput = {
|
|
335
|
+
id?: Prisma.SortOrder;
|
|
336
|
+
tenantId?: Prisma.SortOrder;
|
|
337
|
+
code?: Prisma.SortOrder;
|
|
338
|
+
name?: Prisma.SortOrder;
|
|
339
|
+
description?: Prisma.SortOrder;
|
|
340
|
+
enabled?: Prisma.SortOrder;
|
|
341
|
+
createdAt?: Prisma.SortOrder;
|
|
342
|
+
updatedAt?: Prisma.SortOrder;
|
|
343
|
+
};
|
|
344
|
+
export type EventChannelScalarRelationFilter = {
|
|
345
|
+
is?: Prisma.EventChannelWhereInput;
|
|
346
|
+
isNot?: Prisma.EventChannelWhereInput;
|
|
347
|
+
};
|
|
348
|
+
export type EventChannelCreateNestedManyWithoutTenantInput = {
|
|
349
|
+
create?: Prisma.XOR<Prisma.EventChannelCreateWithoutTenantInput, Prisma.EventChannelUncheckedCreateWithoutTenantInput> | Prisma.EventChannelCreateWithoutTenantInput[] | Prisma.EventChannelUncheckedCreateWithoutTenantInput[];
|
|
350
|
+
connectOrCreate?: Prisma.EventChannelCreateOrConnectWithoutTenantInput | Prisma.EventChannelCreateOrConnectWithoutTenantInput[];
|
|
351
|
+
createMany?: Prisma.EventChannelCreateManyTenantInputEnvelope;
|
|
352
|
+
connect?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
353
|
+
};
|
|
354
|
+
export type EventChannelUncheckedCreateNestedManyWithoutTenantInput = {
|
|
355
|
+
create?: Prisma.XOR<Prisma.EventChannelCreateWithoutTenantInput, Prisma.EventChannelUncheckedCreateWithoutTenantInput> | Prisma.EventChannelCreateWithoutTenantInput[] | Prisma.EventChannelUncheckedCreateWithoutTenantInput[];
|
|
356
|
+
connectOrCreate?: Prisma.EventChannelCreateOrConnectWithoutTenantInput | Prisma.EventChannelCreateOrConnectWithoutTenantInput[];
|
|
357
|
+
createMany?: Prisma.EventChannelCreateManyTenantInputEnvelope;
|
|
358
|
+
connect?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
359
|
+
};
|
|
360
|
+
export type EventChannelUpdateManyWithoutTenantNestedInput = {
|
|
361
|
+
create?: Prisma.XOR<Prisma.EventChannelCreateWithoutTenantInput, Prisma.EventChannelUncheckedCreateWithoutTenantInput> | Prisma.EventChannelCreateWithoutTenantInput[] | Prisma.EventChannelUncheckedCreateWithoutTenantInput[];
|
|
362
|
+
connectOrCreate?: Prisma.EventChannelCreateOrConnectWithoutTenantInput | Prisma.EventChannelCreateOrConnectWithoutTenantInput[];
|
|
363
|
+
upsert?: Prisma.EventChannelUpsertWithWhereUniqueWithoutTenantInput | Prisma.EventChannelUpsertWithWhereUniqueWithoutTenantInput[];
|
|
364
|
+
createMany?: Prisma.EventChannelCreateManyTenantInputEnvelope;
|
|
365
|
+
set?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
366
|
+
disconnect?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
367
|
+
delete?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
368
|
+
connect?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
369
|
+
update?: Prisma.EventChannelUpdateWithWhereUniqueWithoutTenantInput | Prisma.EventChannelUpdateWithWhereUniqueWithoutTenantInput[];
|
|
370
|
+
updateMany?: Prisma.EventChannelUpdateManyWithWhereWithoutTenantInput | Prisma.EventChannelUpdateManyWithWhereWithoutTenantInput[];
|
|
371
|
+
deleteMany?: Prisma.EventChannelScalarWhereInput | Prisma.EventChannelScalarWhereInput[];
|
|
372
|
+
};
|
|
373
|
+
export type EventChannelUncheckedUpdateManyWithoutTenantNestedInput = {
|
|
374
|
+
create?: Prisma.XOR<Prisma.EventChannelCreateWithoutTenantInput, Prisma.EventChannelUncheckedCreateWithoutTenantInput> | Prisma.EventChannelCreateWithoutTenantInput[] | Prisma.EventChannelUncheckedCreateWithoutTenantInput[];
|
|
375
|
+
connectOrCreate?: Prisma.EventChannelCreateOrConnectWithoutTenantInput | Prisma.EventChannelCreateOrConnectWithoutTenantInput[];
|
|
376
|
+
upsert?: Prisma.EventChannelUpsertWithWhereUniqueWithoutTenantInput | Prisma.EventChannelUpsertWithWhereUniqueWithoutTenantInput[];
|
|
377
|
+
createMany?: Prisma.EventChannelCreateManyTenantInputEnvelope;
|
|
378
|
+
set?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
379
|
+
disconnect?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
380
|
+
delete?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
381
|
+
connect?: Prisma.EventChannelWhereUniqueInput | Prisma.EventChannelWhereUniqueInput[];
|
|
382
|
+
update?: Prisma.EventChannelUpdateWithWhereUniqueWithoutTenantInput | Prisma.EventChannelUpdateWithWhereUniqueWithoutTenantInput[];
|
|
383
|
+
updateMany?: Prisma.EventChannelUpdateManyWithWhereWithoutTenantInput | Prisma.EventChannelUpdateManyWithWhereWithoutTenantInput[];
|
|
384
|
+
deleteMany?: Prisma.EventChannelScalarWhereInput | Prisma.EventChannelScalarWhereInput[];
|
|
385
|
+
};
|
|
386
|
+
export type EventChannelCreateNestedOneWithoutEventTypesInput = {
|
|
387
|
+
create?: Prisma.XOR<Prisma.EventChannelCreateWithoutEventTypesInput, Prisma.EventChannelUncheckedCreateWithoutEventTypesInput>;
|
|
388
|
+
connectOrCreate?: Prisma.EventChannelCreateOrConnectWithoutEventTypesInput;
|
|
389
|
+
connect?: Prisma.EventChannelWhereUniqueInput;
|
|
390
|
+
};
|
|
391
|
+
export type EventChannelUpdateOneRequiredWithoutEventTypesNestedInput = {
|
|
392
|
+
create?: Prisma.XOR<Prisma.EventChannelCreateWithoutEventTypesInput, Prisma.EventChannelUncheckedCreateWithoutEventTypesInput>;
|
|
393
|
+
connectOrCreate?: Prisma.EventChannelCreateOrConnectWithoutEventTypesInput;
|
|
394
|
+
upsert?: Prisma.EventChannelUpsertWithoutEventTypesInput;
|
|
395
|
+
connect?: Prisma.EventChannelWhereUniqueInput;
|
|
396
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.EventChannelUpdateToOneWithWhereWithoutEventTypesInput, Prisma.EventChannelUpdateWithoutEventTypesInput>, Prisma.EventChannelUncheckedUpdateWithoutEventTypesInput>;
|
|
397
|
+
};
|
|
398
|
+
export type EventChannelCreateWithoutTenantInput = {
|
|
399
|
+
id?: string;
|
|
400
|
+
code: string;
|
|
401
|
+
name: string;
|
|
402
|
+
description?: string | null;
|
|
403
|
+
enabled?: boolean;
|
|
404
|
+
createdAt?: Date | string;
|
|
405
|
+
updatedAt?: Date | string;
|
|
406
|
+
eventTypes?: Prisma.EventTypeCreateNestedManyWithoutChannelInput;
|
|
407
|
+
};
|
|
408
|
+
export type EventChannelUncheckedCreateWithoutTenantInput = {
|
|
409
|
+
id?: string;
|
|
410
|
+
code: string;
|
|
411
|
+
name: string;
|
|
412
|
+
description?: string | null;
|
|
413
|
+
enabled?: boolean;
|
|
414
|
+
createdAt?: Date | string;
|
|
415
|
+
updatedAt?: Date | string;
|
|
416
|
+
eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutChannelInput;
|
|
417
|
+
};
|
|
418
|
+
export type EventChannelCreateOrConnectWithoutTenantInput = {
|
|
419
|
+
where: Prisma.EventChannelWhereUniqueInput;
|
|
420
|
+
create: Prisma.XOR<Prisma.EventChannelCreateWithoutTenantInput, Prisma.EventChannelUncheckedCreateWithoutTenantInput>;
|
|
421
|
+
};
|
|
422
|
+
export type EventChannelCreateManyTenantInputEnvelope = {
|
|
423
|
+
data: Prisma.EventChannelCreateManyTenantInput | Prisma.EventChannelCreateManyTenantInput[];
|
|
424
|
+
skipDuplicates?: boolean;
|
|
425
|
+
};
|
|
426
|
+
export type EventChannelUpsertWithWhereUniqueWithoutTenantInput = {
|
|
427
|
+
where: Prisma.EventChannelWhereUniqueInput;
|
|
428
|
+
update: Prisma.XOR<Prisma.EventChannelUpdateWithoutTenantInput, Prisma.EventChannelUncheckedUpdateWithoutTenantInput>;
|
|
429
|
+
create: Prisma.XOR<Prisma.EventChannelCreateWithoutTenantInput, Prisma.EventChannelUncheckedCreateWithoutTenantInput>;
|
|
430
|
+
};
|
|
431
|
+
export type EventChannelUpdateWithWhereUniqueWithoutTenantInput = {
|
|
432
|
+
where: Prisma.EventChannelWhereUniqueInput;
|
|
433
|
+
data: Prisma.XOR<Prisma.EventChannelUpdateWithoutTenantInput, Prisma.EventChannelUncheckedUpdateWithoutTenantInput>;
|
|
434
|
+
};
|
|
435
|
+
export type EventChannelUpdateManyWithWhereWithoutTenantInput = {
|
|
436
|
+
where: Prisma.EventChannelScalarWhereInput;
|
|
437
|
+
data: Prisma.XOR<Prisma.EventChannelUpdateManyMutationInput, Prisma.EventChannelUncheckedUpdateManyWithoutTenantInput>;
|
|
438
|
+
};
|
|
439
|
+
export type EventChannelScalarWhereInput = {
|
|
440
|
+
AND?: Prisma.EventChannelScalarWhereInput | Prisma.EventChannelScalarWhereInput[];
|
|
441
|
+
OR?: Prisma.EventChannelScalarWhereInput[];
|
|
442
|
+
NOT?: Prisma.EventChannelScalarWhereInput | Prisma.EventChannelScalarWhereInput[];
|
|
443
|
+
id?: Prisma.StringFilter<"EventChannel"> | string;
|
|
444
|
+
tenantId?: Prisma.StringFilter<"EventChannel"> | string;
|
|
445
|
+
code?: Prisma.StringFilter<"EventChannel"> | string;
|
|
446
|
+
name?: Prisma.StringFilter<"EventChannel"> | string;
|
|
447
|
+
description?: Prisma.StringNullableFilter<"EventChannel"> | string | null;
|
|
448
|
+
enabled?: Prisma.BoolFilter<"EventChannel"> | boolean;
|
|
449
|
+
createdAt?: Prisma.DateTimeFilter<"EventChannel"> | Date | string;
|
|
450
|
+
updatedAt?: Prisma.DateTimeFilter<"EventChannel"> | Date | string;
|
|
451
|
+
};
|
|
452
|
+
export type EventChannelCreateWithoutEventTypesInput = {
|
|
453
|
+
id?: string;
|
|
454
|
+
code: string;
|
|
455
|
+
name: string;
|
|
456
|
+
description?: string | null;
|
|
457
|
+
enabled?: boolean;
|
|
458
|
+
createdAt?: Date | string;
|
|
459
|
+
updatedAt?: Date | string;
|
|
460
|
+
tenant: Prisma.TenantCreateNestedOneWithoutEventChannelsInput;
|
|
461
|
+
};
|
|
462
|
+
export type EventChannelUncheckedCreateWithoutEventTypesInput = {
|
|
463
|
+
id?: string;
|
|
464
|
+
tenantId: string;
|
|
465
|
+
code: string;
|
|
466
|
+
name: string;
|
|
467
|
+
description?: string | null;
|
|
468
|
+
enabled?: boolean;
|
|
469
|
+
createdAt?: Date | string;
|
|
470
|
+
updatedAt?: Date | string;
|
|
471
|
+
};
|
|
472
|
+
export type EventChannelCreateOrConnectWithoutEventTypesInput = {
|
|
473
|
+
where: Prisma.EventChannelWhereUniqueInput;
|
|
474
|
+
create: Prisma.XOR<Prisma.EventChannelCreateWithoutEventTypesInput, Prisma.EventChannelUncheckedCreateWithoutEventTypesInput>;
|
|
475
|
+
};
|
|
476
|
+
export type EventChannelUpsertWithoutEventTypesInput = {
|
|
477
|
+
update: Prisma.XOR<Prisma.EventChannelUpdateWithoutEventTypesInput, Prisma.EventChannelUncheckedUpdateWithoutEventTypesInput>;
|
|
478
|
+
create: Prisma.XOR<Prisma.EventChannelCreateWithoutEventTypesInput, Prisma.EventChannelUncheckedCreateWithoutEventTypesInput>;
|
|
479
|
+
where?: Prisma.EventChannelWhereInput;
|
|
480
|
+
};
|
|
481
|
+
export type EventChannelUpdateToOneWithWhereWithoutEventTypesInput = {
|
|
482
|
+
where?: Prisma.EventChannelWhereInput;
|
|
483
|
+
data: Prisma.XOR<Prisma.EventChannelUpdateWithoutEventTypesInput, Prisma.EventChannelUncheckedUpdateWithoutEventTypesInput>;
|
|
484
|
+
};
|
|
485
|
+
export type EventChannelUpdateWithoutEventTypesInput = {
|
|
486
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
487
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
488
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
489
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
490
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
491
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
492
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
493
|
+
tenant?: Prisma.TenantUpdateOneRequiredWithoutEventChannelsNestedInput;
|
|
494
|
+
};
|
|
495
|
+
export type EventChannelUncheckedUpdateWithoutEventTypesInput = {
|
|
496
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
497
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
498
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
499
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
500
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
501
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
502
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
503
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
504
|
+
};
|
|
505
|
+
export type EventChannelCreateManyTenantInput = {
|
|
506
|
+
id?: string;
|
|
507
|
+
code: string;
|
|
508
|
+
name: string;
|
|
509
|
+
description?: string | null;
|
|
510
|
+
enabled?: boolean;
|
|
511
|
+
createdAt?: Date | string;
|
|
512
|
+
updatedAt?: Date | string;
|
|
513
|
+
};
|
|
514
|
+
export type EventChannelUpdateWithoutTenantInput = {
|
|
515
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
516
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
517
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
518
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
519
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
520
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
521
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
522
|
+
eventTypes?: Prisma.EventTypeUpdateManyWithoutChannelNestedInput;
|
|
523
|
+
};
|
|
524
|
+
export type EventChannelUncheckedUpdateWithoutTenantInput = {
|
|
525
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
526
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
527
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
528
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
529
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
530
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
531
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
532
|
+
eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutChannelNestedInput;
|
|
533
|
+
};
|
|
534
|
+
export type EventChannelUncheckedUpdateManyWithoutTenantInput = {
|
|
535
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
536
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
537
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
538
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
539
|
+
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
540
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
541
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* Count Type EventChannelCountOutputType
|
|
545
|
+
*/
|
|
546
|
+
export type EventChannelCountOutputType = {
|
|
547
|
+
eventTypes: number;
|
|
548
|
+
};
|
|
549
|
+
export type EventChannelCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
550
|
+
eventTypes?: boolean | EventChannelCountOutputTypeCountEventTypesArgs;
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* EventChannelCountOutputType without action
|
|
554
|
+
*/
|
|
555
|
+
export type EventChannelCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
556
|
+
/**
|
|
557
|
+
* Select specific fields to fetch from the EventChannelCountOutputType
|
|
558
|
+
*/
|
|
559
|
+
select?: Prisma.EventChannelCountOutputTypeSelect<ExtArgs> | null;
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* EventChannelCountOutputType without action
|
|
563
|
+
*/
|
|
564
|
+
export type EventChannelCountOutputTypeCountEventTypesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
565
|
+
where?: Prisma.EventTypeWhereInput;
|
|
566
|
+
};
|
|
567
|
+
export type EventChannelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
568
|
+
id?: boolean;
|
|
569
|
+
tenantId?: boolean;
|
|
570
|
+
code?: boolean;
|
|
571
|
+
name?: boolean;
|
|
572
|
+
description?: boolean;
|
|
573
|
+
enabled?: boolean;
|
|
574
|
+
createdAt?: boolean;
|
|
575
|
+
updatedAt?: boolean;
|
|
576
|
+
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
|
|
577
|
+
eventTypes?: boolean | Prisma.EventChannel$eventTypesArgs<ExtArgs>;
|
|
578
|
+
_count?: boolean | Prisma.EventChannelCountOutputTypeDefaultArgs<ExtArgs>;
|
|
579
|
+
}, ExtArgs["result"]["eventChannel"]>;
|
|
580
|
+
export type EventChannelSelectScalar = {
|
|
581
|
+
id?: boolean;
|
|
582
|
+
tenantId?: boolean;
|
|
583
|
+
code?: boolean;
|
|
584
|
+
name?: boolean;
|
|
585
|
+
description?: boolean;
|
|
586
|
+
enabled?: boolean;
|
|
587
|
+
createdAt?: boolean;
|
|
588
|
+
updatedAt?: boolean;
|
|
589
|
+
};
|
|
590
|
+
export type EventChannelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "code" | "name" | "description" | "enabled" | "createdAt" | "updatedAt", ExtArgs["result"]["eventChannel"]>;
|
|
591
|
+
export type EventChannelInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
592
|
+
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
|
|
593
|
+
eventTypes?: boolean | Prisma.EventChannel$eventTypesArgs<ExtArgs>;
|
|
594
|
+
_count?: boolean | Prisma.EventChannelCountOutputTypeDefaultArgs<ExtArgs>;
|
|
595
|
+
};
|
|
596
|
+
export type $EventChannelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
597
|
+
name: "EventChannel";
|
|
598
|
+
objects: {
|
|
599
|
+
tenant: Prisma.$TenantPayload<ExtArgs>;
|
|
600
|
+
/**
|
|
601
|
+
* Event types that belong to this channel
|
|
602
|
+
*/
|
|
603
|
+
eventTypes: Prisma.$EventTypePayload<ExtArgs>[];
|
|
604
|
+
};
|
|
605
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
606
|
+
id: string;
|
|
607
|
+
tenantId: string;
|
|
608
|
+
/**
|
|
609
|
+
* Unique code for the channel (e.g., "CONTRACTS", "PAYMENTS")
|
|
610
|
+
*/
|
|
611
|
+
code: string;
|
|
612
|
+
/**
|
|
613
|
+
* Human-readable name
|
|
614
|
+
*/
|
|
615
|
+
name: string;
|
|
616
|
+
/**
|
|
617
|
+
* Description of what this channel handles
|
|
618
|
+
*/
|
|
619
|
+
description: string | null;
|
|
620
|
+
/**
|
|
621
|
+
* Whether this channel is active
|
|
622
|
+
*/
|
|
623
|
+
enabled: boolean;
|
|
624
|
+
createdAt: Date;
|
|
625
|
+
updatedAt: Date;
|
|
626
|
+
}, ExtArgs["result"]["eventChannel"]>;
|
|
627
|
+
composites: {};
|
|
628
|
+
};
|
|
629
|
+
export type EventChannelGetPayload<S extends boolean | null | undefined | EventChannelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EventChannelPayload, S>;
|
|
630
|
+
export type EventChannelCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<EventChannelFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
631
|
+
select?: EventChannelCountAggregateInputType | true;
|
|
632
|
+
};
|
|
633
|
+
export interface EventChannelDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
634
|
+
[K: symbol]: {
|
|
635
|
+
types: Prisma.TypeMap<ExtArgs>['model']['EventChannel'];
|
|
636
|
+
meta: {
|
|
637
|
+
name: 'EventChannel';
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
/**
|
|
641
|
+
* Find zero or one EventChannel that matches the filter.
|
|
642
|
+
* @param {EventChannelFindUniqueArgs} args - Arguments to find a EventChannel
|
|
643
|
+
* @example
|
|
644
|
+
* // Get one EventChannel
|
|
645
|
+
* const eventChannel = await prisma.eventChannel.findUnique({
|
|
646
|
+
* where: {
|
|
647
|
+
* // ... provide filter here
|
|
648
|
+
* }
|
|
649
|
+
* })
|
|
650
|
+
*/
|
|
651
|
+
findUnique<T extends EventChannelFindUniqueArgs>(args: Prisma.SelectSubset<T, EventChannelFindUniqueArgs<ExtArgs>>): Prisma.Prisma__EventChannelClient<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
652
|
+
/**
|
|
653
|
+
* Find one EventChannel that matches the filter or throw an error with `error.code='P2025'`
|
|
654
|
+
* if no matches were found.
|
|
655
|
+
* @param {EventChannelFindUniqueOrThrowArgs} args - Arguments to find a EventChannel
|
|
656
|
+
* @example
|
|
657
|
+
* // Get one EventChannel
|
|
658
|
+
* const eventChannel = await prisma.eventChannel.findUniqueOrThrow({
|
|
659
|
+
* where: {
|
|
660
|
+
* // ... provide filter here
|
|
661
|
+
* }
|
|
662
|
+
* })
|
|
663
|
+
*/
|
|
664
|
+
findUniqueOrThrow<T extends EventChannelFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, EventChannelFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__EventChannelClient<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
665
|
+
/**
|
|
666
|
+
* Find the first EventChannel that matches the filter.
|
|
667
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
668
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
669
|
+
* @param {EventChannelFindFirstArgs} args - Arguments to find a EventChannel
|
|
670
|
+
* @example
|
|
671
|
+
* // Get one EventChannel
|
|
672
|
+
* const eventChannel = await prisma.eventChannel.findFirst({
|
|
673
|
+
* where: {
|
|
674
|
+
* // ... provide filter here
|
|
675
|
+
* }
|
|
676
|
+
* })
|
|
677
|
+
*/
|
|
678
|
+
findFirst<T extends EventChannelFindFirstArgs>(args?: Prisma.SelectSubset<T, EventChannelFindFirstArgs<ExtArgs>>): Prisma.Prisma__EventChannelClient<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
679
|
+
/**
|
|
680
|
+
* Find the first EventChannel that matches the filter or
|
|
681
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
682
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
683
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
684
|
+
* @param {EventChannelFindFirstOrThrowArgs} args - Arguments to find a EventChannel
|
|
685
|
+
* @example
|
|
686
|
+
* // Get one EventChannel
|
|
687
|
+
* const eventChannel = await prisma.eventChannel.findFirstOrThrow({
|
|
688
|
+
* where: {
|
|
689
|
+
* // ... provide filter here
|
|
690
|
+
* }
|
|
691
|
+
* })
|
|
692
|
+
*/
|
|
693
|
+
findFirstOrThrow<T extends EventChannelFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, EventChannelFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__EventChannelClient<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
694
|
+
/**
|
|
695
|
+
* Find zero or more EventChannels that matches the filter.
|
|
696
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
697
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
698
|
+
* @param {EventChannelFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
699
|
+
* @example
|
|
700
|
+
* // Get all EventChannels
|
|
701
|
+
* const eventChannels = await prisma.eventChannel.findMany()
|
|
702
|
+
*
|
|
703
|
+
* // Get first 10 EventChannels
|
|
704
|
+
* const eventChannels = await prisma.eventChannel.findMany({ take: 10 })
|
|
705
|
+
*
|
|
706
|
+
* // Only select the `id`
|
|
707
|
+
* const eventChannelWithIdOnly = await prisma.eventChannel.findMany({ select: { id: true } })
|
|
708
|
+
*
|
|
709
|
+
*/
|
|
710
|
+
findMany<T extends EventChannelFindManyArgs>(args?: Prisma.SelectSubset<T, EventChannelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
711
|
+
/**
|
|
712
|
+
* Create a EventChannel.
|
|
713
|
+
* @param {EventChannelCreateArgs} args - Arguments to create a EventChannel.
|
|
714
|
+
* @example
|
|
715
|
+
* // Create one EventChannel
|
|
716
|
+
* const EventChannel = await prisma.eventChannel.create({
|
|
717
|
+
* data: {
|
|
718
|
+
* // ... data to create a EventChannel
|
|
719
|
+
* }
|
|
720
|
+
* })
|
|
721
|
+
*
|
|
722
|
+
*/
|
|
723
|
+
create<T extends EventChannelCreateArgs>(args: Prisma.SelectSubset<T, EventChannelCreateArgs<ExtArgs>>): Prisma.Prisma__EventChannelClient<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
724
|
+
/**
|
|
725
|
+
* Create many EventChannels.
|
|
726
|
+
* @param {EventChannelCreateManyArgs} args - Arguments to create many EventChannels.
|
|
727
|
+
* @example
|
|
728
|
+
* // Create many EventChannels
|
|
729
|
+
* const eventChannel = await prisma.eventChannel.createMany({
|
|
730
|
+
* data: [
|
|
731
|
+
* // ... provide data here
|
|
732
|
+
* ]
|
|
733
|
+
* })
|
|
734
|
+
*
|
|
735
|
+
*/
|
|
736
|
+
createMany<T extends EventChannelCreateManyArgs>(args?: Prisma.SelectSubset<T, EventChannelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
737
|
+
/**
|
|
738
|
+
* Delete a EventChannel.
|
|
739
|
+
* @param {EventChannelDeleteArgs} args - Arguments to delete one EventChannel.
|
|
740
|
+
* @example
|
|
741
|
+
* // Delete one EventChannel
|
|
742
|
+
* const EventChannel = await prisma.eventChannel.delete({
|
|
743
|
+
* where: {
|
|
744
|
+
* // ... filter to delete one EventChannel
|
|
745
|
+
* }
|
|
746
|
+
* })
|
|
747
|
+
*
|
|
748
|
+
*/
|
|
749
|
+
delete<T extends EventChannelDeleteArgs>(args: Prisma.SelectSubset<T, EventChannelDeleteArgs<ExtArgs>>): Prisma.Prisma__EventChannelClient<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
750
|
+
/**
|
|
751
|
+
* Update one EventChannel.
|
|
752
|
+
* @param {EventChannelUpdateArgs} args - Arguments to update one EventChannel.
|
|
753
|
+
* @example
|
|
754
|
+
* // Update one EventChannel
|
|
755
|
+
* const eventChannel = await prisma.eventChannel.update({
|
|
756
|
+
* where: {
|
|
757
|
+
* // ... provide filter here
|
|
758
|
+
* },
|
|
759
|
+
* data: {
|
|
760
|
+
* // ... provide data here
|
|
761
|
+
* }
|
|
762
|
+
* })
|
|
763
|
+
*
|
|
764
|
+
*/
|
|
765
|
+
update<T extends EventChannelUpdateArgs>(args: Prisma.SelectSubset<T, EventChannelUpdateArgs<ExtArgs>>): Prisma.Prisma__EventChannelClient<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
766
|
+
/**
|
|
767
|
+
* Delete zero or more EventChannels.
|
|
768
|
+
* @param {EventChannelDeleteManyArgs} args - Arguments to filter EventChannels to delete.
|
|
769
|
+
* @example
|
|
770
|
+
* // Delete a few EventChannels
|
|
771
|
+
* const { count } = await prisma.eventChannel.deleteMany({
|
|
772
|
+
* where: {
|
|
773
|
+
* // ... provide filter here
|
|
774
|
+
* }
|
|
775
|
+
* })
|
|
776
|
+
*
|
|
777
|
+
*/
|
|
778
|
+
deleteMany<T extends EventChannelDeleteManyArgs>(args?: Prisma.SelectSubset<T, EventChannelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
779
|
+
/**
|
|
780
|
+
* Update zero or more EventChannels.
|
|
781
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
782
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
783
|
+
* @param {EventChannelUpdateManyArgs} args - Arguments to update one or more rows.
|
|
784
|
+
* @example
|
|
785
|
+
* // Update many EventChannels
|
|
786
|
+
* const eventChannel = await prisma.eventChannel.updateMany({
|
|
787
|
+
* where: {
|
|
788
|
+
* // ... provide filter here
|
|
789
|
+
* },
|
|
790
|
+
* data: {
|
|
791
|
+
* // ... provide data here
|
|
792
|
+
* }
|
|
793
|
+
* })
|
|
794
|
+
*
|
|
795
|
+
*/
|
|
796
|
+
updateMany<T extends EventChannelUpdateManyArgs>(args: Prisma.SelectSubset<T, EventChannelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
797
|
+
/**
|
|
798
|
+
* Create or update one EventChannel.
|
|
799
|
+
* @param {EventChannelUpsertArgs} args - Arguments to update or create a EventChannel.
|
|
800
|
+
* @example
|
|
801
|
+
* // Update or create a EventChannel
|
|
802
|
+
* const eventChannel = await prisma.eventChannel.upsert({
|
|
803
|
+
* create: {
|
|
804
|
+
* // ... data to create a EventChannel
|
|
805
|
+
* },
|
|
806
|
+
* update: {
|
|
807
|
+
* // ... in case it already exists, update
|
|
808
|
+
* },
|
|
809
|
+
* where: {
|
|
810
|
+
* // ... the filter for the EventChannel we want to update
|
|
811
|
+
* }
|
|
812
|
+
* })
|
|
813
|
+
*/
|
|
814
|
+
upsert<T extends EventChannelUpsertArgs>(args: Prisma.SelectSubset<T, EventChannelUpsertArgs<ExtArgs>>): Prisma.Prisma__EventChannelClient<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
815
|
+
/**
|
|
816
|
+
* Count the number of EventChannels.
|
|
817
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
818
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
819
|
+
* @param {EventChannelCountArgs} args - Arguments to filter EventChannels to count.
|
|
820
|
+
* @example
|
|
821
|
+
* // Count the number of EventChannels
|
|
822
|
+
* const count = await prisma.eventChannel.count({
|
|
823
|
+
* where: {
|
|
824
|
+
* // ... the filter for the EventChannels we want to count
|
|
825
|
+
* }
|
|
826
|
+
* })
|
|
827
|
+
**/
|
|
828
|
+
count<T extends EventChannelCountArgs>(args?: Prisma.Subset<T, EventChannelCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], EventChannelCountAggregateOutputType> : number>;
|
|
829
|
+
/**
|
|
830
|
+
* Allows you to perform aggregations operations on a EventChannel.
|
|
831
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
832
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
833
|
+
* @param {EventChannelAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
834
|
+
* @example
|
|
835
|
+
* // Ordered by age ascending
|
|
836
|
+
* // Where email contains prisma.io
|
|
837
|
+
* // Limited to the 10 users
|
|
838
|
+
* const aggregations = await prisma.user.aggregate({
|
|
839
|
+
* _avg: {
|
|
840
|
+
* age: true,
|
|
841
|
+
* },
|
|
842
|
+
* where: {
|
|
843
|
+
* email: {
|
|
844
|
+
* contains: "prisma.io",
|
|
845
|
+
* },
|
|
846
|
+
* },
|
|
847
|
+
* orderBy: {
|
|
848
|
+
* age: "asc",
|
|
849
|
+
* },
|
|
850
|
+
* take: 10,
|
|
851
|
+
* })
|
|
852
|
+
**/
|
|
853
|
+
aggregate<T extends EventChannelAggregateArgs>(args: Prisma.Subset<T, EventChannelAggregateArgs>): Prisma.PrismaPromise<GetEventChannelAggregateType<T>>;
|
|
854
|
+
/**
|
|
855
|
+
* Group by EventChannel.
|
|
856
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
857
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
858
|
+
* @param {EventChannelGroupByArgs} args - Group by arguments.
|
|
859
|
+
* @example
|
|
860
|
+
* // Group by city, order by createdAt, get count
|
|
861
|
+
* const result = await prisma.user.groupBy({
|
|
862
|
+
* by: ['city', 'createdAt'],
|
|
863
|
+
* orderBy: {
|
|
864
|
+
* createdAt: true
|
|
865
|
+
* },
|
|
866
|
+
* _count: {
|
|
867
|
+
* _all: true
|
|
868
|
+
* },
|
|
869
|
+
* })
|
|
870
|
+
*
|
|
871
|
+
**/
|
|
872
|
+
groupBy<T extends EventChannelGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
873
|
+
orderBy: EventChannelGroupByArgs['orderBy'];
|
|
874
|
+
} : {
|
|
875
|
+
orderBy?: EventChannelGroupByArgs['orderBy'];
|
|
876
|
+
}, 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 ? {
|
|
877
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
878
|
+
Error,
|
|
879
|
+
'Field ',
|
|
880
|
+
P,
|
|
881
|
+
` in "having" needs to be provided in "by"`
|
|
882
|
+
];
|
|
883
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
884
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
885
|
+
}[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 ? {} : {
|
|
886
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
887
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
888
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
889
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, EventChannelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEventChannelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
890
|
+
/**
|
|
891
|
+
* Fields of the EventChannel model
|
|
892
|
+
*/
|
|
893
|
+
readonly fields: EventChannelFieldRefs;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* The delegate class that acts as a "Promise-like" for EventChannel.
|
|
897
|
+
* Why is this prefixed with `Prisma__`?
|
|
898
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
899
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
900
|
+
*/
|
|
901
|
+
export interface Prisma__EventChannelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
902
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
903
|
+
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>;
|
|
904
|
+
eventTypes<T extends Prisma.EventChannel$eventTypesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventChannel$eventTypesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventTypePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
905
|
+
/**
|
|
906
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
907
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
908
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
909
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
910
|
+
*/
|
|
911
|
+
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>;
|
|
912
|
+
/**
|
|
913
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
914
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
915
|
+
* @returns A Promise for the completion of the callback.
|
|
916
|
+
*/
|
|
917
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
918
|
+
/**
|
|
919
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
920
|
+
* resolved value cannot be modified from the callback.
|
|
921
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
922
|
+
* @returns A Promise for the completion of the callback.
|
|
923
|
+
*/
|
|
924
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Fields of the EventChannel model
|
|
928
|
+
*/
|
|
929
|
+
export interface EventChannelFieldRefs {
|
|
930
|
+
readonly id: Prisma.FieldRef<"EventChannel", 'String'>;
|
|
931
|
+
readonly tenantId: Prisma.FieldRef<"EventChannel", 'String'>;
|
|
932
|
+
readonly code: Prisma.FieldRef<"EventChannel", 'String'>;
|
|
933
|
+
readonly name: Prisma.FieldRef<"EventChannel", 'String'>;
|
|
934
|
+
readonly description: Prisma.FieldRef<"EventChannel", 'String'>;
|
|
935
|
+
readonly enabled: Prisma.FieldRef<"EventChannel", 'Boolean'>;
|
|
936
|
+
readonly createdAt: Prisma.FieldRef<"EventChannel", 'DateTime'>;
|
|
937
|
+
readonly updatedAt: Prisma.FieldRef<"EventChannel", 'DateTime'>;
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* EventChannel findUnique
|
|
941
|
+
*/
|
|
942
|
+
export type EventChannelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
943
|
+
/**
|
|
944
|
+
* Select specific fields to fetch from the EventChannel
|
|
945
|
+
*/
|
|
946
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
947
|
+
/**
|
|
948
|
+
* Omit specific fields from the EventChannel
|
|
949
|
+
*/
|
|
950
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
951
|
+
/**
|
|
952
|
+
* Choose, which related nodes to fetch as well
|
|
953
|
+
*/
|
|
954
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
955
|
+
/**
|
|
956
|
+
* Filter, which EventChannel to fetch.
|
|
957
|
+
*/
|
|
958
|
+
where: Prisma.EventChannelWhereUniqueInput;
|
|
959
|
+
};
|
|
960
|
+
/**
|
|
961
|
+
* EventChannel findUniqueOrThrow
|
|
962
|
+
*/
|
|
963
|
+
export type EventChannelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
964
|
+
/**
|
|
965
|
+
* Select specific fields to fetch from the EventChannel
|
|
966
|
+
*/
|
|
967
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
968
|
+
/**
|
|
969
|
+
* Omit specific fields from the EventChannel
|
|
970
|
+
*/
|
|
971
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
972
|
+
/**
|
|
973
|
+
* Choose, which related nodes to fetch as well
|
|
974
|
+
*/
|
|
975
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
976
|
+
/**
|
|
977
|
+
* Filter, which EventChannel to fetch.
|
|
978
|
+
*/
|
|
979
|
+
where: Prisma.EventChannelWhereUniqueInput;
|
|
980
|
+
};
|
|
981
|
+
/**
|
|
982
|
+
* EventChannel findFirst
|
|
983
|
+
*/
|
|
984
|
+
export type EventChannelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
985
|
+
/**
|
|
986
|
+
* Select specific fields to fetch from the EventChannel
|
|
987
|
+
*/
|
|
988
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
989
|
+
/**
|
|
990
|
+
* Omit specific fields from the EventChannel
|
|
991
|
+
*/
|
|
992
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
993
|
+
/**
|
|
994
|
+
* Choose, which related nodes to fetch as well
|
|
995
|
+
*/
|
|
996
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
997
|
+
/**
|
|
998
|
+
* Filter, which EventChannel to fetch.
|
|
999
|
+
*/
|
|
1000
|
+
where?: Prisma.EventChannelWhereInput;
|
|
1001
|
+
/**
|
|
1002
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1003
|
+
*
|
|
1004
|
+
* Determine the order of EventChannels to fetch.
|
|
1005
|
+
*/
|
|
1006
|
+
orderBy?: Prisma.EventChannelOrderByWithRelationInput | Prisma.EventChannelOrderByWithRelationInput[];
|
|
1007
|
+
/**
|
|
1008
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1009
|
+
*
|
|
1010
|
+
* Sets the position for searching for EventChannels.
|
|
1011
|
+
*/
|
|
1012
|
+
cursor?: Prisma.EventChannelWhereUniqueInput;
|
|
1013
|
+
/**
|
|
1014
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1015
|
+
*
|
|
1016
|
+
* Take `±n` EventChannels from the position of the cursor.
|
|
1017
|
+
*/
|
|
1018
|
+
take?: number;
|
|
1019
|
+
/**
|
|
1020
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1021
|
+
*
|
|
1022
|
+
* Skip the first `n` EventChannels.
|
|
1023
|
+
*/
|
|
1024
|
+
skip?: number;
|
|
1025
|
+
/**
|
|
1026
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1027
|
+
*
|
|
1028
|
+
* Filter by unique combinations of EventChannels.
|
|
1029
|
+
*/
|
|
1030
|
+
distinct?: Prisma.EventChannelScalarFieldEnum | Prisma.EventChannelScalarFieldEnum[];
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* EventChannel findFirstOrThrow
|
|
1034
|
+
*/
|
|
1035
|
+
export type EventChannelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1036
|
+
/**
|
|
1037
|
+
* Select specific fields to fetch from the EventChannel
|
|
1038
|
+
*/
|
|
1039
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
1040
|
+
/**
|
|
1041
|
+
* Omit specific fields from the EventChannel
|
|
1042
|
+
*/
|
|
1043
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
1044
|
+
/**
|
|
1045
|
+
* Choose, which related nodes to fetch as well
|
|
1046
|
+
*/
|
|
1047
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
1048
|
+
/**
|
|
1049
|
+
* Filter, which EventChannel to fetch.
|
|
1050
|
+
*/
|
|
1051
|
+
where?: Prisma.EventChannelWhereInput;
|
|
1052
|
+
/**
|
|
1053
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1054
|
+
*
|
|
1055
|
+
* Determine the order of EventChannels to fetch.
|
|
1056
|
+
*/
|
|
1057
|
+
orderBy?: Prisma.EventChannelOrderByWithRelationInput | Prisma.EventChannelOrderByWithRelationInput[];
|
|
1058
|
+
/**
|
|
1059
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1060
|
+
*
|
|
1061
|
+
* Sets the position for searching for EventChannels.
|
|
1062
|
+
*/
|
|
1063
|
+
cursor?: Prisma.EventChannelWhereUniqueInput;
|
|
1064
|
+
/**
|
|
1065
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1066
|
+
*
|
|
1067
|
+
* Take `±n` EventChannels from the position of the cursor.
|
|
1068
|
+
*/
|
|
1069
|
+
take?: number;
|
|
1070
|
+
/**
|
|
1071
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1072
|
+
*
|
|
1073
|
+
* Skip the first `n` EventChannels.
|
|
1074
|
+
*/
|
|
1075
|
+
skip?: number;
|
|
1076
|
+
/**
|
|
1077
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1078
|
+
*
|
|
1079
|
+
* Filter by unique combinations of EventChannels.
|
|
1080
|
+
*/
|
|
1081
|
+
distinct?: Prisma.EventChannelScalarFieldEnum | Prisma.EventChannelScalarFieldEnum[];
|
|
1082
|
+
};
|
|
1083
|
+
/**
|
|
1084
|
+
* EventChannel findMany
|
|
1085
|
+
*/
|
|
1086
|
+
export type EventChannelFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1087
|
+
/**
|
|
1088
|
+
* Select specific fields to fetch from the EventChannel
|
|
1089
|
+
*/
|
|
1090
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
1091
|
+
/**
|
|
1092
|
+
* Omit specific fields from the EventChannel
|
|
1093
|
+
*/
|
|
1094
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
1095
|
+
/**
|
|
1096
|
+
* Choose, which related nodes to fetch as well
|
|
1097
|
+
*/
|
|
1098
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
1099
|
+
/**
|
|
1100
|
+
* Filter, which EventChannels to fetch.
|
|
1101
|
+
*/
|
|
1102
|
+
where?: Prisma.EventChannelWhereInput;
|
|
1103
|
+
/**
|
|
1104
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1105
|
+
*
|
|
1106
|
+
* Determine the order of EventChannels to fetch.
|
|
1107
|
+
*/
|
|
1108
|
+
orderBy?: Prisma.EventChannelOrderByWithRelationInput | Prisma.EventChannelOrderByWithRelationInput[];
|
|
1109
|
+
/**
|
|
1110
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1111
|
+
*
|
|
1112
|
+
* Sets the position for listing EventChannels.
|
|
1113
|
+
*/
|
|
1114
|
+
cursor?: Prisma.EventChannelWhereUniqueInput;
|
|
1115
|
+
/**
|
|
1116
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1117
|
+
*
|
|
1118
|
+
* Take `±n` EventChannels from the position of the cursor.
|
|
1119
|
+
*/
|
|
1120
|
+
take?: number;
|
|
1121
|
+
/**
|
|
1122
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1123
|
+
*
|
|
1124
|
+
* Skip the first `n` EventChannels.
|
|
1125
|
+
*/
|
|
1126
|
+
skip?: number;
|
|
1127
|
+
distinct?: Prisma.EventChannelScalarFieldEnum | Prisma.EventChannelScalarFieldEnum[];
|
|
1128
|
+
};
|
|
1129
|
+
/**
|
|
1130
|
+
* EventChannel create
|
|
1131
|
+
*/
|
|
1132
|
+
export type EventChannelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1133
|
+
/**
|
|
1134
|
+
* Select specific fields to fetch from the EventChannel
|
|
1135
|
+
*/
|
|
1136
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
1137
|
+
/**
|
|
1138
|
+
* Omit specific fields from the EventChannel
|
|
1139
|
+
*/
|
|
1140
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
1141
|
+
/**
|
|
1142
|
+
* Choose, which related nodes to fetch as well
|
|
1143
|
+
*/
|
|
1144
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
1145
|
+
/**
|
|
1146
|
+
* The data needed to create a EventChannel.
|
|
1147
|
+
*/
|
|
1148
|
+
data: Prisma.XOR<Prisma.EventChannelCreateInput, Prisma.EventChannelUncheckedCreateInput>;
|
|
1149
|
+
};
|
|
1150
|
+
/**
|
|
1151
|
+
* EventChannel createMany
|
|
1152
|
+
*/
|
|
1153
|
+
export type EventChannelCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1154
|
+
/**
|
|
1155
|
+
* The data used to create many EventChannels.
|
|
1156
|
+
*/
|
|
1157
|
+
data: Prisma.EventChannelCreateManyInput | Prisma.EventChannelCreateManyInput[];
|
|
1158
|
+
skipDuplicates?: boolean;
|
|
1159
|
+
};
|
|
1160
|
+
/**
|
|
1161
|
+
* EventChannel update
|
|
1162
|
+
*/
|
|
1163
|
+
export type EventChannelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1164
|
+
/**
|
|
1165
|
+
* Select specific fields to fetch from the EventChannel
|
|
1166
|
+
*/
|
|
1167
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
1168
|
+
/**
|
|
1169
|
+
* Omit specific fields from the EventChannel
|
|
1170
|
+
*/
|
|
1171
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
1172
|
+
/**
|
|
1173
|
+
* Choose, which related nodes to fetch as well
|
|
1174
|
+
*/
|
|
1175
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
1176
|
+
/**
|
|
1177
|
+
* The data needed to update a EventChannel.
|
|
1178
|
+
*/
|
|
1179
|
+
data: Prisma.XOR<Prisma.EventChannelUpdateInput, Prisma.EventChannelUncheckedUpdateInput>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Choose, which EventChannel to update.
|
|
1182
|
+
*/
|
|
1183
|
+
where: Prisma.EventChannelWhereUniqueInput;
|
|
1184
|
+
};
|
|
1185
|
+
/**
|
|
1186
|
+
* EventChannel updateMany
|
|
1187
|
+
*/
|
|
1188
|
+
export type EventChannelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1189
|
+
/**
|
|
1190
|
+
* The data used to update EventChannels.
|
|
1191
|
+
*/
|
|
1192
|
+
data: Prisma.XOR<Prisma.EventChannelUpdateManyMutationInput, Prisma.EventChannelUncheckedUpdateManyInput>;
|
|
1193
|
+
/**
|
|
1194
|
+
* Filter which EventChannels to update
|
|
1195
|
+
*/
|
|
1196
|
+
where?: Prisma.EventChannelWhereInput;
|
|
1197
|
+
/**
|
|
1198
|
+
* Limit how many EventChannels to update.
|
|
1199
|
+
*/
|
|
1200
|
+
limit?: number;
|
|
1201
|
+
};
|
|
1202
|
+
/**
|
|
1203
|
+
* EventChannel upsert
|
|
1204
|
+
*/
|
|
1205
|
+
export type EventChannelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1206
|
+
/**
|
|
1207
|
+
* Select specific fields to fetch from the EventChannel
|
|
1208
|
+
*/
|
|
1209
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
1210
|
+
/**
|
|
1211
|
+
* Omit specific fields from the EventChannel
|
|
1212
|
+
*/
|
|
1213
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
1214
|
+
/**
|
|
1215
|
+
* Choose, which related nodes to fetch as well
|
|
1216
|
+
*/
|
|
1217
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
1218
|
+
/**
|
|
1219
|
+
* The filter to search for the EventChannel to update in case it exists.
|
|
1220
|
+
*/
|
|
1221
|
+
where: Prisma.EventChannelWhereUniqueInput;
|
|
1222
|
+
/**
|
|
1223
|
+
* In case the EventChannel found by the `where` argument doesn't exist, create a new EventChannel with this data.
|
|
1224
|
+
*/
|
|
1225
|
+
create: Prisma.XOR<Prisma.EventChannelCreateInput, Prisma.EventChannelUncheckedCreateInput>;
|
|
1226
|
+
/**
|
|
1227
|
+
* In case the EventChannel was found with the provided `where` argument, update it with this data.
|
|
1228
|
+
*/
|
|
1229
|
+
update: Prisma.XOR<Prisma.EventChannelUpdateInput, Prisma.EventChannelUncheckedUpdateInput>;
|
|
1230
|
+
};
|
|
1231
|
+
/**
|
|
1232
|
+
* EventChannel delete
|
|
1233
|
+
*/
|
|
1234
|
+
export type EventChannelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1235
|
+
/**
|
|
1236
|
+
* Select specific fields to fetch from the EventChannel
|
|
1237
|
+
*/
|
|
1238
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
1239
|
+
/**
|
|
1240
|
+
* Omit specific fields from the EventChannel
|
|
1241
|
+
*/
|
|
1242
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
1243
|
+
/**
|
|
1244
|
+
* Choose, which related nodes to fetch as well
|
|
1245
|
+
*/
|
|
1246
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* Filter which EventChannel to delete.
|
|
1249
|
+
*/
|
|
1250
|
+
where: Prisma.EventChannelWhereUniqueInput;
|
|
1251
|
+
};
|
|
1252
|
+
/**
|
|
1253
|
+
* EventChannel deleteMany
|
|
1254
|
+
*/
|
|
1255
|
+
export type EventChannelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1256
|
+
/**
|
|
1257
|
+
* Filter which EventChannels to delete
|
|
1258
|
+
*/
|
|
1259
|
+
where?: Prisma.EventChannelWhereInput;
|
|
1260
|
+
/**
|
|
1261
|
+
* Limit how many EventChannels to delete.
|
|
1262
|
+
*/
|
|
1263
|
+
limit?: number;
|
|
1264
|
+
};
|
|
1265
|
+
/**
|
|
1266
|
+
* EventChannel.eventTypes
|
|
1267
|
+
*/
|
|
1268
|
+
export type EventChannel$eventTypesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1269
|
+
/**
|
|
1270
|
+
* Select specific fields to fetch from the EventType
|
|
1271
|
+
*/
|
|
1272
|
+
select?: Prisma.EventTypeSelect<ExtArgs> | null;
|
|
1273
|
+
/**
|
|
1274
|
+
* Omit specific fields from the EventType
|
|
1275
|
+
*/
|
|
1276
|
+
omit?: Prisma.EventTypeOmit<ExtArgs> | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Choose, which related nodes to fetch as well
|
|
1279
|
+
*/
|
|
1280
|
+
include?: Prisma.EventTypeInclude<ExtArgs> | null;
|
|
1281
|
+
where?: Prisma.EventTypeWhereInput;
|
|
1282
|
+
orderBy?: Prisma.EventTypeOrderByWithRelationInput | Prisma.EventTypeOrderByWithRelationInput[];
|
|
1283
|
+
cursor?: Prisma.EventTypeWhereUniqueInput;
|
|
1284
|
+
take?: number;
|
|
1285
|
+
skip?: number;
|
|
1286
|
+
distinct?: Prisma.EventTypeScalarFieldEnum | Prisma.EventTypeScalarFieldEnum[];
|
|
1287
|
+
};
|
|
1288
|
+
/**
|
|
1289
|
+
* EventChannel without action
|
|
1290
|
+
*/
|
|
1291
|
+
export type EventChannelDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1292
|
+
/**
|
|
1293
|
+
* Select specific fields to fetch from the EventChannel
|
|
1294
|
+
*/
|
|
1295
|
+
select?: Prisma.EventChannelSelect<ExtArgs> | null;
|
|
1296
|
+
/**
|
|
1297
|
+
* Omit specific fields from the EventChannel
|
|
1298
|
+
*/
|
|
1299
|
+
omit?: Prisma.EventChannelOmit<ExtArgs> | null;
|
|
1300
|
+
/**
|
|
1301
|
+
* Choose, which related nodes to fetch as well
|
|
1302
|
+
*/
|
|
1303
|
+
include?: Prisma.EventChannelInclude<ExtArgs> | null;
|
|
1304
|
+
};
|
|
1305
|
+
export {};
|