@naisys/supervisor-database 3.0.0-beta.4 → 3.0.0-beta.6

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.
@@ -1,775 +0,0 @@
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.6.0
50
- * Query Engine version: 75cbdc1eb7150937890ad5465d861175c6624711
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 User: "User";
235
- readonly Session: "Session";
236
- readonly UserPermission: "UserPermission";
237
- readonly SchemaVersion: "SchemaVersion";
238
- };
239
- export type ModelName = (typeof ModelName)[keyof typeof ModelName];
240
- export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{
241
- extArgs: runtime.Types.Extensions.InternalArgs;
242
- }, runtime.Types.Utils.Record<string, any>> {
243
- returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>;
244
- }
245
- export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
246
- globalOmitOptions: {
247
- omit: GlobalOmitOptions;
248
- };
249
- meta: {
250
- modelProps: "user" | "session" | "userPermission" | "schemaVersion";
251
- txIsolationLevel: TransactionIsolationLevel;
252
- };
253
- model: {
254
- User: {
255
- payload: Prisma.$UserPayload<ExtArgs>;
256
- fields: Prisma.UserFieldRefs;
257
- operations: {
258
- findUnique: {
259
- args: Prisma.UserFindUniqueArgs<ExtArgs>;
260
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null;
261
- };
262
- findUniqueOrThrow: {
263
- args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>;
264
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
265
- };
266
- findFirst: {
267
- args: Prisma.UserFindFirstArgs<ExtArgs>;
268
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null;
269
- };
270
- findFirstOrThrow: {
271
- args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>;
272
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
273
- };
274
- findMany: {
275
- args: Prisma.UserFindManyArgs<ExtArgs>;
276
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[];
277
- };
278
- create: {
279
- args: Prisma.UserCreateArgs<ExtArgs>;
280
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
281
- };
282
- createMany: {
283
- args: Prisma.UserCreateManyArgs<ExtArgs>;
284
- result: BatchPayload;
285
- };
286
- createManyAndReturn: {
287
- args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>;
288
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[];
289
- };
290
- delete: {
291
- args: Prisma.UserDeleteArgs<ExtArgs>;
292
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
293
- };
294
- update: {
295
- args: Prisma.UserUpdateArgs<ExtArgs>;
296
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
297
- };
298
- deleteMany: {
299
- args: Prisma.UserDeleteManyArgs<ExtArgs>;
300
- result: BatchPayload;
301
- };
302
- updateMany: {
303
- args: Prisma.UserUpdateManyArgs<ExtArgs>;
304
- result: BatchPayload;
305
- };
306
- updateManyAndReturn: {
307
- args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>;
308
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[];
309
- };
310
- upsert: {
311
- args: Prisma.UserUpsertArgs<ExtArgs>;
312
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
313
- };
314
- aggregate: {
315
- args: Prisma.UserAggregateArgs<ExtArgs>;
316
- result: runtime.Types.Utils.Optional<Prisma.AggregateUser>;
317
- };
318
- groupBy: {
319
- args: Prisma.UserGroupByArgs<ExtArgs>;
320
- result: runtime.Types.Utils.Optional<Prisma.UserGroupByOutputType>[];
321
- };
322
- count: {
323
- args: Prisma.UserCountArgs<ExtArgs>;
324
- result: runtime.Types.Utils.Optional<Prisma.UserCountAggregateOutputType> | number;
325
- };
326
- };
327
- };
328
- Session: {
329
- payload: Prisma.$SessionPayload<ExtArgs>;
330
- fields: Prisma.SessionFieldRefs;
331
- operations: {
332
- findUnique: {
333
- args: Prisma.SessionFindUniqueArgs<ExtArgs>;
334
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload> | null;
335
- };
336
- findUniqueOrThrow: {
337
- args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>;
338
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
339
- };
340
- findFirst: {
341
- args: Prisma.SessionFindFirstArgs<ExtArgs>;
342
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload> | null;
343
- };
344
- findFirstOrThrow: {
345
- args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>;
346
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
347
- };
348
- findMany: {
349
- args: Prisma.SessionFindManyArgs<ExtArgs>;
350
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>[];
351
- };
352
- create: {
353
- args: Prisma.SessionCreateArgs<ExtArgs>;
354
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
355
- };
356
- createMany: {
357
- args: Prisma.SessionCreateManyArgs<ExtArgs>;
358
- result: BatchPayload;
359
- };
360
- createManyAndReturn: {
361
- args: Prisma.SessionCreateManyAndReturnArgs<ExtArgs>;
362
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>[];
363
- };
364
- delete: {
365
- args: Prisma.SessionDeleteArgs<ExtArgs>;
366
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
367
- };
368
- update: {
369
- args: Prisma.SessionUpdateArgs<ExtArgs>;
370
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
371
- };
372
- deleteMany: {
373
- args: Prisma.SessionDeleteManyArgs<ExtArgs>;
374
- result: BatchPayload;
375
- };
376
- updateMany: {
377
- args: Prisma.SessionUpdateManyArgs<ExtArgs>;
378
- result: BatchPayload;
379
- };
380
- updateManyAndReturn: {
381
- args: Prisma.SessionUpdateManyAndReturnArgs<ExtArgs>;
382
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>[];
383
- };
384
- upsert: {
385
- args: Prisma.SessionUpsertArgs<ExtArgs>;
386
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SessionPayload>;
387
- };
388
- aggregate: {
389
- args: Prisma.SessionAggregateArgs<ExtArgs>;
390
- result: runtime.Types.Utils.Optional<Prisma.AggregateSession>;
391
- };
392
- groupBy: {
393
- args: Prisma.SessionGroupByArgs<ExtArgs>;
394
- result: runtime.Types.Utils.Optional<Prisma.SessionGroupByOutputType>[];
395
- };
396
- count: {
397
- args: Prisma.SessionCountArgs<ExtArgs>;
398
- result: runtime.Types.Utils.Optional<Prisma.SessionCountAggregateOutputType> | number;
399
- };
400
- };
401
- };
402
- UserPermission: {
403
- payload: Prisma.$UserPermissionPayload<ExtArgs>;
404
- fields: Prisma.UserPermissionFieldRefs;
405
- operations: {
406
- findUnique: {
407
- args: Prisma.UserPermissionFindUniqueArgs<ExtArgs>;
408
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload> | null;
409
- };
410
- findUniqueOrThrow: {
411
- args: Prisma.UserPermissionFindUniqueOrThrowArgs<ExtArgs>;
412
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload>;
413
- };
414
- findFirst: {
415
- args: Prisma.UserPermissionFindFirstArgs<ExtArgs>;
416
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload> | null;
417
- };
418
- findFirstOrThrow: {
419
- args: Prisma.UserPermissionFindFirstOrThrowArgs<ExtArgs>;
420
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload>;
421
- };
422
- findMany: {
423
- args: Prisma.UserPermissionFindManyArgs<ExtArgs>;
424
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload>[];
425
- };
426
- create: {
427
- args: Prisma.UserPermissionCreateArgs<ExtArgs>;
428
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload>;
429
- };
430
- createMany: {
431
- args: Prisma.UserPermissionCreateManyArgs<ExtArgs>;
432
- result: BatchPayload;
433
- };
434
- createManyAndReturn: {
435
- args: Prisma.UserPermissionCreateManyAndReturnArgs<ExtArgs>;
436
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload>[];
437
- };
438
- delete: {
439
- args: Prisma.UserPermissionDeleteArgs<ExtArgs>;
440
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload>;
441
- };
442
- update: {
443
- args: Prisma.UserPermissionUpdateArgs<ExtArgs>;
444
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload>;
445
- };
446
- deleteMany: {
447
- args: Prisma.UserPermissionDeleteManyArgs<ExtArgs>;
448
- result: BatchPayload;
449
- };
450
- updateMany: {
451
- args: Prisma.UserPermissionUpdateManyArgs<ExtArgs>;
452
- result: BatchPayload;
453
- };
454
- updateManyAndReturn: {
455
- args: Prisma.UserPermissionUpdateManyAndReturnArgs<ExtArgs>;
456
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload>[];
457
- };
458
- upsert: {
459
- args: Prisma.UserPermissionUpsertArgs<ExtArgs>;
460
- result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPermissionPayload>;
461
- };
462
- aggregate: {
463
- args: Prisma.UserPermissionAggregateArgs<ExtArgs>;
464
- result: runtime.Types.Utils.Optional<Prisma.AggregateUserPermission>;
465
- };
466
- groupBy: {
467
- args: Prisma.UserPermissionGroupByArgs<ExtArgs>;
468
- result: runtime.Types.Utils.Optional<Prisma.UserPermissionGroupByOutputType>[];
469
- };
470
- count: {
471
- args: Prisma.UserPermissionCountArgs<ExtArgs>;
472
- result: runtime.Types.Utils.Optional<Prisma.UserPermissionCountAggregateOutputType> | number;
473
- };
474
- };
475
- };
476
- SchemaVersion: {
477
- payload: Prisma.$SchemaVersionPayload<ExtArgs>;
478
- fields: Prisma.SchemaVersionFieldRefs;
479
- operations: {
480
- findUnique: {
481
- args: Prisma.SchemaVersionFindUniqueArgs<ExtArgs>;
482
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload> | null;
483
- };
484
- findUniqueOrThrow: {
485
- args: Prisma.SchemaVersionFindUniqueOrThrowArgs<ExtArgs>;
486
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload>;
487
- };
488
- findFirst: {
489
- args: Prisma.SchemaVersionFindFirstArgs<ExtArgs>;
490
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload> | null;
491
- };
492
- findFirstOrThrow: {
493
- args: Prisma.SchemaVersionFindFirstOrThrowArgs<ExtArgs>;
494
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload>;
495
- };
496
- findMany: {
497
- args: Prisma.SchemaVersionFindManyArgs<ExtArgs>;
498
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload>[];
499
- };
500
- create: {
501
- args: Prisma.SchemaVersionCreateArgs<ExtArgs>;
502
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload>;
503
- };
504
- createMany: {
505
- args: Prisma.SchemaVersionCreateManyArgs<ExtArgs>;
506
- result: BatchPayload;
507
- };
508
- createManyAndReturn: {
509
- args: Prisma.SchemaVersionCreateManyAndReturnArgs<ExtArgs>;
510
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload>[];
511
- };
512
- delete: {
513
- args: Prisma.SchemaVersionDeleteArgs<ExtArgs>;
514
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload>;
515
- };
516
- update: {
517
- args: Prisma.SchemaVersionUpdateArgs<ExtArgs>;
518
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload>;
519
- };
520
- deleteMany: {
521
- args: Prisma.SchemaVersionDeleteManyArgs<ExtArgs>;
522
- result: BatchPayload;
523
- };
524
- updateMany: {
525
- args: Prisma.SchemaVersionUpdateManyArgs<ExtArgs>;
526
- result: BatchPayload;
527
- };
528
- updateManyAndReturn: {
529
- args: Prisma.SchemaVersionUpdateManyAndReturnArgs<ExtArgs>;
530
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload>[];
531
- };
532
- upsert: {
533
- args: Prisma.SchemaVersionUpsertArgs<ExtArgs>;
534
- result: runtime.Types.Utils.PayloadToResult<Prisma.$SchemaVersionPayload>;
535
- };
536
- aggregate: {
537
- args: Prisma.SchemaVersionAggregateArgs<ExtArgs>;
538
- result: runtime.Types.Utils.Optional<Prisma.AggregateSchemaVersion>;
539
- };
540
- groupBy: {
541
- args: Prisma.SchemaVersionGroupByArgs<ExtArgs>;
542
- result: runtime.Types.Utils.Optional<Prisma.SchemaVersionGroupByOutputType>[];
543
- };
544
- count: {
545
- args: Prisma.SchemaVersionCountArgs<ExtArgs>;
546
- result: runtime.Types.Utils.Optional<Prisma.SchemaVersionCountAggregateOutputType> | number;
547
- };
548
- };
549
- };
550
- };
551
- } & {
552
- other: {
553
- payload: any;
554
- operations: {
555
- $executeRaw: {
556
- args: [query: TemplateStringsArray | Sql, ...values: any[]];
557
- result: any;
558
- };
559
- $executeRawUnsafe: {
560
- args: [query: string, ...values: any[]];
561
- result: any;
562
- };
563
- $queryRaw: {
564
- args: [query: TemplateStringsArray | Sql, ...values: any[]];
565
- result: any;
566
- };
567
- $queryRawUnsafe: {
568
- args: [query: string, ...values: any[]];
569
- result: any;
570
- };
571
- };
572
- };
573
- };
574
- /**
575
- * Enums
576
- */
577
- export declare const TransactionIsolationLevel: {
578
- readonly Serializable: "Serializable";
579
- };
580
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
581
- export declare const UserScalarFieldEnum: {
582
- readonly id: "id";
583
- readonly username: "username";
584
- readonly uuid: "uuid";
585
- readonly isAgent: "isAgent";
586
- readonly passwordHash: "passwordHash";
587
- readonly createdAt: "createdAt";
588
- readonly apiKey: "apiKey";
589
- readonly updatedAt: "updatedAt";
590
- };
591
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum];
592
- export declare const SessionScalarFieldEnum: {
593
- readonly id: "id";
594
- readonly userId: "userId";
595
- readonly tokenHash: "tokenHash";
596
- readonly expiresAt: "expiresAt";
597
- readonly createdAt: "createdAt";
598
- };
599
- export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum];
600
- export declare const UserPermissionScalarFieldEnum: {
601
- readonly id: "id";
602
- readonly userId: "userId";
603
- readonly permission: "permission";
604
- readonly grantedAt: "grantedAt";
605
- readonly grantedBy: "grantedBy";
606
- };
607
- export type UserPermissionScalarFieldEnum = (typeof UserPermissionScalarFieldEnum)[keyof typeof UserPermissionScalarFieldEnum];
608
- export declare const SchemaVersionScalarFieldEnum: {
609
- readonly id: "id";
610
- readonly version: "version";
611
- readonly updated: "updated";
612
- };
613
- export type SchemaVersionScalarFieldEnum = (typeof SchemaVersionScalarFieldEnum)[keyof typeof SchemaVersionScalarFieldEnum];
614
- export declare const SortOrder: {
615
- readonly asc: "asc";
616
- readonly desc: "desc";
617
- };
618
- export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
619
- export declare const NullsOrder: {
620
- readonly first: "first";
621
- readonly last: "last";
622
- };
623
- export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder];
624
- /**
625
- * Field references
626
- */
627
- /**
628
- * Reference to a field of type 'Int'
629
- */
630
- export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>;
631
- /**
632
- * Reference to a field of type 'String'
633
- */
634
- export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>;
635
- /**
636
- * Reference to a field of type 'Boolean'
637
- */
638
- export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>;
639
- /**
640
- * Reference to a field of type 'DateTime'
641
- */
642
- export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>;
643
- /**
644
- * Reference to a field of type 'Permission'
645
- */
646
- export type EnumPermissionFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Permission'>;
647
- /**
648
- * Reference to a field of type 'Float'
649
- */
650
- export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>;
651
- /**
652
- * Batch Payload for updateMany & deleteMany & createMany
653
- */
654
- export type BatchPayload = {
655
- count: number;
656
- };
657
- export declare const defineExtension: runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>;
658
- export type DefaultPrismaClient = PrismaClient;
659
- export type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
660
- export type PrismaClientOptions = ({
661
- /**
662
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
663
- */
664
- adapter: runtime.SqlDriverAdapterFactory;
665
- accelerateUrl?: never;
666
- } | {
667
- /**
668
- * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
669
- */
670
- accelerateUrl: string;
671
- adapter?: never;
672
- }) & {
673
- /**
674
- * @default "colorless"
675
- */
676
- errorFormat?: ErrorFormat;
677
- /**
678
- * @example
679
- * ```
680
- * // Shorthand for `emit: 'stdout'`
681
- * log: ['query', 'info', 'warn', 'error']
682
- *
683
- * // Emit as events only
684
- * log: [
685
- * { emit: 'event', level: 'query' },
686
- * { emit: 'event', level: 'info' },
687
- * { emit: 'event', level: 'warn' }
688
- * { emit: 'event', level: 'error' }
689
- * ]
690
- *
691
- * / Emit as events and log to stdout
692
- * og: [
693
- * { emit: 'stdout', level: 'query' },
694
- * { emit: 'stdout', level: 'info' },
695
- * { emit: 'stdout', level: 'warn' }
696
- * { emit: 'stdout', level: 'error' }
697
- *
698
- * ```
699
- * Read more in our [docs](https://pris.ly/d/logging).
700
- */
701
- log?: (LogLevel | LogDefinition)[];
702
- /**
703
- * The default values for transactionOptions
704
- * maxWait ?= 2000
705
- * timeout ?= 5000
706
- */
707
- transactionOptions?: {
708
- maxWait?: number;
709
- timeout?: number;
710
- isolationLevel?: TransactionIsolationLevel;
711
- };
712
- /**
713
- * Global configuration for omitting model fields by default.
714
- *
715
- * @example
716
- * ```
717
- * const prisma = new PrismaClient({
718
- * omit: {
719
- * user: {
720
- * password: true
721
- * }
722
- * }
723
- * })
724
- * ```
725
- */
726
- omit?: GlobalOmitConfig;
727
- /**
728
- * SQL commenter plugins that add metadata to SQL queries as comments.
729
- * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
730
- *
731
- * @example
732
- * ```
733
- * const prisma = new PrismaClient({
734
- * adapter,
735
- * comments: [
736
- * traceContext(),
737
- * queryInsights(),
738
- * ],
739
- * })
740
- * ```
741
- */
742
- comments?: runtime.SqlCommenterPlugin[];
743
- };
744
- export type GlobalOmitConfig = {
745
- user?: Prisma.UserOmit;
746
- session?: Prisma.SessionOmit;
747
- userPermission?: Prisma.UserPermissionOmit;
748
- schemaVersion?: Prisma.SchemaVersionOmit;
749
- };
750
- export type LogLevel = 'info' | 'query' | 'warn' | 'error';
751
- export type LogDefinition = {
752
- level: LogLevel;
753
- emit: 'stdout' | 'event';
754
- };
755
- export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
756
- export type GetLogType<T> = CheckIsLogLevel<T extends LogDefinition ? T['level'] : T>;
757
- export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition> ? GetLogType<T[number]> : never;
758
- export type QueryEvent = {
759
- timestamp: Date;
760
- query: string;
761
- params: string;
762
- duration: number;
763
- target: string;
764
- };
765
- export type LogEvent = {
766
- timestamp: Date;
767
- message: string;
768
- target: string;
769
- };
770
- export type PrismaAction = 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy';
771
- /**
772
- * `PrismaClient` proxy available in interactive transactions.
773
- */
774
- export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>;
775
- //# sourceMappingURL=prismaNamespace.d.ts.map