@dismissible/nestjs-postgres-storage 0.0.2-canary.738340d.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,791 @@
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.1.0
84
+ * Query Engine version: ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba
85
+ */
86
+ export const prismaVersion: PrismaVersion = {
87
+ client: "7.1.0",
88
+ engine: "ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba"
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
+ metadata: 'metadata'
526
+ } as const
527
+
528
+ export type DismissibleItemScalarFieldEnum = (typeof DismissibleItemScalarFieldEnum)[keyof typeof DismissibleItemScalarFieldEnum]
529
+
530
+
531
+ export const SortOrder = {
532
+ asc: 'asc',
533
+ desc: 'desc'
534
+ } as const
535
+
536
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
537
+
538
+
539
+ export const NullableJsonNullValueInput = {
540
+ DbNull: DbNull,
541
+ JsonNull: JsonNull
542
+ } as const
543
+
544
+ export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
545
+
546
+
547
+ export const QueryMode = {
548
+ default: 'default',
549
+ insensitive: 'insensitive'
550
+ } as const
551
+
552
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
553
+
554
+
555
+ export const JsonNullValueFilter = {
556
+ DbNull: DbNull,
557
+ JsonNull: JsonNull,
558
+ AnyNull: AnyNull
559
+ } as const
560
+
561
+ export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
562
+
563
+
564
+ export const NullsOrder = {
565
+ first: 'first',
566
+ last: 'last'
567
+ } as const
568
+
569
+ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
570
+
571
+
572
+
573
+ /**
574
+ * Field references
575
+ */
576
+
577
+
578
+ /**
579
+ * Reference to a field of type 'String'
580
+ */
581
+ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
582
+
583
+
584
+
585
+ /**
586
+ * Reference to a field of type 'String[]'
587
+ */
588
+ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
589
+
590
+
591
+
592
+ /**
593
+ * Reference to a field of type 'DateTime'
594
+ */
595
+ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
596
+
597
+
598
+
599
+ /**
600
+ * Reference to a field of type 'DateTime[]'
601
+ */
602
+ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
603
+
604
+
605
+
606
+ /**
607
+ * Reference to a field of type 'Json'
608
+ */
609
+ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
610
+
611
+
612
+
613
+ /**
614
+ * Reference to a field of type 'QueryMode'
615
+ */
616
+ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
617
+
618
+
619
+
620
+ /**
621
+ * Reference to a field of type 'Int'
622
+ */
623
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
624
+
625
+
626
+
627
+ /**
628
+ * Reference to a field of type 'Int[]'
629
+ */
630
+ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
631
+
632
+
633
+ /**
634
+ * Batch Payload for updateMany & deleteMany & createMany
635
+ */
636
+ export type BatchPayload = {
637
+ count: number
638
+ }
639
+
640
+ export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>
641
+ export type DefaultPrismaClient = PrismaClient
642
+ export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
643
+ export type PrismaClientOptions = ({
644
+ /**
645
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
646
+ */
647
+ adapter: runtime.SqlDriverAdapterFactory
648
+ accelerateUrl?: never
649
+ } | {
650
+ /**
651
+ * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
652
+ */
653
+ accelerateUrl: string
654
+ adapter?: never
655
+ }) & {
656
+ /**
657
+ * @default "colorless"
658
+ */
659
+ errorFormat?: ErrorFormat
660
+ /**
661
+ * @example
662
+ * ```
663
+ * // Shorthand for `emit: 'stdout'`
664
+ * log: ['query', 'info', 'warn', 'error']
665
+ *
666
+ * // Emit as events only
667
+ * log: [
668
+ * { emit: 'event', level: 'query' },
669
+ * { emit: 'event', level: 'info' },
670
+ * { emit: 'event', level: 'warn' }
671
+ * { emit: 'event', level: 'error' }
672
+ * ]
673
+ *
674
+ * / Emit as events and log to stdout
675
+ * og: [
676
+ * { emit: 'stdout', level: 'query' },
677
+ * { emit: 'stdout', level: 'info' },
678
+ * { emit: 'stdout', level: 'warn' }
679
+ * { emit: 'stdout', level: 'error' }
680
+ *
681
+ * ```
682
+ * Read more in our [docs](https://pris.ly/d/logging).
683
+ */
684
+ log?: (LogLevel | LogDefinition)[]
685
+ /**
686
+ * The default values for transactionOptions
687
+ * maxWait ?= 2000
688
+ * timeout ?= 5000
689
+ */
690
+ transactionOptions?: {
691
+ maxWait?: number
692
+ timeout?: number
693
+ isolationLevel?: TransactionIsolationLevel
694
+ }
695
+ /**
696
+ * Global configuration for omitting model fields by default.
697
+ *
698
+ * @example
699
+ * ```
700
+ * const prisma = new PrismaClient({
701
+ * omit: {
702
+ * user: {
703
+ * password: true
704
+ * }
705
+ * }
706
+ * })
707
+ * ```
708
+ */
709
+ omit?: GlobalOmitConfig
710
+ /**
711
+ * SQL commenter plugins that add metadata to SQL queries as comments.
712
+ * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
713
+ *
714
+ * @example
715
+ * ```
716
+ * const prisma = new PrismaClient({
717
+ * adapter,
718
+ * comments: [
719
+ * traceContext(),
720
+ * queryInsights(),
721
+ * ],
722
+ * })
723
+ * ```
724
+ */
725
+ comments?: runtime.SqlCommenterPlugin[]
726
+ }
727
+ export type GlobalOmitConfig = {
728
+ dismissibleItem?: Prisma.DismissibleItemOmit
729
+ }
730
+
731
+ /* Types for Logging */
732
+ export type LogLevel = 'info' | 'query' | 'warn' | 'error'
733
+ export type LogDefinition = {
734
+ level: LogLevel
735
+ emit: 'stdout' | 'event'
736
+ }
737
+
738
+ export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
739
+
740
+ export type GetLogType<T> = CheckIsLogLevel<
741
+ T extends LogDefinition ? T['level'] : T
742
+ >;
743
+
744
+ export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
745
+ ? GetLogType<T[number]>
746
+ : never;
747
+
748
+ export type QueryEvent = {
749
+ timestamp: Date
750
+ query: string
751
+ params: string
752
+ duration: number
753
+ target: string
754
+ }
755
+
756
+ export type LogEvent = {
757
+ timestamp: Date
758
+ message: string
759
+ target: string
760
+ }
761
+ /* End Types for Logging */
762
+
763
+
764
+ export type PrismaAction =
765
+ | 'findUnique'
766
+ | 'findUniqueOrThrow'
767
+ | 'findMany'
768
+ | 'findFirst'
769
+ | 'findFirstOrThrow'
770
+ | 'create'
771
+ | 'createMany'
772
+ | 'createManyAndReturn'
773
+ | 'update'
774
+ | 'updateMany'
775
+ | 'updateManyAndReturn'
776
+ | 'upsert'
777
+ | 'delete'
778
+ | 'deleteMany'
779
+ | 'executeRaw'
780
+ | 'queryRaw'
781
+ | 'aggregate'
782
+ | 'count'
783
+ | 'runCommandRaw'
784
+ | 'findRaw'
785
+ | 'groupBy'
786
+
787
+ /**
788
+ * `PrismaClient` proxy available in interactive transactions.
789
+ */
790
+ export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>
791
+