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