geraete/generated/prisma/internal/prismaNamespace.ts
2025-11-26 15:00:05 +01:00

1499 lines
46 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* WARNING: This is an internal file that is subject to change!
*
* 🛑 Under no circumstances should you import this file directly! 🛑
*
* All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
* While this enables partial backward compatibility, it is not part of the stable public API.
*
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
* model files in the `model` directory!
*/
import * as runtime from "@prisma/client/runtime/client"
import type * as Prisma from "../models.ts"
import { type PrismaClient } from "./class.ts"
export type * from '../models.ts'
export type DMMF = typeof runtime.DMMF
export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>
/**
* Prisma Errors
*/
export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
export const PrismaClientInitializationError = runtime.PrismaClientInitializationError
export type PrismaClientInitializationError = runtime.PrismaClientInitializationError
export const PrismaClientValidationError = runtime.PrismaClientValidationError
export type PrismaClientValidationError = runtime.PrismaClientValidationError
/**
* Re-export of sql-template-tag
*/
export const sql = runtime.sqltag
export const empty = runtime.empty
export const join = runtime.join
export const raw = runtime.raw
export const Sql = runtime.Sql
export type Sql = runtime.Sql
/**
* Decimal.js
*/
export const Decimal = runtime.Decimal
export type Decimal = runtime.Decimal
export type DecimalJsLike = runtime.DecimalJsLike
/**
* Extensions
*/
export type Extension = runtime.Types.Extensions.UserArgs
export const getExtensionContext = runtime.Extensions.getExtensionContext
export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>
export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>
export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>
export type Exact<A, W> = runtime.Types.Public.Exact<A, W>
export type PrismaVersion = {
client: string
engine: string
}
/**
* Prisma Client JS version: 7.0.0
* Query Engine version: 0c19ccc313cf9911a90d99d2ac2eb0280c76c513
*/
export const prismaVersion: PrismaVersion = {
client: "7.0.0",
engine: "0c19ccc313cf9911a90d99d2ac2eb0280c76c513"
}
/**
* Utility Types
*/
export type Bytes = runtime.Bytes
export type JsonObject = runtime.JsonObject
export type JsonArray = runtime.JsonArray
export type JsonValue = runtime.JsonValue
export type InputJsonObject = runtime.InputJsonObject
export type InputJsonArray = runtime.InputJsonArray
export type InputJsonValue = runtime.InputJsonValue
export const NullTypes = {
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull = runtime.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull = runtime.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull = runtime.AnyNull
type SelectAndInclude = {
select: any
include: any
}
type SelectAndOmit = {
select: any
omit: any
}
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
export type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
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
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
export type Either<
O extends object,
K extends Key,
strict extends Boolean = 1
> = O extends unknown ? _Either<O, K, strict> : never
export type Union = any
export type PatchUndefined<O extends object, O1 extends object> = {
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
1: AtStrict<O, K>;
0: AtLoose<O, K>;
}[strict];
export type ComputeRaw<A extends any> = A extends Function ? A : {
[K in keyof A]: A[K];
} & {};
export type OptionalFlat<O> = {
[K in keyof O]?: O[K];
} & {};
type _Record<K extends keyof any, T> = {
[P in K]: T;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
export type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
export type Boolean = True | False
export type True = 1
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
export type GetScalarType<T, O> = O extends object ? {
[P in keyof T]: P extends keyof O
? O[P]
: never
} : never
type FieldPaths<
T,
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
> = IsObject<T> extends True ? U : T
export type GetHavingFields<T> = {
[K in keyof T]: Or<
Or<Extends<'OR', K>, Extends<'AND', K>>,
Extends<'NOT', K>
> extends True
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
export const ModelName = {
User: 'User',
Role: 'Role',
UserRole: 'UserRole',
UserGroup: 'UserGroup',
DeviceGroup: 'DeviceGroup',
Location: 'Location',
Device: 'Device',
Tag: 'Tag',
DeviceHistory: 'DeviceHistory'
} as const
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record<string, any>> {
returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>
}
export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
globalOmitOptions: {
omit: GlobalOmitOptions
}
meta: {
modelProps: "user" | "role" | "userRole" | "userGroup" | "deviceGroup" | "location" | "device" | "tag" | "deviceHistory"
txIsolationLevel: TransactionIsolationLevel
}
model: {
User: {
payload: Prisma.$UserPayload<ExtArgs>
fields: Prisma.UserFieldRefs
operations: {
findUnique: {
args: Prisma.UserFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null
}
findUniqueOrThrow: {
args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
}
findFirst: {
args: Prisma.UserFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null
}
findFirstOrThrow: {
args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
}
findMany: {
args: Prisma.UserFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[]
}
create: {
args: Prisma.UserCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
}
createMany: {
args: Prisma.UserCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[]
}
delete: {
args: Prisma.UserDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
}
update: {
args: Prisma.UserUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
}
deleteMany: {
args: Prisma.UserDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.UserUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[]
}
upsert: {
args: Prisma.UserUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
}
aggregate: {
args: Prisma.UserAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateUser>
}
groupBy: {
args: Prisma.UserGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.UserGroupByOutputType>[]
}
count: {
args: Prisma.UserCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.UserCountAggregateOutputType> | number
}
}
}
Role: {
payload: Prisma.$RolePayload<ExtArgs>
fields: Prisma.RoleFieldRefs
operations: {
findUnique: {
args: Prisma.RoleFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload> | null
}
findUniqueOrThrow: {
args: Prisma.RoleFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>
}
findFirst: {
args: Prisma.RoleFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload> | null
}
findFirstOrThrow: {
args: Prisma.RoleFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>
}
findMany: {
args: Prisma.RoleFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>[]
}
create: {
args: Prisma.RoleCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>
}
createMany: {
args: Prisma.RoleCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.RoleCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>[]
}
delete: {
args: Prisma.RoleDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>
}
update: {
args: Prisma.RoleUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>
}
deleteMany: {
args: Prisma.RoleDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.RoleUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.RoleUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>[]
}
upsert: {
args: Prisma.RoleUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>
}
aggregate: {
args: Prisma.RoleAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateRole>
}
groupBy: {
args: Prisma.RoleGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.RoleGroupByOutputType>[]
}
count: {
args: Prisma.RoleCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.RoleCountAggregateOutputType> | number
}
}
}
UserRole: {
payload: Prisma.$UserRolePayload<ExtArgs>
fields: Prisma.UserRoleFieldRefs
operations: {
findUnique: {
args: Prisma.UserRoleFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload> | null
}
findUniqueOrThrow: {
args: Prisma.UserRoleFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload>
}
findFirst: {
args: Prisma.UserRoleFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload> | null
}
findFirstOrThrow: {
args: Prisma.UserRoleFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload>
}
findMany: {
args: Prisma.UserRoleFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload>[]
}
create: {
args: Prisma.UserRoleCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload>
}
createMany: {
args: Prisma.UserRoleCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.UserRoleCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload>[]
}
delete: {
args: Prisma.UserRoleDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload>
}
update: {
args: Prisma.UserRoleUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload>
}
deleteMany: {
args: Prisma.UserRoleDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.UserRoleUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.UserRoleUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload>[]
}
upsert: {
args: Prisma.UserRoleUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserRolePayload>
}
aggregate: {
args: Prisma.UserRoleAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateUserRole>
}
groupBy: {
args: Prisma.UserRoleGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.UserRoleGroupByOutputType>[]
}
count: {
args: Prisma.UserRoleCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.UserRoleCountAggregateOutputType> | number
}
}
}
UserGroup: {
payload: Prisma.$UserGroupPayload<ExtArgs>
fields: Prisma.UserGroupFieldRefs
operations: {
findUnique: {
args: Prisma.UserGroupFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload> | null
}
findUniqueOrThrow: {
args: Prisma.UserGroupFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload>
}
findFirst: {
args: Prisma.UserGroupFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload> | null
}
findFirstOrThrow: {
args: Prisma.UserGroupFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload>
}
findMany: {
args: Prisma.UserGroupFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload>[]
}
create: {
args: Prisma.UserGroupCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload>
}
createMany: {
args: Prisma.UserGroupCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.UserGroupCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload>[]
}
delete: {
args: Prisma.UserGroupDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload>
}
update: {
args: Prisma.UserGroupUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload>
}
deleteMany: {
args: Prisma.UserGroupDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.UserGroupUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.UserGroupUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload>[]
}
upsert: {
args: Prisma.UserGroupUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$UserGroupPayload>
}
aggregate: {
args: Prisma.UserGroupAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateUserGroup>
}
groupBy: {
args: Prisma.UserGroupGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.UserGroupGroupByOutputType>[]
}
count: {
args: Prisma.UserGroupCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.UserGroupCountAggregateOutputType> | number
}
}
}
DeviceGroup: {
payload: Prisma.$DeviceGroupPayload<ExtArgs>
fields: Prisma.DeviceGroupFieldRefs
operations: {
findUnique: {
args: Prisma.DeviceGroupFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload> | null
}
findUniqueOrThrow: {
args: Prisma.DeviceGroupFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload>
}
findFirst: {
args: Prisma.DeviceGroupFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload> | null
}
findFirstOrThrow: {
args: Prisma.DeviceGroupFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload>
}
findMany: {
args: Prisma.DeviceGroupFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload>[]
}
create: {
args: Prisma.DeviceGroupCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload>
}
createMany: {
args: Prisma.DeviceGroupCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.DeviceGroupCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload>[]
}
delete: {
args: Prisma.DeviceGroupDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload>
}
update: {
args: Prisma.DeviceGroupUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload>
}
deleteMany: {
args: Prisma.DeviceGroupDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.DeviceGroupUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.DeviceGroupUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload>[]
}
upsert: {
args: Prisma.DeviceGroupUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceGroupPayload>
}
aggregate: {
args: Prisma.DeviceGroupAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateDeviceGroup>
}
groupBy: {
args: Prisma.DeviceGroupGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.DeviceGroupGroupByOutputType>[]
}
count: {
args: Prisma.DeviceGroupCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.DeviceGroupCountAggregateOutputType> | number
}
}
}
Location: {
payload: Prisma.$LocationPayload<ExtArgs>
fields: Prisma.LocationFieldRefs
operations: {
findUnique: {
args: Prisma.LocationFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload> | null
}
findUniqueOrThrow: {
args: Prisma.LocationFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload>
}
findFirst: {
args: Prisma.LocationFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload> | null
}
findFirstOrThrow: {
args: Prisma.LocationFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload>
}
findMany: {
args: Prisma.LocationFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload>[]
}
create: {
args: Prisma.LocationCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload>
}
createMany: {
args: Prisma.LocationCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.LocationCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload>[]
}
delete: {
args: Prisma.LocationDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload>
}
update: {
args: Prisma.LocationUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload>
}
deleteMany: {
args: Prisma.LocationDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.LocationUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.LocationUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload>[]
}
upsert: {
args: Prisma.LocationUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$LocationPayload>
}
aggregate: {
args: Prisma.LocationAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateLocation>
}
groupBy: {
args: Prisma.LocationGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.LocationGroupByOutputType>[]
}
count: {
args: Prisma.LocationCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.LocationCountAggregateOutputType> | number
}
}
}
Device: {
payload: Prisma.$DevicePayload<ExtArgs>
fields: Prisma.DeviceFieldRefs
operations: {
findUnique: {
args: Prisma.DeviceFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload> | null
}
findUniqueOrThrow: {
args: Prisma.DeviceFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
findFirst: {
args: Prisma.DeviceFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload> | null
}
findFirstOrThrow: {
args: Prisma.DeviceFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
findMany: {
args: Prisma.DeviceFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>[]
}
create: {
args: Prisma.DeviceCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
createMany: {
args: Prisma.DeviceCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.DeviceCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>[]
}
delete: {
args: Prisma.DeviceDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
update: {
args: Prisma.DeviceUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
deleteMany: {
args: Prisma.DeviceDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.DeviceUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.DeviceUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>[]
}
upsert: {
args: Prisma.DeviceUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DevicePayload>
}
aggregate: {
args: Prisma.DeviceAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateDevice>
}
groupBy: {
args: Prisma.DeviceGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.DeviceGroupByOutputType>[]
}
count: {
args: Prisma.DeviceCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.DeviceCountAggregateOutputType> | number
}
}
}
Tag: {
payload: Prisma.$TagPayload<ExtArgs>
fields: Prisma.TagFieldRefs
operations: {
findUnique: {
args: Prisma.TagFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload> | null
}
findUniqueOrThrow: {
args: Prisma.TagFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload>
}
findFirst: {
args: Prisma.TagFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload> | null
}
findFirstOrThrow: {
args: Prisma.TagFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload>
}
findMany: {
args: Prisma.TagFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload>[]
}
create: {
args: Prisma.TagCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload>
}
createMany: {
args: Prisma.TagCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.TagCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload>[]
}
delete: {
args: Prisma.TagDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload>
}
update: {
args: Prisma.TagUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload>
}
deleteMany: {
args: Prisma.TagDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.TagUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.TagUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload>[]
}
upsert: {
args: Prisma.TagUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$TagPayload>
}
aggregate: {
args: Prisma.TagAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateTag>
}
groupBy: {
args: Prisma.TagGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.TagGroupByOutputType>[]
}
count: {
args: Prisma.TagCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.TagCountAggregateOutputType> | number
}
}
}
DeviceHistory: {
payload: Prisma.$DeviceHistoryPayload<ExtArgs>
fields: Prisma.DeviceHistoryFieldRefs
operations: {
findUnique: {
args: Prisma.DeviceHistoryFindUniqueArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload> | null
}
findUniqueOrThrow: {
args: Prisma.DeviceHistoryFindUniqueOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload>
}
findFirst: {
args: Prisma.DeviceHistoryFindFirstArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload> | null
}
findFirstOrThrow: {
args: Prisma.DeviceHistoryFindFirstOrThrowArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload>
}
findMany: {
args: Prisma.DeviceHistoryFindManyArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload>[]
}
create: {
args: Prisma.DeviceHistoryCreateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload>
}
createMany: {
args: Prisma.DeviceHistoryCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.DeviceHistoryCreateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload>[]
}
delete: {
args: Prisma.DeviceHistoryDeleteArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload>
}
update: {
args: Prisma.DeviceHistoryUpdateArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload>
}
deleteMany: {
args: Prisma.DeviceHistoryDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.DeviceHistoryUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.DeviceHistoryUpdateManyAndReturnArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload>[]
}
upsert: {
args: Prisma.DeviceHistoryUpsertArgs<ExtArgs>
result: runtime.Types.Utils.PayloadToResult<Prisma.$DeviceHistoryPayload>
}
aggregate: {
args: Prisma.DeviceHistoryAggregateArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.AggregateDeviceHistory>
}
groupBy: {
args: Prisma.DeviceHistoryGroupByArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.DeviceHistoryGroupByOutputType>[]
}
count: {
args: Prisma.DeviceHistoryCountArgs<ExtArgs>
result: runtime.Types.Utils.Optional<Prisma.DeviceHistoryCountAggregateOutputType> | number
}
}
}
}
} & {
other: {
payload: any
operations: {
$executeRaw: {
args: [query: TemplateStringsArray | Sql, ...values: any[]],
result: any
}
$executeRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
$queryRaw: {
args: [query: TemplateStringsArray | Sql, ...values: any[]],
result: any
}
$queryRawUnsafe: {
args: [query: string, ...values: any[]],
result: any
}
}
}
}
/**
* Enums
*/
export const TransactionIsolationLevel = runtime.makeStrictEnum({
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
} as const)
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const UserScalarFieldEnum = {
nwkennung: 'nwkennung',
email: 'email',
arbeitsname: 'arbeitsname',
firstName: 'firstName',
lastName: 'lastName',
passwordHash: 'passwordHash',
groupId: 'groupId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
export const RoleScalarFieldEnum = {
id: 'id',
name: 'name'
} as const
export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum]
export const UserRoleScalarFieldEnum = {
userId: 'userId',
roleId: 'roleId',
assignedAt: 'assignedAt'
} as const
export type UserRoleScalarFieldEnum = (typeof UserRoleScalarFieldEnum)[keyof typeof UserRoleScalarFieldEnum]
export const UserGroupScalarFieldEnum = {
id: 'id',
name: 'name',
canEditDevices: 'canEditDevices'
} as const
export type UserGroupScalarFieldEnum = (typeof UserGroupScalarFieldEnum)[keyof typeof UserGroupScalarFieldEnum]
export const DeviceGroupScalarFieldEnum = {
id: 'id',
name: 'name'
} as const
export type DeviceGroupScalarFieldEnum = (typeof DeviceGroupScalarFieldEnum)[keyof typeof DeviceGroupScalarFieldEnum]
export const LocationScalarFieldEnum = {
id: 'id',
name: 'name'
} as const
export type LocationScalarFieldEnum = (typeof LocationScalarFieldEnum)[keyof typeof LocationScalarFieldEnum]
export const DeviceScalarFieldEnum = {
inventoryNumber: 'inventoryNumber',
name: 'name',
manufacturer: 'manufacturer',
model: 'model',
serialNumber: 'serialNumber',
productNumber: 'productNumber',
comment: 'comment',
ipv4Address: 'ipv4Address',
ipv6Address: 'ipv6Address',
macAddress: 'macAddress',
username: 'username',
passwordHash: 'passwordHash',
groupId: 'groupId',
locationId: 'locationId',
loanedTo: 'loanedTo',
loanedFrom: 'loanedFrom',
loanedUntil: 'loanedUntil',
loanComment: 'loanComment',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
createdById: 'createdById',
updatedById: 'updatedById',
parentDeviceId: 'parentDeviceId'
} as const
export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum]
export const TagScalarFieldEnum = {
id: 'id',
name: 'name'
} as const
export type TagScalarFieldEnum = (typeof TagScalarFieldEnum)[keyof typeof TagScalarFieldEnum]
export const DeviceHistoryScalarFieldEnum = {
id: 'id',
deviceId: 'deviceId',
changeType: 'changeType',
snapshot: 'snapshot',
changedAt: 'changedAt',
changedById: 'changedById'
} as const
export type DeviceHistoryScalarFieldEnum = (typeof DeviceHistoryScalarFieldEnum)[keyof typeof DeviceHistoryScalarFieldEnum]
export const SortOrder = {
asc: 'asc',
desc: 'desc'
} as const
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const JsonNullValueInput = {
JsonNull: JsonNull
} as const
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
export const QueryMode = {
default: 'default',
insensitive: 'insensitive'
} as const
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const NullsOrder = {
first: 'first',
last: 'last'
} as const
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
export const JsonNullValueFilter = {
DbNull: DbNull,
JsonNull: JsonNull,
AnyNull: AnyNull
} as const
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
/**
* Field references
*/
/**
* Reference to a field of type 'String'
*/
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
/**
* Reference to a field of type 'String[]'
*/
export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
/**
* Reference to a field of type 'DateTime'
*/
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
/**
* Reference to a field of type 'DateTime[]'
*/
export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
/**
* Reference to a field of type 'Boolean'
*/
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
/**
* Reference to a field of type 'DeviceChangeType'
*/
export type EnumDeviceChangeTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DeviceChangeType'>
/**
* Reference to a field of type 'DeviceChangeType[]'
*/
export type ListEnumDeviceChangeTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DeviceChangeType[]'>
/**
* Reference to a field of type 'Json'
*/
export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
/**
* Reference to a field of type 'QueryMode'
*/
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
/**
* Reference to a field of type 'Int'
*/
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
/**
* Reference to a field of type 'Int[]'
*/
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
/**
* Batch Payload for updateMany & deleteMany & createMany
*/
export type BatchPayload = {
count: number
}
export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>
export type DefaultPrismaClient = PrismaClient
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
export type PrismaClientOptions = ({
/**
* Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
*/
adapter: runtime.SqlDriverAdapterFactory
accelerateUrl?: never
} | {
/**
* Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
*/
accelerateUrl: string
adapter?: never
}) & {
/**
* @default "colorless"
*/
errorFormat?: ErrorFormat
/**
* @example
* ```
* // Shorthand for `emit: 'stdout'`
* log: ['query', 'info', 'warn', 'error']
*
* // Emit as events only
* log: [
* { emit: 'event', level: 'query' },
* { emit: 'event', level: 'info' },
* { emit: 'event', level: 'warn' }
* { emit: 'event', level: 'error' }
* ]
*
* / Emit as events and log to stdout
* og: [
* { emit: 'stdout', level: 'query' },
* { emit: 'stdout', level: 'info' },
* { emit: 'stdout', level: 'warn' }
* { emit: 'stdout', level: 'error' }
*
* ```
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
*/
log?: (LogLevel | LogDefinition)[]
/**
* The default values for transactionOptions
* maxWait ?= 2000
* timeout ?= 5000
*/
transactionOptions?: {
maxWait?: number
timeout?: number
isolationLevel?: TransactionIsolationLevel
}
/**
* Global configuration for omitting model fields by default.
*
* @example
* ```
* const prisma = new PrismaClient({
* omit: {
* user: {
* password: true
* }
* }
* })
* ```
*/
omit?: GlobalOmitConfig
}
export type GlobalOmitConfig = {
user?: Prisma.UserOmit
role?: Prisma.RoleOmit
userRole?: Prisma.UserRoleOmit
userGroup?: Prisma.UserGroupOmit
deviceGroup?: Prisma.DeviceGroupOmit
location?: Prisma.LocationOmit
device?: Prisma.DeviceOmit
tag?: Prisma.TagOmit
deviceHistory?: Prisma.DeviceHistoryOmit
}
/* Types for Logging */
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
export type LogDefinition = {
level: LogLevel
emit: 'stdout' | 'event'
}
export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
export type GetLogType<T> = CheckIsLogLevel<
T extends LogDefinition ? T['level'] : T
>;
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
? GetLogType<T[number]>
: never;
export type QueryEvent = {
timestamp: Date
query: string
params: string
duration: number
target: string
}
export type LogEvent = {
timestamp: Date
message: string
target: string
}
/* End Types for Logging */
export type PrismaAction =
| 'findUnique'
| 'findUniqueOrThrow'
| 'findMany'
| 'findFirst'
| 'findFirstOrThrow'
| 'create'
| 'createMany'
| 'createManyAndReturn'
| 'update'
| 'updateMany'
| 'updateManyAndReturn'
| 'upsert'
| 'delete'
| 'deleteMany'
| 'executeRaw'
| 'queryRaw'
| 'aggregate'
| 'count'
| 'runCommandRaw'
| 'findRaw'
| 'groupBy'
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>