@betterinternship/db 1.0.13 → 1.1.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 (66) hide show
  1. package/dist/prisma/browser.ts +29 -0
  2. package/dist/prisma/client.d.ts +1 -0
  3. package/dist/prisma/client.js +5 -0
  4. package/dist/prisma/client.ts +51 -0
  5. package/dist/prisma/commonInputTypes.ts +349 -0
  6. package/dist/prisma/default.d.ts +1 -0
  7. package/dist/prisma/default.js +5 -0
  8. package/dist/prisma/edge.d.ts +1 -0
  9. package/dist/prisma/edge.js +175 -0
  10. package/dist/prisma/enums.ts +15 -0
  11. package/dist/prisma/index-browser.js +205 -0
  12. package/dist/prisma/index.d.ts +4237 -0
  13. package/dist/prisma/index.js +175 -0
  14. package/dist/prisma/internal/class.ts +202 -0
  15. package/dist/prisma/internal/prismaNamespace.ts +883 -0
  16. package/dist/prisma/internal/prismaNamespaceBrowser.ts +140 -0
  17. package/dist/prisma/models/processes.ts +1318 -0
  18. package/dist/prisma/models/tasks.ts +1507 -0
  19. package/dist/prisma/models.ts +13 -0
  20. package/dist/prisma/package.json +144 -0
  21. package/dist/prisma/query_compiler_fast_bg.js +2 -0
  22. package/dist/prisma/query_compiler_fast_bg.wasm +0 -0
  23. package/dist/prisma/query_compiler_fast_bg.wasm-base64.js +2 -0
  24. package/dist/prisma/runtime/client.d.ts +3304 -0
  25. package/dist/prisma/runtime/client.js +86 -0
  26. package/dist/prisma/runtime/index-browser.d.ts +87 -0
  27. package/dist/prisma/runtime/index-browser.js +6 -0
  28. package/dist/prisma/runtime/wasm-compiler-edge.js +76 -0
  29. package/dist/prisma/schema.prisma +34 -0
  30. package/dist/prisma/wasm-edge-light-loader.mjs +5 -0
  31. package/dist/prisma/wasm-worker-loader.mjs +5 -0
  32. package/dist/src/db/index.d.ts +9 -6
  33. package/dist/src/db/index.js +1 -1
  34. package/dist/src/db/index.js.map +1 -1
  35. package/dist/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +3 -2
  37. package/dist/src/prisma/browser.d.ts +0 -6
  38. package/dist/src/prisma/browser.js +0 -44
  39. package/dist/src/prisma/browser.js.map +0 -1
  40. package/dist/src/prisma/client.d.ts +0 -10
  41. package/dist/src/prisma/client.js +0 -49
  42. package/dist/src/prisma/client.js.map +0 -1
  43. package/dist/src/prisma/commonInputTypes.d.ts +0 -294
  44. package/dist/src/prisma/commonInputTypes.js +0 -3
  45. package/dist/src/prisma/commonInputTypes.js.map +0 -1
  46. package/dist/src/prisma/enums.d.ts +0 -1
  47. package/dist/src/prisma/enums.js +0 -3
  48. package/dist/src/prisma/enums.js.map +0 -1
  49. package/dist/src/prisma/internal/class.d.ts +0 -38
  50. package/dist/src/prisma/internal/class.js +0 -67
  51. package/dist/src/prisma/internal/class.js.map +0 -1
  52. package/dist/src/prisma/internal/prismaNamespace.d.ts +0 -460
  53. package/dist/src/prisma/internal/prismaNamespace.js +0 -113
  54. package/dist/src/prisma/internal/prismaNamespace.js.map +0 -1
  55. package/dist/src/prisma/internal/prismaNamespaceBrowser.d.ts +0 -71
  56. package/dist/src/prisma/internal/prismaNamespaceBrowser.js +0 -97
  57. package/dist/src/prisma/internal/prismaNamespaceBrowser.js.map +0 -1
  58. package/dist/src/prisma/models/processes.d.ts +0 -503
  59. package/dist/src/prisma/models/processes.js +0 -3
  60. package/dist/src/prisma/models/processes.js.map +0 -1
  61. package/dist/src/prisma/models/tasks.d.ts +0 -709
  62. package/dist/src/prisma/models/tasks.js +0 -3
  63. package/dist/src/prisma/models/tasks.js.map +0 -1
  64. package/dist/src/prisma/models.d.ts +0 -3
  65. package/dist/src/prisma/models.js +0 -3
  66. package/dist/src/prisma/models.js.map +0 -1
@@ -0,0 +1,883 @@
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.js"
20
+ import { type PrismaClient } from "./class.js"
21
+
22
+ export type * from '../models.js'
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.3.0
84
+ * Query Engine version: 9d6ad21cbbceab97458517b147a6a09ff43aa735
85
+ */
86
+ export const prismaVersion: PrismaVersion = {
87
+ client: "7.3.0",
88
+ engine: "9d6ad21cbbceab97458517b147a6a09ff43aa735"
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
+ processes: 'processes',
388
+ tasks: 'tasks'
389
+ } as const
390
+
391
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName]
392
+
393
+
394
+
395
+ export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record<string, any>> {
396
+ returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>
397
+ }
398
+
399
+ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
400
+ globalOmitOptions: {
401
+ omit: GlobalOmitOptions
402
+ }
403
+ meta: {
404
+ modelProps: "processes" | "tasks"
405
+ txIsolationLevel: TransactionIsolationLevel
406
+ }
407
+ model: {
408
+ processes: {
409
+ payload: Prisma.$processesPayload<ExtArgs>
410
+ fields: Prisma.processesFieldRefs
411
+ operations: {
412
+ findUnique: {
413
+ args: Prisma.processesFindUniqueArgs<ExtArgs>
414
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload> | null
415
+ }
416
+ findUniqueOrThrow: {
417
+ args: Prisma.processesFindUniqueOrThrowArgs<ExtArgs>
418
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload>
419
+ }
420
+ findFirst: {
421
+ args: Prisma.processesFindFirstArgs<ExtArgs>
422
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload> | null
423
+ }
424
+ findFirstOrThrow: {
425
+ args: Prisma.processesFindFirstOrThrowArgs<ExtArgs>
426
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload>
427
+ }
428
+ findMany: {
429
+ args: Prisma.processesFindManyArgs<ExtArgs>
430
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload>[]
431
+ }
432
+ create: {
433
+ args: Prisma.processesCreateArgs<ExtArgs>
434
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload>
435
+ }
436
+ createMany: {
437
+ args: Prisma.processesCreateManyArgs<ExtArgs>
438
+ result: BatchPayload
439
+ }
440
+ createManyAndReturn: {
441
+ args: Prisma.processesCreateManyAndReturnArgs<ExtArgs>
442
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload>[]
443
+ }
444
+ delete: {
445
+ args: Prisma.processesDeleteArgs<ExtArgs>
446
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload>
447
+ }
448
+ update: {
449
+ args: Prisma.processesUpdateArgs<ExtArgs>
450
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload>
451
+ }
452
+ deleteMany: {
453
+ args: Prisma.processesDeleteManyArgs<ExtArgs>
454
+ result: BatchPayload
455
+ }
456
+ updateMany: {
457
+ args: Prisma.processesUpdateManyArgs<ExtArgs>
458
+ result: BatchPayload
459
+ }
460
+ updateManyAndReturn: {
461
+ args: Prisma.processesUpdateManyAndReturnArgs<ExtArgs>
462
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload>[]
463
+ }
464
+ upsert: {
465
+ args: Prisma.processesUpsertArgs<ExtArgs>
466
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$processesPayload>
467
+ }
468
+ aggregate: {
469
+ args: Prisma.ProcessesAggregateArgs<ExtArgs>
470
+ result: runtime.Types.Utils.Optional<Prisma.AggregateProcesses>
471
+ }
472
+ groupBy: {
473
+ args: Prisma.processesGroupByArgs<ExtArgs>
474
+ result: runtime.Types.Utils.Optional<Prisma.ProcessesGroupByOutputType>[]
475
+ }
476
+ count: {
477
+ args: Prisma.processesCountArgs<ExtArgs>
478
+ result: runtime.Types.Utils.Optional<Prisma.ProcessesCountAggregateOutputType> | number
479
+ }
480
+ }
481
+ }
482
+ tasks: {
483
+ payload: Prisma.$tasksPayload<ExtArgs>
484
+ fields: Prisma.tasksFieldRefs
485
+ operations: {
486
+ findUnique: {
487
+ args: Prisma.tasksFindUniqueArgs<ExtArgs>
488
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload> | null
489
+ }
490
+ findUniqueOrThrow: {
491
+ args: Prisma.tasksFindUniqueOrThrowArgs<ExtArgs>
492
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload>
493
+ }
494
+ findFirst: {
495
+ args: Prisma.tasksFindFirstArgs<ExtArgs>
496
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload> | null
497
+ }
498
+ findFirstOrThrow: {
499
+ args: Prisma.tasksFindFirstOrThrowArgs<ExtArgs>
500
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload>
501
+ }
502
+ findMany: {
503
+ args: Prisma.tasksFindManyArgs<ExtArgs>
504
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload>[]
505
+ }
506
+ create: {
507
+ args: Prisma.tasksCreateArgs<ExtArgs>
508
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload>
509
+ }
510
+ createMany: {
511
+ args: Prisma.tasksCreateManyArgs<ExtArgs>
512
+ result: BatchPayload
513
+ }
514
+ createManyAndReturn: {
515
+ args: Prisma.tasksCreateManyAndReturnArgs<ExtArgs>
516
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload>[]
517
+ }
518
+ delete: {
519
+ args: Prisma.tasksDeleteArgs<ExtArgs>
520
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload>
521
+ }
522
+ update: {
523
+ args: Prisma.tasksUpdateArgs<ExtArgs>
524
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload>
525
+ }
526
+ deleteMany: {
527
+ args: Prisma.tasksDeleteManyArgs<ExtArgs>
528
+ result: BatchPayload
529
+ }
530
+ updateMany: {
531
+ args: Prisma.tasksUpdateManyArgs<ExtArgs>
532
+ result: BatchPayload
533
+ }
534
+ updateManyAndReturn: {
535
+ args: Prisma.tasksUpdateManyAndReturnArgs<ExtArgs>
536
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload>[]
537
+ }
538
+ upsert: {
539
+ args: Prisma.tasksUpsertArgs<ExtArgs>
540
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$tasksPayload>
541
+ }
542
+ aggregate: {
543
+ args: Prisma.TasksAggregateArgs<ExtArgs>
544
+ result: runtime.Types.Utils.Optional<Prisma.AggregateTasks>
545
+ }
546
+ groupBy: {
547
+ args: Prisma.tasksGroupByArgs<ExtArgs>
548
+ result: runtime.Types.Utils.Optional<Prisma.TasksGroupByOutputType>[]
549
+ }
550
+ count: {
551
+ args: Prisma.tasksCountArgs<ExtArgs>
552
+ result: runtime.Types.Utils.Optional<Prisma.TasksCountAggregateOutputType> | number
553
+ }
554
+ }
555
+ }
556
+ }
557
+ } & {
558
+ other: {
559
+ payload: any
560
+ operations: {
561
+ $executeRaw: {
562
+ args: [query: TemplateStringsArray | Sql, ...values: any[]],
563
+ result: any
564
+ }
565
+ $executeRawUnsafe: {
566
+ args: [query: string, ...values: any[]],
567
+ result: any
568
+ }
569
+ $queryRaw: {
570
+ args: [query: TemplateStringsArray | Sql, ...values: any[]],
571
+ result: any
572
+ }
573
+ $queryRawUnsafe: {
574
+ args: [query: string, ...values: any[]],
575
+ result: any
576
+ }
577
+ }
578
+ }
579
+ }
580
+
581
+ /**
582
+ * Enums
583
+ */
584
+
585
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
586
+ ReadUncommitted: 'ReadUncommitted',
587
+ ReadCommitted: 'ReadCommitted',
588
+ RepeatableRead: 'RepeatableRead',
589
+ Serializable: 'Serializable'
590
+ } as const)
591
+
592
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
593
+
594
+
595
+ export const ProcessesScalarFieldEnum = {
596
+ id: 'id',
597
+ result: 'result',
598
+ status: 'status',
599
+ error: 'error',
600
+ timestamp: 'timestamp'
601
+ } as const
602
+
603
+ export type ProcessesScalarFieldEnum = (typeof ProcessesScalarFieldEnum)[keyof typeof ProcessesScalarFieldEnum]
604
+
605
+
606
+ export const TasksScalarFieldEnum = {
607
+ id: 'id',
608
+ internal_id: 'internal_id',
609
+ handler_id: 'handler_id',
610
+ parent_id: 'parent_id',
611
+ process_id: 'process_id',
612
+ inputs: 'inputs',
613
+ result: 'result',
614
+ status: 'status',
615
+ error: 'error',
616
+ timestamp: 'timestamp'
617
+ } as const
618
+
619
+ export type TasksScalarFieldEnum = (typeof TasksScalarFieldEnum)[keyof typeof TasksScalarFieldEnum]
620
+
621
+
622
+ export const SortOrder = {
623
+ asc: 'asc',
624
+ desc: 'desc'
625
+ } as const
626
+
627
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
628
+
629
+
630
+ export const NullableJsonNullValueInput = {
631
+ DbNull: DbNull,
632
+ JsonNull: JsonNull
633
+ } as const
634
+
635
+ export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
636
+
637
+
638
+ export const QueryMode = {
639
+ default: 'default',
640
+ insensitive: 'insensitive'
641
+ } as const
642
+
643
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
644
+
645
+
646
+ export const JsonNullValueFilter = {
647
+ DbNull: DbNull,
648
+ JsonNull: JsonNull,
649
+ AnyNull: AnyNull
650
+ } as const
651
+
652
+ export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
653
+
654
+
655
+ export const NullsOrder = {
656
+ first: 'first',
657
+ last: 'last'
658
+ } as const
659
+
660
+ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
661
+
662
+
663
+
664
+ /**
665
+ * Field references
666
+ */
667
+
668
+
669
+ /**
670
+ * Reference to a field of type 'String'
671
+ */
672
+ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
673
+
674
+
675
+
676
+ /**
677
+ * Reference to a field of type 'String[]'
678
+ */
679
+ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
680
+
681
+
682
+
683
+ /**
684
+ * Reference to a field of type 'Json'
685
+ */
686
+ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
687
+
688
+
689
+
690
+ /**
691
+ * Reference to a field of type 'QueryMode'
692
+ */
693
+ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
694
+
695
+
696
+
697
+ /**
698
+ * Reference to a field of type 'DateTime'
699
+ */
700
+ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
701
+
702
+
703
+
704
+ /**
705
+ * Reference to a field of type 'DateTime[]'
706
+ */
707
+ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
708
+
709
+
710
+
711
+ /**
712
+ * Reference to a field of type 'Int'
713
+ */
714
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
715
+
716
+
717
+
718
+ /**
719
+ * Reference to a field of type 'Int[]'
720
+ */
721
+ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
722
+
723
+
724
+ /**
725
+ * Batch Payload for updateMany & deleteMany & createMany
726
+ */
727
+ export type BatchPayload = {
728
+ count: number
729
+ }
730
+
731
+ export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>
732
+ export type DefaultPrismaClient = PrismaClient
733
+ export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
734
+ export type PrismaClientOptions = ({
735
+ /**
736
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
737
+ */
738
+ adapter: runtime.SqlDriverAdapterFactory
739
+ accelerateUrl?: never
740
+ } | {
741
+ /**
742
+ * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
743
+ */
744
+ accelerateUrl: string
745
+ adapter?: never
746
+ }) & {
747
+ /**
748
+ * @default "colorless"
749
+ */
750
+ errorFormat?: ErrorFormat
751
+ /**
752
+ * @example
753
+ * ```
754
+ * // Shorthand for `emit: 'stdout'`
755
+ * log: ['query', 'info', 'warn', 'error']
756
+ *
757
+ * // Emit as events only
758
+ * log: [
759
+ * { emit: 'event', level: 'query' },
760
+ * { emit: 'event', level: 'info' },
761
+ * { emit: 'event', level: 'warn' }
762
+ * { emit: 'event', level: 'error' }
763
+ * ]
764
+ *
765
+ * / Emit as events and log to stdout
766
+ * og: [
767
+ * { emit: 'stdout', level: 'query' },
768
+ * { emit: 'stdout', level: 'info' },
769
+ * { emit: 'stdout', level: 'warn' }
770
+ * { emit: 'stdout', level: 'error' }
771
+ *
772
+ * ```
773
+ * Read more in our [docs](https://pris.ly/d/logging).
774
+ */
775
+ log?: (LogLevel | LogDefinition)[]
776
+ /**
777
+ * The default values for transactionOptions
778
+ * maxWait ?= 2000
779
+ * timeout ?= 5000
780
+ */
781
+ transactionOptions?: {
782
+ maxWait?: number
783
+ timeout?: number
784
+ isolationLevel?: TransactionIsolationLevel
785
+ }
786
+ /**
787
+ * Global configuration for omitting model fields by default.
788
+ *
789
+ * @example
790
+ * ```
791
+ * const prisma = new PrismaClient({
792
+ * omit: {
793
+ * user: {
794
+ * password: true
795
+ * }
796
+ * }
797
+ * })
798
+ * ```
799
+ */
800
+ omit?: GlobalOmitConfig
801
+ /**
802
+ * SQL commenter plugins that add metadata to SQL queries as comments.
803
+ * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
804
+ *
805
+ * @example
806
+ * ```
807
+ * const prisma = new PrismaClient({
808
+ * adapter,
809
+ * comments: [
810
+ * traceContext(),
811
+ * queryInsights(),
812
+ * ],
813
+ * })
814
+ * ```
815
+ */
816
+ comments?: runtime.SqlCommenterPlugin[]
817
+ }
818
+ export type GlobalOmitConfig = {
819
+ processes?: Prisma.processesOmit
820
+ tasks?: Prisma.tasksOmit
821
+ }
822
+
823
+ /* Types for Logging */
824
+ export type LogLevel = 'info' | 'query' | 'warn' | 'error'
825
+ export type LogDefinition = {
826
+ level: LogLevel
827
+ emit: 'stdout' | 'event'
828
+ }
829
+
830
+ export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
831
+
832
+ export type GetLogType<T> = CheckIsLogLevel<
833
+ T extends LogDefinition ? T['level'] : T
834
+ >;
835
+
836
+ export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
837
+ ? GetLogType<T[number]>
838
+ : never;
839
+
840
+ export type QueryEvent = {
841
+ timestamp: Date
842
+ query: string
843
+ params: string
844
+ duration: number
845
+ target: string
846
+ }
847
+
848
+ export type LogEvent = {
849
+ timestamp: Date
850
+ message: string
851
+ target: string
852
+ }
853
+ /* End Types for Logging */
854
+
855
+
856
+ export type PrismaAction =
857
+ | 'findUnique'
858
+ | 'findUniqueOrThrow'
859
+ | 'findMany'
860
+ | 'findFirst'
861
+ | 'findFirstOrThrow'
862
+ | 'create'
863
+ | 'createMany'
864
+ | 'createManyAndReturn'
865
+ | 'update'
866
+ | 'updateMany'
867
+ | 'updateManyAndReturn'
868
+ | 'upsert'
869
+ | 'delete'
870
+ | 'deleteMany'
871
+ | 'executeRaw'
872
+ | 'queryRaw'
873
+ | 'aggregate'
874
+ | 'count'
875
+ | 'runCommandRaw'
876
+ | 'findRaw'
877
+ | 'groupBy'
878
+
879
+ /**
880
+ * `PrismaClient` proxy available in interactive transactions.
881
+ */
882
+ export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>
883
+