@eventualize/postgres-storage-adapter 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/EvDbPostgresPrismaClientFactory.d.ts +3 -0
  2. package/dist/EvDbPostgresPrismaClientFactory.js +10 -0
  3. package/dist/EvDbPostgresPrismaClientFactory.js.map +1 -0
  4. package/dist/generated/prisma/browser.d.ts +19 -0
  5. package/dist/generated/prisma/browser.js +18 -0
  6. package/dist/generated/prisma/browser.js.map +1 -0
  7. package/dist/generated/prisma/client.d.ts +36 -0
  8. package/dist/generated/prisma/client.js +33 -0
  9. package/dist/generated/prisma/client.js.map +1 -0
  10. package/dist/generated/prisma/commonInputTypes.d.ts +378 -0
  11. package/dist/generated/prisma/commonInputTypes.js +11 -0
  12. package/dist/generated/prisma/commonInputTypes.js.map +1 -0
  13. package/dist/generated/prisma/enums.d.ts +1 -0
  14. package/dist/generated/prisma/enums.js +11 -0
  15. package/dist/generated/prisma/enums.js.map +1 -0
  16. package/dist/generated/prisma/internal/class.d.ts +148 -0
  17. package/dist/generated/prisma/internal/class.js +41 -0
  18. package/dist/generated/prisma/internal/class.js.map +1 -0
  19. package/dist/generated/prisma/internal/prismaNamespace.d.ts +759 -0
  20. package/dist/generated/prisma/internal/prismaNamespace.js +144 -0
  21. package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
  22. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +109 -0
  23. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +115 -0
  24. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  25. package/dist/generated/prisma/models/events.d.ts +1178 -0
  26. package/dist/generated/prisma/models/events.js +2 -0
  27. package/dist/generated/prisma/models/events.js.map +1 -0
  28. package/dist/generated/prisma/models/outbox.d.ts +1261 -0
  29. package/dist/generated/prisma/models/outbox.js +2 -0
  30. package/dist/generated/prisma/models/outbox.js.map +1 -0
  31. package/dist/generated/prisma/models/snapshot.d.ts +1088 -0
  32. package/dist/generated/prisma/models/snapshot.js +2 -0
  33. package/dist/generated/prisma/models/snapshot.js.map +1 -0
  34. package/dist/generated/prisma/models.d.ts +4 -0
  35. package/dist/generated/prisma/models.js +2 -0
  36. package/dist/generated/prisma/models.js.map +1 -0
  37. package/package.json +31 -0
  38. package/prisma/migrations/20251211113311_change_outbox_payload_to_json/migration.sql +62 -0
  39. package/prisma/migrations/migration_lock.toml +3 -0
  40. package/prisma/schema.prisma +61 -0
  41. package/prisma.config.d.ts +3 -0
  42. package/prisma.config.js +14 -0
  43. package/prisma.config.js.map +1 -0
  44. package/prisma.config.ts +14 -0
  45. package/src/EvDbPostgresPrismaClientFactory.ts +12 -0
  46. package/src/generated/prisma/browser.ts +34 -0
  47. package/src/generated/prisma/client.ts +56 -0
  48. package/src/generated/prisma/commonInputTypes.ts +459 -0
  49. package/src/generated/prisma/enums.ts +15 -0
  50. package/src/generated/prisma/internal/class.ts +210 -0
  51. package/src/generated/prisma/internal/prismaNamespace.ts +1029 -0
  52. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +169 -0
  53. package/src/generated/prisma/models/events.ts +1339 -0
  54. package/src/generated/prisma/models/outbox.ts +1420 -0
  55. package/src/generated/prisma/models/snapshot.ts +1246 -0
  56. package/src/generated/prisma/models.ts +14 -0
  57. package/tsconfig.json +19 -0
@@ -0,0 +1,759 @@
1
+ import * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../models.js";
3
+ import { type PrismaClient } from "./class.js";
4
+ export type * from '../models.js';
5
+ export type DMMF = typeof runtime.DMMF;
6
+ export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>;
7
+ /**
8
+ * Prisma Errors
9
+ */
10
+ export declare const PrismaClientKnownRequestError: typeof runtime.PrismaClientKnownRequestError;
11
+ export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
12
+ export declare const PrismaClientUnknownRequestError: typeof runtime.PrismaClientUnknownRequestError;
13
+ export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
14
+ export declare const PrismaClientRustPanicError: typeof runtime.PrismaClientRustPanicError;
15
+ export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
16
+ export declare const PrismaClientInitializationError: typeof runtime.PrismaClientInitializationError;
17
+ export type PrismaClientInitializationError = runtime.PrismaClientInitializationError;
18
+ export declare const PrismaClientValidationError: typeof runtime.PrismaClientValidationError;
19
+ export type PrismaClientValidationError = runtime.PrismaClientValidationError;
20
+ /**
21
+ * Re-export of sql-template-tag
22
+ */
23
+ export declare const sql: typeof runtime.sqltag;
24
+ export declare const empty: runtime.Sql;
25
+ export declare const join: typeof runtime.join;
26
+ export declare const raw: typeof runtime.raw;
27
+ export declare const Sql: typeof runtime.Sql;
28
+ export type Sql = runtime.Sql;
29
+ /**
30
+ * Decimal.js
31
+ */
32
+ export declare const Decimal: typeof runtime.Decimal;
33
+ export type Decimal = runtime.Decimal;
34
+ export type DecimalJsLike = runtime.DecimalJsLike;
35
+ /**
36
+ * Extensions
37
+ */
38
+ export type Extension = runtime.Types.Extensions.UserArgs;
39
+ export declare const getExtensionContext: typeof runtime.Extensions.getExtensionContext;
40
+ export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>;
41
+ export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>;
42
+ export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>;
43
+ export type Exact<A, W> = runtime.Types.Public.Exact<A, W>;
44
+ export type PrismaVersion = {
45
+ client: string;
46
+ engine: string;
47
+ };
48
+ /**
49
+ * Prisma Client JS version: 7.1.0
50
+ * Query Engine version: ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba
51
+ */
52
+ export declare const prismaVersion: PrismaVersion;
53
+ /**
54
+ * Utility Types
55
+ */
56
+ export type Bytes = runtime.Bytes;
57
+ export type JsonObject = runtime.JsonObject;
58
+ export type JsonArray = runtime.JsonArray;
59
+ export type JsonValue = runtime.JsonValue;
60
+ export type InputJsonObject = runtime.InputJsonObject;
61
+ export type InputJsonArray = runtime.InputJsonArray;
62
+ export type InputJsonValue = runtime.InputJsonValue;
63
+ export declare const NullTypes: {
64
+ DbNull: (new (secret: never) => typeof runtime.DbNull);
65
+ JsonNull: (new (secret: never) => typeof runtime.JsonNull);
66
+ AnyNull: (new (secret: never) => typeof runtime.AnyNull);
67
+ };
68
+ /**
69
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
70
+ *
71
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
72
+ */
73
+ export declare const DbNull: runtime.DbNullClass;
74
+ /**
75
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
76
+ *
77
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
78
+ */
79
+ export declare const JsonNull: runtime.JsonNullClass;
80
+ /**
81
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
82
+ *
83
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
84
+ */
85
+ export declare const AnyNull: runtime.AnyNullClass;
86
+ type SelectAndInclude = {
87
+ select: any;
88
+ include: any;
89
+ };
90
+ type SelectAndOmit = {
91
+ select: any;
92
+ omit: any;
93
+ };
94
+ /**
95
+ * From T, pick a set of properties whose keys are in the union K
96
+ */
97
+ type Prisma__Pick<T, K extends keyof T> = {
98
+ [P in K]: T[P];
99
+ };
100
+ export type Enumerable<T> = T | Array<T>;
101
+ /**
102
+ * Subset
103
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
104
+ */
105
+ export type Subset<T, U> = {
106
+ [key in keyof T]: key extends keyof U ? T[key] : never;
107
+ };
108
+ /**
109
+ * SelectSubset
110
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
111
+ * Additionally, it validates, if both select and include are present. If the case, it errors.
112
+ */
113
+ export type SelectSubset<T, U> = {
114
+ [key in keyof T]: key extends keyof U ? T[key] : never;
115
+ } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {});
116
+ /**
117
+ * Subset + Intersection
118
+ * @desc From `T` pick properties that exist in `U` and intersect `K`
119
+ */
120
+ export type SubsetIntersection<T, U, K> = {
121
+ [key in keyof T]: key extends keyof U ? T[key] : never;
122
+ } & K;
123
+ type Without<T, U> = {
124
+ [P in Exclude<keyof T, keyof U>]?: never;
125
+ };
126
+ /**
127
+ * XOR is needed to have a real mutually exclusive union type
128
+ * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
129
+ */
130
+ export type XOR<T, U> = T extends object ? U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : U : T;
131
+ /**
132
+ * Is T a Record?
133
+ */
134
+ type IsObject<T extends any> = T extends Array<any> ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False;
135
+ /**
136
+ * If it's T[], return T
137
+ */
138
+ export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T;
139
+ /**
140
+ * From ts-toolbelt
141
+ */
142
+ type __Either<O extends object, K extends Key> = Omit<O, K> & {
143
+ [P in K]: Prisma__Pick<O, P & keyof O>;
144
+ }[K];
145
+ type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>;
146
+ type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>;
147
+ type _Either<O extends object, K extends Key, strict extends Boolean> = {
148
+ 1: EitherStrict<O, K>;
149
+ 0: EitherLoose<O, K>;
150
+ }[strict];
151
+ export type Either<O extends object, K extends Key, strict extends Boolean = 1> = O extends unknown ? _Either<O, K, strict> : never;
152
+ export type Union = any;
153
+ export type PatchUndefined<O extends object, O1 extends object> = {
154
+ [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K];
155
+ } & {};
156
+ /** Helper Types for "Merge" **/
157
+ export type IntersectOf<U extends Union> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
158
+ export type Overwrite<O extends object, O1 extends object> = {
159
+ [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
160
+ } & {};
161
+ type _Merge<U extends object> = IntersectOf<Overwrite<U, {
162
+ [K in keyof U]-?: At<U, K>;
163
+ }>>;
164
+ type Key = string | number | symbol;
165
+ type AtStrict<O extends object, K extends Key> = O[K & keyof O];
166
+ type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
167
+ export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
168
+ 1: AtStrict<O, K>;
169
+ 0: AtLoose<O, K>;
170
+ }[strict];
171
+ export type ComputeRaw<A extends any> = A extends Function ? A : {
172
+ [K in keyof A]: A[K];
173
+ } & {};
174
+ export type OptionalFlat<O> = {
175
+ [K in keyof O]?: O[K];
176
+ } & {};
177
+ type _Record<K extends keyof any, T> = {
178
+ [P in K]: T;
179
+ };
180
+ type NoExpand<T> = T extends unknown ? T : never;
181
+ export type AtLeast<O extends object, K extends string> = NoExpand<O extends unknown ? (K extends keyof O ? {
182
+ [P in K]: O[P];
183
+ } & O : O) | {
184
+ [P in keyof O as P extends K ? P : never]-?: O[P];
185
+ } & O : never>;
186
+ type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
187
+ export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
188
+ /** End Helper Types for "Merge" **/
189
+ export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
190
+ export type Boolean = True | False;
191
+ export type True = 1;
192
+ export type False = 0;
193
+ export type Not<B extends Boolean> = {
194
+ 0: 1;
195
+ 1: 0;
196
+ }[B];
197
+ export type Extends<A1 extends any, A2 extends any> = [A1] extends [never] ? 0 : A1 extends A2 ? 1 : 0;
198
+ export type Has<U extends Union, U1 extends Union> = Not<Extends<Exclude<U1, U>, U1>>;
199
+ export type Or<B1 extends Boolean, B2 extends Boolean> = {
200
+ 0: {
201
+ 0: 0;
202
+ 1: 1;
203
+ };
204
+ 1: {
205
+ 0: 1;
206
+ 1: 1;
207
+ };
208
+ }[B1][B2];
209
+ export type Keys<U extends Union> = U extends unknown ? keyof U : never;
210
+ export type GetScalarType<T, O> = O extends object ? {
211
+ [P in keyof T]: P extends keyof O ? O[P] : never;
212
+ } : never;
213
+ type FieldPaths<T, U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>> = IsObject<T> extends True ? U : T;
214
+ export type GetHavingFields<T> = {
215
+ [K in keyof T]: Or<Or<Extends<'OR', K>, Extends<'AND', K>>, Extends<'NOT', K>> extends True ? T[K] extends infer TK ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never> : never : {} extends FieldPaths<T[K]> ? never : K;
216
+ }[keyof T];
217
+ /**
218
+ * Convert tuple to union
219
+ */
220
+ type _TupleToUnion<T> = T extends (infer E)[] ? E : never;
221
+ type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>;
222
+ export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T;
223
+ /**
224
+ * Like `Pick`, but additionally can also accept an array of keys
225
+ */
226
+ export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>;
227
+ /**
228
+ * Exclude all keys with underscores
229
+ */
230
+ export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T;
231
+ export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>;
232
+ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>;
233
+ export declare const ModelName: {
234
+ readonly events: "events";
235
+ readonly outbox: "outbox";
236
+ readonly snapshot: "snapshot";
237
+ };
238
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName];
239
+ export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{
240
+ extArgs: runtime.Types.Extensions.InternalArgs;
241
+ }, runtime.Types.Utils.Record<string, any>> {
242
+ returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>;
243
+ }
244
+ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
245
+ globalOmitOptions: {
246
+ omit: GlobalOmitOptions;
247
+ };
248
+ meta: {
249
+ modelProps: "events" | "outbox" | "snapshot";
250
+ txIsolationLevel: TransactionIsolationLevel;
251
+ };
252
+ model: {
253
+ events: {
254
+ payload: Prisma.$eventsPayload<ExtArgs>;
255
+ fields: Prisma.eventsFieldRefs;
256
+ operations: {
257
+ findUnique: {
258
+ args: Prisma.eventsFindUniqueArgs<ExtArgs>;
259
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload> | null;
260
+ };
261
+ findUniqueOrThrow: {
262
+ args: Prisma.eventsFindUniqueOrThrowArgs<ExtArgs>;
263
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload>;
264
+ };
265
+ findFirst: {
266
+ args: Prisma.eventsFindFirstArgs<ExtArgs>;
267
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload> | null;
268
+ };
269
+ findFirstOrThrow: {
270
+ args: Prisma.eventsFindFirstOrThrowArgs<ExtArgs>;
271
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload>;
272
+ };
273
+ findMany: {
274
+ args: Prisma.eventsFindManyArgs<ExtArgs>;
275
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload>[];
276
+ };
277
+ create: {
278
+ args: Prisma.eventsCreateArgs<ExtArgs>;
279
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload>;
280
+ };
281
+ createMany: {
282
+ args: Prisma.eventsCreateManyArgs<ExtArgs>;
283
+ result: BatchPayload;
284
+ };
285
+ createManyAndReturn: {
286
+ args: Prisma.eventsCreateManyAndReturnArgs<ExtArgs>;
287
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload>[];
288
+ };
289
+ delete: {
290
+ args: Prisma.eventsDeleteArgs<ExtArgs>;
291
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload>;
292
+ };
293
+ update: {
294
+ args: Prisma.eventsUpdateArgs<ExtArgs>;
295
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload>;
296
+ };
297
+ deleteMany: {
298
+ args: Prisma.eventsDeleteManyArgs<ExtArgs>;
299
+ result: BatchPayload;
300
+ };
301
+ updateMany: {
302
+ args: Prisma.eventsUpdateManyArgs<ExtArgs>;
303
+ result: BatchPayload;
304
+ };
305
+ updateManyAndReturn: {
306
+ args: Prisma.eventsUpdateManyAndReturnArgs<ExtArgs>;
307
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload>[];
308
+ };
309
+ upsert: {
310
+ args: Prisma.eventsUpsertArgs<ExtArgs>;
311
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$eventsPayload>;
312
+ };
313
+ aggregate: {
314
+ args: Prisma.EventsAggregateArgs<ExtArgs>;
315
+ result: runtime.Types.Utils.Optional<Prisma.AggregateEvents>;
316
+ };
317
+ groupBy: {
318
+ args: Prisma.eventsGroupByArgs<ExtArgs>;
319
+ result: runtime.Types.Utils.Optional<Prisma.EventsGroupByOutputType>[];
320
+ };
321
+ count: {
322
+ args: Prisma.eventsCountArgs<ExtArgs>;
323
+ result: runtime.Types.Utils.Optional<Prisma.EventsCountAggregateOutputType> | number;
324
+ };
325
+ };
326
+ };
327
+ outbox: {
328
+ payload: Prisma.$outboxPayload<ExtArgs>;
329
+ fields: Prisma.outboxFieldRefs;
330
+ operations: {
331
+ findUnique: {
332
+ args: Prisma.outboxFindUniqueArgs<ExtArgs>;
333
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload> | null;
334
+ };
335
+ findUniqueOrThrow: {
336
+ args: Prisma.outboxFindUniqueOrThrowArgs<ExtArgs>;
337
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload>;
338
+ };
339
+ findFirst: {
340
+ args: Prisma.outboxFindFirstArgs<ExtArgs>;
341
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload> | null;
342
+ };
343
+ findFirstOrThrow: {
344
+ args: Prisma.outboxFindFirstOrThrowArgs<ExtArgs>;
345
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload>;
346
+ };
347
+ findMany: {
348
+ args: Prisma.outboxFindManyArgs<ExtArgs>;
349
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload>[];
350
+ };
351
+ create: {
352
+ args: Prisma.outboxCreateArgs<ExtArgs>;
353
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload>;
354
+ };
355
+ createMany: {
356
+ args: Prisma.outboxCreateManyArgs<ExtArgs>;
357
+ result: BatchPayload;
358
+ };
359
+ createManyAndReturn: {
360
+ args: Prisma.outboxCreateManyAndReturnArgs<ExtArgs>;
361
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload>[];
362
+ };
363
+ delete: {
364
+ args: Prisma.outboxDeleteArgs<ExtArgs>;
365
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload>;
366
+ };
367
+ update: {
368
+ args: Prisma.outboxUpdateArgs<ExtArgs>;
369
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload>;
370
+ };
371
+ deleteMany: {
372
+ args: Prisma.outboxDeleteManyArgs<ExtArgs>;
373
+ result: BatchPayload;
374
+ };
375
+ updateMany: {
376
+ args: Prisma.outboxUpdateManyArgs<ExtArgs>;
377
+ result: BatchPayload;
378
+ };
379
+ updateManyAndReturn: {
380
+ args: Prisma.outboxUpdateManyAndReturnArgs<ExtArgs>;
381
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload>[];
382
+ };
383
+ upsert: {
384
+ args: Prisma.outboxUpsertArgs<ExtArgs>;
385
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$outboxPayload>;
386
+ };
387
+ aggregate: {
388
+ args: Prisma.OutboxAggregateArgs<ExtArgs>;
389
+ result: runtime.Types.Utils.Optional<Prisma.AggregateOutbox>;
390
+ };
391
+ groupBy: {
392
+ args: Prisma.outboxGroupByArgs<ExtArgs>;
393
+ result: runtime.Types.Utils.Optional<Prisma.OutboxGroupByOutputType>[];
394
+ };
395
+ count: {
396
+ args: Prisma.outboxCountArgs<ExtArgs>;
397
+ result: runtime.Types.Utils.Optional<Prisma.OutboxCountAggregateOutputType> | number;
398
+ };
399
+ };
400
+ };
401
+ snapshot: {
402
+ payload: Prisma.$snapshotPayload<ExtArgs>;
403
+ fields: Prisma.snapshotFieldRefs;
404
+ operations: {
405
+ findUnique: {
406
+ args: Prisma.snapshotFindUniqueArgs<ExtArgs>;
407
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload> | null;
408
+ };
409
+ findUniqueOrThrow: {
410
+ args: Prisma.snapshotFindUniqueOrThrowArgs<ExtArgs>;
411
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload>;
412
+ };
413
+ findFirst: {
414
+ args: Prisma.snapshotFindFirstArgs<ExtArgs>;
415
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload> | null;
416
+ };
417
+ findFirstOrThrow: {
418
+ args: Prisma.snapshotFindFirstOrThrowArgs<ExtArgs>;
419
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload>;
420
+ };
421
+ findMany: {
422
+ args: Prisma.snapshotFindManyArgs<ExtArgs>;
423
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload>[];
424
+ };
425
+ create: {
426
+ args: Prisma.snapshotCreateArgs<ExtArgs>;
427
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload>;
428
+ };
429
+ createMany: {
430
+ args: Prisma.snapshotCreateManyArgs<ExtArgs>;
431
+ result: BatchPayload;
432
+ };
433
+ createManyAndReturn: {
434
+ args: Prisma.snapshotCreateManyAndReturnArgs<ExtArgs>;
435
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload>[];
436
+ };
437
+ delete: {
438
+ args: Prisma.snapshotDeleteArgs<ExtArgs>;
439
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload>;
440
+ };
441
+ update: {
442
+ args: Prisma.snapshotUpdateArgs<ExtArgs>;
443
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload>;
444
+ };
445
+ deleteMany: {
446
+ args: Prisma.snapshotDeleteManyArgs<ExtArgs>;
447
+ result: BatchPayload;
448
+ };
449
+ updateMany: {
450
+ args: Prisma.snapshotUpdateManyArgs<ExtArgs>;
451
+ result: BatchPayload;
452
+ };
453
+ updateManyAndReturn: {
454
+ args: Prisma.snapshotUpdateManyAndReturnArgs<ExtArgs>;
455
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload>[];
456
+ };
457
+ upsert: {
458
+ args: Prisma.snapshotUpsertArgs<ExtArgs>;
459
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$snapshotPayload>;
460
+ };
461
+ aggregate: {
462
+ args: Prisma.SnapshotAggregateArgs<ExtArgs>;
463
+ result: runtime.Types.Utils.Optional<Prisma.AggregateSnapshot>;
464
+ };
465
+ groupBy: {
466
+ args: Prisma.snapshotGroupByArgs<ExtArgs>;
467
+ result: runtime.Types.Utils.Optional<Prisma.SnapshotGroupByOutputType>[];
468
+ };
469
+ count: {
470
+ args: Prisma.snapshotCountArgs<ExtArgs>;
471
+ result: runtime.Types.Utils.Optional<Prisma.SnapshotCountAggregateOutputType> | number;
472
+ };
473
+ };
474
+ };
475
+ };
476
+ } & {
477
+ other: {
478
+ payload: any;
479
+ operations: {
480
+ $executeRaw: {
481
+ args: [query: TemplateStringsArray | Sql, ...values: any[]];
482
+ result: any;
483
+ };
484
+ $executeRawUnsafe: {
485
+ args: [query: string, ...values: any[]];
486
+ result: any;
487
+ };
488
+ $queryRaw: {
489
+ args: [query: TemplateStringsArray | Sql, ...values: any[]];
490
+ result: any;
491
+ };
492
+ $queryRawUnsafe: {
493
+ args: [query: string, ...values: any[]];
494
+ result: any;
495
+ };
496
+ };
497
+ };
498
+ };
499
+ /**
500
+ * Enums
501
+ */
502
+ export declare const TransactionIsolationLevel: {
503
+ readonly ReadUncommitted: "ReadUncommitted";
504
+ readonly ReadCommitted: "ReadCommitted";
505
+ readonly RepeatableRead: "RepeatableRead";
506
+ readonly Serializable: "Serializable";
507
+ };
508
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
509
+ export declare const EventsScalarFieldEnum: {
510
+ readonly id: "id";
511
+ readonly stream_type: "stream_type";
512
+ readonly stream_id: "stream_id";
513
+ readonly offset: "offset";
514
+ readonly event_type: "event_type";
515
+ readonly telemetry_context: "telemetry_context";
516
+ readonly captured_by: "captured_by";
517
+ readonly captured_at: "captured_at";
518
+ readonly stored_at: "stored_at";
519
+ readonly payload: "payload";
520
+ };
521
+ export type EventsScalarFieldEnum = (typeof EventsScalarFieldEnum)[keyof typeof EventsScalarFieldEnum];
522
+ export declare const OutboxScalarFieldEnum: {
523
+ readonly id: "id";
524
+ readonly stream_type: "stream_type";
525
+ readonly stream_id: "stream_id";
526
+ readonly offset: "offset";
527
+ readonly event_type: "event_type";
528
+ readonly channel: "channel";
529
+ readonly message_type: "message_type";
530
+ readonly serialize_type: "serialize_type";
531
+ readonly telemetry_context: "telemetry_context";
532
+ readonly captured_by: "captured_by";
533
+ readonly captured_at: "captured_at";
534
+ readonly stored_at: "stored_at";
535
+ readonly payload: "payload";
536
+ };
537
+ export type OutboxScalarFieldEnum = (typeof OutboxScalarFieldEnum)[keyof typeof OutboxScalarFieldEnum];
538
+ export declare const SnapshotScalarFieldEnum: {
539
+ readonly id: "id";
540
+ readonly stream_type: "stream_type";
541
+ readonly stream_id: "stream_id";
542
+ readonly view_name: "view_name";
543
+ readonly offset: "offset";
544
+ readonly state: "state";
545
+ readonly stored_at: "stored_at";
546
+ };
547
+ export type SnapshotScalarFieldEnum = (typeof SnapshotScalarFieldEnum)[keyof typeof SnapshotScalarFieldEnum];
548
+ export declare const SortOrder: {
549
+ readonly asc: "asc";
550
+ readonly desc: "desc";
551
+ };
552
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
553
+ export declare const NullableJsonNullValueInput: {
554
+ readonly DbNull: runtime.DbNullClass;
555
+ readonly JsonNull: runtime.JsonNullClass;
556
+ };
557
+ export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput];
558
+ export declare const JsonNullValueInput: {
559
+ readonly JsonNull: runtime.JsonNullClass;
560
+ };
561
+ export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput];
562
+ export declare const QueryMode: {
563
+ readonly default: "default";
564
+ readonly insensitive: "insensitive";
565
+ };
566
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode];
567
+ export declare const JsonNullValueFilter: {
568
+ readonly DbNull: runtime.DbNullClass;
569
+ readonly JsonNull: runtime.JsonNullClass;
570
+ readonly AnyNull: runtime.AnyNullClass;
571
+ };
572
+ export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter];
573
+ export declare const NullsOrder: {
574
+ readonly first: "first";
575
+ readonly last: "last";
576
+ };
577
+ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder];
578
+ /**
579
+ * Field references
580
+ */
581
+ /**
582
+ * Reference to a field of type 'String'
583
+ */
584
+ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>;
585
+ /**
586
+ * Reference to a field of type 'String[]'
587
+ */
588
+ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>;
589
+ /**
590
+ * Reference to a field of type 'BigInt'
591
+ */
592
+ export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>;
593
+ /**
594
+ * Reference to a field of type 'BigInt[]'
595
+ */
596
+ export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>;
597
+ /**
598
+ * Reference to a field of type 'Json'
599
+ */
600
+ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>;
601
+ /**
602
+ * Reference to a field of type 'QueryMode'
603
+ */
604
+ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>;
605
+ /**
606
+ * Reference to a field of type 'DateTime'
607
+ */
608
+ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>;
609
+ /**
610
+ * Reference to a field of type 'DateTime[]'
611
+ */
612
+ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>;
613
+ /**
614
+ * Reference to a field of type 'Bytes'
615
+ */
616
+ export type BytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes'>;
617
+ /**
618
+ * Reference to a field of type 'Bytes[]'
619
+ */
620
+ export type ListBytesFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Bytes[]'>;
621
+ /**
622
+ * Reference to a field of type 'Int'
623
+ */
624
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>;
625
+ /**
626
+ * Reference to a field of type 'Int[]'
627
+ */
628
+ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>;
629
+ /**
630
+ * Reference to a field of type 'Float'
631
+ */
632
+ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>;
633
+ /**
634
+ * Reference to a field of type 'Float[]'
635
+ */
636
+ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>;
637
+ /**
638
+ * Batch Payload for updateMany & deleteMany & createMany
639
+ */
640
+ export type BatchPayload = {
641
+ count: number;
642
+ };
643
+ export declare const defineExtension: runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>;
644
+ export type DefaultPrismaClient = PrismaClient;
645
+ export type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
646
+ export type PrismaClientOptions = ({
647
+ /**
648
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
649
+ */
650
+ adapter: runtime.SqlDriverAdapterFactory;
651
+ accelerateUrl?: never;
652
+ } | {
653
+ /**
654
+ * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
655
+ */
656
+ accelerateUrl: string;
657
+ adapter?: never;
658
+ }) & {
659
+ /**
660
+ * @default "colorless"
661
+ */
662
+ errorFormat?: ErrorFormat;
663
+ /**
664
+ * @example
665
+ * ```
666
+ * // Shorthand for `emit: 'stdout'`
667
+ * log: ['query', 'info', 'warn', 'error']
668
+ *
669
+ * // Emit as events only
670
+ * log: [
671
+ * { emit: 'event', level: 'query' },
672
+ * { emit: 'event', level: 'info' },
673
+ * { emit: 'event', level: 'warn' }
674
+ * { emit: 'event', level: 'error' }
675
+ * ]
676
+ *
677
+ * / Emit as events and log to stdout
678
+ * og: [
679
+ * { emit: 'stdout', level: 'query' },
680
+ * { emit: 'stdout', level: 'info' },
681
+ * { emit: 'stdout', level: 'warn' }
682
+ * { emit: 'stdout', level: 'error' }
683
+ *
684
+ * ```
685
+ * Read more in our [docs](https://pris.ly/d/logging).
686
+ */
687
+ log?: (LogLevel | LogDefinition)[];
688
+ /**
689
+ * The default values for transactionOptions
690
+ * maxWait ?= 2000
691
+ * timeout ?= 5000
692
+ */
693
+ transactionOptions?: {
694
+ maxWait?: number;
695
+ timeout?: number;
696
+ isolationLevel?: TransactionIsolationLevel;
697
+ };
698
+ /**
699
+ * Global configuration for omitting model fields by default.
700
+ *
701
+ * @example
702
+ * ```
703
+ * const prisma = new PrismaClient({
704
+ * omit: {
705
+ * user: {
706
+ * password: true
707
+ * }
708
+ * }
709
+ * })
710
+ * ```
711
+ */
712
+ omit?: GlobalOmitConfig;
713
+ /**
714
+ * SQL commenter plugins that add metadata to SQL queries as comments.
715
+ * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
716
+ *
717
+ * @example
718
+ * ```
719
+ * const prisma = new PrismaClient({
720
+ * adapter,
721
+ * comments: [
722
+ * traceContext(),
723
+ * queryInsights(),
724
+ * ],
725
+ * })
726
+ * ```
727
+ */
728
+ comments?: runtime.SqlCommenterPlugin[];
729
+ };
730
+ export type GlobalOmitConfig = {
731
+ events?: Prisma.eventsOmit;
732
+ outbox?: Prisma.outboxOmit;
733
+ snapshot?: Prisma.snapshotOmit;
734
+ };
735
+ export type LogLevel = 'info' | 'query' | 'warn' | 'error';
736
+ export type LogDefinition = {
737
+ level: LogLevel;
738
+ emit: 'stdout' | 'event';
739
+ };
740
+ export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
741
+ export type GetLogType<T> = CheckIsLogLevel<T extends LogDefinition ? T['level'] : T>;
742
+ export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition> ? GetLogType<T[number]> : never;
743
+ export type QueryEvent = {
744
+ timestamp: Date;
745
+ query: string;
746
+ params: string;
747
+ duration: number;
748
+ target: string;
749
+ };
750
+ export type LogEvent = {
751
+ timestamp: Date;
752
+ message: string;
753
+ target: string;
754
+ };
755
+ export type PrismaAction = 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy';
756
+ /**
757
+ * `PrismaClient` proxy available in interactive transactions.
758
+ */
759
+ export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>;