/** * Client **/ import * as runtime from './runtime/library.js'; import $Types = runtime.Types // general types import $Public = runtime.Types.Public import $Utils = runtime.Types.Utils import $Extensions = runtime.Types.Extensions import $Result = runtime.Types.Result export type PrismaPromise = $Public.PrismaPromise /** * Model DeviceType * */ export type DeviceType = $Result.DefaultSelection /** * Model DeviceVendor * */ export type DeviceVendor = $Result.DefaultSelection /** * Model DeviceModel * */ export type DeviceModel = $Result.DefaultSelection /** * Model DeviceCredential * */ export type DeviceCredential = $Result.DefaultSelection /** * Model NetworkDevice * */ export type NetworkDevice = $Result.DefaultSelection /** * Model NetworkDeviceVersion * */ export type NetworkDeviceVersion = $Result.DefaultSelection /** * Model StatOnuDevice * */ export type StatOnuDevice = $Result.DefaultSelection /** * Model StatOnuOpticalSignal * */ export type StatOnuOpticalSignal = $Result.DefaultSelection /** * Model StatActiveOnu * */ export type StatActiveOnu = $Result.DefaultSelection /** * Model StatInactiveOnu * */ export type StatInactiveOnu = $Result.DefaultSelection /** * Model StatInterfaces * */ export type StatInterfaces = $Result.DefaultSelection /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more DeviceTypes * const deviceTypes = await prisma.deviceType.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ export class PrismaClient< ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['other'] } /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more DeviceTypes * const deviceTypes = await prisma.deviceType.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ constructor(optionsArg ?: Prisma.Subset); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * Add a middleware * @deprecated since 4.16.0. For new code, prefer client extensions instead. * @see https://pris.ly/d/extensions */ $use(cb: Prisma.Middleware): void /** * Executes a prepared raw query and returns the number of affected rows. * @example * ``` * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Executes a raw query and returns the number of affected rows. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Performs a prepared raw query and returns the `SELECT` data. * @example * ``` * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Performs a raw query and returns the `SELECT` data. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. * @example * ``` * const [george, bob, alice] = await prisma.$transaction([ * prisma.user.create({ data: { name: 'George' } }), * prisma.user.create({ data: { name: 'Bob' } }), * prisma.user.create({ data: { name: 'Alice' } }), * ]) * ``` * * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). */ $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, ClientOptions> /** * `prisma.deviceType`: Exposes CRUD operations for the **DeviceType** model. * Example usage: * ```ts * // Fetch zero or more DeviceTypes * const deviceTypes = await prisma.deviceType.findMany() * ``` */ get deviceType(): Prisma.DeviceTypeDelegate; /** * `prisma.deviceVendor`: Exposes CRUD operations for the **DeviceVendor** model. * Example usage: * ```ts * // Fetch zero or more DeviceVendors * const deviceVendors = await prisma.deviceVendor.findMany() * ``` */ get deviceVendor(): Prisma.DeviceVendorDelegate; /** * `prisma.deviceModel`: Exposes CRUD operations for the **DeviceModel** model. * Example usage: * ```ts * // Fetch zero or more DeviceModels * const deviceModels = await prisma.deviceModel.findMany() * ``` */ get deviceModel(): Prisma.DeviceModelDelegate; /** * `prisma.deviceCredential`: Exposes CRUD operations for the **DeviceCredential** model. * Example usage: * ```ts * // Fetch zero or more DeviceCredentials * const deviceCredentials = await prisma.deviceCredential.findMany() * ``` */ get deviceCredential(): Prisma.DeviceCredentialDelegate; /** * `prisma.networkDevice`: Exposes CRUD operations for the **NetworkDevice** model. * Example usage: * ```ts * // Fetch zero or more NetworkDevices * const networkDevices = await prisma.networkDevice.findMany() * ``` */ get networkDevice(): Prisma.NetworkDeviceDelegate; /** * `prisma.networkDeviceVersion`: Exposes CRUD operations for the **NetworkDeviceVersion** model. * Example usage: * ```ts * // Fetch zero or more NetworkDeviceVersions * const networkDeviceVersions = await prisma.networkDeviceVersion.findMany() * ``` */ get networkDeviceVersion(): Prisma.NetworkDeviceVersionDelegate; /** * `prisma.statOnuDevice`: Exposes CRUD operations for the **StatOnuDevice** model. * Example usage: * ```ts * // Fetch zero or more StatOnuDevices * const statOnuDevices = await prisma.statOnuDevice.findMany() * ``` */ get statOnuDevice(): Prisma.StatOnuDeviceDelegate; /** * `prisma.statOnuOpticalSignal`: Exposes CRUD operations for the **StatOnuOpticalSignal** model. * Example usage: * ```ts * // Fetch zero or more StatOnuOpticalSignals * const statOnuOpticalSignals = await prisma.statOnuOpticalSignal.findMany() * ``` */ get statOnuOpticalSignal(): Prisma.StatOnuOpticalSignalDelegate; /** * `prisma.statActiveOnu`: Exposes CRUD operations for the **StatActiveOnu** model. * Example usage: * ```ts * // Fetch zero or more StatActiveOnus * const statActiveOnus = await prisma.statActiveOnu.findMany() * ``` */ get statActiveOnu(): Prisma.StatActiveOnuDelegate; /** * `prisma.statInactiveOnu`: Exposes CRUD operations for the **StatInactiveOnu** model. * Example usage: * ```ts * // Fetch zero or more StatInactiveOnus * const statInactiveOnus = await prisma.statInactiveOnu.findMany() * ``` */ get statInactiveOnu(): Prisma.StatInactiveOnuDelegate; /** * `prisma.statInterfaces`: Exposes CRUD operations for the **StatInterfaces** model. * Example usage: * ```ts * // Fetch zero or more StatInterfaces * const statInterfaces = await prisma.statInterfaces.findMany() * ``` */ get statInterfaces(): Prisma.StatInterfacesDelegate; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise = $Public.PrismaPromise /** * Validator */ export import validator = runtime.Public.validator /** * Prisma Errors */ export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError export import PrismaClientInitializationError = runtime.PrismaClientInitializationError export import PrismaClientValidationError = runtime.PrismaClientValidationError /** * Re-export of sql-template-tag */ export import sql = runtime.sqltag export import empty = runtime.empty export import join = runtime.join export import raw = runtime.raw export import Sql = runtime.Sql /** * Decimal.js */ export import Decimal = runtime.Decimal export type DecimalJsLike = runtime.DecimalJsLike /** * Metrics */ export type Metrics = runtime.Metrics export type Metric = runtime.Metric export type MetricHistogram = runtime.MetricHistogram export type MetricHistogramBucket = runtime.MetricHistogramBucket /** * Extensions */ export import Extension = $Extensions.UserArgs export import getExtensionContext = runtime.Extensions.getExtensionContext export import Args = $Public.Args export import Payload = $Public.Payload export import Result = $Public.Result export import Exact = $Public.Exact /** * Prisma Client JS version: 6.3.1 * Query Engine version: acc0b9dd43eb689cbd20c9470515d719db10d0b0 */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import JsonObject = runtime.JsonObject export import JsonArray = runtime.JsonArray export import JsonValue = runtime.JsonValue export import InputJsonObject = runtime.InputJsonObject export import InputJsonArray = runtime.InputJsonArray export import InputJsonValue = runtime.InputJsonValue /** * Types of the values used to represent different kinds of `null` values when working with JSON fields. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ namespace NullTypes { /** * Type of `Prisma.DbNull`. * * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class DbNull { private DbNull: never private constructor() } /** * Type of `Prisma.JsonNull`. * * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class JsonNull { private JsonNull: never private constructor() } /** * Type of `Prisma.AnyNull`. * * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class AnyNull { private AnyNull: never private constructor() } } /** * 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: NullTypes.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: NullTypes.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: NullTypes.AnyNull type SelectAndInclude = { select: any include: any } type SelectAndOmit = { select: any omit: any } /** * Get the type of the value, that the Promise holds. */ export type PromiseType> = T extends PromiseLike ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [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 = { [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 = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: never }; /** * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ type XOR = T extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? 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 Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = NoExpand< O extends unknown ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) | {[P in keyof O as P extends K ? K : never]-?: O[P]} & O : never>; type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ export type False = 0 export type Not = { 0: 1 1: 0 }[B] export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 ? 1 : 0 export type Has = Not< Extends, U1> > export type Or = { 0: { 0: 0 1: 1 } 1: { 0: 1 1: 1 } }[B1][B2] export type Keys = U extends unknown ? keyof U : never type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never } : never type FieldPaths< T, U = Omit > = IsObject extends True ? U : T type GetHavingFields = { [K in keyof T]: Or< Or, 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 extends object ? Merge> : never> : never : {} extends FieldPaths ? never : K }[keyof T] /** * Convert tuple to union */ type _TupleToUnion = T extends (infer E)[] ? E : never type TupleToUnion = _TupleToUnion type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef export const ModelName: { DeviceType: 'DeviceType', DeviceVendor: 'DeviceVendor', DeviceModel: 'DeviceModel', DeviceCredential: 'DeviceCredential', NetworkDevice: 'NetworkDevice', NetworkDeviceVersion: 'NetworkDeviceVersion', StatOnuDevice: 'StatOnuDevice', StatOnuOpticalSignal: 'StatOnuOpticalSignal', StatActiveOnu: 'StatActiveOnu', StatInactiveOnu: 'StatInactiveOnu', StatInterfaces: 'StatInterfaces' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { meta: { modelProps: "deviceType" | "deviceVendor" | "deviceModel" | "deviceCredential" | "networkDevice" | "networkDeviceVersion" | "statOnuDevice" | "statOnuOpticalSignal" | "statActiveOnu" | "statInactiveOnu" | "statInterfaces" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { DeviceType: { payload: Prisma.$DeviceTypePayload fields: Prisma.DeviceTypeFieldRefs operations: { findUnique: { args: Prisma.DeviceTypeFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.DeviceTypeFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.DeviceTypeFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.DeviceTypeFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.DeviceTypeFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.DeviceTypeCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.DeviceTypeCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.DeviceTypeCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.DeviceTypeDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.DeviceTypeUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.DeviceTypeDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.DeviceTypeUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.DeviceTypeUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.DeviceTypeUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.DeviceTypeAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.DeviceTypeGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.DeviceTypeCountArgs result: $Utils.Optional | number } } } DeviceVendor: { payload: Prisma.$DeviceVendorPayload fields: Prisma.DeviceVendorFieldRefs operations: { findUnique: { args: Prisma.DeviceVendorFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.DeviceVendorFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.DeviceVendorFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.DeviceVendorFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.DeviceVendorFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.DeviceVendorCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.DeviceVendorCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.DeviceVendorCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.DeviceVendorDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.DeviceVendorUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.DeviceVendorDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.DeviceVendorUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.DeviceVendorUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.DeviceVendorUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.DeviceVendorAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.DeviceVendorGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.DeviceVendorCountArgs result: $Utils.Optional | number } } } DeviceModel: { payload: Prisma.$DeviceModelPayload fields: Prisma.DeviceModelFieldRefs operations: { findUnique: { args: Prisma.DeviceModelFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.DeviceModelFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.DeviceModelFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.DeviceModelFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.DeviceModelFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.DeviceModelCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.DeviceModelCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.DeviceModelCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.DeviceModelDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.DeviceModelUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.DeviceModelDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.DeviceModelUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.DeviceModelUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.DeviceModelUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.DeviceModelAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.DeviceModelGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.DeviceModelCountArgs result: $Utils.Optional | number } } } DeviceCredential: { payload: Prisma.$DeviceCredentialPayload fields: Prisma.DeviceCredentialFieldRefs operations: { findUnique: { args: Prisma.DeviceCredentialFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.DeviceCredentialFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.DeviceCredentialFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.DeviceCredentialFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.DeviceCredentialFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.DeviceCredentialCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.DeviceCredentialCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.DeviceCredentialCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.DeviceCredentialDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.DeviceCredentialUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.DeviceCredentialDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.DeviceCredentialUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.DeviceCredentialUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.DeviceCredentialUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.DeviceCredentialAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.DeviceCredentialGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.DeviceCredentialCountArgs result: $Utils.Optional | number } } } NetworkDevice: { payload: Prisma.$NetworkDevicePayload fields: Prisma.NetworkDeviceFieldRefs operations: { findUnique: { args: Prisma.NetworkDeviceFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.NetworkDeviceFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.NetworkDeviceFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.NetworkDeviceFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.NetworkDeviceFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.NetworkDeviceCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.NetworkDeviceCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.NetworkDeviceCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.NetworkDeviceDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.NetworkDeviceUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.NetworkDeviceDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.NetworkDeviceUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.NetworkDeviceUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.NetworkDeviceUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.NetworkDeviceAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.NetworkDeviceGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.NetworkDeviceCountArgs result: $Utils.Optional | number } } } NetworkDeviceVersion: { payload: Prisma.$NetworkDeviceVersionPayload fields: Prisma.NetworkDeviceVersionFieldRefs operations: { findUnique: { args: Prisma.NetworkDeviceVersionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.NetworkDeviceVersionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.NetworkDeviceVersionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.NetworkDeviceVersionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.NetworkDeviceVersionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.NetworkDeviceVersionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.NetworkDeviceVersionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.NetworkDeviceVersionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.NetworkDeviceVersionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.NetworkDeviceVersionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.NetworkDeviceVersionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.NetworkDeviceVersionUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.NetworkDeviceVersionUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.NetworkDeviceVersionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.NetworkDeviceVersionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.NetworkDeviceVersionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.NetworkDeviceVersionCountArgs result: $Utils.Optional | number } } } StatOnuDevice: { payload: Prisma.$StatOnuDevicePayload fields: Prisma.StatOnuDeviceFieldRefs operations: { findUnique: { args: Prisma.StatOnuDeviceFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.StatOnuDeviceFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.StatOnuDeviceFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.StatOnuDeviceFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.StatOnuDeviceFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.StatOnuDeviceCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.StatOnuDeviceCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.StatOnuDeviceCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.StatOnuDeviceDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.StatOnuDeviceUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.StatOnuDeviceDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.StatOnuDeviceUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.StatOnuDeviceUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.StatOnuDeviceUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StatOnuDeviceAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.StatOnuDeviceGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.StatOnuDeviceCountArgs result: $Utils.Optional | number } } } StatOnuOpticalSignal: { payload: Prisma.$StatOnuOpticalSignalPayload fields: Prisma.StatOnuOpticalSignalFieldRefs operations: { findUnique: { args: Prisma.StatOnuOpticalSignalFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.StatOnuOpticalSignalFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.StatOnuOpticalSignalFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.StatOnuOpticalSignalFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.StatOnuOpticalSignalFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.StatOnuOpticalSignalCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.StatOnuOpticalSignalCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.StatOnuOpticalSignalCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.StatOnuOpticalSignalDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.StatOnuOpticalSignalUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.StatOnuOpticalSignalDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.StatOnuOpticalSignalUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.StatOnuOpticalSignalUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.StatOnuOpticalSignalUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StatOnuOpticalSignalAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.StatOnuOpticalSignalGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.StatOnuOpticalSignalCountArgs result: $Utils.Optional | number } } } StatActiveOnu: { payload: Prisma.$StatActiveOnuPayload fields: Prisma.StatActiveOnuFieldRefs operations: { findUnique: { args: Prisma.StatActiveOnuFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.StatActiveOnuFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.StatActiveOnuFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.StatActiveOnuFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.StatActiveOnuFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.StatActiveOnuCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.StatActiveOnuCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.StatActiveOnuCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.StatActiveOnuDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.StatActiveOnuUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.StatActiveOnuDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.StatActiveOnuUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.StatActiveOnuUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.StatActiveOnuUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StatActiveOnuAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.StatActiveOnuGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.StatActiveOnuCountArgs result: $Utils.Optional | number } } } StatInactiveOnu: { payload: Prisma.$StatInactiveOnuPayload fields: Prisma.StatInactiveOnuFieldRefs operations: { findUnique: { args: Prisma.StatInactiveOnuFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.StatInactiveOnuFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.StatInactiveOnuFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.StatInactiveOnuFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.StatInactiveOnuFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.StatInactiveOnuCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.StatInactiveOnuCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.StatInactiveOnuCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.StatInactiveOnuDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.StatInactiveOnuUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.StatInactiveOnuDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.StatInactiveOnuUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.StatInactiveOnuUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.StatInactiveOnuUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StatInactiveOnuAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.StatInactiveOnuGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.StatInactiveOnuCountArgs result: $Utils.Optional | number } } } StatInterfaces: { payload: Prisma.$StatInterfacesPayload fields: Prisma.StatInterfacesFieldRefs operations: { findUnique: { args: Prisma.StatInterfacesFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.StatInterfacesFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.StatInterfacesFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.StatInterfacesFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.StatInterfacesFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.StatInterfacesCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.StatInterfacesCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.StatInterfacesCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.StatInterfacesDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.StatInterfacesUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.StatInterfacesDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.StatInterfacesUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.StatInterfacesUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.StatInterfacesUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StatInterfacesAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.StatInterfacesGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.StatInterfacesCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Defaults to stdout * log: ['query', 'info', 'warn', 'error'] * * // Emit as events * log: [ * { 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?: Prisma.TransactionIsolationLevel } /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig } export type GlobalOmitConfig = { deviceType?: DeviceTypeOmit deviceVendor?: DeviceVendorOmit deviceModel?: DeviceModelOmit deviceCredential?: DeviceCredentialOmit networkDevice?: NetworkDeviceOmit networkDeviceVersion?: NetworkDeviceVersionOmit statOnuDevice?: StatOnuDeviceOmit statOnuOpticalSignal?: StatOnuOpticalSignalOmit statActiveOnu?: StatActiveOnuOmit statInactiveOnu?: StatInactiveOnuOmit statInterfaces?: StatInterfacesOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never export type GetEvents = T extends Array ? GetLogType | GetLogType | GetLogType | GetLogType : 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' /** * These options are being passed into the middleware as "params" */ export type MiddlewareParams = { model?: ModelName action: PrismaAction args: any dataPath: string[] runInTransaction: boolean } /** * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation */ export type Middleware = ( params: MiddlewareParams, next: (params: MiddlewareParams) => $Utils.JsPromise, ) => $Utils.JsPromise // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type DeviceTypeCountOutputType */ export type DeviceTypeCountOutputType = { DeviceModel: number } export type DeviceTypeCountOutputTypeSelect = { DeviceModel?: boolean | DeviceTypeCountOutputTypeCountDeviceModelArgs } // Custom InputTypes /** * DeviceTypeCountOutputType without action */ export type DeviceTypeCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the DeviceTypeCountOutputType */ select?: DeviceTypeCountOutputTypeSelect | null } /** * DeviceTypeCountOutputType without action */ export type DeviceTypeCountOutputTypeCountDeviceModelArgs = { where?: DeviceModelWhereInput } /** * Count Type DeviceVendorCountOutputType */ export type DeviceVendorCountOutputType = { DeviceModel: number } export type DeviceVendorCountOutputTypeSelect = { DeviceModel?: boolean | DeviceVendorCountOutputTypeCountDeviceModelArgs } // Custom InputTypes /** * DeviceVendorCountOutputType without action */ export type DeviceVendorCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the DeviceVendorCountOutputType */ select?: DeviceVendorCountOutputTypeSelect | null } /** * DeviceVendorCountOutputType without action */ export type DeviceVendorCountOutputTypeCountDeviceModelArgs = { where?: DeviceModelWhereInput } /** * Count Type DeviceModelCountOutputType */ export type DeviceModelCountOutputType = { NetworkDevice: number } export type DeviceModelCountOutputTypeSelect = { NetworkDevice?: boolean | DeviceModelCountOutputTypeCountNetworkDeviceArgs } // Custom InputTypes /** * DeviceModelCountOutputType without action */ export type DeviceModelCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the DeviceModelCountOutputType */ select?: DeviceModelCountOutputTypeSelect | null } /** * DeviceModelCountOutputType without action */ export type DeviceModelCountOutputTypeCountNetworkDeviceArgs = { where?: NetworkDeviceWhereInput } /** * Count Type DeviceCredentialCountOutputType */ export type DeviceCredentialCountOutputType = { NetworkDevice: number } export type DeviceCredentialCountOutputTypeSelect = { NetworkDevice?: boolean | DeviceCredentialCountOutputTypeCountNetworkDeviceArgs } // Custom InputTypes /** * DeviceCredentialCountOutputType without action */ export type DeviceCredentialCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the DeviceCredentialCountOutputType */ select?: DeviceCredentialCountOutputTypeSelect | null } /** * DeviceCredentialCountOutputType without action */ export type DeviceCredentialCountOutputTypeCountNetworkDeviceArgs = { where?: NetworkDeviceWhereInput } /** * Count Type NetworkDeviceCountOutputType */ export type NetworkDeviceCountOutputType = { StatInactiveOnu: number StatActiveOnu: number StatOnuDevice: number StatOnuOpticalSignal: number StatInterfaces: number NetworkDeviceVersion: number } export type NetworkDeviceCountOutputTypeSelect = { StatInactiveOnu?: boolean | NetworkDeviceCountOutputTypeCountStatInactiveOnuArgs StatActiveOnu?: boolean | NetworkDeviceCountOutputTypeCountStatActiveOnuArgs StatOnuDevice?: boolean | NetworkDeviceCountOutputTypeCountStatOnuDeviceArgs StatOnuOpticalSignal?: boolean | NetworkDeviceCountOutputTypeCountStatOnuOpticalSignalArgs StatInterfaces?: boolean | NetworkDeviceCountOutputTypeCountStatInterfacesArgs NetworkDeviceVersion?: boolean | NetworkDeviceCountOutputTypeCountNetworkDeviceVersionArgs } // Custom InputTypes /** * NetworkDeviceCountOutputType without action */ export type NetworkDeviceCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the NetworkDeviceCountOutputType */ select?: NetworkDeviceCountOutputTypeSelect | null } /** * NetworkDeviceCountOutputType without action */ export type NetworkDeviceCountOutputTypeCountStatInactiveOnuArgs = { where?: StatInactiveOnuWhereInput } /** * NetworkDeviceCountOutputType without action */ export type NetworkDeviceCountOutputTypeCountStatActiveOnuArgs = { where?: StatActiveOnuWhereInput } /** * NetworkDeviceCountOutputType without action */ export type NetworkDeviceCountOutputTypeCountStatOnuDeviceArgs = { where?: StatOnuDeviceWhereInput } /** * NetworkDeviceCountOutputType without action */ export type NetworkDeviceCountOutputTypeCountStatOnuOpticalSignalArgs = { where?: StatOnuOpticalSignalWhereInput } /** * NetworkDeviceCountOutputType without action */ export type NetworkDeviceCountOutputTypeCountStatInterfacesArgs = { where?: StatInterfacesWhereInput } /** * NetworkDeviceCountOutputType without action */ export type NetworkDeviceCountOutputTypeCountNetworkDeviceVersionArgs = { where?: NetworkDeviceVersionWhereInput } /** * Models */ /** * Model DeviceType */ export type AggregateDeviceType = { _count: DeviceTypeCountAggregateOutputType | null _avg: DeviceTypeAvgAggregateOutputType | null _sum: DeviceTypeSumAggregateOutputType | null _min: DeviceTypeMinAggregateOutputType | null _max: DeviceTypeMaxAggregateOutputType | null } export type DeviceTypeAvgAggregateOutputType = { id: number | null } export type DeviceTypeSumAggregateOutputType = { id: number | null } export type DeviceTypeMinAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null type: string | null } export type DeviceTypeMaxAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null type: string | null } export type DeviceTypeCountAggregateOutputType = { id: number createdAt: number updatedAt: number type: number _all: number } export type DeviceTypeAvgAggregateInputType = { id?: true } export type DeviceTypeSumAggregateInputType = { id?: true } export type DeviceTypeMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true type?: true } export type DeviceTypeMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true type?: true } export type DeviceTypeCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true type?: true _all?: true } export type DeviceTypeAggregateArgs = { /** * Filter which DeviceType to aggregate. */ where?: DeviceTypeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceTypes to fetch. */ orderBy?: DeviceTypeOrderByWithRelationInput | DeviceTypeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: DeviceTypeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceTypes from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceTypes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DeviceTypes **/ _count?: true | DeviceTypeCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DeviceTypeAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DeviceTypeSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceTypeMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceTypeMaxAggregateInputType } export type GetDeviceTypeAggregateType = { [P in keyof T & keyof AggregateDeviceType]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type DeviceTypeGroupByArgs = { where?: DeviceTypeWhereInput orderBy?: DeviceTypeOrderByWithAggregationInput | DeviceTypeOrderByWithAggregationInput[] by: DeviceTypeScalarFieldEnum[] | DeviceTypeScalarFieldEnum having?: DeviceTypeScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceTypeCountAggregateInputType | true _avg?: DeviceTypeAvgAggregateInputType _sum?: DeviceTypeSumAggregateInputType _min?: DeviceTypeMinAggregateInputType _max?: DeviceTypeMaxAggregateInputType } export type DeviceTypeGroupByOutputType = { id: number createdAt: Date updatedAt: Date type: string _count: DeviceTypeCountAggregateOutputType | null _avg: DeviceTypeAvgAggregateOutputType | null _sum: DeviceTypeSumAggregateOutputType | null _min: DeviceTypeMinAggregateOutputType | null _max: DeviceTypeMaxAggregateOutputType | null } type GetDeviceTypeGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof DeviceTypeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type DeviceTypeSelect = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean type?: boolean DeviceModel?: boolean | DeviceType$DeviceModelArgs _count?: boolean | DeviceTypeCountOutputTypeDefaultArgs }, ExtArgs["result"]["deviceType"]> export type DeviceTypeSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean type?: boolean }, ExtArgs["result"]["deviceType"]> export type DeviceTypeSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean type?: boolean }, ExtArgs["result"]["deviceType"]> export type DeviceTypeSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean type?: boolean } export type DeviceTypeOmit = $Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "type", ExtArgs["result"]["deviceType"]> export type DeviceTypeInclude = { DeviceModel?: boolean | DeviceType$DeviceModelArgs _count?: boolean | DeviceTypeCountOutputTypeDefaultArgs } export type DeviceTypeIncludeCreateManyAndReturn = {} export type DeviceTypeIncludeUpdateManyAndReturn = {} export type $DeviceTypePayload = { name: "DeviceType" objects: { DeviceModel: Prisma.$DeviceModelPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number createdAt: Date updatedAt: Date type: string }, ExtArgs["result"]["deviceType"]> composites: {} } type DeviceTypeGetPayload = $Result.GetResult type DeviceTypeCountArgs = Omit & { select?: DeviceTypeCountAggregateInputType | true } export interface DeviceTypeDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DeviceType'], meta: { name: 'DeviceType' } } /** * Find zero or one DeviceType that matches the filter. * @param {DeviceTypeFindUniqueArgs} args - Arguments to find a DeviceType * @example * // Get one DeviceType * const deviceType = await prisma.deviceType.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__DeviceTypeClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one DeviceType that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeviceTypeFindUniqueOrThrowArgs} args - Arguments to find a DeviceType * @example * // Get one DeviceType * const deviceType = await prisma.deviceType.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__DeviceTypeClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first DeviceType that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTypeFindFirstArgs} args - Arguments to find a DeviceType * @example * // Get one DeviceType * const deviceType = await prisma.deviceType.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__DeviceTypeClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first DeviceType that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTypeFindFirstOrThrowArgs} args - Arguments to find a DeviceType * @example * // Get one DeviceType * const deviceType = await prisma.deviceType.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__DeviceTypeClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more DeviceTypes that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTypeFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DeviceTypes * const deviceTypes = await prisma.deviceType.findMany() * * // Get first 10 DeviceTypes * const deviceTypes = await prisma.deviceType.findMany({ take: 10 }) * * // Only select the `id` * const deviceTypeWithIdOnly = await prisma.deviceType.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a DeviceType. * @param {DeviceTypeCreateArgs} args - Arguments to create a DeviceType. * @example * // Create one DeviceType * const DeviceType = await prisma.deviceType.create({ * data: { * // ... data to create a DeviceType * } * }) * */ create(args: SelectSubset>): Prisma__DeviceTypeClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many DeviceTypes. * @param {DeviceTypeCreateManyArgs} args - Arguments to create many DeviceTypes. * @example * // Create many DeviceTypes * const deviceType = await prisma.deviceType.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many DeviceTypes and returns the data saved in the database. * @param {DeviceTypeCreateManyAndReturnArgs} args - Arguments to create many DeviceTypes. * @example * // Create many DeviceTypes * const deviceType = await prisma.deviceType.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DeviceTypes and only return the `id` * const deviceTypeWithIdOnly = await prisma.deviceType.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a DeviceType. * @param {DeviceTypeDeleteArgs} args - Arguments to delete one DeviceType. * @example * // Delete one DeviceType * const DeviceType = await prisma.deviceType.delete({ * where: { * // ... filter to delete one DeviceType * } * }) * */ delete(args: SelectSubset>): Prisma__DeviceTypeClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one DeviceType. * @param {DeviceTypeUpdateArgs} args - Arguments to update one DeviceType. * @example * // Update one DeviceType * const deviceType = await prisma.deviceType.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__DeviceTypeClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more DeviceTypes. * @param {DeviceTypeDeleteManyArgs} args - Arguments to filter DeviceTypes to delete. * @example * // Delete a few DeviceTypes * const { count } = await prisma.deviceType.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceTypes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTypeUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DeviceTypes * const deviceType = await prisma.deviceType.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceTypes and returns the data updated in the database. * @param {DeviceTypeUpdateManyAndReturnArgs} args - Arguments to update many DeviceTypes. * @example * // Update many DeviceTypes * const deviceType = await prisma.deviceType.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DeviceTypes and only return the `id` * const deviceTypeWithIdOnly = await prisma.deviceType.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one DeviceType. * @param {DeviceTypeUpsertArgs} args - Arguments to update or create a DeviceType. * @example * // Update or create a DeviceType * const deviceType = await prisma.deviceType.upsert({ * create: { * // ... data to create a DeviceType * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DeviceType we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__DeviceTypeClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of DeviceTypes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTypeCountArgs} args - Arguments to filter DeviceTypes to count. * @example * // Count the number of DeviceTypes * const count = await prisma.deviceType.count({ * where: { * // ... the filter for the DeviceTypes we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a DeviceType. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTypeAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by DeviceType. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTypeGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends DeviceTypeGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: DeviceTypeGroupByArgs['orderBy'] } : { orderBy?: DeviceTypeGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetDeviceTypeGroupByPayload : Prisma.PrismaPromise /** * Fields of the DeviceType model */ readonly fields: DeviceTypeFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DeviceType. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__DeviceTypeClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" DeviceModel = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the DeviceType model */ interface DeviceTypeFieldRefs { readonly id: FieldRef<"DeviceType", 'Int'> readonly createdAt: FieldRef<"DeviceType", 'DateTime'> readonly updatedAt: FieldRef<"DeviceType", 'DateTime'> readonly type: FieldRef<"DeviceType", 'String'> } // Custom InputTypes /** * DeviceType findUnique */ export type DeviceTypeFindUniqueArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null /** * Filter, which DeviceType to fetch. */ where: DeviceTypeWhereUniqueInput } /** * DeviceType findUniqueOrThrow */ export type DeviceTypeFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null /** * Filter, which DeviceType to fetch. */ where: DeviceTypeWhereUniqueInput } /** * DeviceType findFirst */ export type DeviceTypeFindFirstArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null /** * Filter, which DeviceType to fetch. */ where?: DeviceTypeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceTypes to fetch. */ orderBy?: DeviceTypeOrderByWithRelationInput | DeviceTypeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceTypes. */ cursor?: DeviceTypeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceTypes from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceTypes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceTypes. */ distinct?: DeviceTypeScalarFieldEnum | DeviceTypeScalarFieldEnum[] } /** * DeviceType findFirstOrThrow */ export type DeviceTypeFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null /** * Filter, which DeviceType to fetch. */ where?: DeviceTypeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceTypes to fetch. */ orderBy?: DeviceTypeOrderByWithRelationInput | DeviceTypeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceTypes. */ cursor?: DeviceTypeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceTypes from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceTypes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceTypes. */ distinct?: DeviceTypeScalarFieldEnum | DeviceTypeScalarFieldEnum[] } /** * DeviceType findMany */ export type DeviceTypeFindManyArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null /** * Filter, which DeviceTypes to fetch. */ where?: DeviceTypeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceTypes to fetch. */ orderBy?: DeviceTypeOrderByWithRelationInput | DeviceTypeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DeviceTypes. */ cursor?: DeviceTypeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceTypes from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceTypes. */ skip?: number distinct?: DeviceTypeScalarFieldEnum | DeviceTypeScalarFieldEnum[] } /** * DeviceType create */ export type DeviceTypeCreateArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null /** * The data needed to create a DeviceType. */ data: XOR } /** * DeviceType createMany */ export type DeviceTypeCreateManyArgs = { /** * The data used to create many DeviceTypes. */ data: DeviceTypeCreateManyInput | DeviceTypeCreateManyInput[] skipDuplicates?: boolean } /** * DeviceType createManyAndReturn */ export type DeviceTypeCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelectCreateManyAndReturn | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * The data used to create many DeviceTypes. */ data: DeviceTypeCreateManyInput | DeviceTypeCreateManyInput[] skipDuplicates?: boolean } /** * DeviceType update */ export type DeviceTypeUpdateArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null /** * The data needed to update a DeviceType. */ data: XOR /** * Choose, which DeviceType to update. */ where: DeviceTypeWhereUniqueInput } /** * DeviceType updateMany */ export type DeviceTypeUpdateManyArgs = { /** * The data used to update DeviceTypes. */ data: XOR /** * Filter which DeviceTypes to update */ where?: DeviceTypeWhereInput /** * Limit how many DeviceTypes to update. */ limit?: number } /** * DeviceType updateManyAndReturn */ export type DeviceTypeUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelectUpdateManyAndReturn | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * The data used to update DeviceTypes. */ data: XOR /** * Filter which DeviceTypes to update */ where?: DeviceTypeWhereInput /** * Limit how many DeviceTypes to update. */ limit?: number } /** * DeviceType upsert */ export type DeviceTypeUpsertArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null /** * The filter to search for the DeviceType to update in case it exists. */ where: DeviceTypeWhereUniqueInput /** * In case the DeviceType found by the `where` argument doesn't exist, create a new DeviceType with this data. */ create: XOR /** * In case the DeviceType was found with the provided `where` argument, update it with this data. */ update: XOR } /** * DeviceType delete */ export type DeviceTypeDeleteArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null /** * Filter which DeviceType to delete. */ where: DeviceTypeWhereUniqueInput } /** * DeviceType deleteMany */ export type DeviceTypeDeleteManyArgs = { /** * Filter which DeviceTypes to delete */ where?: DeviceTypeWhereInput /** * Limit how many DeviceTypes to delete. */ limit?: number } /** * DeviceType.DeviceModel */ export type DeviceType$DeviceModelArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null where?: DeviceModelWhereInput orderBy?: DeviceModelOrderByWithRelationInput | DeviceModelOrderByWithRelationInput[] cursor?: DeviceModelWhereUniqueInput take?: number skip?: number distinct?: DeviceModelScalarFieldEnum | DeviceModelScalarFieldEnum[] } /** * DeviceType without action */ export type DeviceTypeDefaultArgs = { /** * Select specific fields to fetch from the DeviceType */ select?: DeviceTypeSelect | null /** * Omit specific fields from the DeviceType */ omit?: DeviceTypeOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceTypeInclude | null } /** * Model DeviceVendor */ export type AggregateDeviceVendor = { _count: DeviceVendorCountAggregateOutputType | null _avg: DeviceVendorAvgAggregateOutputType | null _sum: DeviceVendorSumAggregateOutputType | null _min: DeviceVendorMinAggregateOutputType | null _max: DeviceVendorMaxAggregateOutputType | null } export type DeviceVendorAvgAggregateOutputType = { id: number | null } export type DeviceVendorSumAggregateOutputType = { id: number | null } export type DeviceVendorMinAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null name: string | null } export type DeviceVendorMaxAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null name: string | null } export type DeviceVendorCountAggregateOutputType = { id: number createdAt: number updatedAt: number name: number _all: number } export type DeviceVendorAvgAggregateInputType = { id?: true } export type DeviceVendorSumAggregateInputType = { id?: true } export type DeviceVendorMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true } export type DeviceVendorMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true } export type DeviceVendorCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true _all?: true } export type DeviceVendorAggregateArgs = { /** * Filter which DeviceVendor to aggregate. */ where?: DeviceVendorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceVendors to fetch. */ orderBy?: DeviceVendorOrderByWithRelationInput | DeviceVendorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: DeviceVendorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceVendors from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceVendors. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DeviceVendors **/ _count?: true | DeviceVendorCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DeviceVendorAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DeviceVendorSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceVendorMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceVendorMaxAggregateInputType } export type GetDeviceVendorAggregateType = { [P in keyof T & keyof AggregateDeviceVendor]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type DeviceVendorGroupByArgs = { where?: DeviceVendorWhereInput orderBy?: DeviceVendorOrderByWithAggregationInput | DeviceVendorOrderByWithAggregationInput[] by: DeviceVendorScalarFieldEnum[] | DeviceVendorScalarFieldEnum having?: DeviceVendorScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceVendorCountAggregateInputType | true _avg?: DeviceVendorAvgAggregateInputType _sum?: DeviceVendorSumAggregateInputType _min?: DeviceVendorMinAggregateInputType _max?: DeviceVendorMaxAggregateInputType } export type DeviceVendorGroupByOutputType = { id: number createdAt: Date updatedAt: Date name: string _count: DeviceVendorCountAggregateOutputType | null _avg: DeviceVendorAvgAggregateOutputType | null _sum: DeviceVendorSumAggregateOutputType | null _min: DeviceVendorMinAggregateOutputType | null _max: DeviceVendorMaxAggregateOutputType | null } type GetDeviceVendorGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof DeviceVendorGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type DeviceVendorSelect = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean DeviceModel?: boolean | DeviceVendor$DeviceModelArgs _count?: boolean | DeviceVendorCountOutputTypeDefaultArgs }, ExtArgs["result"]["deviceVendor"]> export type DeviceVendorSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean }, ExtArgs["result"]["deviceVendor"]> export type DeviceVendorSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean }, ExtArgs["result"]["deviceVendor"]> export type DeviceVendorSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean } export type DeviceVendorOmit = $Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "name", ExtArgs["result"]["deviceVendor"]> export type DeviceVendorInclude = { DeviceModel?: boolean | DeviceVendor$DeviceModelArgs _count?: boolean | DeviceVendorCountOutputTypeDefaultArgs } export type DeviceVendorIncludeCreateManyAndReturn = {} export type DeviceVendorIncludeUpdateManyAndReturn = {} export type $DeviceVendorPayload = { name: "DeviceVendor" objects: { DeviceModel: Prisma.$DeviceModelPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number createdAt: Date updatedAt: Date name: string }, ExtArgs["result"]["deviceVendor"]> composites: {} } type DeviceVendorGetPayload = $Result.GetResult type DeviceVendorCountArgs = Omit & { select?: DeviceVendorCountAggregateInputType | true } export interface DeviceVendorDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DeviceVendor'], meta: { name: 'DeviceVendor' } } /** * Find zero or one DeviceVendor that matches the filter. * @param {DeviceVendorFindUniqueArgs} args - Arguments to find a DeviceVendor * @example * // Get one DeviceVendor * const deviceVendor = await prisma.deviceVendor.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__DeviceVendorClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one DeviceVendor that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeviceVendorFindUniqueOrThrowArgs} args - Arguments to find a DeviceVendor * @example * // Get one DeviceVendor * const deviceVendor = await prisma.deviceVendor.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__DeviceVendorClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first DeviceVendor that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceVendorFindFirstArgs} args - Arguments to find a DeviceVendor * @example * // Get one DeviceVendor * const deviceVendor = await prisma.deviceVendor.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__DeviceVendorClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first DeviceVendor that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceVendorFindFirstOrThrowArgs} args - Arguments to find a DeviceVendor * @example * // Get one DeviceVendor * const deviceVendor = await prisma.deviceVendor.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__DeviceVendorClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more DeviceVendors that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceVendorFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DeviceVendors * const deviceVendors = await prisma.deviceVendor.findMany() * * // Get first 10 DeviceVendors * const deviceVendors = await prisma.deviceVendor.findMany({ take: 10 }) * * // Only select the `id` * const deviceVendorWithIdOnly = await prisma.deviceVendor.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a DeviceVendor. * @param {DeviceVendorCreateArgs} args - Arguments to create a DeviceVendor. * @example * // Create one DeviceVendor * const DeviceVendor = await prisma.deviceVendor.create({ * data: { * // ... data to create a DeviceVendor * } * }) * */ create(args: SelectSubset>): Prisma__DeviceVendorClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many DeviceVendors. * @param {DeviceVendorCreateManyArgs} args - Arguments to create many DeviceVendors. * @example * // Create many DeviceVendors * const deviceVendor = await prisma.deviceVendor.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many DeviceVendors and returns the data saved in the database. * @param {DeviceVendorCreateManyAndReturnArgs} args - Arguments to create many DeviceVendors. * @example * // Create many DeviceVendors * const deviceVendor = await prisma.deviceVendor.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DeviceVendors and only return the `id` * const deviceVendorWithIdOnly = await prisma.deviceVendor.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a DeviceVendor. * @param {DeviceVendorDeleteArgs} args - Arguments to delete one DeviceVendor. * @example * // Delete one DeviceVendor * const DeviceVendor = await prisma.deviceVendor.delete({ * where: { * // ... filter to delete one DeviceVendor * } * }) * */ delete(args: SelectSubset>): Prisma__DeviceVendorClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one DeviceVendor. * @param {DeviceVendorUpdateArgs} args - Arguments to update one DeviceVendor. * @example * // Update one DeviceVendor * const deviceVendor = await prisma.deviceVendor.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__DeviceVendorClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more DeviceVendors. * @param {DeviceVendorDeleteManyArgs} args - Arguments to filter DeviceVendors to delete. * @example * // Delete a few DeviceVendors * const { count } = await prisma.deviceVendor.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceVendors. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceVendorUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DeviceVendors * const deviceVendor = await prisma.deviceVendor.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceVendors and returns the data updated in the database. * @param {DeviceVendorUpdateManyAndReturnArgs} args - Arguments to update many DeviceVendors. * @example * // Update many DeviceVendors * const deviceVendor = await prisma.deviceVendor.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DeviceVendors and only return the `id` * const deviceVendorWithIdOnly = await prisma.deviceVendor.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one DeviceVendor. * @param {DeviceVendorUpsertArgs} args - Arguments to update or create a DeviceVendor. * @example * // Update or create a DeviceVendor * const deviceVendor = await prisma.deviceVendor.upsert({ * create: { * // ... data to create a DeviceVendor * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DeviceVendor we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__DeviceVendorClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of DeviceVendors. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceVendorCountArgs} args - Arguments to filter DeviceVendors to count. * @example * // Count the number of DeviceVendors * const count = await prisma.deviceVendor.count({ * where: { * // ... the filter for the DeviceVendors we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a DeviceVendor. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceVendorAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by DeviceVendor. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceVendorGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends DeviceVendorGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: DeviceVendorGroupByArgs['orderBy'] } : { orderBy?: DeviceVendorGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetDeviceVendorGroupByPayload : Prisma.PrismaPromise /** * Fields of the DeviceVendor model */ readonly fields: DeviceVendorFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DeviceVendor. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__DeviceVendorClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" DeviceModel = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the DeviceVendor model */ interface DeviceVendorFieldRefs { readonly id: FieldRef<"DeviceVendor", 'Int'> readonly createdAt: FieldRef<"DeviceVendor", 'DateTime'> readonly updatedAt: FieldRef<"DeviceVendor", 'DateTime'> readonly name: FieldRef<"DeviceVendor", 'String'> } // Custom InputTypes /** * DeviceVendor findUnique */ export type DeviceVendorFindUniqueArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null /** * Filter, which DeviceVendor to fetch. */ where: DeviceVendorWhereUniqueInput } /** * DeviceVendor findUniqueOrThrow */ export type DeviceVendorFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null /** * Filter, which DeviceVendor to fetch. */ where: DeviceVendorWhereUniqueInput } /** * DeviceVendor findFirst */ export type DeviceVendorFindFirstArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null /** * Filter, which DeviceVendor to fetch. */ where?: DeviceVendorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceVendors to fetch. */ orderBy?: DeviceVendorOrderByWithRelationInput | DeviceVendorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceVendors. */ cursor?: DeviceVendorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceVendors from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceVendors. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceVendors. */ distinct?: DeviceVendorScalarFieldEnum | DeviceVendorScalarFieldEnum[] } /** * DeviceVendor findFirstOrThrow */ export type DeviceVendorFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null /** * Filter, which DeviceVendor to fetch. */ where?: DeviceVendorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceVendors to fetch. */ orderBy?: DeviceVendorOrderByWithRelationInput | DeviceVendorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceVendors. */ cursor?: DeviceVendorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceVendors from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceVendors. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceVendors. */ distinct?: DeviceVendorScalarFieldEnum | DeviceVendorScalarFieldEnum[] } /** * DeviceVendor findMany */ export type DeviceVendorFindManyArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null /** * Filter, which DeviceVendors to fetch. */ where?: DeviceVendorWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceVendors to fetch. */ orderBy?: DeviceVendorOrderByWithRelationInput | DeviceVendorOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DeviceVendors. */ cursor?: DeviceVendorWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceVendors from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceVendors. */ skip?: number distinct?: DeviceVendorScalarFieldEnum | DeviceVendorScalarFieldEnum[] } /** * DeviceVendor create */ export type DeviceVendorCreateArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null /** * The data needed to create a DeviceVendor. */ data: XOR } /** * DeviceVendor createMany */ export type DeviceVendorCreateManyArgs = { /** * The data used to create many DeviceVendors. */ data: DeviceVendorCreateManyInput | DeviceVendorCreateManyInput[] skipDuplicates?: boolean } /** * DeviceVendor createManyAndReturn */ export type DeviceVendorCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelectCreateManyAndReturn | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * The data used to create many DeviceVendors. */ data: DeviceVendorCreateManyInput | DeviceVendorCreateManyInput[] skipDuplicates?: boolean } /** * DeviceVendor update */ export type DeviceVendorUpdateArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null /** * The data needed to update a DeviceVendor. */ data: XOR /** * Choose, which DeviceVendor to update. */ where: DeviceVendorWhereUniqueInput } /** * DeviceVendor updateMany */ export type DeviceVendorUpdateManyArgs = { /** * The data used to update DeviceVendors. */ data: XOR /** * Filter which DeviceVendors to update */ where?: DeviceVendorWhereInput /** * Limit how many DeviceVendors to update. */ limit?: number } /** * DeviceVendor updateManyAndReturn */ export type DeviceVendorUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelectUpdateManyAndReturn | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * The data used to update DeviceVendors. */ data: XOR /** * Filter which DeviceVendors to update */ where?: DeviceVendorWhereInput /** * Limit how many DeviceVendors to update. */ limit?: number } /** * DeviceVendor upsert */ export type DeviceVendorUpsertArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null /** * The filter to search for the DeviceVendor to update in case it exists. */ where: DeviceVendorWhereUniqueInput /** * In case the DeviceVendor found by the `where` argument doesn't exist, create a new DeviceVendor with this data. */ create: XOR /** * In case the DeviceVendor was found with the provided `where` argument, update it with this data. */ update: XOR } /** * DeviceVendor delete */ export type DeviceVendorDeleteArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null /** * Filter which DeviceVendor to delete. */ where: DeviceVendorWhereUniqueInput } /** * DeviceVendor deleteMany */ export type DeviceVendorDeleteManyArgs = { /** * Filter which DeviceVendors to delete */ where?: DeviceVendorWhereInput /** * Limit how many DeviceVendors to delete. */ limit?: number } /** * DeviceVendor.DeviceModel */ export type DeviceVendor$DeviceModelArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null where?: DeviceModelWhereInput orderBy?: DeviceModelOrderByWithRelationInput | DeviceModelOrderByWithRelationInput[] cursor?: DeviceModelWhereUniqueInput take?: number skip?: number distinct?: DeviceModelScalarFieldEnum | DeviceModelScalarFieldEnum[] } /** * DeviceVendor without action */ export type DeviceVendorDefaultArgs = { /** * Select specific fields to fetch from the DeviceVendor */ select?: DeviceVendorSelect | null /** * Omit specific fields from the DeviceVendor */ omit?: DeviceVendorOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceVendorInclude | null } /** * Model DeviceModel */ export type AggregateDeviceModel = { _count: DeviceModelCountAggregateOutputType | null _avg: DeviceModelAvgAggregateOutputType | null _sum: DeviceModelSumAggregateOutputType | null _min: DeviceModelMinAggregateOutputType | null _max: DeviceModelMaxAggregateOutputType | null } export type DeviceModelAvgAggregateOutputType = { id: number | null vendorId: number | null deviceTypeId: number | null } export type DeviceModelSumAggregateOutputType = { id: number | null vendorId: number | null deviceTypeId: number | null } export type DeviceModelMinAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null name: string | null vendorId: number | null deviceTypeId: number | null } export type DeviceModelMaxAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null name: string | null vendorId: number | null deviceTypeId: number | null } export type DeviceModelCountAggregateOutputType = { id: number createdAt: number updatedAt: number name: number vendorId: number deviceTypeId: number _all: number } export type DeviceModelAvgAggregateInputType = { id?: true vendorId?: true deviceTypeId?: true } export type DeviceModelSumAggregateInputType = { id?: true vendorId?: true deviceTypeId?: true } export type DeviceModelMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true vendorId?: true deviceTypeId?: true } export type DeviceModelMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true vendorId?: true deviceTypeId?: true } export type DeviceModelCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true name?: true vendorId?: true deviceTypeId?: true _all?: true } export type DeviceModelAggregateArgs = { /** * Filter which DeviceModel to aggregate. */ where?: DeviceModelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceModels to fetch. */ orderBy?: DeviceModelOrderByWithRelationInput | DeviceModelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: DeviceModelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceModels from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceModels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DeviceModels **/ _count?: true | DeviceModelCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DeviceModelAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DeviceModelSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceModelMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceModelMaxAggregateInputType } export type GetDeviceModelAggregateType = { [P in keyof T & keyof AggregateDeviceModel]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type DeviceModelGroupByArgs = { where?: DeviceModelWhereInput orderBy?: DeviceModelOrderByWithAggregationInput | DeviceModelOrderByWithAggregationInput[] by: DeviceModelScalarFieldEnum[] | DeviceModelScalarFieldEnum having?: DeviceModelScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceModelCountAggregateInputType | true _avg?: DeviceModelAvgAggregateInputType _sum?: DeviceModelSumAggregateInputType _min?: DeviceModelMinAggregateInputType _max?: DeviceModelMaxAggregateInputType } export type DeviceModelGroupByOutputType = { id: number createdAt: Date updatedAt: Date name: string vendorId: number deviceTypeId: number _count: DeviceModelCountAggregateOutputType | null _avg: DeviceModelAvgAggregateOutputType | null _sum: DeviceModelSumAggregateOutputType | null _min: DeviceModelMinAggregateOutputType | null _max: DeviceModelMaxAggregateOutputType | null } type GetDeviceModelGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof DeviceModelGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type DeviceModelSelect = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean vendorId?: boolean deviceTypeId?: boolean deviceType?: boolean | DeviceTypeDefaultArgs vendor?: boolean | DeviceVendorDefaultArgs NetworkDevice?: boolean | DeviceModel$NetworkDeviceArgs _count?: boolean | DeviceModelCountOutputTypeDefaultArgs }, ExtArgs["result"]["deviceModel"]> export type DeviceModelSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean vendorId?: boolean deviceTypeId?: boolean deviceType?: boolean | DeviceTypeDefaultArgs vendor?: boolean | DeviceVendorDefaultArgs }, ExtArgs["result"]["deviceModel"]> export type DeviceModelSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean vendorId?: boolean deviceTypeId?: boolean deviceType?: boolean | DeviceTypeDefaultArgs vendor?: boolean | DeviceVendorDefaultArgs }, ExtArgs["result"]["deviceModel"]> export type DeviceModelSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean name?: boolean vendorId?: boolean deviceTypeId?: boolean } export type DeviceModelOmit = $Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "name" | "vendorId" | "deviceTypeId", ExtArgs["result"]["deviceModel"]> export type DeviceModelInclude = { deviceType?: boolean | DeviceTypeDefaultArgs vendor?: boolean | DeviceVendorDefaultArgs NetworkDevice?: boolean | DeviceModel$NetworkDeviceArgs _count?: boolean | DeviceModelCountOutputTypeDefaultArgs } export type DeviceModelIncludeCreateManyAndReturn = { deviceType?: boolean | DeviceTypeDefaultArgs vendor?: boolean | DeviceVendorDefaultArgs } export type DeviceModelIncludeUpdateManyAndReturn = { deviceType?: boolean | DeviceTypeDefaultArgs vendor?: boolean | DeviceVendorDefaultArgs } export type $DeviceModelPayload = { name: "DeviceModel" objects: { deviceType: Prisma.$DeviceTypePayload vendor: Prisma.$DeviceVendorPayload NetworkDevice: Prisma.$NetworkDevicePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number createdAt: Date updatedAt: Date name: string vendorId: number deviceTypeId: number }, ExtArgs["result"]["deviceModel"]> composites: {} } type DeviceModelGetPayload = $Result.GetResult type DeviceModelCountArgs = Omit & { select?: DeviceModelCountAggregateInputType | true } export interface DeviceModelDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DeviceModel'], meta: { name: 'DeviceModel' } } /** * Find zero or one DeviceModel that matches the filter. * @param {DeviceModelFindUniqueArgs} args - Arguments to find a DeviceModel * @example * // Get one DeviceModel * const deviceModel = await prisma.deviceModel.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__DeviceModelClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one DeviceModel that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeviceModelFindUniqueOrThrowArgs} args - Arguments to find a DeviceModel * @example * // Get one DeviceModel * const deviceModel = await prisma.deviceModel.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__DeviceModelClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first DeviceModel that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceModelFindFirstArgs} args - Arguments to find a DeviceModel * @example * // Get one DeviceModel * const deviceModel = await prisma.deviceModel.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__DeviceModelClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first DeviceModel that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceModelFindFirstOrThrowArgs} args - Arguments to find a DeviceModel * @example * // Get one DeviceModel * const deviceModel = await prisma.deviceModel.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__DeviceModelClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more DeviceModels that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceModelFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DeviceModels * const deviceModels = await prisma.deviceModel.findMany() * * // Get first 10 DeviceModels * const deviceModels = await prisma.deviceModel.findMany({ take: 10 }) * * // Only select the `id` * const deviceModelWithIdOnly = await prisma.deviceModel.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a DeviceModel. * @param {DeviceModelCreateArgs} args - Arguments to create a DeviceModel. * @example * // Create one DeviceModel * const DeviceModel = await prisma.deviceModel.create({ * data: { * // ... data to create a DeviceModel * } * }) * */ create(args: SelectSubset>): Prisma__DeviceModelClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many DeviceModels. * @param {DeviceModelCreateManyArgs} args - Arguments to create many DeviceModels. * @example * // Create many DeviceModels * const deviceModel = await prisma.deviceModel.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many DeviceModels and returns the data saved in the database. * @param {DeviceModelCreateManyAndReturnArgs} args - Arguments to create many DeviceModels. * @example * // Create many DeviceModels * const deviceModel = await prisma.deviceModel.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DeviceModels and only return the `id` * const deviceModelWithIdOnly = await prisma.deviceModel.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a DeviceModel. * @param {DeviceModelDeleteArgs} args - Arguments to delete one DeviceModel. * @example * // Delete one DeviceModel * const DeviceModel = await prisma.deviceModel.delete({ * where: { * // ... filter to delete one DeviceModel * } * }) * */ delete(args: SelectSubset>): Prisma__DeviceModelClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one DeviceModel. * @param {DeviceModelUpdateArgs} args - Arguments to update one DeviceModel. * @example * // Update one DeviceModel * const deviceModel = await prisma.deviceModel.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__DeviceModelClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more DeviceModels. * @param {DeviceModelDeleteManyArgs} args - Arguments to filter DeviceModels to delete. * @example * // Delete a few DeviceModels * const { count } = await prisma.deviceModel.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceModels. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceModelUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DeviceModels * const deviceModel = await prisma.deviceModel.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceModels and returns the data updated in the database. * @param {DeviceModelUpdateManyAndReturnArgs} args - Arguments to update many DeviceModels. * @example * // Update many DeviceModels * const deviceModel = await prisma.deviceModel.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DeviceModels and only return the `id` * const deviceModelWithIdOnly = await prisma.deviceModel.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one DeviceModel. * @param {DeviceModelUpsertArgs} args - Arguments to update or create a DeviceModel. * @example * // Update or create a DeviceModel * const deviceModel = await prisma.deviceModel.upsert({ * create: { * // ... data to create a DeviceModel * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DeviceModel we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__DeviceModelClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of DeviceModels. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceModelCountArgs} args - Arguments to filter DeviceModels to count. * @example * // Count the number of DeviceModels * const count = await prisma.deviceModel.count({ * where: { * // ... the filter for the DeviceModels we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a DeviceModel. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceModelAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by DeviceModel. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceModelGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends DeviceModelGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: DeviceModelGroupByArgs['orderBy'] } : { orderBy?: DeviceModelGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetDeviceModelGroupByPayload : Prisma.PrismaPromise /** * Fields of the DeviceModel model */ readonly fields: DeviceModelFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DeviceModel. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__DeviceModelClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" deviceType = {}>(args?: Subset>): Prisma__DeviceTypeClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> vendor = {}>(args?: Subset>): Prisma__DeviceVendorClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> NetworkDevice = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the DeviceModel model */ interface DeviceModelFieldRefs { readonly id: FieldRef<"DeviceModel", 'Int'> readonly createdAt: FieldRef<"DeviceModel", 'DateTime'> readonly updatedAt: FieldRef<"DeviceModel", 'DateTime'> readonly name: FieldRef<"DeviceModel", 'String'> readonly vendorId: FieldRef<"DeviceModel", 'Int'> readonly deviceTypeId: FieldRef<"DeviceModel", 'Int'> } // Custom InputTypes /** * DeviceModel findUnique */ export type DeviceModelFindUniqueArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null /** * Filter, which DeviceModel to fetch. */ where: DeviceModelWhereUniqueInput } /** * DeviceModel findUniqueOrThrow */ export type DeviceModelFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null /** * Filter, which DeviceModel to fetch. */ where: DeviceModelWhereUniqueInput } /** * DeviceModel findFirst */ export type DeviceModelFindFirstArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null /** * Filter, which DeviceModel to fetch. */ where?: DeviceModelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceModels to fetch. */ orderBy?: DeviceModelOrderByWithRelationInput | DeviceModelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceModels. */ cursor?: DeviceModelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceModels from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceModels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceModels. */ distinct?: DeviceModelScalarFieldEnum | DeviceModelScalarFieldEnum[] } /** * DeviceModel findFirstOrThrow */ export type DeviceModelFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null /** * Filter, which DeviceModel to fetch. */ where?: DeviceModelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceModels to fetch. */ orderBy?: DeviceModelOrderByWithRelationInput | DeviceModelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceModels. */ cursor?: DeviceModelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceModels from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceModels. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceModels. */ distinct?: DeviceModelScalarFieldEnum | DeviceModelScalarFieldEnum[] } /** * DeviceModel findMany */ export type DeviceModelFindManyArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null /** * Filter, which DeviceModels to fetch. */ where?: DeviceModelWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceModels to fetch. */ orderBy?: DeviceModelOrderByWithRelationInput | DeviceModelOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DeviceModels. */ cursor?: DeviceModelWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceModels from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceModels. */ skip?: number distinct?: DeviceModelScalarFieldEnum | DeviceModelScalarFieldEnum[] } /** * DeviceModel create */ export type DeviceModelCreateArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null /** * The data needed to create a DeviceModel. */ data: XOR } /** * DeviceModel createMany */ export type DeviceModelCreateManyArgs = { /** * The data used to create many DeviceModels. */ data: DeviceModelCreateManyInput | DeviceModelCreateManyInput[] skipDuplicates?: boolean } /** * DeviceModel createManyAndReturn */ export type DeviceModelCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelectCreateManyAndReturn | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * The data used to create many DeviceModels. */ data: DeviceModelCreateManyInput | DeviceModelCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: DeviceModelIncludeCreateManyAndReturn | null } /** * DeviceModel update */ export type DeviceModelUpdateArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null /** * The data needed to update a DeviceModel. */ data: XOR /** * Choose, which DeviceModel to update. */ where: DeviceModelWhereUniqueInput } /** * DeviceModel updateMany */ export type DeviceModelUpdateManyArgs = { /** * The data used to update DeviceModels. */ data: XOR /** * Filter which DeviceModels to update */ where?: DeviceModelWhereInput /** * Limit how many DeviceModels to update. */ limit?: number } /** * DeviceModel updateManyAndReturn */ export type DeviceModelUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelectUpdateManyAndReturn | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * The data used to update DeviceModels. */ data: XOR /** * Filter which DeviceModels to update */ where?: DeviceModelWhereInput /** * Limit how many DeviceModels to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: DeviceModelIncludeUpdateManyAndReturn | null } /** * DeviceModel upsert */ export type DeviceModelUpsertArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null /** * The filter to search for the DeviceModel to update in case it exists. */ where: DeviceModelWhereUniqueInput /** * In case the DeviceModel found by the `where` argument doesn't exist, create a new DeviceModel with this data. */ create: XOR /** * In case the DeviceModel was found with the provided `where` argument, update it with this data. */ update: XOR } /** * DeviceModel delete */ export type DeviceModelDeleteArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null /** * Filter which DeviceModel to delete. */ where: DeviceModelWhereUniqueInput } /** * DeviceModel deleteMany */ export type DeviceModelDeleteManyArgs = { /** * Filter which DeviceModels to delete */ where?: DeviceModelWhereInput /** * Limit how many DeviceModels to delete. */ limit?: number } /** * DeviceModel.NetworkDevice */ export type DeviceModel$NetworkDeviceArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null where?: NetworkDeviceWhereInput orderBy?: NetworkDeviceOrderByWithRelationInput | NetworkDeviceOrderByWithRelationInput[] cursor?: NetworkDeviceWhereUniqueInput take?: number skip?: number distinct?: NetworkDeviceScalarFieldEnum | NetworkDeviceScalarFieldEnum[] } /** * DeviceModel without action */ export type DeviceModelDefaultArgs = { /** * Select specific fields to fetch from the DeviceModel */ select?: DeviceModelSelect | null /** * Omit specific fields from the DeviceModel */ omit?: DeviceModelOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceModelInclude | null } /** * Model DeviceCredential */ export type AggregateDeviceCredential = { _count: DeviceCredentialCountAggregateOutputType | null _avg: DeviceCredentialAvgAggregateOutputType | null _sum: DeviceCredentialSumAggregateOutputType | null _min: DeviceCredentialMinAggregateOutputType | null _max: DeviceCredentialMaxAggregateOutputType | null } export type DeviceCredentialAvgAggregateOutputType = { id: number | null } export type DeviceCredentialSumAggregateOutputType = { id: number | null } export type DeviceCredentialMinAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null username: string | null password: string | null } export type DeviceCredentialMaxAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null username: string | null password: string | null } export type DeviceCredentialCountAggregateOutputType = { id: number createdAt: number updatedAt: number username: number password: number _all: number } export type DeviceCredentialAvgAggregateInputType = { id?: true } export type DeviceCredentialSumAggregateInputType = { id?: true } export type DeviceCredentialMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true username?: true password?: true } export type DeviceCredentialMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true username?: true password?: true } export type DeviceCredentialCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true username?: true password?: true _all?: true } export type DeviceCredentialAggregateArgs = { /** * Filter which DeviceCredential to aggregate. */ where?: DeviceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceCredentials to fetch. */ orderBy?: DeviceCredentialOrderByWithRelationInput | DeviceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: DeviceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceCredentials from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DeviceCredentials **/ _count?: true | DeviceCredentialCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DeviceCredentialAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DeviceCredentialSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceCredentialMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceCredentialMaxAggregateInputType } export type GetDeviceCredentialAggregateType = { [P in keyof T & keyof AggregateDeviceCredential]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type DeviceCredentialGroupByArgs = { where?: DeviceCredentialWhereInput orderBy?: DeviceCredentialOrderByWithAggregationInput | DeviceCredentialOrderByWithAggregationInput[] by: DeviceCredentialScalarFieldEnum[] | DeviceCredentialScalarFieldEnum having?: DeviceCredentialScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceCredentialCountAggregateInputType | true _avg?: DeviceCredentialAvgAggregateInputType _sum?: DeviceCredentialSumAggregateInputType _min?: DeviceCredentialMinAggregateInputType _max?: DeviceCredentialMaxAggregateInputType } export type DeviceCredentialGroupByOutputType = { id: number createdAt: Date updatedAt: Date username: string password: string _count: DeviceCredentialCountAggregateOutputType | null _avg: DeviceCredentialAvgAggregateOutputType | null _sum: DeviceCredentialSumAggregateOutputType | null _min: DeviceCredentialMinAggregateOutputType | null _max: DeviceCredentialMaxAggregateOutputType | null } type GetDeviceCredentialGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof DeviceCredentialGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type DeviceCredentialSelect = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean username?: boolean password?: boolean NetworkDevice?: boolean | DeviceCredential$NetworkDeviceArgs _count?: boolean | DeviceCredentialCountOutputTypeDefaultArgs }, ExtArgs["result"]["deviceCredential"]> export type DeviceCredentialSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean username?: boolean password?: boolean }, ExtArgs["result"]["deviceCredential"]> export type DeviceCredentialSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean username?: boolean password?: boolean }, ExtArgs["result"]["deviceCredential"]> export type DeviceCredentialSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean username?: boolean password?: boolean } export type DeviceCredentialOmit = $Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "username" | "password", ExtArgs["result"]["deviceCredential"]> export type DeviceCredentialInclude = { NetworkDevice?: boolean | DeviceCredential$NetworkDeviceArgs _count?: boolean | DeviceCredentialCountOutputTypeDefaultArgs } export type DeviceCredentialIncludeCreateManyAndReturn = {} export type DeviceCredentialIncludeUpdateManyAndReturn = {} export type $DeviceCredentialPayload = { name: "DeviceCredential" objects: { NetworkDevice: Prisma.$NetworkDevicePayload[] } scalars: $Extensions.GetPayloadResult<{ id: number createdAt: Date updatedAt: Date username: string password: string }, ExtArgs["result"]["deviceCredential"]> composites: {} } type DeviceCredentialGetPayload = $Result.GetResult type DeviceCredentialCountArgs = Omit & { select?: DeviceCredentialCountAggregateInputType | true } export interface DeviceCredentialDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DeviceCredential'], meta: { name: 'DeviceCredential' } } /** * Find zero or one DeviceCredential that matches the filter. * @param {DeviceCredentialFindUniqueArgs} args - Arguments to find a DeviceCredential * @example * // Get one DeviceCredential * const deviceCredential = await prisma.deviceCredential.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__DeviceCredentialClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one DeviceCredential that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeviceCredentialFindUniqueOrThrowArgs} args - Arguments to find a DeviceCredential * @example * // Get one DeviceCredential * const deviceCredential = await prisma.deviceCredential.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__DeviceCredentialClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first DeviceCredential that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceCredentialFindFirstArgs} args - Arguments to find a DeviceCredential * @example * // Get one DeviceCredential * const deviceCredential = await prisma.deviceCredential.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__DeviceCredentialClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first DeviceCredential that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceCredentialFindFirstOrThrowArgs} args - Arguments to find a DeviceCredential * @example * // Get one DeviceCredential * const deviceCredential = await prisma.deviceCredential.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__DeviceCredentialClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more DeviceCredentials that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceCredentialFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DeviceCredentials * const deviceCredentials = await prisma.deviceCredential.findMany() * * // Get first 10 DeviceCredentials * const deviceCredentials = await prisma.deviceCredential.findMany({ take: 10 }) * * // Only select the `id` * const deviceCredentialWithIdOnly = await prisma.deviceCredential.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a DeviceCredential. * @param {DeviceCredentialCreateArgs} args - Arguments to create a DeviceCredential. * @example * // Create one DeviceCredential * const DeviceCredential = await prisma.deviceCredential.create({ * data: { * // ... data to create a DeviceCredential * } * }) * */ create(args: SelectSubset>): Prisma__DeviceCredentialClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many DeviceCredentials. * @param {DeviceCredentialCreateManyArgs} args - Arguments to create many DeviceCredentials. * @example * // Create many DeviceCredentials * const deviceCredential = await prisma.deviceCredential.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many DeviceCredentials and returns the data saved in the database. * @param {DeviceCredentialCreateManyAndReturnArgs} args - Arguments to create many DeviceCredentials. * @example * // Create many DeviceCredentials * const deviceCredential = await prisma.deviceCredential.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DeviceCredentials and only return the `id` * const deviceCredentialWithIdOnly = await prisma.deviceCredential.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a DeviceCredential. * @param {DeviceCredentialDeleteArgs} args - Arguments to delete one DeviceCredential. * @example * // Delete one DeviceCredential * const DeviceCredential = await prisma.deviceCredential.delete({ * where: { * // ... filter to delete one DeviceCredential * } * }) * */ delete(args: SelectSubset>): Prisma__DeviceCredentialClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one DeviceCredential. * @param {DeviceCredentialUpdateArgs} args - Arguments to update one DeviceCredential. * @example * // Update one DeviceCredential * const deviceCredential = await prisma.deviceCredential.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__DeviceCredentialClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more DeviceCredentials. * @param {DeviceCredentialDeleteManyArgs} args - Arguments to filter DeviceCredentials to delete. * @example * // Delete a few DeviceCredentials * const { count } = await prisma.deviceCredential.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceCredentialUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DeviceCredentials * const deviceCredential = await prisma.deviceCredential.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceCredentials and returns the data updated in the database. * @param {DeviceCredentialUpdateManyAndReturnArgs} args - Arguments to update many DeviceCredentials. * @example * // Update many DeviceCredentials * const deviceCredential = await prisma.deviceCredential.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DeviceCredentials and only return the `id` * const deviceCredentialWithIdOnly = await prisma.deviceCredential.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one DeviceCredential. * @param {DeviceCredentialUpsertArgs} args - Arguments to update or create a DeviceCredential. * @example * // Update or create a DeviceCredential * const deviceCredential = await prisma.deviceCredential.upsert({ * create: { * // ... data to create a DeviceCredential * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DeviceCredential we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__DeviceCredentialClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of DeviceCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceCredentialCountArgs} args - Arguments to filter DeviceCredentials to count. * @example * // Count the number of DeviceCredentials * const count = await prisma.deviceCredential.count({ * where: { * // ... the filter for the DeviceCredentials we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a DeviceCredential. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceCredentialAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by DeviceCredential. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceCredentialGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends DeviceCredentialGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: DeviceCredentialGroupByArgs['orderBy'] } : { orderBy?: DeviceCredentialGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetDeviceCredentialGroupByPayload : Prisma.PrismaPromise /** * Fields of the DeviceCredential model */ readonly fields: DeviceCredentialFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DeviceCredential. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__DeviceCredentialClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" NetworkDevice = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the DeviceCredential model */ interface DeviceCredentialFieldRefs { readonly id: FieldRef<"DeviceCredential", 'Int'> readonly createdAt: FieldRef<"DeviceCredential", 'DateTime'> readonly updatedAt: FieldRef<"DeviceCredential", 'DateTime'> readonly username: FieldRef<"DeviceCredential", 'String'> readonly password: FieldRef<"DeviceCredential", 'String'> } // Custom InputTypes /** * DeviceCredential findUnique */ export type DeviceCredentialFindUniqueArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null /** * Filter, which DeviceCredential to fetch. */ where: DeviceCredentialWhereUniqueInput } /** * DeviceCredential findUniqueOrThrow */ export type DeviceCredentialFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null /** * Filter, which DeviceCredential to fetch. */ where: DeviceCredentialWhereUniqueInput } /** * DeviceCredential findFirst */ export type DeviceCredentialFindFirstArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null /** * Filter, which DeviceCredential to fetch. */ where?: DeviceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceCredentials to fetch. */ orderBy?: DeviceCredentialOrderByWithRelationInput | DeviceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceCredentials. */ cursor?: DeviceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceCredentials from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceCredentials. */ distinct?: DeviceCredentialScalarFieldEnum | DeviceCredentialScalarFieldEnum[] } /** * DeviceCredential findFirstOrThrow */ export type DeviceCredentialFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null /** * Filter, which DeviceCredential to fetch. */ where?: DeviceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceCredentials to fetch. */ orderBy?: DeviceCredentialOrderByWithRelationInput | DeviceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceCredentials. */ cursor?: DeviceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceCredentials from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceCredentials. */ distinct?: DeviceCredentialScalarFieldEnum | DeviceCredentialScalarFieldEnum[] } /** * DeviceCredential findMany */ export type DeviceCredentialFindManyArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null /** * Filter, which DeviceCredentials to fetch. */ where?: DeviceCredentialWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceCredentials to fetch. */ orderBy?: DeviceCredentialOrderByWithRelationInput | DeviceCredentialOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DeviceCredentials. */ cursor?: DeviceCredentialWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceCredentials from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` DeviceCredentials. */ skip?: number distinct?: DeviceCredentialScalarFieldEnum | DeviceCredentialScalarFieldEnum[] } /** * DeviceCredential create */ export type DeviceCredentialCreateArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null /** * The data needed to create a DeviceCredential. */ data: XOR } /** * DeviceCredential createMany */ export type DeviceCredentialCreateManyArgs = { /** * The data used to create many DeviceCredentials. */ data: DeviceCredentialCreateManyInput | DeviceCredentialCreateManyInput[] skipDuplicates?: boolean } /** * DeviceCredential createManyAndReturn */ export type DeviceCredentialCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelectCreateManyAndReturn | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * The data used to create many DeviceCredentials. */ data: DeviceCredentialCreateManyInput | DeviceCredentialCreateManyInput[] skipDuplicates?: boolean } /** * DeviceCredential update */ export type DeviceCredentialUpdateArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null /** * The data needed to update a DeviceCredential. */ data: XOR /** * Choose, which DeviceCredential to update. */ where: DeviceCredentialWhereUniqueInput } /** * DeviceCredential updateMany */ export type DeviceCredentialUpdateManyArgs = { /** * The data used to update DeviceCredentials. */ data: XOR /** * Filter which DeviceCredentials to update */ where?: DeviceCredentialWhereInput /** * Limit how many DeviceCredentials to update. */ limit?: number } /** * DeviceCredential updateManyAndReturn */ export type DeviceCredentialUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelectUpdateManyAndReturn | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * The data used to update DeviceCredentials. */ data: XOR /** * Filter which DeviceCredentials to update */ where?: DeviceCredentialWhereInput /** * Limit how many DeviceCredentials to update. */ limit?: number } /** * DeviceCredential upsert */ export type DeviceCredentialUpsertArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null /** * The filter to search for the DeviceCredential to update in case it exists. */ where: DeviceCredentialWhereUniqueInput /** * In case the DeviceCredential found by the `where` argument doesn't exist, create a new DeviceCredential with this data. */ create: XOR /** * In case the DeviceCredential was found with the provided `where` argument, update it with this data. */ update: XOR } /** * DeviceCredential delete */ export type DeviceCredentialDeleteArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null /** * Filter which DeviceCredential to delete. */ where: DeviceCredentialWhereUniqueInput } /** * DeviceCredential deleteMany */ export type DeviceCredentialDeleteManyArgs = { /** * Filter which DeviceCredentials to delete */ where?: DeviceCredentialWhereInput /** * Limit how many DeviceCredentials to delete. */ limit?: number } /** * DeviceCredential.NetworkDevice */ export type DeviceCredential$NetworkDeviceArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null where?: NetworkDeviceWhereInput orderBy?: NetworkDeviceOrderByWithRelationInput | NetworkDeviceOrderByWithRelationInput[] cursor?: NetworkDeviceWhereUniqueInput take?: number skip?: number distinct?: NetworkDeviceScalarFieldEnum | NetworkDeviceScalarFieldEnum[] } /** * DeviceCredential without action */ export type DeviceCredentialDefaultArgs = { /** * Select specific fields to fetch from the DeviceCredential */ select?: DeviceCredentialSelect | null /** * Omit specific fields from the DeviceCredential */ omit?: DeviceCredentialOmit | null /** * Choose, which related nodes to fetch as well */ include?: DeviceCredentialInclude | null } /** * Model NetworkDevice */ export type AggregateNetworkDevice = { _count: NetworkDeviceCountAggregateOutputType | null _avg: NetworkDeviceAvgAggregateOutputType | null _sum: NetworkDeviceSumAggregateOutputType | null _min: NetworkDeviceMinAggregateOutputType | null _max: NetworkDeviceMaxAggregateOutputType | null } export type NetworkDeviceAvgAggregateOutputType = { id: number | null deviceModelId: number | null deviceCredentialId: number | null } export type NetworkDeviceSumAggregateOutputType = { id: number | null deviceModelId: number | null deviceCredentialId: number | null } export type NetworkDeviceMinAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null accessIpAddressV4: string | null accessType: string | null accessPort: string | null description: string | null deviceModelId: number | null deviceCredentialId: number | null enabled: boolean | null } export type NetworkDeviceMaxAggregateOutputType = { id: number | null createdAt: Date | null updatedAt: Date | null accessIpAddressV4: string | null accessType: string | null accessPort: string | null description: string | null deviceModelId: number | null deviceCredentialId: number | null enabled: boolean | null } export type NetworkDeviceCountAggregateOutputType = { id: number createdAt: number updatedAt: number accessIpAddressV4: number accessType: number accessPort: number description: number deviceModelId: number deviceCredentialId: number enabled: number _all: number } export type NetworkDeviceAvgAggregateInputType = { id?: true deviceModelId?: true deviceCredentialId?: true } export type NetworkDeviceSumAggregateInputType = { id?: true deviceModelId?: true deviceCredentialId?: true } export type NetworkDeviceMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true accessIpAddressV4?: true accessType?: true accessPort?: true description?: true deviceModelId?: true deviceCredentialId?: true enabled?: true } export type NetworkDeviceMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true accessIpAddressV4?: true accessType?: true accessPort?: true description?: true deviceModelId?: true deviceCredentialId?: true enabled?: true } export type NetworkDeviceCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true accessIpAddressV4?: true accessType?: true accessPort?: true description?: true deviceModelId?: true deviceCredentialId?: true enabled?: true _all?: true } export type NetworkDeviceAggregateArgs = { /** * Filter which NetworkDevice to aggregate. */ where?: NetworkDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NetworkDevices to fetch. */ orderBy?: NetworkDeviceOrderByWithRelationInput | NetworkDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: NetworkDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NetworkDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NetworkDevices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned NetworkDevices **/ _count?: true | NetworkDeviceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: NetworkDeviceAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: NetworkDeviceSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: NetworkDeviceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: NetworkDeviceMaxAggregateInputType } export type GetNetworkDeviceAggregateType = { [P in keyof T & keyof AggregateNetworkDevice]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type NetworkDeviceGroupByArgs = { where?: NetworkDeviceWhereInput orderBy?: NetworkDeviceOrderByWithAggregationInput | NetworkDeviceOrderByWithAggregationInput[] by: NetworkDeviceScalarFieldEnum[] | NetworkDeviceScalarFieldEnum having?: NetworkDeviceScalarWhereWithAggregatesInput take?: number skip?: number _count?: NetworkDeviceCountAggregateInputType | true _avg?: NetworkDeviceAvgAggregateInputType _sum?: NetworkDeviceSumAggregateInputType _min?: NetworkDeviceMinAggregateInputType _max?: NetworkDeviceMaxAggregateInputType } export type NetworkDeviceGroupByOutputType = { id: number createdAt: Date updatedAt: Date accessIpAddressV4: string accessType: string accessPort: string description: string deviceModelId: number deviceCredentialId: number enabled: boolean _count: NetworkDeviceCountAggregateOutputType | null _avg: NetworkDeviceAvgAggregateOutputType | null _sum: NetworkDeviceSumAggregateOutputType | null _min: NetworkDeviceMinAggregateOutputType | null _max: NetworkDeviceMaxAggregateOutputType | null } type GetNetworkDeviceGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof NetworkDeviceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type NetworkDeviceSelect = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean accessIpAddressV4?: boolean accessType?: boolean accessPort?: boolean description?: boolean deviceModelId?: boolean deviceCredentialId?: boolean enabled?: boolean deviceCredential?: boolean | DeviceCredentialDefaultArgs deviceModel?: boolean | DeviceModelDefaultArgs StatInactiveOnu?: boolean | NetworkDevice$StatInactiveOnuArgs StatActiveOnu?: boolean | NetworkDevice$StatActiveOnuArgs StatOnuDevice?: boolean | NetworkDevice$StatOnuDeviceArgs StatOnuOpticalSignal?: boolean | NetworkDevice$StatOnuOpticalSignalArgs StatInterfaces?: boolean | NetworkDevice$StatInterfacesArgs NetworkDeviceVersion?: boolean | NetworkDevice$NetworkDeviceVersionArgs _count?: boolean | NetworkDeviceCountOutputTypeDefaultArgs }, ExtArgs["result"]["networkDevice"]> export type NetworkDeviceSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean accessIpAddressV4?: boolean accessType?: boolean accessPort?: boolean description?: boolean deviceModelId?: boolean deviceCredentialId?: boolean enabled?: boolean deviceCredential?: boolean | DeviceCredentialDefaultArgs deviceModel?: boolean | DeviceModelDefaultArgs }, ExtArgs["result"]["networkDevice"]> export type NetworkDeviceSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean accessIpAddressV4?: boolean accessType?: boolean accessPort?: boolean description?: boolean deviceModelId?: boolean deviceCredentialId?: boolean enabled?: boolean deviceCredential?: boolean | DeviceCredentialDefaultArgs deviceModel?: boolean | DeviceModelDefaultArgs }, ExtArgs["result"]["networkDevice"]> export type NetworkDeviceSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean accessIpAddressV4?: boolean accessType?: boolean accessPort?: boolean description?: boolean deviceModelId?: boolean deviceCredentialId?: boolean enabled?: boolean } export type NetworkDeviceOmit = $Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "accessIpAddressV4" | "accessType" | "accessPort" | "description" | "deviceModelId" | "deviceCredentialId" | "enabled", ExtArgs["result"]["networkDevice"]> export type NetworkDeviceInclude = { deviceCredential?: boolean | DeviceCredentialDefaultArgs deviceModel?: boolean | DeviceModelDefaultArgs StatInactiveOnu?: boolean | NetworkDevice$StatInactiveOnuArgs StatActiveOnu?: boolean | NetworkDevice$StatActiveOnuArgs StatOnuDevice?: boolean | NetworkDevice$StatOnuDeviceArgs StatOnuOpticalSignal?: boolean | NetworkDevice$StatOnuOpticalSignalArgs StatInterfaces?: boolean | NetworkDevice$StatInterfacesArgs NetworkDeviceVersion?: boolean | NetworkDevice$NetworkDeviceVersionArgs _count?: boolean | NetworkDeviceCountOutputTypeDefaultArgs } export type NetworkDeviceIncludeCreateManyAndReturn = { deviceCredential?: boolean | DeviceCredentialDefaultArgs deviceModel?: boolean | DeviceModelDefaultArgs } export type NetworkDeviceIncludeUpdateManyAndReturn = { deviceCredential?: boolean | DeviceCredentialDefaultArgs deviceModel?: boolean | DeviceModelDefaultArgs } export type $NetworkDevicePayload = { name: "NetworkDevice" objects: { deviceCredential: Prisma.$DeviceCredentialPayload deviceModel: Prisma.$DeviceModelPayload StatInactiveOnu: Prisma.$StatInactiveOnuPayload[] StatActiveOnu: Prisma.$StatActiveOnuPayload[] StatOnuDevice: Prisma.$StatOnuDevicePayload[] StatOnuOpticalSignal: Prisma.$StatOnuOpticalSignalPayload[] StatInterfaces: Prisma.$StatInterfacesPayload[] NetworkDeviceVersion: Prisma.$NetworkDeviceVersionPayload[] } scalars: $Extensions.GetPayloadResult<{ id: number createdAt: Date updatedAt: Date accessIpAddressV4: string accessType: string accessPort: string description: string deviceModelId: number deviceCredentialId: number enabled: boolean }, ExtArgs["result"]["networkDevice"]> composites: {} } type NetworkDeviceGetPayload = $Result.GetResult type NetworkDeviceCountArgs = Omit & { select?: NetworkDeviceCountAggregateInputType | true } export interface NetworkDeviceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['NetworkDevice'], meta: { name: 'NetworkDevice' } } /** * Find zero or one NetworkDevice that matches the filter. * @param {NetworkDeviceFindUniqueArgs} args - Arguments to find a NetworkDevice * @example * // Get one NetworkDevice * const networkDevice = await prisma.networkDevice.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one NetworkDevice that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {NetworkDeviceFindUniqueOrThrowArgs} args - Arguments to find a NetworkDevice * @example * // Get one NetworkDevice * const networkDevice = await prisma.networkDevice.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first NetworkDevice that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceFindFirstArgs} args - Arguments to find a NetworkDevice * @example * // Get one NetworkDevice * const networkDevice = await prisma.networkDevice.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first NetworkDevice that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceFindFirstOrThrowArgs} args - Arguments to find a NetworkDevice * @example * // Get one NetworkDevice * const networkDevice = await prisma.networkDevice.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more NetworkDevices that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all NetworkDevices * const networkDevices = await prisma.networkDevice.findMany() * * // Get first 10 NetworkDevices * const networkDevices = await prisma.networkDevice.findMany({ take: 10 }) * * // Only select the `id` * const networkDeviceWithIdOnly = await prisma.networkDevice.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a NetworkDevice. * @param {NetworkDeviceCreateArgs} args - Arguments to create a NetworkDevice. * @example * // Create one NetworkDevice * const NetworkDevice = await prisma.networkDevice.create({ * data: { * // ... data to create a NetworkDevice * } * }) * */ create(args: SelectSubset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many NetworkDevices. * @param {NetworkDeviceCreateManyArgs} args - Arguments to create many NetworkDevices. * @example * // Create many NetworkDevices * const networkDevice = await prisma.networkDevice.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many NetworkDevices and returns the data saved in the database. * @param {NetworkDeviceCreateManyAndReturnArgs} args - Arguments to create many NetworkDevices. * @example * // Create many NetworkDevices * const networkDevice = await prisma.networkDevice.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many NetworkDevices and only return the `id` * const networkDeviceWithIdOnly = await prisma.networkDevice.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a NetworkDevice. * @param {NetworkDeviceDeleteArgs} args - Arguments to delete one NetworkDevice. * @example * // Delete one NetworkDevice * const NetworkDevice = await prisma.networkDevice.delete({ * where: { * // ... filter to delete one NetworkDevice * } * }) * */ delete(args: SelectSubset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one NetworkDevice. * @param {NetworkDeviceUpdateArgs} args - Arguments to update one NetworkDevice. * @example * // Update one NetworkDevice * const networkDevice = await prisma.networkDevice.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more NetworkDevices. * @param {NetworkDeviceDeleteManyArgs} args - Arguments to filter NetworkDevices to delete. * @example * // Delete a few NetworkDevices * const { count } = await prisma.networkDevice.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NetworkDevices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many NetworkDevices * const networkDevice = await prisma.networkDevice.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NetworkDevices and returns the data updated in the database. * @param {NetworkDeviceUpdateManyAndReturnArgs} args - Arguments to update many NetworkDevices. * @example * // Update many NetworkDevices * const networkDevice = await prisma.networkDevice.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more NetworkDevices and only return the `id` * const networkDeviceWithIdOnly = await prisma.networkDevice.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one NetworkDevice. * @param {NetworkDeviceUpsertArgs} args - Arguments to update or create a NetworkDevice. * @example * // Update or create a NetworkDevice * const networkDevice = await prisma.networkDevice.upsert({ * create: { * // ... data to create a NetworkDevice * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the NetworkDevice we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of NetworkDevices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceCountArgs} args - Arguments to filter NetworkDevices to count. * @example * // Count the number of NetworkDevices * const count = await prisma.networkDevice.count({ * where: { * // ... the filter for the NetworkDevices we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a NetworkDevice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by NetworkDevice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends NetworkDeviceGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: NetworkDeviceGroupByArgs['orderBy'] } : { orderBy?: NetworkDeviceGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetNetworkDeviceGroupByPayload : Prisma.PrismaPromise /** * Fields of the NetworkDevice model */ readonly fields: NetworkDeviceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for NetworkDevice. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__NetworkDeviceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" deviceCredential = {}>(args?: Subset>): Prisma__DeviceCredentialClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> deviceModel = {}>(args?: Subset>): Prisma__DeviceModelClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> StatInactiveOnu = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> StatActiveOnu = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> StatOnuDevice = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> StatOnuOpticalSignal = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> StatInterfaces = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> NetworkDeviceVersion = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the NetworkDevice model */ interface NetworkDeviceFieldRefs { readonly id: FieldRef<"NetworkDevice", 'Int'> readonly createdAt: FieldRef<"NetworkDevice", 'DateTime'> readonly updatedAt: FieldRef<"NetworkDevice", 'DateTime'> readonly accessIpAddressV4: FieldRef<"NetworkDevice", 'String'> readonly accessType: FieldRef<"NetworkDevice", 'String'> readonly accessPort: FieldRef<"NetworkDevice", 'String'> readonly description: FieldRef<"NetworkDevice", 'String'> readonly deviceModelId: FieldRef<"NetworkDevice", 'Int'> readonly deviceCredentialId: FieldRef<"NetworkDevice", 'Int'> readonly enabled: FieldRef<"NetworkDevice", 'Boolean'> } // Custom InputTypes /** * NetworkDevice findUnique */ export type NetworkDeviceFindUniqueArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null /** * Filter, which NetworkDevice to fetch. */ where: NetworkDeviceWhereUniqueInput } /** * NetworkDevice findUniqueOrThrow */ export type NetworkDeviceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null /** * Filter, which NetworkDevice to fetch. */ where: NetworkDeviceWhereUniqueInput } /** * NetworkDevice findFirst */ export type NetworkDeviceFindFirstArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null /** * Filter, which NetworkDevice to fetch. */ where?: NetworkDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NetworkDevices to fetch. */ orderBy?: NetworkDeviceOrderByWithRelationInput | NetworkDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NetworkDevices. */ cursor?: NetworkDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NetworkDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NetworkDevices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NetworkDevices. */ distinct?: NetworkDeviceScalarFieldEnum | NetworkDeviceScalarFieldEnum[] } /** * NetworkDevice findFirstOrThrow */ export type NetworkDeviceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null /** * Filter, which NetworkDevice to fetch. */ where?: NetworkDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NetworkDevices to fetch. */ orderBy?: NetworkDeviceOrderByWithRelationInput | NetworkDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NetworkDevices. */ cursor?: NetworkDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NetworkDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NetworkDevices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NetworkDevices. */ distinct?: NetworkDeviceScalarFieldEnum | NetworkDeviceScalarFieldEnum[] } /** * NetworkDevice findMany */ export type NetworkDeviceFindManyArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null /** * Filter, which NetworkDevices to fetch. */ where?: NetworkDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NetworkDevices to fetch. */ orderBy?: NetworkDeviceOrderByWithRelationInput | NetworkDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing NetworkDevices. */ cursor?: NetworkDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NetworkDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NetworkDevices. */ skip?: number distinct?: NetworkDeviceScalarFieldEnum | NetworkDeviceScalarFieldEnum[] } /** * NetworkDevice create */ export type NetworkDeviceCreateArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null /** * The data needed to create a NetworkDevice. */ data: XOR } /** * NetworkDevice createMany */ export type NetworkDeviceCreateManyArgs = { /** * The data used to create many NetworkDevices. */ data: NetworkDeviceCreateManyInput | NetworkDeviceCreateManyInput[] skipDuplicates?: boolean } /** * NetworkDevice createManyAndReturn */ export type NetworkDeviceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelectCreateManyAndReturn | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * The data used to create many NetworkDevices. */ data: NetworkDeviceCreateManyInput | NetworkDeviceCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceIncludeCreateManyAndReturn | null } /** * NetworkDevice update */ export type NetworkDeviceUpdateArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null /** * The data needed to update a NetworkDevice. */ data: XOR /** * Choose, which NetworkDevice to update. */ where: NetworkDeviceWhereUniqueInput } /** * NetworkDevice updateMany */ export type NetworkDeviceUpdateManyArgs = { /** * The data used to update NetworkDevices. */ data: XOR /** * Filter which NetworkDevices to update */ where?: NetworkDeviceWhereInput /** * Limit how many NetworkDevices to update. */ limit?: number } /** * NetworkDevice updateManyAndReturn */ export type NetworkDeviceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelectUpdateManyAndReturn | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * The data used to update NetworkDevices. */ data: XOR /** * Filter which NetworkDevices to update */ where?: NetworkDeviceWhereInput /** * Limit how many NetworkDevices to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceIncludeUpdateManyAndReturn | null } /** * NetworkDevice upsert */ export type NetworkDeviceUpsertArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null /** * The filter to search for the NetworkDevice to update in case it exists. */ where: NetworkDeviceWhereUniqueInput /** * In case the NetworkDevice found by the `where` argument doesn't exist, create a new NetworkDevice with this data. */ create: XOR /** * In case the NetworkDevice was found with the provided `where` argument, update it with this data. */ update: XOR } /** * NetworkDevice delete */ export type NetworkDeviceDeleteArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null /** * Filter which NetworkDevice to delete. */ where: NetworkDeviceWhereUniqueInput } /** * NetworkDevice deleteMany */ export type NetworkDeviceDeleteManyArgs = { /** * Filter which NetworkDevices to delete */ where?: NetworkDeviceWhereInput /** * Limit how many NetworkDevices to delete. */ limit?: number } /** * NetworkDevice.StatInactiveOnu */ export type NetworkDevice$StatInactiveOnuArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null where?: StatInactiveOnuWhereInput orderBy?: StatInactiveOnuOrderByWithRelationInput | StatInactiveOnuOrderByWithRelationInput[] cursor?: StatInactiveOnuWhereUniqueInput take?: number skip?: number distinct?: StatInactiveOnuScalarFieldEnum | StatInactiveOnuScalarFieldEnum[] } /** * NetworkDevice.StatActiveOnu */ export type NetworkDevice$StatActiveOnuArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null where?: StatActiveOnuWhereInput orderBy?: StatActiveOnuOrderByWithRelationInput | StatActiveOnuOrderByWithRelationInput[] cursor?: StatActiveOnuWhereUniqueInput take?: number skip?: number distinct?: StatActiveOnuScalarFieldEnum | StatActiveOnuScalarFieldEnum[] } /** * NetworkDevice.StatOnuDevice */ export type NetworkDevice$StatOnuDeviceArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null where?: StatOnuDeviceWhereInput orderBy?: StatOnuDeviceOrderByWithRelationInput | StatOnuDeviceOrderByWithRelationInput[] cursor?: StatOnuDeviceWhereUniqueInput take?: number skip?: number distinct?: StatOnuDeviceScalarFieldEnum | StatOnuDeviceScalarFieldEnum[] } /** * NetworkDevice.StatOnuOpticalSignal */ export type NetworkDevice$StatOnuOpticalSignalArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null where?: StatOnuOpticalSignalWhereInput orderBy?: StatOnuOpticalSignalOrderByWithRelationInput | StatOnuOpticalSignalOrderByWithRelationInput[] cursor?: StatOnuOpticalSignalWhereUniqueInput take?: number skip?: number distinct?: StatOnuOpticalSignalScalarFieldEnum | StatOnuOpticalSignalScalarFieldEnum[] } /** * NetworkDevice.StatInterfaces */ export type NetworkDevice$StatInterfacesArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null where?: StatInterfacesWhereInput orderBy?: StatInterfacesOrderByWithRelationInput | StatInterfacesOrderByWithRelationInput[] cursor?: StatInterfacesWhereUniqueInput take?: number skip?: number distinct?: StatInterfacesScalarFieldEnum | StatInterfacesScalarFieldEnum[] } /** * NetworkDevice.NetworkDeviceVersion */ export type NetworkDevice$NetworkDeviceVersionArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null where?: NetworkDeviceVersionWhereInput orderBy?: NetworkDeviceVersionOrderByWithRelationInput | NetworkDeviceVersionOrderByWithRelationInput[] cursor?: NetworkDeviceVersionWhereUniqueInput take?: number skip?: number distinct?: NetworkDeviceVersionScalarFieldEnum | NetworkDeviceVersionScalarFieldEnum[] } /** * NetworkDevice without action */ export type NetworkDeviceDefaultArgs = { /** * Select specific fields to fetch from the NetworkDevice */ select?: NetworkDeviceSelect | null /** * Omit specific fields from the NetworkDevice */ omit?: NetworkDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceInclude | null } /** * Model NetworkDeviceVersion */ export type AggregateNetworkDeviceVersion = { _count: NetworkDeviceVersionCountAggregateOutputType | null _avg: NetworkDeviceVersionAvgAggregateOutputType | null _sum: NetworkDeviceVersionSumAggregateOutputType | null _min: NetworkDeviceVersionMinAggregateOutputType | null _max: NetworkDeviceVersionMaxAggregateOutputType | null } export type NetworkDeviceVersionAvgAggregateOutputType = { id: number | null networkDeviceId: number | null } export type NetworkDeviceVersionSumAggregateOutputType = { id: number | null networkDeviceId: number | null } export type NetworkDeviceVersionMinAggregateOutputType = { id: number | null networkDeviceId: number | null createdAt: Date | null updatedAt: Date | null model: string | null softwareVersion: string | null hardwareVersion: string | null macAddress: string | null serialNumber: string | null } export type NetworkDeviceVersionMaxAggregateOutputType = { id: number | null networkDeviceId: number | null createdAt: Date | null updatedAt: Date | null model: string | null softwareVersion: string | null hardwareVersion: string | null macAddress: string | null serialNumber: string | null } export type NetworkDeviceVersionCountAggregateOutputType = { id: number networkDeviceId: number createdAt: number updatedAt: number model: number softwareVersion: number hardwareVersion: number macAddress: number serialNumber: number _all: number } export type NetworkDeviceVersionAvgAggregateInputType = { id?: true networkDeviceId?: true } export type NetworkDeviceVersionSumAggregateInputType = { id?: true networkDeviceId?: true } export type NetworkDeviceVersionMinAggregateInputType = { id?: true networkDeviceId?: true createdAt?: true updatedAt?: true model?: true softwareVersion?: true hardwareVersion?: true macAddress?: true serialNumber?: true } export type NetworkDeviceVersionMaxAggregateInputType = { id?: true networkDeviceId?: true createdAt?: true updatedAt?: true model?: true softwareVersion?: true hardwareVersion?: true macAddress?: true serialNumber?: true } export type NetworkDeviceVersionCountAggregateInputType = { id?: true networkDeviceId?: true createdAt?: true updatedAt?: true model?: true softwareVersion?: true hardwareVersion?: true macAddress?: true serialNumber?: true _all?: true } export type NetworkDeviceVersionAggregateArgs = { /** * Filter which NetworkDeviceVersion to aggregate. */ where?: NetworkDeviceVersionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NetworkDeviceVersions to fetch. */ orderBy?: NetworkDeviceVersionOrderByWithRelationInput | NetworkDeviceVersionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: NetworkDeviceVersionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NetworkDeviceVersions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NetworkDeviceVersions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned NetworkDeviceVersions **/ _count?: true | NetworkDeviceVersionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: NetworkDeviceVersionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: NetworkDeviceVersionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: NetworkDeviceVersionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: NetworkDeviceVersionMaxAggregateInputType } export type GetNetworkDeviceVersionAggregateType = { [P in keyof T & keyof AggregateNetworkDeviceVersion]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type NetworkDeviceVersionGroupByArgs = { where?: NetworkDeviceVersionWhereInput orderBy?: NetworkDeviceVersionOrderByWithAggregationInput | NetworkDeviceVersionOrderByWithAggregationInput[] by: NetworkDeviceVersionScalarFieldEnum[] | NetworkDeviceVersionScalarFieldEnum having?: NetworkDeviceVersionScalarWhereWithAggregatesInput take?: number skip?: number _count?: NetworkDeviceVersionCountAggregateInputType | true _avg?: NetworkDeviceVersionAvgAggregateInputType _sum?: NetworkDeviceVersionSumAggregateInputType _min?: NetworkDeviceVersionMinAggregateInputType _max?: NetworkDeviceVersionMaxAggregateInputType } export type NetworkDeviceVersionGroupByOutputType = { id: number networkDeviceId: number createdAt: Date updatedAt: Date model: string softwareVersion: string hardwareVersion: string macAddress: string serialNumber: string _count: NetworkDeviceVersionCountAggregateOutputType | null _avg: NetworkDeviceVersionAvgAggregateOutputType | null _sum: NetworkDeviceVersionSumAggregateOutputType | null _min: NetworkDeviceVersionMinAggregateOutputType | null _max: NetworkDeviceVersionMaxAggregateOutputType | null } type GetNetworkDeviceVersionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof NetworkDeviceVersionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type NetworkDeviceVersionSelect = $Extensions.GetSelect<{ id?: boolean networkDeviceId?: boolean createdAt?: boolean updatedAt?: boolean model?: boolean softwareVersion?: boolean hardwareVersion?: boolean macAddress?: boolean serialNumber?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["networkDeviceVersion"]> export type NetworkDeviceVersionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean networkDeviceId?: boolean createdAt?: boolean updatedAt?: boolean model?: boolean softwareVersion?: boolean hardwareVersion?: boolean macAddress?: boolean serialNumber?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["networkDeviceVersion"]> export type NetworkDeviceVersionSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean networkDeviceId?: boolean createdAt?: boolean updatedAt?: boolean model?: boolean softwareVersion?: boolean hardwareVersion?: boolean macAddress?: boolean serialNumber?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["networkDeviceVersion"]> export type NetworkDeviceVersionSelectScalar = { id?: boolean networkDeviceId?: boolean createdAt?: boolean updatedAt?: boolean model?: boolean softwareVersion?: boolean hardwareVersion?: boolean macAddress?: boolean serialNumber?: boolean } export type NetworkDeviceVersionOmit = $Extensions.GetOmit<"id" | "networkDeviceId" | "createdAt" | "updatedAt" | "model" | "softwareVersion" | "hardwareVersion" | "macAddress" | "serialNumber", ExtArgs["result"]["networkDeviceVersion"]> export type NetworkDeviceVersionInclude = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type NetworkDeviceVersionIncludeCreateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type NetworkDeviceVersionIncludeUpdateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type $NetworkDeviceVersionPayload = { name: "NetworkDeviceVersion" objects: { networkDevice: Prisma.$NetworkDevicePayload } scalars: $Extensions.GetPayloadResult<{ id: number networkDeviceId: number createdAt: Date updatedAt: Date model: string softwareVersion: string hardwareVersion: string macAddress: string serialNumber: string }, ExtArgs["result"]["networkDeviceVersion"]> composites: {} } type NetworkDeviceVersionGetPayload = $Result.GetResult type NetworkDeviceVersionCountArgs = Omit & { select?: NetworkDeviceVersionCountAggregateInputType | true } export interface NetworkDeviceVersionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['NetworkDeviceVersion'], meta: { name: 'NetworkDeviceVersion' } } /** * Find zero or one NetworkDeviceVersion that matches the filter. * @param {NetworkDeviceVersionFindUniqueArgs} args - Arguments to find a NetworkDeviceVersion * @example * // Get one NetworkDeviceVersion * const networkDeviceVersion = await prisma.networkDeviceVersion.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__NetworkDeviceVersionClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one NetworkDeviceVersion that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {NetworkDeviceVersionFindUniqueOrThrowArgs} args - Arguments to find a NetworkDeviceVersion * @example * // Get one NetworkDeviceVersion * const networkDeviceVersion = await prisma.networkDeviceVersion.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__NetworkDeviceVersionClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first NetworkDeviceVersion that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceVersionFindFirstArgs} args - Arguments to find a NetworkDeviceVersion * @example * // Get one NetworkDeviceVersion * const networkDeviceVersion = await prisma.networkDeviceVersion.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__NetworkDeviceVersionClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first NetworkDeviceVersion that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceVersionFindFirstOrThrowArgs} args - Arguments to find a NetworkDeviceVersion * @example * // Get one NetworkDeviceVersion * const networkDeviceVersion = await prisma.networkDeviceVersion.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__NetworkDeviceVersionClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more NetworkDeviceVersions that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceVersionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all NetworkDeviceVersions * const networkDeviceVersions = await prisma.networkDeviceVersion.findMany() * * // Get first 10 NetworkDeviceVersions * const networkDeviceVersions = await prisma.networkDeviceVersion.findMany({ take: 10 }) * * // Only select the `id` * const networkDeviceVersionWithIdOnly = await prisma.networkDeviceVersion.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a NetworkDeviceVersion. * @param {NetworkDeviceVersionCreateArgs} args - Arguments to create a NetworkDeviceVersion. * @example * // Create one NetworkDeviceVersion * const NetworkDeviceVersion = await prisma.networkDeviceVersion.create({ * data: { * // ... data to create a NetworkDeviceVersion * } * }) * */ create(args: SelectSubset>): Prisma__NetworkDeviceVersionClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many NetworkDeviceVersions. * @param {NetworkDeviceVersionCreateManyArgs} args - Arguments to create many NetworkDeviceVersions. * @example * // Create many NetworkDeviceVersions * const networkDeviceVersion = await prisma.networkDeviceVersion.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many NetworkDeviceVersions and returns the data saved in the database. * @param {NetworkDeviceVersionCreateManyAndReturnArgs} args - Arguments to create many NetworkDeviceVersions. * @example * // Create many NetworkDeviceVersions * const networkDeviceVersion = await prisma.networkDeviceVersion.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many NetworkDeviceVersions and only return the `id` * const networkDeviceVersionWithIdOnly = await prisma.networkDeviceVersion.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a NetworkDeviceVersion. * @param {NetworkDeviceVersionDeleteArgs} args - Arguments to delete one NetworkDeviceVersion. * @example * // Delete one NetworkDeviceVersion * const NetworkDeviceVersion = await prisma.networkDeviceVersion.delete({ * where: { * // ... filter to delete one NetworkDeviceVersion * } * }) * */ delete(args: SelectSubset>): Prisma__NetworkDeviceVersionClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one NetworkDeviceVersion. * @param {NetworkDeviceVersionUpdateArgs} args - Arguments to update one NetworkDeviceVersion. * @example * // Update one NetworkDeviceVersion * const networkDeviceVersion = await prisma.networkDeviceVersion.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__NetworkDeviceVersionClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more NetworkDeviceVersions. * @param {NetworkDeviceVersionDeleteManyArgs} args - Arguments to filter NetworkDeviceVersions to delete. * @example * // Delete a few NetworkDeviceVersions * const { count } = await prisma.networkDeviceVersion.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NetworkDeviceVersions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceVersionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many NetworkDeviceVersions * const networkDeviceVersion = await prisma.networkDeviceVersion.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more NetworkDeviceVersions and returns the data updated in the database. * @param {NetworkDeviceVersionUpdateManyAndReturnArgs} args - Arguments to update many NetworkDeviceVersions. * @example * // Update many NetworkDeviceVersions * const networkDeviceVersion = await prisma.networkDeviceVersion.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more NetworkDeviceVersions and only return the `id` * const networkDeviceVersionWithIdOnly = await prisma.networkDeviceVersion.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one NetworkDeviceVersion. * @param {NetworkDeviceVersionUpsertArgs} args - Arguments to update or create a NetworkDeviceVersion. * @example * // Update or create a NetworkDeviceVersion * const networkDeviceVersion = await prisma.networkDeviceVersion.upsert({ * create: { * // ... data to create a NetworkDeviceVersion * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the NetworkDeviceVersion we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__NetworkDeviceVersionClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of NetworkDeviceVersions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceVersionCountArgs} args - Arguments to filter NetworkDeviceVersions to count. * @example * // Count the number of NetworkDeviceVersions * const count = await prisma.networkDeviceVersion.count({ * where: { * // ... the filter for the NetworkDeviceVersions we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a NetworkDeviceVersion. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by NetworkDeviceVersion. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {NetworkDeviceVersionGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends NetworkDeviceVersionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: NetworkDeviceVersionGroupByArgs['orderBy'] } : { orderBy?: NetworkDeviceVersionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetNetworkDeviceVersionGroupByPayload : Prisma.PrismaPromise /** * Fields of the NetworkDeviceVersion model */ readonly fields: NetworkDeviceVersionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for NetworkDeviceVersion. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__NetworkDeviceVersionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" networkDevice = {}>(args?: Subset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the NetworkDeviceVersion model */ interface NetworkDeviceVersionFieldRefs { readonly id: FieldRef<"NetworkDeviceVersion", 'Int'> readonly networkDeviceId: FieldRef<"NetworkDeviceVersion", 'Int'> readonly createdAt: FieldRef<"NetworkDeviceVersion", 'DateTime'> readonly updatedAt: FieldRef<"NetworkDeviceVersion", 'DateTime'> readonly model: FieldRef<"NetworkDeviceVersion", 'String'> readonly softwareVersion: FieldRef<"NetworkDeviceVersion", 'String'> readonly hardwareVersion: FieldRef<"NetworkDeviceVersion", 'String'> readonly macAddress: FieldRef<"NetworkDeviceVersion", 'String'> readonly serialNumber: FieldRef<"NetworkDeviceVersion", 'String'> } // Custom InputTypes /** * NetworkDeviceVersion findUnique */ export type NetworkDeviceVersionFindUniqueArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null /** * Filter, which NetworkDeviceVersion to fetch. */ where: NetworkDeviceVersionWhereUniqueInput } /** * NetworkDeviceVersion findUniqueOrThrow */ export type NetworkDeviceVersionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null /** * Filter, which NetworkDeviceVersion to fetch. */ where: NetworkDeviceVersionWhereUniqueInput } /** * NetworkDeviceVersion findFirst */ export type NetworkDeviceVersionFindFirstArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null /** * Filter, which NetworkDeviceVersion to fetch. */ where?: NetworkDeviceVersionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NetworkDeviceVersions to fetch. */ orderBy?: NetworkDeviceVersionOrderByWithRelationInput | NetworkDeviceVersionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NetworkDeviceVersions. */ cursor?: NetworkDeviceVersionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NetworkDeviceVersions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NetworkDeviceVersions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NetworkDeviceVersions. */ distinct?: NetworkDeviceVersionScalarFieldEnum | NetworkDeviceVersionScalarFieldEnum[] } /** * NetworkDeviceVersion findFirstOrThrow */ export type NetworkDeviceVersionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null /** * Filter, which NetworkDeviceVersion to fetch. */ where?: NetworkDeviceVersionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NetworkDeviceVersions to fetch. */ orderBy?: NetworkDeviceVersionOrderByWithRelationInput | NetworkDeviceVersionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for NetworkDeviceVersions. */ cursor?: NetworkDeviceVersionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NetworkDeviceVersions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NetworkDeviceVersions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of NetworkDeviceVersions. */ distinct?: NetworkDeviceVersionScalarFieldEnum | NetworkDeviceVersionScalarFieldEnum[] } /** * NetworkDeviceVersion findMany */ export type NetworkDeviceVersionFindManyArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null /** * Filter, which NetworkDeviceVersions to fetch. */ where?: NetworkDeviceVersionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of NetworkDeviceVersions to fetch. */ orderBy?: NetworkDeviceVersionOrderByWithRelationInput | NetworkDeviceVersionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing NetworkDeviceVersions. */ cursor?: NetworkDeviceVersionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` NetworkDeviceVersions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` NetworkDeviceVersions. */ skip?: number distinct?: NetworkDeviceVersionScalarFieldEnum | NetworkDeviceVersionScalarFieldEnum[] } /** * NetworkDeviceVersion create */ export type NetworkDeviceVersionCreateArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null /** * The data needed to create a NetworkDeviceVersion. */ data: XOR } /** * NetworkDeviceVersion createMany */ export type NetworkDeviceVersionCreateManyArgs = { /** * The data used to create many NetworkDeviceVersions. */ data: NetworkDeviceVersionCreateManyInput | NetworkDeviceVersionCreateManyInput[] skipDuplicates?: boolean } /** * NetworkDeviceVersion createManyAndReturn */ export type NetworkDeviceVersionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelectCreateManyAndReturn | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * The data used to create many NetworkDeviceVersions. */ data: NetworkDeviceVersionCreateManyInput | NetworkDeviceVersionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionIncludeCreateManyAndReturn | null } /** * NetworkDeviceVersion update */ export type NetworkDeviceVersionUpdateArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null /** * The data needed to update a NetworkDeviceVersion. */ data: XOR /** * Choose, which NetworkDeviceVersion to update. */ where: NetworkDeviceVersionWhereUniqueInput } /** * NetworkDeviceVersion updateMany */ export type NetworkDeviceVersionUpdateManyArgs = { /** * The data used to update NetworkDeviceVersions. */ data: XOR /** * Filter which NetworkDeviceVersions to update */ where?: NetworkDeviceVersionWhereInput /** * Limit how many NetworkDeviceVersions to update. */ limit?: number } /** * NetworkDeviceVersion updateManyAndReturn */ export type NetworkDeviceVersionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelectUpdateManyAndReturn | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * The data used to update NetworkDeviceVersions. */ data: XOR /** * Filter which NetworkDeviceVersions to update */ where?: NetworkDeviceVersionWhereInput /** * Limit how many NetworkDeviceVersions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionIncludeUpdateManyAndReturn | null } /** * NetworkDeviceVersion upsert */ export type NetworkDeviceVersionUpsertArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null /** * The filter to search for the NetworkDeviceVersion to update in case it exists. */ where: NetworkDeviceVersionWhereUniqueInput /** * In case the NetworkDeviceVersion found by the `where` argument doesn't exist, create a new NetworkDeviceVersion with this data. */ create: XOR /** * In case the NetworkDeviceVersion was found with the provided `where` argument, update it with this data. */ update: XOR } /** * NetworkDeviceVersion delete */ export type NetworkDeviceVersionDeleteArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null /** * Filter which NetworkDeviceVersion to delete. */ where: NetworkDeviceVersionWhereUniqueInput } /** * NetworkDeviceVersion deleteMany */ export type NetworkDeviceVersionDeleteManyArgs = { /** * Filter which NetworkDeviceVersions to delete */ where?: NetworkDeviceVersionWhereInput /** * Limit how many NetworkDeviceVersions to delete. */ limit?: number } /** * NetworkDeviceVersion without action */ export type NetworkDeviceVersionDefaultArgs = { /** * Select specific fields to fetch from the NetworkDeviceVersion */ select?: NetworkDeviceVersionSelect | null /** * Omit specific fields from the NetworkDeviceVersion */ omit?: NetworkDeviceVersionOmit | null /** * Choose, which related nodes to fetch as well */ include?: NetworkDeviceVersionInclude | null } /** * Model StatOnuDevice */ export type AggregateStatOnuDevice = { _count: StatOnuDeviceCountAggregateOutputType | null _avg: StatOnuDeviceAvgAggregateOutputType | null _sum: StatOnuDeviceSumAggregateOutputType | null _min: StatOnuDeviceMinAggregateOutputType | null _max: StatOnuDeviceMaxAggregateOutputType | null } export type StatOnuDeviceAvgAggregateOutputType = { id: number | null networkDeviceId: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null } export type StatOnuDeviceSumAggregateOutputType = { id: number | null networkDeviceId: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null } export type StatOnuDeviceMinAggregateOutputType = { id: number | null vendorId: string | null modelId: string | null macAddressOnu: string | null serialNumberOnu: string | null description: string | null bindType: string | null status: string | null deregReason: string | null createdAt: Date | null networkDeviceId: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null xponType: string | null } export type StatOnuDeviceMaxAggregateOutputType = { id: number | null vendorId: string | null modelId: string | null macAddressOnu: string | null serialNumberOnu: string | null description: string | null bindType: string | null status: string | null deregReason: string | null createdAt: Date | null networkDeviceId: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null xponType: string | null } export type StatOnuDeviceCountAggregateOutputType = { id: number vendorId: number modelId: number macAddressOnu: number serialNumberOnu: number description: number bindType: number status: number deregReason: number createdAt: number networkDeviceId: number xponBoard: number xponPort: number xponInterface: number xponType: number _all: number } export type StatOnuDeviceAvgAggregateInputType = { id?: true networkDeviceId?: true xponBoard?: true xponPort?: true xponInterface?: true } export type StatOnuDeviceSumAggregateInputType = { id?: true networkDeviceId?: true xponBoard?: true xponPort?: true xponInterface?: true } export type StatOnuDeviceMinAggregateInputType = { id?: true vendorId?: true modelId?: true macAddressOnu?: true serialNumberOnu?: true description?: true bindType?: true status?: true deregReason?: true createdAt?: true networkDeviceId?: true xponBoard?: true xponPort?: true xponInterface?: true xponType?: true } export type StatOnuDeviceMaxAggregateInputType = { id?: true vendorId?: true modelId?: true macAddressOnu?: true serialNumberOnu?: true description?: true bindType?: true status?: true deregReason?: true createdAt?: true networkDeviceId?: true xponBoard?: true xponPort?: true xponInterface?: true xponType?: true } export type StatOnuDeviceCountAggregateInputType = { id?: true vendorId?: true modelId?: true macAddressOnu?: true serialNumberOnu?: true description?: true bindType?: true status?: true deregReason?: true createdAt?: true networkDeviceId?: true xponBoard?: true xponPort?: true xponInterface?: true xponType?: true _all?: true } export type StatOnuDeviceAggregateArgs = { /** * Filter which StatOnuDevice to aggregate. */ where?: StatOnuDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatOnuDevices to fetch. */ orderBy?: StatOnuDeviceOrderByWithRelationInput | StatOnuDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: StatOnuDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatOnuDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatOnuDevices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned StatOnuDevices **/ _count?: true | StatOnuDeviceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StatOnuDeviceAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StatOnuDeviceSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StatOnuDeviceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StatOnuDeviceMaxAggregateInputType } export type GetStatOnuDeviceAggregateType = { [P in keyof T & keyof AggregateStatOnuDevice]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type StatOnuDeviceGroupByArgs = { where?: StatOnuDeviceWhereInput orderBy?: StatOnuDeviceOrderByWithAggregationInput | StatOnuDeviceOrderByWithAggregationInput[] by: StatOnuDeviceScalarFieldEnum[] | StatOnuDeviceScalarFieldEnum having?: StatOnuDeviceScalarWhereWithAggregatesInput take?: number skip?: number _count?: StatOnuDeviceCountAggregateInputType | true _avg?: StatOnuDeviceAvgAggregateInputType _sum?: StatOnuDeviceSumAggregateInputType _min?: StatOnuDeviceMinAggregateInputType _max?: StatOnuDeviceMaxAggregateInputType } export type StatOnuDeviceGroupByOutputType = { id: number vendorId: string modelId: string macAddressOnu: string serialNumberOnu: string description: string bindType: string status: string deregReason: string createdAt: Date networkDeviceId: number xponBoard: number xponPort: number xponInterface: number xponType: string _count: StatOnuDeviceCountAggregateOutputType | null _avg: StatOnuDeviceAvgAggregateOutputType | null _sum: StatOnuDeviceSumAggregateOutputType | null _min: StatOnuDeviceMinAggregateOutputType | null _max: StatOnuDeviceMaxAggregateOutputType | null } type GetStatOnuDeviceGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StatOnuDeviceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type StatOnuDeviceSelect = $Extensions.GetSelect<{ id?: boolean vendorId?: boolean modelId?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean description?: boolean bindType?: boolean status?: boolean deregReason?: boolean createdAt?: boolean networkDeviceId?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean xponType?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statOnuDevice"]> export type StatOnuDeviceSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean vendorId?: boolean modelId?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean description?: boolean bindType?: boolean status?: boolean deregReason?: boolean createdAt?: boolean networkDeviceId?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean xponType?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statOnuDevice"]> export type StatOnuDeviceSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean vendorId?: boolean modelId?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean description?: boolean bindType?: boolean status?: boolean deregReason?: boolean createdAt?: boolean networkDeviceId?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean xponType?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statOnuDevice"]> export type StatOnuDeviceSelectScalar = { id?: boolean vendorId?: boolean modelId?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean description?: boolean bindType?: boolean status?: boolean deregReason?: boolean createdAt?: boolean networkDeviceId?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean xponType?: boolean } export type StatOnuDeviceOmit = $Extensions.GetOmit<"id" | "vendorId" | "modelId" | "macAddressOnu" | "serialNumberOnu" | "description" | "bindType" | "status" | "deregReason" | "createdAt" | "networkDeviceId" | "xponBoard" | "xponPort" | "xponInterface" | "xponType", ExtArgs["result"]["statOnuDevice"]> export type StatOnuDeviceInclude = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatOnuDeviceIncludeCreateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatOnuDeviceIncludeUpdateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type $StatOnuDevicePayload = { name: "StatOnuDevice" objects: { networkDevice: Prisma.$NetworkDevicePayload } scalars: $Extensions.GetPayloadResult<{ id: number vendorId: string modelId: string macAddressOnu: string serialNumberOnu: string description: string bindType: string status: string deregReason: string createdAt: Date networkDeviceId: number xponBoard: number xponPort: number xponInterface: number xponType: string }, ExtArgs["result"]["statOnuDevice"]> composites: {} } type StatOnuDeviceGetPayload = $Result.GetResult type StatOnuDeviceCountArgs = Omit & { select?: StatOnuDeviceCountAggregateInputType | true } export interface StatOnuDeviceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['StatOnuDevice'], meta: { name: 'StatOnuDevice' } } /** * Find zero or one StatOnuDevice that matches the filter. * @param {StatOnuDeviceFindUniqueArgs} args - Arguments to find a StatOnuDevice * @example * // Get one StatOnuDevice * const statOnuDevice = await prisma.statOnuDevice.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__StatOnuDeviceClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one StatOnuDevice that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StatOnuDeviceFindUniqueOrThrowArgs} args - Arguments to find a StatOnuDevice * @example * // Get one StatOnuDevice * const statOnuDevice = await prisma.statOnuDevice.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__StatOnuDeviceClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first StatOnuDevice that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuDeviceFindFirstArgs} args - Arguments to find a StatOnuDevice * @example * // Get one StatOnuDevice * const statOnuDevice = await prisma.statOnuDevice.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__StatOnuDeviceClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first StatOnuDevice that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuDeviceFindFirstOrThrowArgs} args - Arguments to find a StatOnuDevice * @example * // Get one StatOnuDevice * const statOnuDevice = await prisma.statOnuDevice.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__StatOnuDeviceClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more StatOnuDevices that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuDeviceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all StatOnuDevices * const statOnuDevices = await prisma.statOnuDevice.findMany() * * // Get first 10 StatOnuDevices * const statOnuDevices = await prisma.statOnuDevice.findMany({ take: 10 }) * * // Only select the `id` * const statOnuDeviceWithIdOnly = await prisma.statOnuDevice.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a StatOnuDevice. * @param {StatOnuDeviceCreateArgs} args - Arguments to create a StatOnuDevice. * @example * // Create one StatOnuDevice * const StatOnuDevice = await prisma.statOnuDevice.create({ * data: { * // ... data to create a StatOnuDevice * } * }) * */ create(args: SelectSubset>): Prisma__StatOnuDeviceClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many StatOnuDevices. * @param {StatOnuDeviceCreateManyArgs} args - Arguments to create many StatOnuDevices. * @example * // Create many StatOnuDevices * const statOnuDevice = await prisma.statOnuDevice.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many StatOnuDevices and returns the data saved in the database. * @param {StatOnuDeviceCreateManyAndReturnArgs} args - Arguments to create many StatOnuDevices. * @example * // Create many StatOnuDevices * const statOnuDevice = await prisma.statOnuDevice.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many StatOnuDevices and only return the `id` * const statOnuDeviceWithIdOnly = await prisma.statOnuDevice.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a StatOnuDevice. * @param {StatOnuDeviceDeleteArgs} args - Arguments to delete one StatOnuDevice. * @example * // Delete one StatOnuDevice * const StatOnuDevice = await prisma.statOnuDevice.delete({ * where: { * // ... filter to delete one StatOnuDevice * } * }) * */ delete(args: SelectSubset>): Prisma__StatOnuDeviceClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one StatOnuDevice. * @param {StatOnuDeviceUpdateArgs} args - Arguments to update one StatOnuDevice. * @example * // Update one StatOnuDevice * const statOnuDevice = await prisma.statOnuDevice.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__StatOnuDeviceClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more StatOnuDevices. * @param {StatOnuDeviceDeleteManyArgs} args - Arguments to filter StatOnuDevices to delete. * @example * // Delete a few StatOnuDevices * const { count } = await prisma.statOnuDevice.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatOnuDevices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuDeviceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many StatOnuDevices * const statOnuDevice = await prisma.statOnuDevice.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatOnuDevices and returns the data updated in the database. * @param {StatOnuDeviceUpdateManyAndReturnArgs} args - Arguments to update many StatOnuDevices. * @example * // Update many StatOnuDevices * const statOnuDevice = await prisma.statOnuDevice.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more StatOnuDevices and only return the `id` * const statOnuDeviceWithIdOnly = await prisma.statOnuDevice.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one StatOnuDevice. * @param {StatOnuDeviceUpsertArgs} args - Arguments to update or create a StatOnuDevice. * @example * // Update or create a StatOnuDevice * const statOnuDevice = await prisma.statOnuDevice.upsert({ * create: { * // ... data to create a StatOnuDevice * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the StatOnuDevice we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__StatOnuDeviceClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of StatOnuDevices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuDeviceCountArgs} args - Arguments to filter StatOnuDevices to count. * @example * // Count the number of StatOnuDevices * const count = await prisma.statOnuDevice.count({ * where: { * // ... the filter for the StatOnuDevices we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a StatOnuDevice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuDeviceAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by StatOnuDevice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuDeviceGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends StatOnuDeviceGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: StatOnuDeviceGroupByArgs['orderBy'] } : { orderBy?: StatOnuDeviceGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetStatOnuDeviceGroupByPayload : Prisma.PrismaPromise /** * Fields of the StatOnuDevice model */ readonly fields: StatOnuDeviceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for StatOnuDevice. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__StatOnuDeviceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" networkDevice = {}>(args?: Subset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the StatOnuDevice model */ interface StatOnuDeviceFieldRefs { readonly id: FieldRef<"StatOnuDevice", 'Int'> readonly vendorId: FieldRef<"StatOnuDevice", 'String'> readonly modelId: FieldRef<"StatOnuDevice", 'String'> readonly macAddressOnu: FieldRef<"StatOnuDevice", 'String'> readonly serialNumberOnu: FieldRef<"StatOnuDevice", 'String'> readonly description: FieldRef<"StatOnuDevice", 'String'> readonly bindType: FieldRef<"StatOnuDevice", 'String'> readonly status: FieldRef<"StatOnuDevice", 'String'> readonly deregReason: FieldRef<"StatOnuDevice", 'String'> readonly createdAt: FieldRef<"StatOnuDevice", 'DateTime'> readonly networkDeviceId: FieldRef<"StatOnuDevice", 'Int'> readonly xponBoard: FieldRef<"StatOnuDevice", 'Int'> readonly xponPort: FieldRef<"StatOnuDevice", 'Int'> readonly xponInterface: FieldRef<"StatOnuDevice", 'Int'> readonly xponType: FieldRef<"StatOnuDevice", 'String'> } // Custom InputTypes /** * StatOnuDevice findUnique */ export type StatOnuDeviceFindUniqueArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null /** * Filter, which StatOnuDevice to fetch. */ where: StatOnuDeviceWhereUniqueInput } /** * StatOnuDevice findUniqueOrThrow */ export type StatOnuDeviceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null /** * Filter, which StatOnuDevice to fetch. */ where: StatOnuDeviceWhereUniqueInput } /** * StatOnuDevice findFirst */ export type StatOnuDeviceFindFirstArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null /** * Filter, which StatOnuDevice to fetch. */ where?: StatOnuDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatOnuDevices to fetch. */ orderBy?: StatOnuDeviceOrderByWithRelationInput | StatOnuDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatOnuDevices. */ cursor?: StatOnuDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatOnuDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatOnuDevices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatOnuDevices. */ distinct?: StatOnuDeviceScalarFieldEnum | StatOnuDeviceScalarFieldEnum[] } /** * StatOnuDevice findFirstOrThrow */ export type StatOnuDeviceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null /** * Filter, which StatOnuDevice to fetch. */ where?: StatOnuDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatOnuDevices to fetch. */ orderBy?: StatOnuDeviceOrderByWithRelationInput | StatOnuDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatOnuDevices. */ cursor?: StatOnuDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatOnuDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatOnuDevices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatOnuDevices. */ distinct?: StatOnuDeviceScalarFieldEnum | StatOnuDeviceScalarFieldEnum[] } /** * StatOnuDevice findMany */ export type StatOnuDeviceFindManyArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null /** * Filter, which StatOnuDevices to fetch. */ where?: StatOnuDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatOnuDevices to fetch. */ orderBy?: StatOnuDeviceOrderByWithRelationInput | StatOnuDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing StatOnuDevices. */ cursor?: StatOnuDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatOnuDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatOnuDevices. */ skip?: number distinct?: StatOnuDeviceScalarFieldEnum | StatOnuDeviceScalarFieldEnum[] } /** * StatOnuDevice create */ export type StatOnuDeviceCreateArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null /** * The data needed to create a StatOnuDevice. */ data: XOR } /** * StatOnuDevice createMany */ export type StatOnuDeviceCreateManyArgs = { /** * The data used to create many StatOnuDevices. */ data: StatOnuDeviceCreateManyInput | StatOnuDeviceCreateManyInput[] skipDuplicates?: boolean } /** * StatOnuDevice createManyAndReturn */ export type StatOnuDeviceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelectCreateManyAndReturn | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * The data used to create many StatOnuDevices. */ data: StatOnuDeviceCreateManyInput | StatOnuDeviceCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceIncludeCreateManyAndReturn | null } /** * StatOnuDevice update */ export type StatOnuDeviceUpdateArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null /** * The data needed to update a StatOnuDevice. */ data: XOR /** * Choose, which StatOnuDevice to update. */ where: StatOnuDeviceWhereUniqueInput } /** * StatOnuDevice updateMany */ export type StatOnuDeviceUpdateManyArgs = { /** * The data used to update StatOnuDevices. */ data: XOR /** * Filter which StatOnuDevices to update */ where?: StatOnuDeviceWhereInput /** * Limit how many StatOnuDevices to update. */ limit?: number } /** * StatOnuDevice updateManyAndReturn */ export type StatOnuDeviceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelectUpdateManyAndReturn | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * The data used to update StatOnuDevices. */ data: XOR /** * Filter which StatOnuDevices to update */ where?: StatOnuDeviceWhereInput /** * Limit how many StatOnuDevices to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceIncludeUpdateManyAndReturn | null } /** * StatOnuDevice upsert */ export type StatOnuDeviceUpsertArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null /** * The filter to search for the StatOnuDevice to update in case it exists. */ where: StatOnuDeviceWhereUniqueInput /** * In case the StatOnuDevice found by the `where` argument doesn't exist, create a new StatOnuDevice with this data. */ create: XOR /** * In case the StatOnuDevice was found with the provided `where` argument, update it with this data. */ update: XOR } /** * StatOnuDevice delete */ export type StatOnuDeviceDeleteArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null /** * Filter which StatOnuDevice to delete. */ where: StatOnuDeviceWhereUniqueInput } /** * StatOnuDevice deleteMany */ export type StatOnuDeviceDeleteManyArgs = { /** * Filter which StatOnuDevices to delete */ where?: StatOnuDeviceWhereInput /** * Limit how many StatOnuDevices to delete. */ limit?: number } /** * StatOnuDevice without action */ export type StatOnuDeviceDefaultArgs = { /** * Select specific fields to fetch from the StatOnuDevice */ select?: StatOnuDeviceSelect | null /** * Omit specific fields from the StatOnuDevice */ omit?: StatOnuDeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuDeviceInclude | null } /** * Model StatOnuOpticalSignal */ export type AggregateStatOnuOpticalSignal = { _count: StatOnuOpticalSignalCountAggregateOutputType | null _avg: StatOnuOpticalSignalAvgAggregateOutputType | null _sum: StatOnuOpticalSignalSumAggregateOutputType | null _min: StatOnuOpticalSignalMinAggregateOutputType | null _max: StatOnuOpticalSignalMaxAggregateOutputType | null } export type StatOnuOpticalSignalAvgAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null rxPower: number | null txPower: number | null networkDeviceId: number | null } export type StatOnuOpticalSignalSumAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null rxPower: number | null txPower: number | null networkDeviceId: number | null } export type StatOnuOpticalSignalMinAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null rxPower: number | null txPower: number | null createdAt: Date | null networkDeviceId: number | null } export type StatOnuOpticalSignalMaxAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null rxPower: number | null txPower: number | null createdAt: Date | null networkDeviceId: number | null } export type StatOnuOpticalSignalCountAggregateOutputType = { id: number xponBoard: number xponPort: number xponInterface: number rxPower: number txPower: number createdAt: number networkDeviceId: number _all: number } export type StatOnuOpticalSignalAvgAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true rxPower?: true txPower?: true networkDeviceId?: true } export type StatOnuOpticalSignalSumAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true rxPower?: true txPower?: true networkDeviceId?: true } export type StatOnuOpticalSignalMinAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true rxPower?: true txPower?: true createdAt?: true networkDeviceId?: true } export type StatOnuOpticalSignalMaxAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true rxPower?: true txPower?: true createdAt?: true networkDeviceId?: true } export type StatOnuOpticalSignalCountAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true rxPower?: true txPower?: true createdAt?: true networkDeviceId?: true _all?: true } export type StatOnuOpticalSignalAggregateArgs = { /** * Filter which StatOnuOpticalSignal to aggregate. */ where?: StatOnuOpticalSignalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatOnuOpticalSignals to fetch. */ orderBy?: StatOnuOpticalSignalOrderByWithRelationInput | StatOnuOpticalSignalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: StatOnuOpticalSignalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatOnuOpticalSignals from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatOnuOpticalSignals. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned StatOnuOpticalSignals **/ _count?: true | StatOnuOpticalSignalCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StatOnuOpticalSignalAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StatOnuOpticalSignalSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StatOnuOpticalSignalMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StatOnuOpticalSignalMaxAggregateInputType } export type GetStatOnuOpticalSignalAggregateType = { [P in keyof T & keyof AggregateStatOnuOpticalSignal]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type StatOnuOpticalSignalGroupByArgs = { where?: StatOnuOpticalSignalWhereInput orderBy?: StatOnuOpticalSignalOrderByWithAggregationInput | StatOnuOpticalSignalOrderByWithAggregationInput[] by: StatOnuOpticalSignalScalarFieldEnum[] | StatOnuOpticalSignalScalarFieldEnum having?: StatOnuOpticalSignalScalarWhereWithAggregatesInput take?: number skip?: number _count?: StatOnuOpticalSignalCountAggregateInputType | true _avg?: StatOnuOpticalSignalAvgAggregateInputType _sum?: StatOnuOpticalSignalSumAggregateInputType _min?: StatOnuOpticalSignalMinAggregateInputType _max?: StatOnuOpticalSignalMaxAggregateInputType } export type StatOnuOpticalSignalGroupByOutputType = { id: number xponBoard: number xponPort: number xponInterface: number rxPower: number txPower: number createdAt: Date networkDeviceId: number _count: StatOnuOpticalSignalCountAggregateOutputType | null _avg: StatOnuOpticalSignalAvgAggregateOutputType | null _sum: StatOnuOpticalSignalSumAggregateOutputType | null _min: StatOnuOpticalSignalMinAggregateOutputType | null _max: StatOnuOpticalSignalMaxAggregateOutputType | null } type GetStatOnuOpticalSignalGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StatOnuOpticalSignalGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type StatOnuOpticalSignalSelect = $Extensions.GetSelect<{ id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean rxPower?: boolean txPower?: boolean createdAt?: boolean networkDeviceId?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statOnuOpticalSignal"]> export type StatOnuOpticalSignalSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean rxPower?: boolean txPower?: boolean createdAt?: boolean networkDeviceId?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statOnuOpticalSignal"]> export type StatOnuOpticalSignalSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean rxPower?: boolean txPower?: boolean createdAt?: boolean networkDeviceId?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statOnuOpticalSignal"]> export type StatOnuOpticalSignalSelectScalar = { id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean rxPower?: boolean txPower?: boolean createdAt?: boolean networkDeviceId?: boolean } export type StatOnuOpticalSignalOmit = $Extensions.GetOmit<"id" | "xponBoard" | "xponPort" | "xponInterface" | "rxPower" | "txPower" | "createdAt" | "networkDeviceId", ExtArgs["result"]["statOnuOpticalSignal"]> export type StatOnuOpticalSignalInclude = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatOnuOpticalSignalIncludeCreateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatOnuOpticalSignalIncludeUpdateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type $StatOnuOpticalSignalPayload = { name: "StatOnuOpticalSignal" objects: { networkDevice: Prisma.$NetworkDevicePayload } scalars: $Extensions.GetPayloadResult<{ id: number xponBoard: number xponPort: number xponInterface: number rxPower: number txPower: number createdAt: Date networkDeviceId: number }, ExtArgs["result"]["statOnuOpticalSignal"]> composites: {} } type StatOnuOpticalSignalGetPayload = $Result.GetResult type StatOnuOpticalSignalCountArgs = Omit & { select?: StatOnuOpticalSignalCountAggregateInputType | true } export interface StatOnuOpticalSignalDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['StatOnuOpticalSignal'], meta: { name: 'StatOnuOpticalSignal' } } /** * Find zero or one StatOnuOpticalSignal that matches the filter. * @param {StatOnuOpticalSignalFindUniqueArgs} args - Arguments to find a StatOnuOpticalSignal * @example * // Get one StatOnuOpticalSignal * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__StatOnuOpticalSignalClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one StatOnuOpticalSignal that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StatOnuOpticalSignalFindUniqueOrThrowArgs} args - Arguments to find a StatOnuOpticalSignal * @example * // Get one StatOnuOpticalSignal * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__StatOnuOpticalSignalClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first StatOnuOpticalSignal that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuOpticalSignalFindFirstArgs} args - Arguments to find a StatOnuOpticalSignal * @example * // Get one StatOnuOpticalSignal * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__StatOnuOpticalSignalClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first StatOnuOpticalSignal that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuOpticalSignalFindFirstOrThrowArgs} args - Arguments to find a StatOnuOpticalSignal * @example * // Get one StatOnuOpticalSignal * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__StatOnuOpticalSignalClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more StatOnuOpticalSignals that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuOpticalSignalFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all StatOnuOpticalSignals * const statOnuOpticalSignals = await prisma.statOnuOpticalSignal.findMany() * * // Get first 10 StatOnuOpticalSignals * const statOnuOpticalSignals = await prisma.statOnuOpticalSignal.findMany({ take: 10 }) * * // Only select the `id` * const statOnuOpticalSignalWithIdOnly = await prisma.statOnuOpticalSignal.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a StatOnuOpticalSignal. * @param {StatOnuOpticalSignalCreateArgs} args - Arguments to create a StatOnuOpticalSignal. * @example * // Create one StatOnuOpticalSignal * const StatOnuOpticalSignal = await prisma.statOnuOpticalSignal.create({ * data: { * // ... data to create a StatOnuOpticalSignal * } * }) * */ create(args: SelectSubset>): Prisma__StatOnuOpticalSignalClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many StatOnuOpticalSignals. * @param {StatOnuOpticalSignalCreateManyArgs} args - Arguments to create many StatOnuOpticalSignals. * @example * // Create many StatOnuOpticalSignals * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many StatOnuOpticalSignals and returns the data saved in the database. * @param {StatOnuOpticalSignalCreateManyAndReturnArgs} args - Arguments to create many StatOnuOpticalSignals. * @example * // Create many StatOnuOpticalSignals * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many StatOnuOpticalSignals and only return the `id` * const statOnuOpticalSignalWithIdOnly = await prisma.statOnuOpticalSignal.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a StatOnuOpticalSignal. * @param {StatOnuOpticalSignalDeleteArgs} args - Arguments to delete one StatOnuOpticalSignal. * @example * // Delete one StatOnuOpticalSignal * const StatOnuOpticalSignal = await prisma.statOnuOpticalSignal.delete({ * where: { * // ... filter to delete one StatOnuOpticalSignal * } * }) * */ delete(args: SelectSubset>): Prisma__StatOnuOpticalSignalClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one StatOnuOpticalSignal. * @param {StatOnuOpticalSignalUpdateArgs} args - Arguments to update one StatOnuOpticalSignal. * @example * // Update one StatOnuOpticalSignal * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__StatOnuOpticalSignalClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more StatOnuOpticalSignals. * @param {StatOnuOpticalSignalDeleteManyArgs} args - Arguments to filter StatOnuOpticalSignals to delete. * @example * // Delete a few StatOnuOpticalSignals * const { count } = await prisma.statOnuOpticalSignal.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatOnuOpticalSignals. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuOpticalSignalUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many StatOnuOpticalSignals * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatOnuOpticalSignals and returns the data updated in the database. * @param {StatOnuOpticalSignalUpdateManyAndReturnArgs} args - Arguments to update many StatOnuOpticalSignals. * @example * // Update many StatOnuOpticalSignals * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more StatOnuOpticalSignals and only return the `id` * const statOnuOpticalSignalWithIdOnly = await prisma.statOnuOpticalSignal.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one StatOnuOpticalSignal. * @param {StatOnuOpticalSignalUpsertArgs} args - Arguments to update or create a StatOnuOpticalSignal. * @example * // Update or create a StatOnuOpticalSignal * const statOnuOpticalSignal = await prisma.statOnuOpticalSignal.upsert({ * create: { * // ... data to create a StatOnuOpticalSignal * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the StatOnuOpticalSignal we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__StatOnuOpticalSignalClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of StatOnuOpticalSignals. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuOpticalSignalCountArgs} args - Arguments to filter StatOnuOpticalSignals to count. * @example * // Count the number of StatOnuOpticalSignals * const count = await prisma.statOnuOpticalSignal.count({ * where: { * // ... the filter for the StatOnuOpticalSignals we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a StatOnuOpticalSignal. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuOpticalSignalAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by StatOnuOpticalSignal. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatOnuOpticalSignalGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends StatOnuOpticalSignalGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: StatOnuOpticalSignalGroupByArgs['orderBy'] } : { orderBy?: StatOnuOpticalSignalGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetStatOnuOpticalSignalGroupByPayload : Prisma.PrismaPromise /** * Fields of the StatOnuOpticalSignal model */ readonly fields: StatOnuOpticalSignalFieldRefs; } /** * The delegate class that acts as a "Promise-like" for StatOnuOpticalSignal. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__StatOnuOpticalSignalClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" networkDevice = {}>(args?: Subset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the StatOnuOpticalSignal model */ interface StatOnuOpticalSignalFieldRefs { readonly id: FieldRef<"StatOnuOpticalSignal", 'Int'> readonly xponBoard: FieldRef<"StatOnuOpticalSignal", 'Int'> readonly xponPort: FieldRef<"StatOnuOpticalSignal", 'Int'> readonly xponInterface: FieldRef<"StatOnuOpticalSignal", 'Int'> readonly rxPower: FieldRef<"StatOnuOpticalSignal", 'Float'> readonly txPower: FieldRef<"StatOnuOpticalSignal", 'Float'> readonly createdAt: FieldRef<"StatOnuOpticalSignal", 'DateTime'> readonly networkDeviceId: FieldRef<"StatOnuOpticalSignal", 'Int'> } // Custom InputTypes /** * StatOnuOpticalSignal findUnique */ export type StatOnuOpticalSignalFindUniqueArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null /** * Filter, which StatOnuOpticalSignal to fetch. */ where: StatOnuOpticalSignalWhereUniqueInput } /** * StatOnuOpticalSignal findUniqueOrThrow */ export type StatOnuOpticalSignalFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null /** * Filter, which StatOnuOpticalSignal to fetch. */ where: StatOnuOpticalSignalWhereUniqueInput } /** * StatOnuOpticalSignal findFirst */ export type StatOnuOpticalSignalFindFirstArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null /** * Filter, which StatOnuOpticalSignal to fetch. */ where?: StatOnuOpticalSignalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatOnuOpticalSignals to fetch. */ orderBy?: StatOnuOpticalSignalOrderByWithRelationInput | StatOnuOpticalSignalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatOnuOpticalSignals. */ cursor?: StatOnuOpticalSignalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatOnuOpticalSignals from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatOnuOpticalSignals. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatOnuOpticalSignals. */ distinct?: StatOnuOpticalSignalScalarFieldEnum | StatOnuOpticalSignalScalarFieldEnum[] } /** * StatOnuOpticalSignal findFirstOrThrow */ export type StatOnuOpticalSignalFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null /** * Filter, which StatOnuOpticalSignal to fetch. */ where?: StatOnuOpticalSignalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatOnuOpticalSignals to fetch. */ orderBy?: StatOnuOpticalSignalOrderByWithRelationInput | StatOnuOpticalSignalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatOnuOpticalSignals. */ cursor?: StatOnuOpticalSignalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatOnuOpticalSignals from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatOnuOpticalSignals. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatOnuOpticalSignals. */ distinct?: StatOnuOpticalSignalScalarFieldEnum | StatOnuOpticalSignalScalarFieldEnum[] } /** * StatOnuOpticalSignal findMany */ export type StatOnuOpticalSignalFindManyArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null /** * Filter, which StatOnuOpticalSignals to fetch. */ where?: StatOnuOpticalSignalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatOnuOpticalSignals to fetch. */ orderBy?: StatOnuOpticalSignalOrderByWithRelationInput | StatOnuOpticalSignalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing StatOnuOpticalSignals. */ cursor?: StatOnuOpticalSignalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatOnuOpticalSignals from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatOnuOpticalSignals. */ skip?: number distinct?: StatOnuOpticalSignalScalarFieldEnum | StatOnuOpticalSignalScalarFieldEnum[] } /** * StatOnuOpticalSignal create */ export type StatOnuOpticalSignalCreateArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null /** * The data needed to create a StatOnuOpticalSignal. */ data: XOR } /** * StatOnuOpticalSignal createMany */ export type StatOnuOpticalSignalCreateManyArgs = { /** * The data used to create many StatOnuOpticalSignals. */ data: StatOnuOpticalSignalCreateManyInput | StatOnuOpticalSignalCreateManyInput[] skipDuplicates?: boolean } /** * StatOnuOpticalSignal createManyAndReturn */ export type StatOnuOpticalSignalCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelectCreateManyAndReturn | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * The data used to create many StatOnuOpticalSignals. */ data: StatOnuOpticalSignalCreateManyInput | StatOnuOpticalSignalCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalIncludeCreateManyAndReturn | null } /** * StatOnuOpticalSignal update */ export type StatOnuOpticalSignalUpdateArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null /** * The data needed to update a StatOnuOpticalSignal. */ data: XOR /** * Choose, which StatOnuOpticalSignal to update. */ where: StatOnuOpticalSignalWhereUniqueInput } /** * StatOnuOpticalSignal updateMany */ export type StatOnuOpticalSignalUpdateManyArgs = { /** * The data used to update StatOnuOpticalSignals. */ data: XOR /** * Filter which StatOnuOpticalSignals to update */ where?: StatOnuOpticalSignalWhereInput /** * Limit how many StatOnuOpticalSignals to update. */ limit?: number } /** * StatOnuOpticalSignal updateManyAndReturn */ export type StatOnuOpticalSignalUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelectUpdateManyAndReturn | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * The data used to update StatOnuOpticalSignals. */ data: XOR /** * Filter which StatOnuOpticalSignals to update */ where?: StatOnuOpticalSignalWhereInput /** * Limit how many StatOnuOpticalSignals to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalIncludeUpdateManyAndReturn | null } /** * StatOnuOpticalSignal upsert */ export type StatOnuOpticalSignalUpsertArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null /** * The filter to search for the StatOnuOpticalSignal to update in case it exists. */ where: StatOnuOpticalSignalWhereUniqueInput /** * In case the StatOnuOpticalSignal found by the `where` argument doesn't exist, create a new StatOnuOpticalSignal with this data. */ create: XOR /** * In case the StatOnuOpticalSignal was found with the provided `where` argument, update it with this data. */ update: XOR } /** * StatOnuOpticalSignal delete */ export type StatOnuOpticalSignalDeleteArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null /** * Filter which StatOnuOpticalSignal to delete. */ where: StatOnuOpticalSignalWhereUniqueInput } /** * StatOnuOpticalSignal deleteMany */ export type StatOnuOpticalSignalDeleteManyArgs = { /** * Filter which StatOnuOpticalSignals to delete */ where?: StatOnuOpticalSignalWhereInput /** * Limit how many StatOnuOpticalSignals to delete. */ limit?: number } /** * StatOnuOpticalSignal without action */ export type StatOnuOpticalSignalDefaultArgs = { /** * Select specific fields to fetch from the StatOnuOpticalSignal */ select?: StatOnuOpticalSignalSelect | null /** * Omit specific fields from the StatOnuOpticalSignal */ omit?: StatOnuOpticalSignalOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatOnuOpticalSignalInclude | null } /** * Model StatActiveOnu */ export type AggregateStatActiveOnu = { _count: StatActiveOnuCountAggregateOutputType | null _avg: StatActiveOnuAvgAggregateOutputType | null _sum: StatActiveOnuSumAggregateOutputType | null _min: StatActiveOnuMinAggregateOutputType | null _max: StatActiveOnuMaxAggregateOutputType | null } export type StatActiveOnuAvgAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null alivetime: number | null networkDeviceId: number | null } export type StatActiveOnuSumAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null alivetime: number | null networkDeviceId: number | null } export type StatActiveOnuMinAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null macAddressOnu: string | null serialNumberOnu: string | null status: string | null lastRegister: Date | null lastDeregister: Date | null dereason: string | null alivetime: number | null networkDeviceId: number | null createdAt: Date | null newest: boolean | null } export type StatActiveOnuMaxAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null macAddressOnu: string | null serialNumberOnu: string | null status: string | null lastRegister: Date | null lastDeregister: Date | null dereason: string | null alivetime: number | null networkDeviceId: number | null createdAt: Date | null newest: boolean | null } export type StatActiveOnuCountAggregateOutputType = { id: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: number serialNumberOnu: number status: number lastRegister: number lastDeregister: number dereason: number alivetime: number networkDeviceId: number createdAt: number newest: number _all: number } export type StatActiveOnuAvgAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true alivetime?: true networkDeviceId?: true } export type StatActiveOnuSumAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true alivetime?: true networkDeviceId?: true } export type StatActiveOnuMinAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true macAddressOnu?: true serialNumberOnu?: true status?: true lastRegister?: true lastDeregister?: true dereason?: true alivetime?: true networkDeviceId?: true createdAt?: true newest?: true } export type StatActiveOnuMaxAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true macAddressOnu?: true serialNumberOnu?: true status?: true lastRegister?: true lastDeregister?: true dereason?: true alivetime?: true networkDeviceId?: true createdAt?: true newest?: true } export type StatActiveOnuCountAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true macAddressOnu?: true serialNumberOnu?: true status?: true lastRegister?: true lastDeregister?: true dereason?: true alivetime?: true networkDeviceId?: true createdAt?: true newest?: true _all?: true } export type StatActiveOnuAggregateArgs = { /** * Filter which StatActiveOnu to aggregate. */ where?: StatActiveOnuWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatActiveOnus to fetch. */ orderBy?: StatActiveOnuOrderByWithRelationInput | StatActiveOnuOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: StatActiveOnuWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatActiveOnus from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatActiveOnus. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned StatActiveOnus **/ _count?: true | StatActiveOnuCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StatActiveOnuAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StatActiveOnuSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StatActiveOnuMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StatActiveOnuMaxAggregateInputType } export type GetStatActiveOnuAggregateType = { [P in keyof T & keyof AggregateStatActiveOnu]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type StatActiveOnuGroupByArgs = { where?: StatActiveOnuWhereInput orderBy?: StatActiveOnuOrderByWithAggregationInput | StatActiveOnuOrderByWithAggregationInput[] by: StatActiveOnuScalarFieldEnum[] | StatActiveOnuScalarFieldEnum having?: StatActiveOnuScalarWhereWithAggregatesInput take?: number skip?: number _count?: StatActiveOnuCountAggregateInputType | true _avg?: StatActiveOnuAvgAggregateInputType _sum?: StatActiveOnuSumAggregateInputType _min?: StatActiveOnuMinAggregateInputType _max?: StatActiveOnuMaxAggregateInputType } export type StatActiveOnuGroupByOutputType = { id: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu: string status: string lastRegister: Date lastDeregister: Date dereason: string alivetime: number networkDeviceId: number createdAt: Date newest: boolean _count: StatActiveOnuCountAggregateOutputType | null _avg: StatActiveOnuAvgAggregateOutputType | null _sum: StatActiveOnuSumAggregateOutputType | null _min: StatActiveOnuMinAggregateOutputType | null _max: StatActiveOnuMaxAggregateOutputType | null } type GetStatActiveOnuGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StatActiveOnuGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type StatActiveOnuSelect = $Extensions.GetSelect<{ id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean status?: boolean lastRegister?: boolean lastDeregister?: boolean dereason?: boolean alivetime?: boolean networkDeviceId?: boolean createdAt?: boolean newest?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statActiveOnu"]> export type StatActiveOnuSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean status?: boolean lastRegister?: boolean lastDeregister?: boolean dereason?: boolean alivetime?: boolean networkDeviceId?: boolean createdAt?: boolean newest?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statActiveOnu"]> export type StatActiveOnuSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean status?: boolean lastRegister?: boolean lastDeregister?: boolean dereason?: boolean alivetime?: boolean networkDeviceId?: boolean createdAt?: boolean newest?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statActiveOnu"]> export type StatActiveOnuSelectScalar = { id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean status?: boolean lastRegister?: boolean lastDeregister?: boolean dereason?: boolean alivetime?: boolean networkDeviceId?: boolean createdAt?: boolean newest?: boolean } export type StatActiveOnuOmit = $Extensions.GetOmit<"id" | "xponBoard" | "xponPort" | "xponInterface" | "macAddressOnu" | "serialNumberOnu" | "status" | "lastRegister" | "lastDeregister" | "dereason" | "alivetime" | "networkDeviceId" | "createdAt" | "newest", ExtArgs["result"]["statActiveOnu"]> export type StatActiveOnuInclude = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatActiveOnuIncludeCreateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatActiveOnuIncludeUpdateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type $StatActiveOnuPayload = { name: "StatActiveOnu" objects: { networkDevice: Prisma.$NetworkDevicePayload } scalars: $Extensions.GetPayloadResult<{ id: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu: string status: string lastRegister: Date lastDeregister: Date dereason: string alivetime: number networkDeviceId: number createdAt: Date newest: boolean }, ExtArgs["result"]["statActiveOnu"]> composites: {} } type StatActiveOnuGetPayload = $Result.GetResult type StatActiveOnuCountArgs = Omit & { select?: StatActiveOnuCountAggregateInputType | true } export interface StatActiveOnuDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['StatActiveOnu'], meta: { name: 'StatActiveOnu' } } /** * Find zero or one StatActiveOnu that matches the filter. * @param {StatActiveOnuFindUniqueArgs} args - Arguments to find a StatActiveOnu * @example * // Get one StatActiveOnu * const statActiveOnu = await prisma.statActiveOnu.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__StatActiveOnuClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one StatActiveOnu that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StatActiveOnuFindUniqueOrThrowArgs} args - Arguments to find a StatActiveOnu * @example * // Get one StatActiveOnu * const statActiveOnu = await prisma.statActiveOnu.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__StatActiveOnuClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first StatActiveOnu that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatActiveOnuFindFirstArgs} args - Arguments to find a StatActiveOnu * @example * // Get one StatActiveOnu * const statActiveOnu = await prisma.statActiveOnu.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__StatActiveOnuClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first StatActiveOnu that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatActiveOnuFindFirstOrThrowArgs} args - Arguments to find a StatActiveOnu * @example * // Get one StatActiveOnu * const statActiveOnu = await prisma.statActiveOnu.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__StatActiveOnuClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more StatActiveOnus that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatActiveOnuFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all StatActiveOnus * const statActiveOnus = await prisma.statActiveOnu.findMany() * * // Get first 10 StatActiveOnus * const statActiveOnus = await prisma.statActiveOnu.findMany({ take: 10 }) * * // Only select the `id` * const statActiveOnuWithIdOnly = await prisma.statActiveOnu.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a StatActiveOnu. * @param {StatActiveOnuCreateArgs} args - Arguments to create a StatActiveOnu. * @example * // Create one StatActiveOnu * const StatActiveOnu = await prisma.statActiveOnu.create({ * data: { * // ... data to create a StatActiveOnu * } * }) * */ create(args: SelectSubset>): Prisma__StatActiveOnuClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many StatActiveOnus. * @param {StatActiveOnuCreateManyArgs} args - Arguments to create many StatActiveOnus. * @example * // Create many StatActiveOnus * const statActiveOnu = await prisma.statActiveOnu.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many StatActiveOnus and returns the data saved in the database. * @param {StatActiveOnuCreateManyAndReturnArgs} args - Arguments to create many StatActiveOnus. * @example * // Create many StatActiveOnus * const statActiveOnu = await prisma.statActiveOnu.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many StatActiveOnus and only return the `id` * const statActiveOnuWithIdOnly = await prisma.statActiveOnu.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a StatActiveOnu. * @param {StatActiveOnuDeleteArgs} args - Arguments to delete one StatActiveOnu. * @example * // Delete one StatActiveOnu * const StatActiveOnu = await prisma.statActiveOnu.delete({ * where: { * // ... filter to delete one StatActiveOnu * } * }) * */ delete(args: SelectSubset>): Prisma__StatActiveOnuClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one StatActiveOnu. * @param {StatActiveOnuUpdateArgs} args - Arguments to update one StatActiveOnu. * @example * // Update one StatActiveOnu * const statActiveOnu = await prisma.statActiveOnu.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__StatActiveOnuClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more StatActiveOnus. * @param {StatActiveOnuDeleteManyArgs} args - Arguments to filter StatActiveOnus to delete. * @example * // Delete a few StatActiveOnus * const { count } = await prisma.statActiveOnu.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatActiveOnus. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatActiveOnuUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many StatActiveOnus * const statActiveOnu = await prisma.statActiveOnu.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatActiveOnus and returns the data updated in the database. * @param {StatActiveOnuUpdateManyAndReturnArgs} args - Arguments to update many StatActiveOnus. * @example * // Update many StatActiveOnus * const statActiveOnu = await prisma.statActiveOnu.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more StatActiveOnus and only return the `id` * const statActiveOnuWithIdOnly = await prisma.statActiveOnu.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one StatActiveOnu. * @param {StatActiveOnuUpsertArgs} args - Arguments to update or create a StatActiveOnu. * @example * // Update or create a StatActiveOnu * const statActiveOnu = await prisma.statActiveOnu.upsert({ * create: { * // ... data to create a StatActiveOnu * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the StatActiveOnu we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__StatActiveOnuClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of StatActiveOnus. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatActiveOnuCountArgs} args - Arguments to filter StatActiveOnus to count. * @example * // Count the number of StatActiveOnus * const count = await prisma.statActiveOnu.count({ * where: { * // ... the filter for the StatActiveOnus we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a StatActiveOnu. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatActiveOnuAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by StatActiveOnu. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatActiveOnuGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends StatActiveOnuGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: StatActiveOnuGroupByArgs['orderBy'] } : { orderBy?: StatActiveOnuGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetStatActiveOnuGroupByPayload : Prisma.PrismaPromise /** * Fields of the StatActiveOnu model */ readonly fields: StatActiveOnuFieldRefs; } /** * The delegate class that acts as a "Promise-like" for StatActiveOnu. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__StatActiveOnuClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" networkDevice = {}>(args?: Subset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the StatActiveOnu model */ interface StatActiveOnuFieldRefs { readonly id: FieldRef<"StatActiveOnu", 'Int'> readonly xponBoard: FieldRef<"StatActiveOnu", 'Int'> readonly xponPort: FieldRef<"StatActiveOnu", 'Int'> readonly xponInterface: FieldRef<"StatActiveOnu", 'Int'> readonly macAddressOnu: FieldRef<"StatActiveOnu", 'String'> readonly serialNumberOnu: FieldRef<"StatActiveOnu", 'String'> readonly status: FieldRef<"StatActiveOnu", 'String'> readonly lastRegister: FieldRef<"StatActiveOnu", 'DateTime'> readonly lastDeregister: FieldRef<"StatActiveOnu", 'DateTime'> readonly dereason: FieldRef<"StatActiveOnu", 'String'> readonly alivetime: FieldRef<"StatActiveOnu", 'Int'> readonly networkDeviceId: FieldRef<"StatActiveOnu", 'Int'> readonly createdAt: FieldRef<"StatActiveOnu", 'DateTime'> readonly newest: FieldRef<"StatActiveOnu", 'Boolean'> } // Custom InputTypes /** * StatActiveOnu findUnique */ export type StatActiveOnuFindUniqueArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null /** * Filter, which StatActiveOnu to fetch. */ where: StatActiveOnuWhereUniqueInput } /** * StatActiveOnu findUniqueOrThrow */ export type StatActiveOnuFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null /** * Filter, which StatActiveOnu to fetch. */ where: StatActiveOnuWhereUniqueInput } /** * StatActiveOnu findFirst */ export type StatActiveOnuFindFirstArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null /** * Filter, which StatActiveOnu to fetch. */ where?: StatActiveOnuWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatActiveOnus to fetch. */ orderBy?: StatActiveOnuOrderByWithRelationInput | StatActiveOnuOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatActiveOnus. */ cursor?: StatActiveOnuWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatActiveOnus from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatActiveOnus. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatActiveOnus. */ distinct?: StatActiveOnuScalarFieldEnum | StatActiveOnuScalarFieldEnum[] } /** * StatActiveOnu findFirstOrThrow */ export type StatActiveOnuFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null /** * Filter, which StatActiveOnu to fetch. */ where?: StatActiveOnuWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatActiveOnus to fetch. */ orderBy?: StatActiveOnuOrderByWithRelationInput | StatActiveOnuOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatActiveOnus. */ cursor?: StatActiveOnuWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatActiveOnus from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatActiveOnus. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatActiveOnus. */ distinct?: StatActiveOnuScalarFieldEnum | StatActiveOnuScalarFieldEnum[] } /** * StatActiveOnu findMany */ export type StatActiveOnuFindManyArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null /** * Filter, which StatActiveOnus to fetch. */ where?: StatActiveOnuWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatActiveOnus to fetch. */ orderBy?: StatActiveOnuOrderByWithRelationInput | StatActiveOnuOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing StatActiveOnus. */ cursor?: StatActiveOnuWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatActiveOnus from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatActiveOnus. */ skip?: number distinct?: StatActiveOnuScalarFieldEnum | StatActiveOnuScalarFieldEnum[] } /** * StatActiveOnu create */ export type StatActiveOnuCreateArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null /** * The data needed to create a StatActiveOnu. */ data: XOR } /** * StatActiveOnu createMany */ export type StatActiveOnuCreateManyArgs = { /** * The data used to create many StatActiveOnus. */ data: StatActiveOnuCreateManyInput | StatActiveOnuCreateManyInput[] skipDuplicates?: boolean } /** * StatActiveOnu createManyAndReturn */ export type StatActiveOnuCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelectCreateManyAndReturn | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * The data used to create many StatActiveOnus. */ data: StatActiveOnuCreateManyInput | StatActiveOnuCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuIncludeCreateManyAndReturn | null } /** * StatActiveOnu update */ export type StatActiveOnuUpdateArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null /** * The data needed to update a StatActiveOnu. */ data: XOR /** * Choose, which StatActiveOnu to update. */ where: StatActiveOnuWhereUniqueInput } /** * StatActiveOnu updateMany */ export type StatActiveOnuUpdateManyArgs = { /** * The data used to update StatActiveOnus. */ data: XOR /** * Filter which StatActiveOnus to update */ where?: StatActiveOnuWhereInput /** * Limit how many StatActiveOnus to update. */ limit?: number } /** * StatActiveOnu updateManyAndReturn */ export type StatActiveOnuUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelectUpdateManyAndReturn | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * The data used to update StatActiveOnus. */ data: XOR /** * Filter which StatActiveOnus to update */ where?: StatActiveOnuWhereInput /** * Limit how many StatActiveOnus to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuIncludeUpdateManyAndReturn | null } /** * StatActiveOnu upsert */ export type StatActiveOnuUpsertArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null /** * The filter to search for the StatActiveOnu to update in case it exists. */ where: StatActiveOnuWhereUniqueInput /** * In case the StatActiveOnu found by the `where` argument doesn't exist, create a new StatActiveOnu with this data. */ create: XOR /** * In case the StatActiveOnu was found with the provided `where` argument, update it with this data. */ update: XOR } /** * StatActiveOnu delete */ export type StatActiveOnuDeleteArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null /** * Filter which StatActiveOnu to delete. */ where: StatActiveOnuWhereUniqueInput } /** * StatActiveOnu deleteMany */ export type StatActiveOnuDeleteManyArgs = { /** * Filter which StatActiveOnus to delete */ where?: StatActiveOnuWhereInput /** * Limit how many StatActiveOnus to delete. */ limit?: number } /** * StatActiveOnu without action */ export type StatActiveOnuDefaultArgs = { /** * Select specific fields to fetch from the StatActiveOnu */ select?: StatActiveOnuSelect | null /** * Omit specific fields from the StatActiveOnu */ omit?: StatActiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatActiveOnuInclude | null } /** * Model StatInactiveOnu */ export type AggregateStatInactiveOnu = { _count: StatInactiveOnuCountAggregateOutputType | null _avg: StatInactiveOnuAvgAggregateOutputType | null _sum: StatInactiveOnuSumAggregateOutputType | null _min: StatInactiveOnuMinAggregateOutputType | null _max: StatInactiveOnuMaxAggregateOutputType | null } export type StatInactiveOnuAvgAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null networkDeviceId: number | null } export type StatInactiveOnuSumAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null networkDeviceId: number | null } export type StatInactiveOnuMinAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null macAddressOnu: string | null serialNumberOnu: string | null status: string | null deregReason: string | null lastRegister: Date | null lastDeregister: Date | null createdAt: Date | null networkDeviceId: number | null newest: boolean | null } export type StatInactiveOnuMaxAggregateOutputType = { id: number | null xponBoard: number | null xponPort: number | null xponInterface: number | null macAddressOnu: string | null serialNumberOnu: string | null status: string | null deregReason: string | null lastRegister: Date | null lastDeregister: Date | null createdAt: Date | null networkDeviceId: number | null newest: boolean | null } export type StatInactiveOnuCountAggregateOutputType = { id: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: number serialNumberOnu: number status: number deregReason: number lastRegister: number lastDeregister: number createdAt: number networkDeviceId: number newest: number _all: number } export type StatInactiveOnuAvgAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true networkDeviceId?: true } export type StatInactiveOnuSumAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true networkDeviceId?: true } export type StatInactiveOnuMinAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true macAddressOnu?: true serialNumberOnu?: true status?: true deregReason?: true lastRegister?: true lastDeregister?: true createdAt?: true networkDeviceId?: true newest?: true } export type StatInactiveOnuMaxAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true macAddressOnu?: true serialNumberOnu?: true status?: true deregReason?: true lastRegister?: true lastDeregister?: true createdAt?: true networkDeviceId?: true newest?: true } export type StatInactiveOnuCountAggregateInputType = { id?: true xponBoard?: true xponPort?: true xponInterface?: true macAddressOnu?: true serialNumberOnu?: true status?: true deregReason?: true lastRegister?: true lastDeregister?: true createdAt?: true networkDeviceId?: true newest?: true _all?: true } export type StatInactiveOnuAggregateArgs = { /** * Filter which StatInactiveOnu to aggregate. */ where?: StatInactiveOnuWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatInactiveOnus to fetch. */ orderBy?: StatInactiveOnuOrderByWithRelationInput | StatInactiveOnuOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: StatInactiveOnuWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatInactiveOnus from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatInactiveOnus. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned StatInactiveOnus **/ _count?: true | StatInactiveOnuCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StatInactiveOnuAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StatInactiveOnuSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StatInactiveOnuMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StatInactiveOnuMaxAggregateInputType } export type GetStatInactiveOnuAggregateType = { [P in keyof T & keyof AggregateStatInactiveOnu]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type StatInactiveOnuGroupByArgs = { where?: StatInactiveOnuWhereInput orderBy?: StatInactiveOnuOrderByWithAggregationInput | StatInactiveOnuOrderByWithAggregationInput[] by: StatInactiveOnuScalarFieldEnum[] | StatInactiveOnuScalarFieldEnum having?: StatInactiveOnuScalarWhereWithAggregatesInput take?: number skip?: number _count?: StatInactiveOnuCountAggregateInputType | true _avg?: StatInactiveOnuAvgAggregateInputType _sum?: StatInactiveOnuSumAggregateInputType _min?: StatInactiveOnuMinAggregateInputType _max?: StatInactiveOnuMaxAggregateInputType } export type StatInactiveOnuGroupByOutputType = { id: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu: string status: string deregReason: string lastRegister: Date lastDeregister: Date createdAt: Date networkDeviceId: number newest: boolean _count: StatInactiveOnuCountAggregateOutputType | null _avg: StatInactiveOnuAvgAggregateOutputType | null _sum: StatInactiveOnuSumAggregateOutputType | null _min: StatInactiveOnuMinAggregateOutputType | null _max: StatInactiveOnuMaxAggregateOutputType | null } type GetStatInactiveOnuGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StatInactiveOnuGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type StatInactiveOnuSelect = $Extensions.GetSelect<{ id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean status?: boolean deregReason?: boolean lastRegister?: boolean lastDeregister?: boolean createdAt?: boolean networkDeviceId?: boolean newest?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statInactiveOnu"]> export type StatInactiveOnuSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean status?: boolean deregReason?: boolean lastRegister?: boolean lastDeregister?: boolean createdAt?: boolean networkDeviceId?: boolean newest?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statInactiveOnu"]> export type StatInactiveOnuSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean status?: boolean deregReason?: boolean lastRegister?: boolean lastDeregister?: boolean createdAt?: boolean networkDeviceId?: boolean newest?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statInactiveOnu"]> export type StatInactiveOnuSelectScalar = { id?: boolean xponBoard?: boolean xponPort?: boolean xponInterface?: boolean macAddressOnu?: boolean serialNumberOnu?: boolean status?: boolean deregReason?: boolean lastRegister?: boolean lastDeregister?: boolean createdAt?: boolean networkDeviceId?: boolean newest?: boolean } export type StatInactiveOnuOmit = $Extensions.GetOmit<"id" | "xponBoard" | "xponPort" | "xponInterface" | "macAddressOnu" | "serialNumberOnu" | "status" | "deregReason" | "lastRegister" | "lastDeregister" | "createdAt" | "networkDeviceId" | "newest", ExtArgs["result"]["statInactiveOnu"]> export type StatInactiveOnuInclude = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatInactiveOnuIncludeCreateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatInactiveOnuIncludeUpdateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type $StatInactiveOnuPayload = { name: "StatInactiveOnu" objects: { networkDevice: Prisma.$NetworkDevicePayload } scalars: $Extensions.GetPayloadResult<{ id: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu: string status: string deregReason: string lastRegister: Date lastDeregister: Date createdAt: Date networkDeviceId: number newest: boolean }, ExtArgs["result"]["statInactiveOnu"]> composites: {} } type StatInactiveOnuGetPayload = $Result.GetResult type StatInactiveOnuCountArgs = Omit & { select?: StatInactiveOnuCountAggregateInputType | true } export interface StatInactiveOnuDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['StatInactiveOnu'], meta: { name: 'StatInactiveOnu' } } /** * Find zero or one StatInactiveOnu that matches the filter. * @param {StatInactiveOnuFindUniqueArgs} args - Arguments to find a StatInactiveOnu * @example * // Get one StatInactiveOnu * const statInactiveOnu = await prisma.statInactiveOnu.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__StatInactiveOnuClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one StatInactiveOnu that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StatInactiveOnuFindUniqueOrThrowArgs} args - Arguments to find a StatInactiveOnu * @example * // Get one StatInactiveOnu * const statInactiveOnu = await prisma.statInactiveOnu.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__StatInactiveOnuClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first StatInactiveOnu that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInactiveOnuFindFirstArgs} args - Arguments to find a StatInactiveOnu * @example * // Get one StatInactiveOnu * const statInactiveOnu = await prisma.statInactiveOnu.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__StatInactiveOnuClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first StatInactiveOnu that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInactiveOnuFindFirstOrThrowArgs} args - Arguments to find a StatInactiveOnu * @example * // Get one StatInactiveOnu * const statInactiveOnu = await prisma.statInactiveOnu.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__StatInactiveOnuClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more StatInactiveOnus that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInactiveOnuFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all StatInactiveOnus * const statInactiveOnus = await prisma.statInactiveOnu.findMany() * * // Get first 10 StatInactiveOnus * const statInactiveOnus = await prisma.statInactiveOnu.findMany({ take: 10 }) * * // Only select the `id` * const statInactiveOnuWithIdOnly = await prisma.statInactiveOnu.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a StatInactiveOnu. * @param {StatInactiveOnuCreateArgs} args - Arguments to create a StatInactiveOnu. * @example * // Create one StatInactiveOnu * const StatInactiveOnu = await prisma.statInactiveOnu.create({ * data: { * // ... data to create a StatInactiveOnu * } * }) * */ create(args: SelectSubset>): Prisma__StatInactiveOnuClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many StatInactiveOnus. * @param {StatInactiveOnuCreateManyArgs} args - Arguments to create many StatInactiveOnus. * @example * // Create many StatInactiveOnus * const statInactiveOnu = await prisma.statInactiveOnu.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many StatInactiveOnus and returns the data saved in the database. * @param {StatInactiveOnuCreateManyAndReturnArgs} args - Arguments to create many StatInactiveOnus. * @example * // Create many StatInactiveOnus * const statInactiveOnu = await prisma.statInactiveOnu.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many StatInactiveOnus and only return the `id` * const statInactiveOnuWithIdOnly = await prisma.statInactiveOnu.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a StatInactiveOnu. * @param {StatInactiveOnuDeleteArgs} args - Arguments to delete one StatInactiveOnu. * @example * // Delete one StatInactiveOnu * const StatInactiveOnu = await prisma.statInactiveOnu.delete({ * where: { * // ... filter to delete one StatInactiveOnu * } * }) * */ delete(args: SelectSubset>): Prisma__StatInactiveOnuClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one StatInactiveOnu. * @param {StatInactiveOnuUpdateArgs} args - Arguments to update one StatInactiveOnu. * @example * // Update one StatInactiveOnu * const statInactiveOnu = await prisma.statInactiveOnu.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__StatInactiveOnuClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more StatInactiveOnus. * @param {StatInactiveOnuDeleteManyArgs} args - Arguments to filter StatInactiveOnus to delete. * @example * // Delete a few StatInactiveOnus * const { count } = await prisma.statInactiveOnu.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatInactiveOnus. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInactiveOnuUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many StatInactiveOnus * const statInactiveOnu = await prisma.statInactiveOnu.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatInactiveOnus and returns the data updated in the database. * @param {StatInactiveOnuUpdateManyAndReturnArgs} args - Arguments to update many StatInactiveOnus. * @example * // Update many StatInactiveOnus * const statInactiveOnu = await prisma.statInactiveOnu.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more StatInactiveOnus and only return the `id` * const statInactiveOnuWithIdOnly = await prisma.statInactiveOnu.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one StatInactiveOnu. * @param {StatInactiveOnuUpsertArgs} args - Arguments to update or create a StatInactiveOnu. * @example * // Update or create a StatInactiveOnu * const statInactiveOnu = await prisma.statInactiveOnu.upsert({ * create: { * // ... data to create a StatInactiveOnu * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the StatInactiveOnu we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__StatInactiveOnuClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of StatInactiveOnus. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInactiveOnuCountArgs} args - Arguments to filter StatInactiveOnus to count. * @example * // Count the number of StatInactiveOnus * const count = await prisma.statInactiveOnu.count({ * where: { * // ... the filter for the StatInactiveOnus we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a StatInactiveOnu. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInactiveOnuAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by StatInactiveOnu. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInactiveOnuGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends StatInactiveOnuGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: StatInactiveOnuGroupByArgs['orderBy'] } : { orderBy?: StatInactiveOnuGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetStatInactiveOnuGroupByPayload : Prisma.PrismaPromise /** * Fields of the StatInactiveOnu model */ readonly fields: StatInactiveOnuFieldRefs; } /** * The delegate class that acts as a "Promise-like" for StatInactiveOnu. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__StatInactiveOnuClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" networkDevice = {}>(args?: Subset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the StatInactiveOnu model */ interface StatInactiveOnuFieldRefs { readonly id: FieldRef<"StatInactiveOnu", 'Int'> readonly xponBoard: FieldRef<"StatInactiveOnu", 'Int'> readonly xponPort: FieldRef<"StatInactiveOnu", 'Int'> readonly xponInterface: FieldRef<"StatInactiveOnu", 'Int'> readonly macAddressOnu: FieldRef<"StatInactiveOnu", 'String'> readonly serialNumberOnu: FieldRef<"StatInactiveOnu", 'String'> readonly status: FieldRef<"StatInactiveOnu", 'String'> readonly deregReason: FieldRef<"StatInactiveOnu", 'String'> readonly lastRegister: FieldRef<"StatInactiveOnu", 'DateTime'> readonly lastDeregister: FieldRef<"StatInactiveOnu", 'DateTime'> readonly createdAt: FieldRef<"StatInactiveOnu", 'DateTime'> readonly networkDeviceId: FieldRef<"StatInactiveOnu", 'Int'> readonly newest: FieldRef<"StatInactiveOnu", 'Boolean'> } // Custom InputTypes /** * StatInactiveOnu findUnique */ export type StatInactiveOnuFindUniqueArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null /** * Filter, which StatInactiveOnu to fetch. */ where: StatInactiveOnuWhereUniqueInput } /** * StatInactiveOnu findUniqueOrThrow */ export type StatInactiveOnuFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null /** * Filter, which StatInactiveOnu to fetch. */ where: StatInactiveOnuWhereUniqueInput } /** * StatInactiveOnu findFirst */ export type StatInactiveOnuFindFirstArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null /** * Filter, which StatInactiveOnu to fetch. */ where?: StatInactiveOnuWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatInactiveOnus to fetch. */ orderBy?: StatInactiveOnuOrderByWithRelationInput | StatInactiveOnuOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatInactiveOnus. */ cursor?: StatInactiveOnuWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatInactiveOnus from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatInactiveOnus. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatInactiveOnus. */ distinct?: StatInactiveOnuScalarFieldEnum | StatInactiveOnuScalarFieldEnum[] } /** * StatInactiveOnu findFirstOrThrow */ export type StatInactiveOnuFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null /** * Filter, which StatInactiveOnu to fetch. */ where?: StatInactiveOnuWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatInactiveOnus to fetch. */ orderBy?: StatInactiveOnuOrderByWithRelationInput | StatInactiveOnuOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatInactiveOnus. */ cursor?: StatInactiveOnuWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatInactiveOnus from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatInactiveOnus. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatInactiveOnus. */ distinct?: StatInactiveOnuScalarFieldEnum | StatInactiveOnuScalarFieldEnum[] } /** * StatInactiveOnu findMany */ export type StatInactiveOnuFindManyArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null /** * Filter, which StatInactiveOnus to fetch. */ where?: StatInactiveOnuWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatInactiveOnus to fetch. */ orderBy?: StatInactiveOnuOrderByWithRelationInput | StatInactiveOnuOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing StatInactiveOnus. */ cursor?: StatInactiveOnuWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatInactiveOnus from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatInactiveOnus. */ skip?: number distinct?: StatInactiveOnuScalarFieldEnum | StatInactiveOnuScalarFieldEnum[] } /** * StatInactiveOnu create */ export type StatInactiveOnuCreateArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null /** * The data needed to create a StatInactiveOnu. */ data: XOR } /** * StatInactiveOnu createMany */ export type StatInactiveOnuCreateManyArgs = { /** * The data used to create many StatInactiveOnus. */ data: StatInactiveOnuCreateManyInput | StatInactiveOnuCreateManyInput[] skipDuplicates?: boolean } /** * StatInactiveOnu createManyAndReturn */ export type StatInactiveOnuCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelectCreateManyAndReturn | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * The data used to create many StatInactiveOnus. */ data: StatInactiveOnuCreateManyInput | StatInactiveOnuCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuIncludeCreateManyAndReturn | null } /** * StatInactiveOnu update */ export type StatInactiveOnuUpdateArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null /** * The data needed to update a StatInactiveOnu. */ data: XOR /** * Choose, which StatInactiveOnu to update. */ where: StatInactiveOnuWhereUniqueInput } /** * StatInactiveOnu updateMany */ export type StatInactiveOnuUpdateManyArgs = { /** * The data used to update StatInactiveOnus. */ data: XOR /** * Filter which StatInactiveOnus to update */ where?: StatInactiveOnuWhereInput /** * Limit how many StatInactiveOnus to update. */ limit?: number } /** * StatInactiveOnu updateManyAndReturn */ export type StatInactiveOnuUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelectUpdateManyAndReturn | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * The data used to update StatInactiveOnus. */ data: XOR /** * Filter which StatInactiveOnus to update */ where?: StatInactiveOnuWhereInput /** * Limit how many StatInactiveOnus to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuIncludeUpdateManyAndReturn | null } /** * StatInactiveOnu upsert */ export type StatInactiveOnuUpsertArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null /** * The filter to search for the StatInactiveOnu to update in case it exists. */ where: StatInactiveOnuWhereUniqueInput /** * In case the StatInactiveOnu found by the `where` argument doesn't exist, create a new StatInactiveOnu with this data. */ create: XOR /** * In case the StatInactiveOnu was found with the provided `where` argument, update it with this data. */ update: XOR } /** * StatInactiveOnu delete */ export type StatInactiveOnuDeleteArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null /** * Filter which StatInactiveOnu to delete. */ where: StatInactiveOnuWhereUniqueInput } /** * StatInactiveOnu deleteMany */ export type StatInactiveOnuDeleteManyArgs = { /** * Filter which StatInactiveOnus to delete */ where?: StatInactiveOnuWhereInput /** * Limit how many StatInactiveOnus to delete. */ limit?: number } /** * StatInactiveOnu without action */ export type StatInactiveOnuDefaultArgs = { /** * Select specific fields to fetch from the StatInactiveOnu */ select?: StatInactiveOnuSelect | null /** * Omit specific fields from the StatInactiveOnu */ omit?: StatInactiveOnuOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInactiveOnuInclude | null } /** * Model StatInterfaces */ export type AggregateStatInterfaces = { _count: StatInterfacesCountAggregateOutputType | null _avg: StatInterfacesAvgAggregateOutputType | null _sum: StatInterfacesSumAggregateOutputType | null _min: StatInterfacesMinAggregateOutputType | null _max: StatInterfacesMaxAggregateOutputType | null } export type StatInterfacesAvgAggregateOutputType = { id: number | null ifSpeedMb: number | null bandwidth: number | null fiveMinutesInRate: number | null fiveMinutesOutRate: number | null realtimeInRates: number | null realtimeOutRates: number | null peakInRates: number | null peakOutRates: number | null rxErrorCount: number | null board: number | null port: number | null xponInterfaceNum: number | null networkDeviceId: number | null } export type StatInterfacesSumAggregateOutputType = { id: number | null ifSpeedMb: number | null bandwidth: number | null fiveMinutesInRate: bigint | null fiveMinutesOutRate: bigint | null realtimeInRates: bigint | null realtimeOutRates: bigint | null peakInRates: bigint | null peakOutRates: bigint | null rxErrorCount: number | null board: number | null port: number | null xponInterfaceNum: number | null networkDeviceId: number | null } export type StatInterfacesMinAggregateOutputType = { id: number | null ifState: string | null ifLineProtocolState: string | null ifSpeedMb: number | null bandwidth: number | null description: string | null hardwareType: string | null fiveMinutesInRate: bigint | null fiveMinutesOutRate: bigint | null realtimeInRates: bigint | null realtimeOutRates: bigint | null peakInRates: bigint | null peakOutRates: bigint | null rxErrorCount: number | null board: number | null port: number | null portType: string | null xponInterfaceNum: number | null createdAt: Date | null networkDeviceId: number | null } export type StatInterfacesMaxAggregateOutputType = { id: number | null ifState: string | null ifLineProtocolState: string | null ifSpeedMb: number | null bandwidth: number | null description: string | null hardwareType: string | null fiveMinutesInRate: bigint | null fiveMinutesOutRate: bigint | null realtimeInRates: bigint | null realtimeOutRates: bigint | null peakInRates: bigint | null peakOutRates: bigint | null rxErrorCount: number | null board: number | null port: number | null portType: string | null xponInterfaceNum: number | null createdAt: Date | null networkDeviceId: number | null } export type StatInterfacesCountAggregateOutputType = { id: number ifState: number ifLineProtocolState: number ifSpeedMb: number bandwidth: number description: number hardwareType: number fiveMinutesInRate: number fiveMinutesOutRate: number realtimeInRates: number realtimeOutRates: number peakInRates: number peakOutRates: number rxErrorCount: number board: number port: number portType: number xponInterfaceNum: number createdAt: number networkDeviceId: number _all: number } export type StatInterfacesAvgAggregateInputType = { id?: true ifSpeedMb?: true bandwidth?: true fiveMinutesInRate?: true fiveMinutesOutRate?: true realtimeInRates?: true realtimeOutRates?: true peakInRates?: true peakOutRates?: true rxErrorCount?: true board?: true port?: true xponInterfaceNum?: true networkDeviceId?: true } export type StatInterfacesSumAggregateInputType = { id?: true ifSpeedMb?: true bandwidth?: true fiveMinutesInRate?: true fiveMinutesOutRate?: true realtimeInRates?: true realtimeOutRates?: true peakInRates?: true peakOutRates?: true rxErrorCount?: true board?: true port?: true xponInterfaceNum?: true networkDeviceId?: true } export type StatInterfacesMinAggregateInputType = { id?: true ifState?: true ifLineProtocolState?: true ifSpeedMb?: true bandwidth?: true description?: true hardwareType?: true fiveMinutesInRate?: true fiveMinutesOutRate?: true realtimeInRates?: true realtimeOutRates?: true peakInRates?: true peakOutRates?: true rxErrorCount?: true board?: true port?: true portType?: true xponInterfaceNum?: true createdAt?: true networkDeviceId?: true } export type StatInterfacesMaxAggregateInputType = { id?: true ifState?: true ifLineProtocolState?: true ifSpeedMb?: true bandwidth?: true description?: true hardwareType?: true fiveMinutesInRate?: true fiveMinutesOutRate?: true realtimeInRates?: true realtimeOutRates?: true peakInRates?: true peakOutRates?: true rxErrorCount?: true board?: true port?: true portType?: true xponInterfaceNum?: true createdAt?: true networkDeviceId?: true } export type StatInterfacesCountAggregateInputType = { id?: true ifState?: true ifLineProtocolState?: true ifSpeedMb?: true bandwidth?: true description?: true hardwareType?: true fiveMinutesInRate?: true fiveMinutesOutRate?: true realtimeInRates?: true realtimeOutRates?: true peakInRates?: true peakOutRates?: true rxErrorCount?: true board?: true port?: true portType?: true xponInterfaceNum?: true createdAt?: true networkDeviceId?: true _all?: true } export type StatInterfacesAggregateArgs = { /** * Filter which StatInterfaces to aggregate. */ where?: StatInterfacesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatInterfaces to fetch. */ orderBy?: StatInterfacesOrderByWithRelationInput | StatInterfacesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: StatInterfacesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatInterfaces from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatInterfaces. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned StatInterfaces **/ _count?: true | StatInterfacesCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StatInterfacesAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StatInterfacesSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StatInterfacesMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StatInterfacesMaxAggregateInputType } export type GetStatInterfacesAggregateType = { [P in keyof T & keyof AggregateStatInterfaces]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type StatInterfacesGroupByArgs = { where?: StatInterfacesWhereInput orderBy?: StatInterfacesOrderByWithAggregationInput | StatInterfacesOrderByWithAggregationInput[] by: StatInterfacesScalarFieldEnum[] | StatInterfacesScalarFieldEnum having?: StatInterfacesScalarWhereWithAggregatesInput take?: number skip?: number _count?: StatInterfacesCountAggregateInputType | true _avg?: StatInterfacesAvgAggregateInputType _sum?: StatInterfacesSumAggregateInputType _min?: StatInterfacesMinAggregateInputType _max?: StatInterfacesMaxAggregateInputType } export type StatInterfacesGroupByOutputType = { id: number ifState: string ifLineProtocolState: string ifSpeedMb: number bandwidth: number description: string hardwareType: string fiveMinutesInRate: bigint fiveMinutesOutRate: bigint realtimeInRates: bigint realtimeOutRates: bigint peakInRates: bigint peakOutRates: bigint rxErrorCount: number board: number port: number portType: string xponInterfaceNum: number createdAt: Date networkDeviceId: number _count: StatInterfacesCountAggregateOutputType | null _avg: StatInterfacesAvgAggregateOutputType | null _sum: StatInterfacesSumAggregateOutputType | null _min: StatInterfacesMinAggregateOutputType | null _max: StatInterfacesMaxAggregateOutputType | null } type GetStatInterfacesGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StatInterfacesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type StatInterfacesSelect = $Extensions.GetSelect<{ id?: boolean ifState?: boolean ifLineProtocolState?: boolean ifSpeedMb?: boolean bandwidth?: boolean description?: boolean hardwareType?: boolean fiveMinutesInRate?: boolean fiveMinutesOutRate?: boolean realtimeInRates?: boolean realtimeOutRates?: boolean peakInRates?: boolean peakOutRates?: boolean rxErrorCount?: boolean board?: boolean port?: boolean portType?: boolean xponInterfaceNum?: boolean createdAt?: boolean networkDeviceId?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statInterfaces"]> export type StatInterfacesSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean ifState?: boolean ifLineProtocolState?: boolean ifSpeedMb?: boolean bandwidth?: boolean description?: boolean hardwareType?: boolean fiveMinutesInRate?: boolean fiveMinutesOutRate?: boolean realtimeInRates?: boolean realtimeOutRates?: boolean peakInRates?: boolean peakOutRates?: boolean rxErrorCount?: boolean board?: boolean port?: boolean portType?: boolean xponInterfaceNum?: boolean createdAt?: boolean networkDeviceId?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statInterfaces"]> export type StatInterfacesSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean ifState?: boolean ifLineProtocolState?: boolean ifSpeedMb?: boolean bandwidth?: boolean description?: boolean hardwareType?: boolean fiveMinutesInRate?: boolean fiveMinutesOutRate?: boolean realtimeInRates?: boolean realtimeOutRates?: boolean peakInRates?: boolean peakOutRates?: boolean rxErrorCount?: boolean board?: boolean port?: boolean portType?: boolean xponInterfaceNum?: boolean createdAt?: boolean networkDeviceId?: boolean networkDevice?: boolean | NetworkDeviceDefaultArgs }, ExtArgs["result"]["statInterfaces"]> export type StatInterfacesSelectScalar = { id?: boolean ifState?: boolean ifLineProtocolState?: boolean ifSpeedMb?: boolean bandwidth?: boolean description?: boolean hardwareType?: boolean fiveMinutesInRate?: boolean fiveMinutesOutRate?: boolean realtimeInRates?: boolean realtimeOutRates?: boolean peakInRates?: boolean peakOutRates?: boolean rxErrorCount?: boolean board?: boolean port?: boolean portType?: boolean xponInterfaceNum?: boolean createdAt?: boolean networkDeviceId?: boolean } export type StatInterfacesOmit = $Extensions.GetOmit<"id" | "ifState" | "ifLineProtocolState" | "ifSpeedMb" | "bandwidth" | "description" | "hardwareType" | "fiveMinutesInRate" | "fiveMinutesOutRate" | "realtimeInRates" | "realtimeOutRates" | "peakInRates" | "peakOutRates" | "rxErrorCount" | "board" | "port" | "portType" | "xponInterfaceNum" | "createdAt" | "networkDeviceId", ExtArgs["result"]["statInterfaces"]> export type StatInterfacesInclude = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatInterfacesIncludeCreateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type StatInterfacesIncludeUpdateManyAndReturn = { networkDevice?: boolean | NetworkDeviceDefaultArgs } export type $StatInterfacesPayload = { name: "StatInterfaces" objects: { networkDevice: Prisma.$NetworkDevicePayload } scalars: $Extensions.GetPayloadResult<{ id: number ifState: string ifLineProtocolState: string ifSpeedMb: number bandwidth: number description: string hardwareType: string fiveMinutesInRate: bigint fiveMinutesOutRate: bigint realtimeInRates: bigint realtimeOutRates: bigint peakInRates: bigint peakOutRates: bigint rxErrorCount: number board: number port: number portType: string xponInterfaceNum: number createdAt: Date networkDeviceId: number }, ExtArgs["result"]["statInterfaces"]> composites: {} } type StatInterfacesGetPayload = $Result.GetResult type StatInterfacesCountArgs = Omit & { select?: StatInterfacesCountAggregateInputType | true } export interface StatInterfacesDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['StatInterfaces'], meta: { name: 'StatInterfaces' } } /** * Find zero or one StatInterfaces that matches the filter. * @param {StatInterfacesFindUniqueArgs} args - Arguments to find a StatInterfaces * @example * // Get one StatInterfaces * const statInterfaces = await prisma.statInterfaces.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__StatInterfacesClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one StatInterfaces that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StatInterfacesFindUniqueOrThrowArgs} args - Arguments to find a StatInterfaces * @example * // Get one StatInterfaces * const statInterfaces = await prisma.statInterfaces.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__StatInterfacesClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first StatInterfaces that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInterfacesFindFirstArgs} args - Arguments to find a StatInterfaces * @example * // Get one StatInterfaces * const statInterfaces = await prisma.statInterfaces.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__StatInterfacesClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first StatInterfaces that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInterfacesFindFirstOrThrowArgs} args - Arguments to find a StatInterfaces * @example * // Get one StatInterfaces * const statInterfaces = await prisma.statInterfaces.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__StatInterfacesClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more StatInterfaces that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInterfacesFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all StatInterfaces * const statInterfaces = await prisma.statInterfaces.findMany() * * // Get first 10 StatInterfaces * const statInterfaces = await prisma.statInterfaces.findMany({ take: 10 }) * * // Only select the `id` * const statInterfacesWithIdOnly = await prisma.statInterfaces.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a StatInterfaces. * @param {StatInterfacesCreateArgs} args - Arguments to create a StatInterfaces. * @example * // Create one StatInterfaces * const StatInterfaces = await prisma.statInterfaces.create({ * data: { * // ... data to create a StatInterfaces * } * }) * */ create(args: SelectSubset>): Prisma__StatInterfacesClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many StatInterfaces. * @param {StatInterfacesCreateManyArgs} args - Arguments to create many StatInterfaces. * @example * // Create many StatInterfaces * const statInterfaces = await prisma.statInterfaces.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many StatInterfaces and returns the data saved in the database. * @param {StatInterfacesCreateManyAndReturnArgs} args - Arguments to create many StatInterfaces. * @example * // Create many StatInterfaces * const statInterfaces = await prisma.statInterfaces.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many StatInterfaces and only return the `id` * const statInterfacesWithIdOnly = await prisma.statInterfaces.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> /** * Delete a StatInterfaces. * @param {StatInterfacesDeleteArgs} args - Arguments to delete one StatInterfaces. * @example * // Delete one StatInterfaces * const StatInterfaces = await prisma.statInterfaces.delete({ * where: { * // ... filter to delete one StatInterfaces * } * }) * */ delete(args: SelectSubset>): Prisma__StatInterfacesClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one StatInterfaces. * @param {StatInterfacesUpdateArgs} args - Arguments to update one StatInterfaces. * @example * // Update one StatInterfaces * const statInterfaces = await prisma.statInterfaces.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__StatInterfacesClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more StatInterfaces. * @param {StatInterfacesDeleteManyArgs} args - Arguments to filter StatInterfaces to delete. * @example * // Delete a few StatInterfaces * const { count } = await prisma.statInterfaces.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatInterfaces. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInterfacesUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many StatInterfaces * const statInterfaces = await prisma.statInterfaces.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StatInterfaces and returns the data updated in the database. * @param {StatInterfacesUpdateManyAndReturnArgs} args - Arguments to update many StatInterfaces. * @example * // Update many StatInterfaces * const statInterfaces = await prisma.statInterfaces.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more StatInterfaces and only return the `id` * const statInterfacesWithIdOnly = await prisma.statInterfaces.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> /** * Create or update one StatInterfaces. * @param {StatInterfacesUpsertArgs} args - Arguments to update or create a StatInterfaces. * @example * // Update or create a StatInterfaces * const statInterfaces = await prisma.statInterfaces.upsert({ * create: { * // ... data to create a StatInterfaces * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the StatInterfaces we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__StatInterfacesClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of StatInterfaces. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInterfacesCountArgs} args - Arguments to filter StatInterfaces to count. * @example * // Count the number of StatInterfaces * const count = await prisma.statInterfaces.count({ * where: { * // ... the filter for the StatInterfaces we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a StatInterfaces. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInterfacesAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by StatInterfaces. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StatInterfacesGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends StatInterfacesGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: StatInterfacesGroupByArgs['orderBy'] } : { orderBy?: StatInterfacesGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetStatInterfacesGroupByPayload : Prisma.PrismaPromise /** * Fields of the StatInterfaces model */ readonly fields: StatInterfacesFieldRefs; } /** * The delegate class that acts as a "Promise-like" for StatInterfaces. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__StatInterfacesClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" networkDevice = {}>(args?: Subset>): Prisma__NetworkDeviceClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the StatInterfaces model */ interface StatInterfacesFieldRefs { readonly id: FieldRef<"StatInterfaces", 'Int'> readonly ifState: FieldRef<"StatInterfaces", 'String'> readonly ifLineProtocolState: FieldRef<"StatInterfaces", 'String'> readonly ifSpeedMb: FieldRef<"StatInterfaces", 'Int'> readonly bandwidth: FieldRef<"StatInterfaces", 'Int'> readonly description: FieldRef<"StatInterfaces", 'String'> readonly hardwareType: FieldRef<"StatInterfaces", 'String'> readonly fiveMinutesInRate: FieldRef<"StatInterfaces", 'BigInt'> readonly fiveMinutesOutRate: FieldRef<"StatInterfaces", 'BigInt'> readonly realtimeInRates: FieldRef<"StatInterfaces", 'BigInt'> readonly realtimeOutRates: FieldRef<"StatInterfaces", 'BigInt'> readonly peakInRates: FieldRef<"StatInterfaces", 'BigInt'> readonly peakOutRates: FieldRef<"StatInterfaces", 'BigInt'> readonly rxErrorCount: FieldRef<"StatInterfaces", 'Int'> readonly board: FieldRef<"StatInterfaces", 'Int'> readonly port: FieldRef<"StatInterfaces", 'Int'> readonly portType: FieldRef<"StatInterfaces", 'String'> readonly xponInterfaceNum: FieldRef<"StatInterfaces", 'Int'> readonly createdAt: FieldRef<"StatInterfaces", 'DateTime'> readonly networkDeviceId: FieldRef<"StatInterfaces", 'Int'> } // Custom InputTypes /** * StatInterfaces findUnique */ export type StatInterfacesFindUniqueArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null /** * Filter, which StatInterfaces to fetch. */ where: StatInterfacesWhereUniqueInput } /** * StatInterfaces findUniqueOrThrow */ export type StatInterfacesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null /** * Filter, which StatInterfaces to fetch. */ where: StatInterfacesWhereUniqueInput } /** * StatInterfaces findFirst */ export type StatInterfacesFindFirstArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null /** * Filter, which StatInterfaces to fetch. */ where?: StatInterfacesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatInterfaces to fetch. */ orderBy?: StatInterfacesOrderByWithRelationInput | StatInterfacesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatInterfaces. */ cursor?: StatInterfacesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatInterfaces from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatInterfaces. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatInterfaces. */ distinct?: StatInterfacesScalarFieldEnum | StatInterfacesScalarFieldEnum[] } /** * StatInterfaces findFirstOrThrow */ export type StatInterfacesFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null /** * Filter, which StatInterfaces to fetch. */ where?: StatInterfacesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatInterfaces to fetch. */ orderBy?: StatInterfacesOrderByWithRelationInput | StatInterfacesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StatInterfaces. */ cursor?: StatInterfacesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatInterfaces from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatInterfaces. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StatInterfaces. */ distinct?: StatInterfacesScalarFieldEnum | StatInterfacesScalarFieldEnum[] } /** * StatInterfaces findMany */ export type StatInterfacesFindManyArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null /** * Filter, which StatInterfaces to fetch. */ where?: StatInterfacesWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StatInterfaces to fetch. */ orderBy?: StatInterfacesOrderByWithRelationInput | StatInterfacesOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing StatInterfaces. */ cursor?: StatInterfacesWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StatInterfaces from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` StatInterfaces. */ skip?: number distinct?: StatInterfacesScalarFieldEnum | StatInterfacesScalarFieldEnum[] } /** * StatInterfaces create */ export type StatInterfacesCreateArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null /** * The data needed to create a StatInterfaces. */ data: XOR } /** * StatInterfaces createMany */ export type StatInterfacesCreateManyArgs = { /** * The data used to create many StatInterfaces. */ data: StatInterfacesCreateManyInput | StatInterfacesCreateManyInput[] skipDuplicates?: boolean } /** * StatInterfaces createManyAndReturn */ export type StatInterfacesCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelectCreateManyAndReturn | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * The data used to create many StatInterfaces. */ data: StatInterfacesCreateManyInput | StatInterfacesCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesIncludeCreateManyAndReturn | null } /** * StatInterfaces update */ export type StatInterfacesUpdateArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null /** * The data needed to update a StatInterfaces. */ data: XOR /** * Choose, which StatInterfaces to update. */ where: StatInterfacesWhereUniqueInput } /** * StatInterfaces updateMany */ export type StatInterfacesUpdateManyArgs = { /** * The data used to update StatInterfaces. */ data: XOR /** * Filter which StatInterfaces to update */ where?: StatInterfacesWhereInput /** * Limit how many StatInterfaces to update. */ limit?: number } /** * StatInterfaces updateManyAndReturn */ export type StatInterfacesUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelectUpdateManyAndReturn | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * The data used to update StatInterfaces. */ data: XOR /** * Filter which StatInterfaces to update */ where?: StatInterfacesWhereInput /** * Limit how many StatInterfaces to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesIncludeUpdateManyAndReturn | null } /** * StatInterfaces upsert */ export type StatInterfacesUpsertArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null /** * The filter to search for the StatInterfaces to update in case it exists. */ where: StatInterfacesWhereUniqueInput /** * In case the StatInterfaces found by the `where` argument doesn't exist, create a new StatInterfaces with this data. */ create: XOR /** * In case the StatInterfaces was found with the provided `where` argument, update it with this data. */ update: XOR } /** * StatInterfaces delete */ export type StatInterfacesDeleteArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null /** * Filter which StatInterfaces to delete. */ where: StatInterfacesWhereUniqueInput } /** * StatInterfaces deleteMany */ export type StatInterfacesDeleteManyArgs = { /** * Filter which StatInterfaces to delete */ where?: StatInterfacesWhereInput /** * Limit how many StatInterfaces to delete. */ limit?: number } /** * StatInterfaces without action */ export type StatInterfacesDefaultArgs = { /** * Select specific fields to fetch from the StatInterfaces */ select?: StatInterfacesSelect | null /** * Omit specific fields from the StatInterfaces */ omit?: StatInterfacesOmit | null /** * Choose, which related nodes to fetch as well */ include?: StatInterfacesInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const DeviceTypeScalarFieldEnum: { id: 'id', createdAt: 'createdAt', updatedAt: 'updatedAt', type: 'type' }; export type DeviceTypeScalarFieldEnum = (typeof DeviceTypeScalarFieldEnum)[keyof typeof DeviceTypeScalarFieldEnum] export const DeviceVendorScalarFieldEnum: { id: 'id', createdAt: 'createdAt', updatedAt: 'updatedAt', name: 'name' }; export type DeviceVendorScalarFieldEnum = (typeof DeviceVendorScalarFieldEnum)[keyof typeof DeviceVendorScalarFieldEnum] export const DeviceModelScalarFieldEnum: { id: 'id', createdAt: 'createdAt', updatedAt: 'updatedAt', name: 'name', vendorId: 'vendorId', deviceTypeId: 'deviceTypeId' }; export type DeviceModelScalarFieldEnum = (typeof DeviceModelScalarFieldEnum)[keyof typeof DeviceModelScalarFieldEnum] export const DeviceCredentialScalarFieldEnum: { id: 'id', createdAt: 'createdAt', updatedAt: 'updatedAt', username: 'username', password: 'password' }; export type DeviceCredentialScalarFieldEnum = (typeof DeviceCredentialScalarFieldEnum)[keyof typeof DeviceCredentialScalarFieldEnum] export const NetworkDeviceScalarFieldEnum: { id: 'id', createdAt: 'createdAt', updatedAt: 'updatedAt', accessIpAddressV4: 'accessIpAddressV4', accessType: 'accessType', accessPort: 'accessPort', description: 'description', deviceModelId: 'deviceModelId', deviceCredentialId: 'deviceCredentialId', enabled: 'enabled' }; export type NetworkDeviceScalarFieldEnum = (typeof NetworkDeviceScalarFieldEnum)[keyof typeof NetworkDeviceScalarFieldEnum] export const NetworkDeviceVersionScalarFieldEnum: { id: 'id', networkDeviceId: 'networkDeviceId', createdAt: 'createdAt', updatedAt: 'updatedAt', model: 'model', softwareVersion: 'softwareVersion', hardwareVersion: 'hardwareVersion', macAddress: 'macAddress', serialNumber: 'serialNumber' }; export type NetworkDeviceVersionScalarFieldEnum = (typeof NetworkDeviceVersionScalarFieldEnum)[keyof typeof NetworkDeviceVersionScalarFieldEnum] export const StatOnuDeviceScalarFieldEnum: { id: 'id', vendorId: 'vendorId', modelId: 'modelId', macAddressOnu: 'macAddressOnu', serialNumberOnu: 'serialNumberOnu', description: 'description', bindType: 'bindType', status: 'status', deregReason: 'deregReason', createdAt: 'createdAt', networkDeviceId: 'networkDeviceId', xponBoard: 'xponBoard', xponPort: 'xponPort', xponInterface: 'xponInterface', xponType: 'xponType' }; export type StatOnuDeviceScalarFieldEnum = (typeof StatOnuDeviceScalarFieldEnum)[keyof typeof StatOnuDeviceScalarFieldEnum] export const StatOnuOpticalSignalScalarFieldEnum: { id: 'id', xponBoard: 'xponBoard', xponPort: 'xponPort', xponInterface: 'xponInterface', rxPower: 'rxPower', txPower: 'txPower', createdAt: 'createdAt', networkDeviceId: 'networkDeviceId' }; export type StatOnuOpticalSignalScalarFieldEnum = (typeof StatOnuOpticalSignalScalarFieldEnum)[keyof typeof StatOnuOpticalSignalScalarFieldEnum] export const StatActiveOnuScalarFieldEnum: { id: 'id', xponBoard: 'xponBoard', xponPort: 'xponPort', xponInterface: 'xponInterface', macAddressOnu: 'macAddressOnu', serialNumberOnu: 'serialNumberOnu', status: 'status', lastRegister: 'lastRegister', lastDeregister: 'lastDeregister', dereason: 'dereason', alivetime: 'alivetime', networkDeviceId: 'networkDeviceId', createdAt: 'createdAt', newest: 'newest' }; export type StatActiveOnuScalarFieldEnum = (typeof StatActiveOnuScalarFieldEnum)[keyof typeof StatActiveOnuScalarFieldEnum] export const StatInactiveOnuScalarFieldEnum: { id: 'id', xponBoard: 'xponBoard', xponPort: 'xponPort', xponInterface: 'xponInterface', macAddressOnu: 'macAddressOnu', serialNumberOnu: 'serialNumberOnu', status: 'status', deregReason: 'deregReason', lastRegister: 'lastRegister', lastDeregister: 'lastDeregister', createdAt: 'createdAt', networkDeviceId: 'networkDeviceId', newest: 'newest' }; export type StatInactiveOnuScalarFieldEnum = (typeof StatInactiveOnuScalarFieldEnum)[keyof typeof StatInactiveOnuScalarFieldEnum] export const StatInterfacesScalarFieldEnum: { id: 'id', ifState: 'ifState', ifLineProtocolState: 'ifLineProtocolState', ifSpeedMb: 'ifSpeedMb', bandwidth: 'bandwidth', description: 'description', hardwareType: 'hardwareType', fiveMinutesInRate: 'fiveMinutesInRate', fiveMinutesOutRate: 'fiveMinutesOutRate', realtimeInRates: 'realtimeInRates', realtimeOutRates: 'realtimeOutRates', peakInRates: 'peakInRates', peakOutRates: 'peakOutRates', rxErrorCount: 'rxErrorCount', board: 'board', port: 'port', portType: 'portType', xponInterfaceNum: 'xponInterfaceNum', createdAt: 'createdAt', networkDeviceId: 'networkDeviceId' }; export type StatInterfacesScalarFieldEnum = (typeof StatInterfacesScalarFieldEnum)[keyof typeof StatInterfacesScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] /** * Field references */ /** * 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[]'> /** * 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 '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 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> /** * Reference to a field of type 'BigInt' */ export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> /** * Reference to a field of type 'BigInt[]' */ export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'> /** * Deep Input Types */ export type DeviceTypeWhereInput = { AND?: DeviceTypeWhereInput | DeviceTypeWhereInput[] OR?: DeviceTypeWhereInput[] NOT?: DeviceTypeWhereInput | DeviceTypeWhereInput[] id?: IntFilter<"DeviceType"> | number createdAt?: DateTimeFilter<"DeviceType"> | Date | string updatedAt?: DateTimeFilter<"DeviceType"> | Date | string type?: StringFilter<"DeviceType"> | string DeviceModel?: DeviceModelListRelationFilter } export type DeviceTypeOrderByWithRelationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder type?: SortOrder DeviceModel?: DeviceModelOrderByRelationAggregateInput } export type DeviceTypeWhereUniqueInput = Prisma.AtLeast<{ id?: number type?: string AND?: DeviceTypeWhereInput | DeviceTypeWhereInput[] OR?: DeviceTypeWhereInput[] NOT?: DeviceTypeWhereInput | DeviceTypeWhereInput[] createdAt?: DateTimeFilter<"DeviceType"> | Date | string updatedAt?: DateTimeFilter<"DeviceType"> | Date | string DeviceModel?: DeviceModelListRelationFilter }, "id" | "type"> export type DeviceTypeOrderByWithAggregationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder type?: SortOrder _count?: DeviceTypeCountOrderByAggregateInput _avg?: DeviceTypeAvgOrderByAggregateInput _max?: DeviceTypeMaxOrderByAggregateInput _min?: DeviceTypeMinOrderByAggregateInput _sum?: DeviceTypeSumOrderByAggregateInput } export type DeviceTypeScalarWhereWithAggregatesInput = { AND?: DeviceTypeScalarWhereWithAggregatesInput | DeviceTypeScalarWhereWithAggregatesInput[] OR?: DeviceTypeScalarWhereWithAggregatesInput[] NOT?: DeviceTypeScalarWhereWithAggregatesInput | DeviceTypeScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"DeviceType"> | number createdAt?: DateTimeWithAggregatesFilter<"DeviceType"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"DeviceType"> | Date | string type?: StringWithAggregatesFilter<"DeviceType"> | string } export type DeviceVendorWhereInput = { AND?: DeviceVendorWhereInput | DeviceVendorWhereInput[] OR?: DeviceVendorWhereInput[] NOT?: DeviceVendorWhereInput | DeviceVendorWhereInput[] id?: IntFilter<"DeviceVendor"> | number createdAt?: DateTimeFilter<"DeviceVendor"> | Date | string updatedAt?: DateTimeFilter<"DeviceVendor"> | Date | string name?: StringFilter<"DeviceVendor"> | string DeviceModel?: DeviceModelListRelationFilter } export type DeviceVendorOrderByWithRelationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder DeviceModel?: DeviceModelOrderByRelationAggregateInput } export type DeviceVendorWhereUniqueInput = Prisma.AtLeast<{ id?: number name?: string AND?: DeviceVendorWhereInput | DeviceVendorWhereInput[] OR?: DeviceVendorWhereInput[] NOT?: DeviceVendorWhereInput | DeviceVendorWhereInput[] createdAt?: DateTimeFilter<"DeviceVendor"> | Date | string updatedAt?: DateTimeFilter<"DeviceVendor"> | Date | string DeviceModel?: DeviceModelListRelationFilter }, "id" | "name"> export type DeviceVendorOrderByWithAggregationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder _count?: DeviceVendorCountOrderByAggregateInput _avg?: DeviceVendorAvgOrderByAggregateInput _max?: DeviceVendorMaxOrderByAggregateInput _min?: DeviceVendorMinOrderByAggregateInput _sum?: DeviceVendorSumOrderByAggregateInput } export type DeviceVendorScalarWhereWithAggregatesInput = { AND?: DeviceVendorScalarWhereWithAggregatesInput | DeviceVendorScalarWhereWithAggregatesInput[] OR?: DeviceVendorScalarWhereWithAggregatesInput[] NOT?: DeviceVendorScalarWhereWithAggregatesInput | DeviceVendorScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"DeviceVendor"> | number createdAt?: DateTimeWithAggregatesFilter<"DeviceVendor"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"DeviceVendor"> | Date | string name?: StringWithAggregatesFilter<"DeviceVendor"> | string } export type DeviceModelWhereInput = { AND?: DeviceModelWhereInput | DeviceModelWhereInput[] OR?: DeviceModelWhereInput[] NOT?: DeviceModelWhereInput | DeviceModelWhereInput[] id?: IntFilter<"DeviceModel"> | number createdAt?: DateTimeFilter<"DeviceModel"> | Date | string updatedAt?: DateTimeFilter<"DeviceModel"> | Date | string name?: StringFilter<"DeviceModel"> | string vendorId?: IntFilter<"DeviceModel"> | number deviceTypeId?: IntFilter<"DeviceModel"> | number deviceType?: XOR vendor?: XOR NetworkDevice?: NetworkDeviceListRelationFilter } export type DeviceModelOrderByWithRelationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder vendorId?: SortOrder deviceTypeId?: SortOrder deviceType?: DeviceTypeOrderByWithRelationInput vendor?: DeviceVendorOrderByWithRelationInput NetworkDevice?: NetworkDeviceOrderByRelationAggregateInput } export type DeviceModelWhereUniqueInput = Prisma.AtLeast<{ id?: number name?: string AND?: DeviceModelWhereInput | DeviceModelWhereInput[] OR?: DeviceModelWhereInput[] NOT?: DeviceModelWhereInput | DeviceModelWhereInput[] createdAt?: DateTimeFilter<"DeviceModel"> | Date | string updatedAt?: DateTimeFilter<"DeviceModel"> | Date | string vendorId?: IntFilter<"DeviceModel"> | number deviceTypeId?: IntFilter<"DeviceModel"> | number deviceType?: XOR vendor?: XOR NetworkDevice?: NetworkDeviceListRelationFilter }, "id" | "name"> export type DeviceModelOrderByWithAggregationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder vendorId?: SortOrder deviceTypeId?: SortOrder _count?: DeviceModelCountOrderByAggregateInput _avg?: DeviceModelAvgOrderByAggregateInput _max?: DeviceModelMaxOrderByAggregateInput _min?: DeviceModelMinOrderByAggregateInput _sum?: DeviceModelSumOrderByAggregateInput } export type DeviceModelScalarWhereWithAggregatesInput = { AND?: DeviceModelScalarWhereWithAggregatesInput | DeviceModelScalarWhereWithAggregatesInput[] OR?: DeviceModelScalarWhereWithAggregatesInput[] NOT?: DeviceModelScalarWhereWithAggregatesInput | DeviceModelScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"DeviceModel"> | number createdAt?: DateTimeWithAggregatesFilter<"DeviceModel"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"DeviceModel"> | Date | string name?: StringWithAggregatesFilter<"DeviceModel"> | string vendorId?: IntWithAggregatesFilter<"DeviceModel"> | number deviceTypeId?: IntWithAggregatesFilter<"DeviceModel"> | number } export type DeviceCredentialWhereInput = { AND?: DeviceCredentialWhereInput | DeviceCredentialWhereInput[] OR?: DeviceCredentialWhereInput[] NOT?: DeviceCredentialWhereInput | DeviceCredentialWhereInput[] id?: IntFilter<"DeviceCredential"> | number createdAt?: DateTimeFilter<"DeviceCredential"> | Date | string updatedAt?: DateTimeFilter<"DeviceCredential"> | Date | string username?: StringFilter<"DeviceCredential"> | string password?: StringFilter<"DeviceCredential"> | string NetworkDevice?: NetworkDeviceListRelationFilter } export type DeviceCredentialOrderByWithRelationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder username?: SortOrder password?: SortOrder NetworkDevice?: NetworkDeviceOrderByRelationAggregateInput } export type DeviceCredentialWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: DeviceCredentialWhereInput | DeviceCredentialWhereInput[] OR?: DeviceCredentialWhereInput[] NOT?: DeviceCredentialWhereInput | DeviceCredentialWhereInput[] createdAt?: DateTimeFilter<"DeviceCredential"> | Date | string updatedAt?: DateTimeFilter<"DeviceCredential"> | Date | string username?: StringFilter<"DeviceCredential"> | string password?: StringFilter<"DeviceCredential"> | string NetworkDevice?: NetworkDeviceListRelationFilter }, "id"> export type DeviceCredentialOrderByWithAggregationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder username?: SortOrder password?: SortOrder _count?: DeviceCredentialCountOrderByAggregateInput _avg?: DeviceCredentialAvgOrderByAggregateInput _max?: DeviceCredentialMaxOrderByAggregateInput _min?: DeviceCredentialMinOrderByAggregateInput _sum?: DeviceCredentialSumOrderByAggregateInput } export type DeviceCredentialScalarWhereWithAggregatesInput = { AND?: DeviceCredentialScalarWhereWithAggregatesInput | DeviceCredentialScalarWhereWithAggregatesInput[] OR?: DeviceCredentialScalarWhereWithAggregatesInput[] NOT?: DeviceCredentialScalarWhereWithAggregatesInput | DeviceCredentialScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"DeviceCredential"> | number createdAt?: DateTimeWithAggregatesFilter<"DeviceCredential"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"DeviceCredential"> | Date | string username?: StringWithAggregatesFilter<"DeviceCredential"> | string password?: StringWithAggregatesFilter<"DeviceCredential"> | string } export type NetworkDeviceWhereInput = { AND?: NetworkDeviceWhereInput | NetworkDeviceWhereInput[] OR?: NetworkDeviceWhereInput[] NOT?: NetworkDeviceWhereInput | NetworkDeviceWhereInput[] id?: IntFilter<"NetworkDevice"> | number createdAt?: DateTimeFilter<"NetworkDevice"> | Date | string updatedAt?: DateTimeFilter<"NetworkDevice"> | Date | string accessIpAddressV4?: StringFilter<"NetworkDevice"> | string accessType?: StringFilter<"NetworkDevice"> | string accessPort?: StringFilter<"NetworkDevice"> | string description?: StringFilter<"NetworkDevice"> | string deviceModelId?: IntFilter<"NetworkDevice"> | number deviceCredentialId?: IntFilter<"NetworkDevice"> | number enabled?: BoolFilter<"NetworkDevice"> | boolean deviceCredential?: XOR deviceModel?: XOR StatInactiveOnu?: StatInactiveOnuListRelationFilter StatActiveOnu?: StatActiveOnuListRelationFilter StatOnuDevice?: StatOnuDeviceListRelationFilter StatOnuOpticalSignal?: StatOnuOpticalSignalListRelationFilter StatInterfaces?: StatInterfacesListRelationFilter NetworkDeviceVersion?: NetworkDeviceVersionListRelationFilter } export type NetworkDeviceOrderByWithRelationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder accessIpAddressV4?: SortOrder accessType?: SortOrder accessPort?: SortOrder description?: SortOrder deviceModelId?: SortOrder deviceCredentialId?: SortOrder enabled?: SortOrder deviceCredential?: DeviceCredentialOrderByWithRelationInput deviceModel?: DeviceModelOrderByWithRelationInput StatInactiveOnu?: StatInactiveOnuOrderByRelationAggregateInput StatActiveOnu?: StatActiveOnuOrderByRelationAggregateInput StatOnuDevice?: StatOnuDeviceOrderByRelationAggregateInput StatOnuOpticalSignal?: StatOnuOpticalSignalOrderByRelationAggregateInput StatInterfaces?: StatInterfacesOrderByRelationAggregateInput NetworkDeviceVersion?: NetworkDeviceVersionOrderByRelationAggregateInput } export type NetworkDeviceWhereUniqueInput = Prisma.AtLeast<{ id?: number accessIpAddressV4?: string AND?: NetworkDeviceWhereInput | NetworkDeviceWhereInput[] OR?: NetworkDeviceWhereInput[] NOT?: NetworkDeviceWhereInput | NetworkDeviceWhereInput[] createdAt?: DateTimeFilter<"NetworkDevice"> | Date | string updatedAt?: DateTimeFilter<"NetworkDevice"> | Date | string accessType?: StringFilter<"NetworkDevice"> | string accessPort?: StringFilter<"NetworkDevice"> | string description?: StringFilter<"NetworkDevice"> | string deviceModelId?: IntFilter<"NetworkDevice"> | number deviceCredentialId?: IntFilter<"NetworkDevice"> | number enabled?: BoolFilter<"NetworkDevice"> | boolean deviceCredential?: XOR deviceModel?: XOR StatInactiveOnu?: StatInactiveOnuListRelationFilter StatActiveOnu?: StatActiveOnuListRelationFilter StatOnuDevice?: StatOnuDeviceListRelationFilter StatOnuOpticalSignal?: StatOnuOpticalSignalListRelationFilter StatInterfaces?: StatInterfacesListRelationFilter NetworkDeviceVersion?: NetworkDeviceVersionListRelationFilter }, "id" | "accessIpAddressV4"> export type NetworkDeviceOrderByWithAggregationInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder accessIpAddressV4?: SortOrder accessType?: SortOrder accessPort?: SortOrder description?: SortOrder deviceModelId?: SortOrder deviceCredentialId?: SortOrder enabled?: SortOrder _count?: NetworkDeviceCountOrderByAggregateInput _avg?: NetworkDeviceAvgOrderByAggregateInput _max?: NetworkDeviceMaxOrderByAggregateInput _min?: NetworkDeviceMinOrderByAggregateInput _sum?: NetworkDeviceSumOrderByAggregateInput } export type NetworkDeviceScalarWhereWithAggregatesInput = { AND?: NetworkDeviceScalarWhereWithAggregatesInput | NetworkDeviceScalarWhereWithAggregatesInput[] OR?: NetworkDeviceScalarWhereWithAggregatesInput[] NOT?: NetworkDeviceScalarWhereWithAggregatesInput | NetworkDeviceScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"NetworkDevice"> | number createdAt?: DateTimeWithAggregatesFilter<"NetworkDevice"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"NetworkDevice"> | Date | string accessIpAddressV4?: StringWithAggregatesFilter<"NetworkDevice"> | string accessType?: StringWithAggregatesFilter<"NetworkDevice"> | string accessPort?: StringWithAggregatesFilter<"NetworkDevice"> | string description?: StringWithAggregatesFilter<"NetworkDevice"> | string deviceModelId?: IntWithAggregatesFilter<"NetworkDevice"> | number deviceCredentialId?: IntWithAggregatesFilter<"NetworkDevice"> | number enabled?: BoolWithAggregatesFilter<"NetworkDevice"> | boolean } export type NetworkDeviceVersionWhereInput = { AND?: NetworkDeviceVersionWhereInput | NetworkDeviceVersionWhereInput[] OR?: NetworkDeviceVersionWhereInput[] NOT?: NetworkDeviceVersionWhereInput | NetworkDeviceVersionWhereInput[] id?: IntFilter<"NetworkDeviceVersion"> | number networkDeviceId?: IntFilter<"NetworkDeviceVersion"> | number createdAt?: DateTimeFilter<"NetworkDeviceVersion"> | Date | string updatedAt?: DateTimeFilter<"NetworkDeviceVersion"> | Date | string model?: StringFilter<"NetworkDeviceVersion"> | string softwareVersion?: StringFilter<"NetworkDeviceVersion"> | string hardwareVersion?: StringFilter<"NetworkDeviceVersion"> | string macAddress?: StringFilter<"NetworkDeviceVersion"> | string serialNumber?: StringFilter<"NetworkDeviceVersion"> | string networkDevice?: XOR } export type NetworkDeviceVersionOrderByWithRelationInput = { id?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder model?: SortOrder softwareVersion?: SortOrder hardwareVersion?: SortOrder macAddress?: SortOrder serialNumber?: SortOrder networkDevice?: NetworkDeviceOrderByWithRelationInput } export type NetworkDeviceVersionWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: NetworkDeviceVersionWhereInput | NetworkDeviceVersionWhereInput[] OR?: NetworkDeviceVersionWhereInput[] NOT?: NetworkDeviceVersionWhereInput | NetworkDeviceVersionWhereInput[] networkDeviceId?: IntFilter<"NetworkDeviceVersion"> | number createdAt?: DateTimeFilter<"NetworkDeviceVersion"> | Date | string updatedAt?: DateTimeFilter<"NetworkDeviceVersion"> | Date | string model?: StringFilter<"NetworkDeviceVersion"> | string softwareVersion?: StringFilter<"NetworkDeviceVersion"> | string hardwareVersion?: StringFilter<"NetworkDeviceVersion"> | string macAddress?: StringFilter<"NetworkDeviceVersion"> | string serialNumber?: StringFilter<"NetworkDeviceVersion"> | string networkDevice?: XOR }, "id"> export type NetworkDeviceVersionOrderByWithAggregationInput = { id?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder model?: SortOrder softwareVersion?: SortOrder hardwareVersion?: SortOrder macAddress?: SortOrder serialNumber?: SortOrder _count?: NetworkDeviceVersionCountOrderByAggregateInput _avg?: NetworkDeviceVersionAvgOrderByAggregateInput _max?: NetworkDeviceVersionMaxOrderByAggregateInput _min?: NetworkDeviceVersionMinOrderByAggregateInput _sum?: NetworkDeviceVersionSumOrderByAggregateInput } export type NetworkDeviceVersionScalarWhereWithAggregatesInput = { AND?: NetworkDeviceVersionScalarWhereWithAggregatesInput | NetworkDeviceVersionScalarWhereWithAggregatesInput[] OR?: NetworkDeviceVersionScalarWhereWithAggregatesInput[] NOT?: NetworkDeviceVersionScalarWhereWithAggregatesInput | NetworkDeviceVersionScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"NetworkDeviceVersion"> | number networkDeviceId?: IntWithAggregatesFilter<"NetworkDeviceVersion"> | number createdAt?: DateTimeWithAggregatesFilter<"NetworkDeviceVersion"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"NetworkDeviceVersion"> | Date | string model?: StringWithAggregatesFilter<"NetworkDeviceVersion"> | string softwareVersion?: StringWithAggregatesFilter<"NetworkDeviceVersion"> | string hardwareVersion?: StringWithAggregatesFilter<"NetworkDeviceVersion"> | string macAddress?: StringWithAggregatesFilter<"NetworkDeviceVersion"> | string serialNumber?: StringWithAggregatesFilter<"NetworkDeviceVersion"> | string } export type StatOnuDeviceWhereInput = { AND?: StatOnuDeviceWhereInput | StatOnuDeviceWhereInput[] OR?: StatOnuDeviceWhereInput[] NOT?: StatOnuDeviceWhereInput | StatOnuDeviceWhereInput[] id?: IntFilter<"StatOnuDevice"> | number vendorId?: StringFilter<"StatOnuDevice"> | string modelId?: StringFilter<"StatOnuDevice"> | string macAddressOnu?: StringFilter<"StatOnuDevice"> | string serialNumberOnu?: StringFilter<"StatOnuDevice"> | string description?: StringFilter<"StatOnuDevice"> | string bindType?: StringFilter<"StatOnuDevice"> | string status?: StringFilter<"StatOnuDevice"> | string deregReason?: StringFilter<"StatOnuDevice"> | string createdAt?: DateTimeFilter<"StatOnuDevice"> | Date | string networkDeviceId?: IntFilter<"StatOnuDevice"> | number xponBoard?: IntFilter<"StatOnuDevice"> | number xponPort?: IntFilter<"StatOnuDevice"> | number xponInterface?: IntFilter<"StatOnuDevice"> | number xponType?: StringFilter<"StatOnuDevice"> | string networkDevice?: XOR } export type StatOnuDeviceOrderByWithRelationInput = { id?: SortOrder vendorId?: SortOrder modelId?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder description?: SortOrder bindType?: SortOrder status?: SortOrder deregReason?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder xponType?: SortOrder networkDevice?: NetworkDeviceOrderByWithRelationInput } export type StatOnuDeviceWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: StatOnuDeviceWhereInput | StatOnuDeviceWhereInput[] OR?: StatOnuDeviceWhereInput[] NOT?: StatOnuDeviceWhereInput | StatOnuDeviceWhereInput[] vendorId?: StringFilter<"StatOnuDevice"> | string modelId?: StringFilter<"StatOnuDevice"> | string macAddressOnu?: StringFilter<"StatOnuDevice"> | string serialNumberOnu?: StringFilter<"StatOnuDevice"> | string description?: StringFilter<"StatOnuDevice"> | string bindType?: StringFilter<"StatOnuDevice"> | string status?: StringFilter<"StatOnuDevice"> | string deregReason?: StringFilter<"StatOnuDevice"> | string createdAt?: DateTimeFilter<"StatOnuDevice"> | Date | string networkDeviceId?: IntFilter<"StatOnuDevice"> | number xponBoard?: IntFilter<"StatOnuDevice"> | number xponPort?: IntFilter<"StatOnuDevice"> | number xponInterface?: IntFilter<"StatOnuDevice"> | number xponType?: StringFilter<"StatOnuDevice"> | string networkDevice?: XOR }, "id"> export type StatOnuDeviceOrderByWithAggregationInput = { id?: SortOrder vendorId?: SortOrder modelId?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder description?: SortOrder bindType?: SortOrder status?: SortOrder deregReason?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder xponType?: SortOrder _count?: StatOnuDeviceCountOrderByAggregateInput _avg?: StatOnuDeviceAvgOrderByAggregateInput _max?: StatOnuDeviceMaxOrderByAggregateInput _min?: StatOnuDeviceMinOrderByAggregateInput _sum?: StatOnuDeviceSumOrderByAggregateInput } export type StatOnuDeviceScalarWhereWithAggregatesInput = { AND?: StatOnuDeviceScalarWhereWithAggregatesInput | StatOnuDeviceScalarWhereWithAggregatesInput[] OR?: StatOnuDeviceScalarWhereWithAggregatesInput[] NOT?: StatOnuDeviceScalarWhereWithAggregatesInput | StatOnuDeviceScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"StatOnuDevice"> | number vendorId?: StringWithAggregatesFilter<"StatOnuDevice"> | string modelId?: StringWithAggregatesFilter<"StatOnuDevice"> | string macAddressOnu?: StringWithAggregatesFilter<"StatOnuDevice"> | string serialNumberOnu?: StringWithAggregatesFilter<"StatOnuDevice"> | string description?: StringWithAggregatesFilter<"StatOnuDevice"> | string bindType?: StringWithAggregatesFilter<"StatOnuDevice"> | string status?: StringWithAggregatesFilter<"StatOnuDevice"> | string deregReason?: StringWithAggregatesFilter<"StatOnuDevice"> | string createdAt?: DateTimeWithAggregatesFilter<"StatOnuDevice"> | Date | string networkDeviceId?: IntWithAggregatesFilter<"StatOnuDevice"> | number xponBoard?: IntWithAggregatesFilter<"StatOnuDevice"> | number xponPort?: IntWithAggregatesFilter<"StatOnuDevice"> | number xponInterface?: IntWithAggregatesFilter<"StatOnuDevice"> | number xponType?: StringWithAggregatesFilter<"StatOnuDevice"> | string } export type StatOnuOpticalSignalWhereInput = { AND?: StatOnuOpticalSignalWhereInput | StatOnuOpticalSignalWhereInput[] OR?: StatOnuOpticalSignalWhereInput[] NOT?: StatOnuOpticalSignalWhereInput | StatOnuOpticalSignalWhereInput[] id?: IntFilter<"StatOnuOpticalSignal"> | number xponBoard?: IntFilter<"StatOnuOpticalSignal"> | number xponPort?: IntFilter<"StatOnuOpticalSignal"> | number xponInterface?: IntFilter<"StatOnuOpticalSignal"> | number rxPower?: FloatFilter<"StatOnuOpticalSignal"> | number txPower?: FloatFilter<"StatOnuOpticalSignal"> | number createdAt?: DateTimeFilter<"StatOnuOpticalSignal"> | Date | string networkDeviceId?: IntFilter<"StatOnuOpticalSignal"> | number networkDevice?: XOR } export type StatOnuOpticalSignalOrderByWithRelationInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder rxPower?: SortOrder txPower?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder networkDevice?: NetworkDeviceOrderByWithRelationInput } export type StatOnuOpticalSignalWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: StatOnuOpticalSignalWhereInput | StatOnuOpticalSignalWhereInput[] OR?: StatOnuOpticalSignalWhereInput[] NOT?: StatOnuOpticalSignalWhereInput | StatOnuOpticalSignalWhereInput[] xponBoard?: IntFilter<"StatOnuOpticalSignal"> | number xponPort?: IntFilter<"StatOnuOpticalSignal"> | number xponInterface?: IntFilter<"StatOnuOpticalSignal"> | number rxPower?: FloatFilter<"StatOnuOpticalSignal"> | number txPower?: FloatFilter<"StatOnuOpticalSignal"> | number createdAt?: DateTimeFilter<"StatOnuOpticalSignal"> | Date | string networkDeviceId?: IntFilter<"StatOnuOpticalSignal"> | number networkDevice?: XOR }, "id"> export type StatOnuOpticalSignalOrderByWithAggregationInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder rxPower?: SortOrder txPower?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder _count?: StatOnuOpticalSignalCountOrderByAggregateInput _avg?: StatOnuOpticalSignalAvgOrderByAggregateInput _max?: StatOnuOpticalSignalMaxOrderByAggregateInput _min?: StatOnuOpticalSignalMinOrderByAggregateInput _sum?: StatOnuOpticalSignalSumOrderByAggregateInput } export type StatOnuOpticalSignalScalarWhereWithAggregatesInput = { AND?: StatOnuOpticalSignalScalarWhereWithAggregatesInput | StatOnuOpticalSignalScalarWhereWithAggregatesInput[] OR?: StatOnuOpticalSignalScalarWhereWithAggregatesInput[] NOT?: StatOnuOpticalSignalScalarWhereWithAggregatesInput | StatOnuOpticalSignalScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"StatOnuOpticalSignal"> | number xponBoard?: IntWithAggregatesFilter<"StatOnuOpticalSignal"> | number xponPort?: IntWithAggregatesFilter<"StatOnuOpticalSignal"> | number xponInterface?: IntWithAggregatesFilter<"StatOnuOpticalSignal"> | number rxPower?: FloatWithAggregatesFilter<"StatOnuOpticalSignal"> | number txPower?: FloatWithAggregatesFilter<"StatOnuOpticalSignal"> | number createdAt?: DateTimeWithAggregatesFilter<"StatOnuOpticalSignal"> | Date | string networkDeviceId?: IntWithAggregatesFilter<"StatOnuOpticalSignal"> | number } export type StatActiveOnuWhereInput = { AND?: StatActiveOnuWhereInput | StatActiveOnuWhereInput[] OR?: StatActiveOnuWhereInput[] NOT?: StatActiveOnuWhereInput | StatActiveOnuWhereInput[] id?: IntFilter<"StatActiveOnu"> | number xponBoard?: IntFilter<"StatActiveOnu"> | number xponPort?: IntFilter<"StatActiveOnu"> | number xponInterface?: IntFilter<"StatActiveOnu"> | number macAddressOnu?: StringFilter<"StatActiveOnu"> | string serialNumberOnu?: StringFilter<"StatActiveOnu"> | string status?: StringFilter<"StatActiveOnu"> | string lastRegister?: DateTimeFilter<"StatActiveOnu"> | Date | string lastDeregister?: DateTimeFilter<"StatActiveOnu"> | Date | string dereason?: StringFilter<"StatActiveOnu"> | string alivetime?: IntFilter<"StatActiveOnu"> | number networkDeviceId?: IntFilter<"StatActiveOnu"> | number createdAt?: DateTimeFilter<"StatActiveOnu"> | Date | string newest?: BoolFilter<"StatActiveOnu"> | boolean networkDevice?: XOR } export type StatActiveOnuOrderByWithRelationInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder dereason?: SortOrder alivetime?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder newest?: SortOrder networkDevice?: NetworkDeviceOrderByWithRelationInput } export type StatActiveOnuWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: StatActiveOnuWhereInput | StatActiveOnuWhereInput[] OR?: StatActiveOnuWhereInput[] NOT?: StatActiveOnuWhereInput | StatActiveOnuWhereInput[] xponBoard?: IntFilter<"StatActiveOnu"> | number xponPort?: IntFilter<"StatActiveOnu"> | number xponInterface?: IntFilter<"StatActiveOnu"> | number macAddressOnu?: StringFilter<"StatActiveOnu"> | string serialNumberOnu?: StringFilter<"StatActiveOnu"> | string status?: StringFilter<"StatActiveOnu"> | string lastRegister?: DateTimeFilter<"StatActiveOnu"> | Date | string lastDeregister?: DateTimeFilter<"StatActiveOnu"> | Date | string dereason?: StringFilter<"StatActiveOnu"> | string alivetime?: IntFilter<"StatActiveOnu"> | number networkDeviceId?: IntFilter<"StatActiveOnu"> | number createdAt?: DateTimeFilter<"StatActiveOnu"> | Date | string newest?: BoolFilter<"StatActiveOnu"> | boolean networkDevice?: XOR }, "id"> export type StatActiveOnuOrderByWithAggregationInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder dereason?: SortOrder alivetime?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder newest?: SortOrder _count?: StatActiveOnuCountOrderByAggregateInput _avg?: StatActiveOnuAvgOrderByAggregateInput _max?: StatActiveOnuMaxOrderByAggregateInput _min?: StatActiveOnuMinOrderByAggregateInput _sum?: StatActiveOnuSumOrderByAggregateInput } export type StatActiveOnuScalarWhereWithAggregatesInput = { AND?: StatActiveOnuScalarWhereWithAggregatesInput | StatActiveOnuScalarWhereWithAggregatesInput[] OR?: StatActiveOnuScalarWhereWithAggregatesInput[] NOT?: StatActiveOnuScalarWhereWithAggregatesInput | StatActiveOnuScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"StatActiveOnu"> | number xponBoard?: IntWithAggregatesFilter<"StatActiveOnu"> | number xponPort?: IntWithAggregatesFilter<"StatActiveOnu"> | number xponInterface?: IntWithAggregatesFilter<"StatActiveOnu"> | number macAddressOnu?: StringWithAggregatesFilter<"StatActiveOnu"> | string serialNumberOnu?: StringWithAggregatesFilter<"StatActiveOnu"> | string status?: StringWithAggregatesFilter<"StatActiveOnu"> | string lastRegister?: DateTimeWithAggregatesFilter<"StatActiveOnu"> | Date | string lastDeregister?: DateTimeWithAggregatesFilter<"StatActiveOnu"> | Date | string dereason?: StringWithAggregatesFilter<"StatActiveOnu"> | string alivetime?: IntWithAggregatesFilter<"StatActiveOnu"> | number networkDeviceId?: IntWithAggregatesFilter<"StatActiveOnu"> | number createdAt?: DateTimeWithAggregatesFilter<"StatActiveOnu"> | Date | string newest?: BoolWithAggregatesFilter<"StatActiveOnu"> | boolean } export type StatInactiveOnuWhereInput = { AND?: StatInactiveOnuWhereInput | StatInactiveOnuWhereInput[] OR?: StatInactiveOnuWhereInput[] NOT?: StatInactiveOnuWhereInput | StatInactiveOnuWhereInput[] id?: IntFilter<"StatInactiveOnu"> | number xponBoard?: IntFilter<"StatInactiveOnu"> | number xponPort?: IntFilter<"StatInactiveOnu"> | number xponInterface?: IntFilter<"StatInactiveOnu"> | number macAddressOnu?: StringFilter<"StatInactiveOnu"> | string serialNumberOnu?: StringFilter<"StatInactiveOnu"> | string status?: StringFilter<"StatInactiveOnu"> | string deregReason?: StringFilter<"StatInactiveOnu"> | string lastRegister?: DateTimeFilter<"StatInactiveOnu"> | Date | string lastDeregister?: DateTimeFilter<"StatInactiveOnu"> | Date | string createdAt?: DateTimeFilter<"StatInactiveOnu"> | Date | string networkDeviceId?: IntFilter<"StatInactiveOnu"> | number newest?: BoolFilter<"StatInactiveOnu"> | boolean networkDevice?: XOR } export type StatInactiveOnuOrderByWithRelationInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder deregReason?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder newest?: SortOrder networkDevice?: NetworkDeviceOrderByWithRelationInput } export type StatInactiveOnuWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: StatInactiveOnuWhereInput | StatInactiveOnuWhereInput[] OR?: StatInactiveOnuWhereInput[] NOT?: StatInactiveOnuWhereInput | StatInactiveOnuWhereInput[] xponBoard?: IntFilter<"StatInactiveOnu"> | number xponPort?: IntFilter<"StatInactiveOnu"> | number xponInterface?: IntFilter<"StatInactiveOnu"> | number macAddressOnu?: StringFilter<"StatInactiveOnu"> | string serialNumberOnu?: StringFilter<"StatInactiveOnu"> | string status?: StringFilter<"StatInactiveOnu"> | string deregReason?: StringFilter<"StatInactiveOnu"> | string lastRegister?: DateTimeFilter<"StatInactiveOnu"> | Date | string lastDeregister?: DateTimeFilter<"StatInactiveOnu"> | Date | string createdAt?: DateTimeFilter<"StatInactiveOnu"> | Date | string networkDeviceId?: IntFilter<"StatInactiveOnu"> | number newest?: BoolFilter<"StatInactiveOnu"> | boolean networkDevice?: XOR }, "id"> export type StatInactiveOnuOrderByWithAggregationInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder deregReason?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder newest?: SortOrder _count?: StatInactiveOnuCountOrderByAggregateInput _avg?: StatInactiveOnuAvgOrderByAggregateInput _max?: StatInactiveOnuMaxOrderByAggregateInput _min?: StatInactiveOnuMinOrderByAggregateInput _sum?: StatInactiveOnuSumOrderByAggregateInput } export type StatInactiveOnuScalarWhereWithAggregatesInput = { AND?: StatInactiveOnuScalarWhereWithAggregatesInput | StatInactiveOnuScalarWhereWithAggregatesInput[] OR?: StatInactiveOnuScalarWhereWithAggregatesInput[] NOT?: StatInactiveOnuScalarWhereWithAggregatesInput | StatInactiveOnuScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"StatInactiveOnu"> | number xponBoard?: IntWithAggregatesFilter<"StatInactiveOnu"> | number xponPort?: IntWithAggregatesFilter<"StatInactiveOnu"> | number xponInterface?: IntWithAggregatesFilter<"StatInactiveOnu"> | number macAddressOnu?: StringWithAggregatesFilter<"StatInactiveOnu"> | string serialNumberOnu?: StringWithAggregatesFilter<"StatInactiveOnu"> | string status?: StringWithAggregatesFilter<"StatInactiveOnu"> | string deregReason?: StringWithAggregatesFilter<"StatInactiveOnu"> | string lastRegister?: DateTimeWithAggregatesFilter<"StatInactiveOnu"> | Date | string lastDeregister?: DateTimeWithAggregatesFilter<"StatInactiveOnu"> | Date | string createdAt?: DateTimeWithAggregatesFilter<"StatInactiveOnu"> | Date | string networkDeviceId?: IntWithAggregatesFilter<"StatInactiveOnu"> | number newest?: BoolWithAggregatesFilter<"StatInactiveOnu"> | boolean } export type StatInterfacesWhereInput = { AND?: StatInterfacesWhereInput | StatInterfacesWhereInput[] OR?: StatInterfacesWhereInput[] NOT?: StatInterfacesWhereInput | StatInterfacesWhereInput[] id?: IntFilter<"StatInterfaces"> | number ifState?: StringFilter<"StatInterfaces"> | string ifLineProtocolState?: StringFilter<"StatInterfaces"> | string ifSpeedMb?: IntFilter<"StatInterfaces"> | number bandwidth?: IntFilter<"StatInterfaces"> | number description?: StringFilter<"StatInterfaces"> | string hardwareType?: StringFilter<"StatInterfaces"> | string fiveMinutesInRate?: BigIntFilter<"StatInterfaces"> | bigint | number fiveMinutesOutRate?: BigIntFilter<"StatInterfaces"> | bigint | number realtimeInRates?: BigIntFilter<"StatInterfaces"> | bigint | number realtimeOutRates?: BigIntFilter<"StatInterfaces"> | bigint | number peakInRates?: BigIntFilter<"StatInterfaces"> | bigint | number peakOutRates?: BigIntFilter<"StatInterfaces"> | bigint | number rxErrorCount?: IntFilter<"StatInterfaces"> | number board?: IntFilter<"StatInterfaces"> | number port?: IntFilter<"StatInterfaces"> | number portType?: StringFilter<"StatInterfaces"> | string xponInterfaceNum?: IntFilter<"StatInterfaces"> | number createdAt?: DateTimeFilter<"StatInterfaces"> | Date | string networkDeviceId?: IntFilter<"StatInterfaces"> | number networkDevice?: XOR } export type StatInterfacesOrderByWithRelationInput = { id?: SortOrder ifState?: SortOrder ifLineProtocolState?: SortOrder ifSpeedMb?: SortOrder bandwidth?: SortOrder description?: SortOrder hardwareType?: SortOrder fiveMinutesInRate?: SortOrder fiveMinutesOutRate?: SortOrder realtimeInRates?: SortOrder realtimeOutRates?: SortOrder peakInRates?: SortOrder peakOutRates?: SortOrder rxErrorCount?: SortOrder board?: SortOrder port?: SortOrder portType?: SortOrder xponInterfaceNum?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder networkDevice?: NetworkDeviceOrderByWithRelationInput } export type StatInterfacesWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: StatInterfacesWhereInput | StatInterfacesWhereInput[] OR?: StatInterfacesWhereInput[] NOT?: StatInterfacesWhereInput | StatInterfacesWhereInput[] ifState?: StringFilter<"StatInterfaces"> | string ifLineProtocolState?: StringFilter<"StatInterfaces"> | string ifSpeedMb?: IntFilter<"StatInterfaces"> | number bandwidth?: IntFilter<"StatInterfaces"> | number description?: StringFilter<"StatInterfaces"> | string hardwareType?: StringFilter<"StatInterfaces"> | string fiveMinutesInRate?: BigIntFilter<"StatInterfaces"> | bigint | number fiveMinutesOutRate?: BigIntFilter<"StatInterfaces"> | bigint | number realtimeInRates?: BigIntFilter<"StatInterfaces"> | bigint | number realtimeOutRates?: BigIntFilter<"StatInterfaces"> | bigint | number peakInRates?: BigIntFilter<"StatInterfaces"> | bigint | number peakOutRates?: BigIntFilter<"StatInterfaces"> | bigint | number rxErrorCount?: IntFilter<"StatInterfaces"> | number board?: IntFilter<"StatInterfaces"> | number port?: IntFilter<"StatInterfaces"> | number portType?: StringFilter<"StatInterfaces"> | string xponInterfaceNum?: IntFilter<"StatInterfaces"> | number createdAt?: DateTimeFilter<"StatInterfaces"> | Date | string networkDeviceId?: IntFilter<"StatInterfaces"> | number networkDevice?: XOR }, "id"> export type StatInterfacesOrderByWithAggregationInput = { id?: SortOrder ifState?: SortOrder ifLineProtocolState?: SortOrder ifSpeedMb?: SortOrder bandwidth?: SortOrder description?: SortOrder hardwareType?: SortOrder fiveMinutesInRate?: SortOrder fiveMinutesOutRate?: SortOrder realtimeInRates?: SortOrder realtimeOutRates?: SortOrder peakInRates?: SortOrder peakOutRates?: SortOrder rxErrorCount?: SortOrder board?: SortOrder port?: SortOrder portType?: SortOrder xponInterfaceNum?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder _count?: StatInterfacesCountOrderByAggregateInput _avg?: StatInterfacesAvgOrderByAggregateInput _max?: StatInterfacesMaxOrderByAggregateInput _min?: StatInterfacesMinOrderByAggregateInput _sum?: StatInterfacesSumOrderByAggregateInput } export type StatInterfacesScalarWhereWithAggregatesInput = { AND?: StatInterfacesScalarWhereWithAggregatesInput | StatInterfacesScalarWhereWithAggregatesInput[] OR?: StatInterfacesScalarWhereWithAggregatesInput[] NOT?: StatInterfacesScalarWhereWithAggregatesInput | StatInterfacesScalarWhereWithAggregatesInput[] id?: IntWithAggregatesFilter<"StatInterfaces"> | number ifState?: StringWithAggregatesFilter<"StatInterfaces"> | string ifLineProtocolState?: StringWithAggregatesFilter<"StatInterfaces"> | string ifSpeedMb?: IntWithAggregatesFilter<"StatInterfaces"> | number bandwidth?: IntWithAggregatesFilter<"StatInterfaces"> | number description?: StringWithAggregatesFilter<"StatInterfaces"> | string hardwareType?: StringWithAggregatesFilter<"StatInterfaces"> | string fiveMinutesInRate?: BigIntWithAggregatesFilter<"StatInterfaces"> | bigint | number fiveMinutesOutRate?: BigIntWithAggregatesFilter<"StatInterfaces"> | bigint | number realtimeInRates?: BigIntWithAggregatesFilter<"StatInterfaces"> | bigint | number realtimeOutRates?: BigIntWithAggregatesFilter<"StatInterfaces"> | bigint | number peakInRates?: BigIntWithAggregatesFilter<"StatInterfaces"> | bigint | number peakOutRates?: BigIntWithAggregatesFilter<"StatInterfaces"> | bigint | number rxErrorCount?: IntWithAggregatesFilter<"StatInterfaces"> | number board?: IntWithAggregatesFilter<"StatInterfaces"> | number port?: IntWithAggregatesFilter<"StatInterfaces"> | number portType?: StringWithAggregatesFilter<"StatInterfaces"> | string xponInterfaceNum?: IntWithAggregatesFilter<"StatInterfaces"> | number createdAt?: DateTimeWithAggregatesFilter<"StatInterfaces"> | Date | string networkDeviceId?: IntWithAggregatesFilter<"StatInterfaces"> | number } export type DeviceTypeCreateInput = { createdAt?: Date | string updatedAt?: Date | string type?: string DeviceModel?: DeviceModelCreateNestedManyWithoutDeviceTypeInput } export type DeviceTypeUncheckedCreateInput = { id?: number createdAt?: Date | string updatedAt?: Date | string type?: string DeviceModel?: DeviceModelUncheckedCreateNestedManyWithoutDeviceTypeInput } export type DeviceTypeUpdateInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string type?: StringFieldUpdateOperationsInput | string DeviceModel?: DeviceModelUpdateManyWithoutDeviceTypeNestedInput } export type DeviceTypeUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string type?: StringFieldUpdateOperationsInput | string DeviceModel?: DeviceModelUncheckedUpdateManyWithoutDeviceTypeNestedInput } export type DeviceTypeCreateManyInput = { id?: number createdAt?: Date | string updatedAt?: Date | string type?: string } export type DeviceTypeUpdateManyMutationInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string type?: StringFieldUpdateOperationsInput | string } export type DeviceTypeUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string type?: StringFieldUpdateOperationsInput | string } export type DeviceVendorCreateInput = { createdAt?: Date | string updatedAt?: Date | string name: string DeviceModel?: DeviceModelCreateNestedManyWithoutVendorInput } export type DeviceVendorUncheckedCreateInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string DeviceModel?: DeviceModelUncheckedCreateNestedManyWithoutVendorInput } export type DeviceVendorUpdateInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string DeviceModel?: DeviceModelUpdateManyWithoutVendorNestedInput } export type DeviceVendorUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string DeviceModel?: DeviceModelUncheckedUpdateManyWithoutVendorNestedInput } export type DeviceVendorCreateManyInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string } export type DeviceVendorUpdateManyMutationInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string } export type DeviceVendorUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string } export type DeviceModelCreateInput = { createdAt?: Date | string updatedAt?: Date | string name: string deviceType: DeviceTypeCreateNestedOneWithoutDeviceModelInput vendor: DeviceVendorCreateNestedOneWithoutDeviceModelInput NetworkDevice?: NetworkDeviceCreateNestedManyWithoutDeviceModelInput } export type DeviceModelUncheckedCreateInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string vendorId: number deviceTypeId: number NetworkDevice?: NetworkDeviceUncheckedCreateNestedManyWithoutDeviceModelInput } export type DeviceModelUpdateInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string deviceType?: DeviceTypeUpdateOneRequiredWithoutDeviceModelNestedInput vendor?: DeviceVendorUpdateOneRequiredWithoutDeviceModelNestedInput NetworkDevice?: NetworkDeviceUpdateManyWithoutDeviceModelNestedInput } export type DeviceModelUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string vendorId?: IntFieldUpdateOperationsInput | number deviceTypeId?: IntFieldUpdateOperationsInput | number NetworkDevice?: NetworkDeviceUncheckedUpdateManyWithoutDeviceModelNestedInput } export type DeviceModelCreateManyInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string vendorId: number deviceTypeId: number } export type DeviceModelUpdateManyMutationInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string } export type DeviceModelUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string vendorId?: IntFieldUpdateOperationsInput | number deviceTypeId?: IntFieldUpdateOperationsInput | number } export type DeviceCredentialCreateInput = { createdAt?: Date | string updatedAt?: Date | string username?: string password?: string NetworkDevice?: NetworkDeviceCreateNestedManyWithoutDeviceCredentialInput } export type DeviceCredentialUncheckedCreateInput = { id?: number createdAt?: Date | string updatedAt?: Date | string username?: string password?: string NetworkDevice?: NetworkDeviceUncheckedCreateNestedManyWithoutDeviceCredentialInput } export type DeviceCredentialUpdateInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string NetworkDevice?: NetworkDeviceUpdateManyWithoutDeviceCredentialNestedInput } export type DeviceCredentialUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string NetworkDevice?: NetworkDeviceUncheckedUpdateManyWithoutDeviceCredentialNestedInput } export type DeviceCredentialCreateManyInput = { id?: number createdAt?: Date | string updatedAt?: Date | string username?: string password?: string } export type DeviceCredentialUpdateManyMutationInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type DeviceCredentialUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type NetworkDeviceCreateInput = { createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string enabled?: boolean deviceCredential: DeviceCredentialCreateNestedOneWithoutNetworkDeviceInput deviceModel: DeviceModelCreateNestedOneWithoutNetworkDeviceInput StatInactiveOnu?: StatInactiveOnuCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUncheckedCreateInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number deviceCredentialId: number enabled?: boolean StatInactiveOnu?: StatInactiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesUncheckedCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUpdateInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean deviceCredential?: DeviceCredentialUpdateOneRequiredWithoutNetworkDeviceNestedInput deviceModel?: DeviceModelUpdateOneRequiredWithoutNetworkDeviceNestedInput StatInactiveOnu?: StatInactiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean StatInactiveOnu?: StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceCreateManyInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number deviceCredentialId: number enabled?: boolean } export type NetworkDeviceUpdateManyMutationInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean } export type NetworkDeviceUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean } export type NetworkDeviceVersionCreateInput = { createdAt?: Date | string updatedAt?: Date | string model: string softwareVersion: string hardwareVersion: string macAddress: string serialNumber: string networkDevice: NetworkDeviceCreateNestedOneWithoutNetworkDeviceVersionInput } export type NetworkDeviceVersionUncheckedCreateInput = { id?: number networkDeviceId: number createdAt?: Date | string updatedAt?: Date | string model: string softwareVersion: string hardwareVersion: string macAddress: string serialNumber: string } export type NetworkDeviceVersionUpdateInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string model?: StringFieldUpdateOperationsInput | string softwareVersion?: StringFieldUpdateOperationsInput | string hardwareVersion?: StringFieldUpdateOperationsInput | string macAddress?: StringFieldUpdateOperationsInput | string serialNumber?: StringFieldUpdateOperationsInput | string networkDevice?: NetworkDeviceUpdateOneRequiredWithoutNetworkDeviceVersionNestedInput } export type NetworkDeviceVersionUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number networkDeviceId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string model?: StringFieldUpdateOperationsInput | string softwareVersion?: StringFieldUpdateOperationsInput | string hardwareVersion?: StringFieldUpdateOperationsInput | string macAddress?: StringFieldUpdateOperationsInput | string serialNumber?: StringFieldUpdateOperationsInput | string } export type NetworkDeviceVersionCreateManyInput = { id?: number networkDeviceId: number createdAt?: Date | string updatedAt?: Date | string model: string softwareVersion: string hardwareVersion: string macAddress: string serialNumber: string } export type NetworkDeviceVersionUpdateManyMutationInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string model?: StringFieldUpdateOperationsInput | string softwareVersion?: StringFieldUpdateOperationsInput | string hardwareVersion?: StringFieldUpdateOperationsInput | string macAddress?: StringFieldUpdateOperationsInput | string serialNumber?: StringFieldUpdateOperationsInput | string } export type NetworkDeviceVersionUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number networkDeviceId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string model?: StringFieldUpdateOperationsInput | string softwareVersion?: StringFieldUpdateOperationsInput | string hardwareVersion?: StringFieldUpdateOperationsInput | string macAddress?: StringFieldUpdateOperationsInput | string serialNumber?: StringFieldUpdateOperationsInput | string } export type StatOnuDeviceCreateInput = { vendorId: string modelId: string macAddressOnu?: string serialNumberOnu?: string description: string bindType: string status: string deregReason: string createdAt?: Date | string xponBoard: number xponPort: number xponInterface: number xponType?: string networkDevice: NetworkDeviceCreateNestedOneWithoutStatOnuDeviceInput } export type StatOnuDeviceUncheckedCreateInput = { id?: number vendorId: string modelId: string macAddressOnu?: string serialNumberOnu?: string description: string bindType: string status: string deregReason: string createdAt?: Date | string networkDeviceId: number xponBoard: number xponPort: number xponInterface: number xponType?: string } export type StatOnuDeviceUpdateInput = { vendorId?: StringFieldUpdateOperationsInput | string modelId?: StringFieldUpdateOperationsInput | string macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string bindType?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number xponType?: StringFieldUpdateOperationsInput | string networkDevice?: NetworkDeviceUpdateOneRequiredWithoutStatOnuDeviceNestedInput } export type StatOnuDeviceUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number vendorId?: StringFieldUpdateOperationsInput | string modelId?: StringFieldUpdateOperationsInput | string macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string bindType?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDeviceId?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number xponType?: StringFieldUpdateOperationsInput | string } export type StatOnuDeviceCreateManyInput = { id?: number vendorId: string modelId: string macAddressOnu?: string serialNumberOnu?: string description: string bindType: string status: string deregReason: string createdAt?: Date | string networkDeviceId: number xponBoard: number xponPort: number xponInterface: number xponType?: string } export type StatOnuDeviceUpdateManyMutationInput = { vendorId?: StringFieldUpdateOperationsInput | string modelId?: StringFieldUpdateOperationsInput | string macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string bindType?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number xponType?: StringFieldUpdateOperationsInput | string } export type StatOnuDeviceUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number vendorId?: StringFieldUpdateOperationsInput | string modelId?: StringFieldUpdateOperationsInput | string macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string bindType?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDeviceId?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number xponType?: StringFieldUpdateOperationsInput | string } export type StatOnuOpticalSignalCreateInput = { xponBoard: number xponPort: number xponInterface: number rxPower: number txPower: number createdAt?: Date | string networkDevice: NetworkDeviceCreateNestedOneWithoutStatOnuOpticalSignalInput } export type StatOnuOpticalSignalUncheckedCreateInput = { id?: number xponBoard: number xponPort: number xponInterface: number rxPower: number txPower: number createdAt?: Date | string networkDeviceId: number } export type StatOnuOpticalSignalUpdateInput = { xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number rxPower?: FloatFieldUpdateOperationsInput | number txPower?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDevice?: NetworkDeviceUpdateOneRequiredWithoutStatOnuOpticalSignalNestedInput } export type StatOnuOpticalSignalUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number rxPower?: FloatFieldUpdateOperationsInput | number txPower?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDeviceId?: IntFieldUpdateOperationsInput | number } export type StatOnuOpticalSignalCreateManyInput = { id?: number xponBoard: number xponPort: number xponInterface: number rxPower: number txPower: number createdAt?: Date | string networkDeviceId: number } export type StatOnuOpticalSignalUpdateManyMutationInput = { xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number rxPower?: FloatFieldUpdateOperationsInput | number txPower?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StatOnuOpticalSignalUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number rxPower?: FloatFieldUpdateOperationsInput | number txPower?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDeviceId?: IntFieldUpdateOperationsInput | number } export type StatActiveOnuCreateInput = { xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string lastRegister: Date | string lastDeregister: Date | string dereason: string alivetime: number createdAt?: Date | string newest?: boolean networkDevice: NetworkDeviceCreateNestedOneWithoutStatActiveOnuInput } export type StatActiveOnuUncheckedCreateInput = { id?: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string lastRegister: Date | string lastDeregister: Date | string dereason: string alivetime: number networkDeviceId: number createdAt?: Date | string newest?: boolean } export type StatActiveOnuUpdateInput = { xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string dereason?: StringFieldUpdateOperationsInput | string alivetime?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean networkDevice?: NetworkDeviceUpdateOneRequiredWithoutStatActiveOnuNestedInput } export type StatActiveOnuUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string dereason?: StringFieldUpdateOperationsInput | string alivetime?: IntFieldUpdateOperationsInput | number networkDeviceId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatActiveOnuCreateManyInput = { id?: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string lastRegister: Date | string lastDeregister: Date | string dereason: string alivetime: number networkDeviceId: number createdAt?: Date | string newest?: boolean } export type StatActiveOnuUpdateManyMutationInput = { xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string dereason?: StringFieldUpdateOperationsInput | string alivetime?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatActiveOnuUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string dereason?: StringFieldUpdateOperationsInput | string alivetime?: IntFieldUpdateOperationsInput | number networkDeviceId?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatInactiveOnuCreateInput = { xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string deregReason: string lastRegister: Date | string lastDeregister: Date | string createdAt?: Date | string newest?: boolean networkDevice: NetworkDeviceCreateNestedOneWithoutStatInactiveOnuInput } export type StatInactiveOnuUncheckedCreateInput = { id?: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string deregReason: string lastRegister: Date | string lastDeregister: Date | string createdAt?: Date | string networkDeviceId: number newest?: boolean } export type StatInactiveOnuUpdateInput = { xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean networkDevice?: NetworkDeviceUpdateOneRequiredWithoutStatInactiveOnuNestedInput } export type StatInactiveOnuUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDeviceId?: IntFieldUpdateOperationsInput | number newest?: BoolFieldUpdateOperationsInput | boolean } export type StatInactiveOnuCreateManyInput = { id?: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string deregReason: string lastRegister: Date | string lastDeregister: Date | string createdAt?: Date | string networkDeviceId: number newest?: boolean } export type StatInactiveOnuUpdateManyMutationInput = { xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatInactiveOnuUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDeviceId?: IntFieldUpdateOperationsInput | number newest?: BoolFieldUpdateOperationsInput | boolean } export type StatInterfacesCreateInput = { ifState?: string ifLineProtocolState?: string ifSpeedMb: number bandwidth: number description?: string hardwareType?: string fiveMinutesInRate?: bigint | number fiveMinutesOutRate?: bigint | number realtimeInRates?: bigint | number realtimeOutRates?: bigint | number peakInRates?: bigint | number peakOutRates?: bigint | number rxErrorCount?: number board: number port: number portType?: string xponInterfaceNum: number createdAt?: Date | string networkDevice: NetworkDeviceCreateNestedOneWithoutStatInterfacesInput } export type StatInterfacesUncheckedCreateInput = { id?: number ifState?: string ifLineProtocolState?: string ifSpeedMb: number bandwidth: number description?: string hardwareType?: string fiveMinutesInRate?: bigint | number fiveMinutesOutRate?: bigint | number realtimeInRates?: bigint | number realtimeOutRates?: bigint | number peakInRates?: bigint | number peakOutRates?: bigint | number rxErrorCount?: number board: number port: number portType?: string xponInterfaceNum: number createdAt?: Date | string networkDeviceId: number } export type StatInterfacesUpdateInput = { ifState?: StringFieldUpdateOperationsInput | string ifLineProtocolState?: StringFieldUpdateOperationsInput | string ifSpeedMb?: IntFieldUpdateOperationsInput | number bandwidth?: IntFieldUpdateOperationsInput | number description?: StringFieldUpdateOperationsInput | string hardwareType?: StringFieldUpdateOperationsInput | string fiveMinutesInRate?: BigIntFieldUpdateOperationsInput | bigint | number fiveMinutesOutRate?: BigIntFieldUpdateOperationsInput | bigint | number realtimeInRates?: BigIntFieldUpdateOperationsInput | bigint | number realtimeOutRates?: BigIntFieldUpdateOperationsInput | bigint | number peakInRates?: BigIntFieldUpdateOperationsInput | bigint | number peakOutRates?: BigIntFieldUpdateOperationsInput | bigint | number rxErrorCount?: IntFieldUpdateOperationsInput | number board?: IntFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number portType?: StringFieldUpdateOperationsInput | string xponInterfaceNum?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDevice?: NetworkDeviceUpdateOneRequiredWithoutStatInterfacesNestedInput } export type StatInterfacesUncheckedUpdateInput = { id?: IntFieldUpdateOperationsInput | number ifState?: StringFieldUpdateOperationsInput | string ifLineProtocolState?: StringFieldUpdateOperationsInput | string ifSpeedMb?: IntFieldUpdateOperationsInput | number bandwidth?: IntFieldUpdateOperationsInput | number description?: StringFieldUpdateOperationsInput | string hardwareType?: StringFieldUpdateOperationsInput | string fiveMinutesInRate?: BigIntFieldUpdateOperationsInput | bigint | number fiveMinutesOutRate?: BigIntFieldUpdateOperationsInput | bigint | number realtimeInRates?: BigIntFieldUpdateOperationsInput | bigint | number realtimeOutRates?: BigIntFieldUpdateOperationsInput | bigint | number peakInRates?: BigIntFieldUpdateOperationsInput | bigint | number peakOutRates?: BigIntFieldUpdateOperationsInput | bigint | number rxErrorCount?: IntFieldUpdateOperationsInput | number board?: IntFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number portType?: StringFieldUpdateOperationsInput | string xponInterfaceNum?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDeviceId?: IntFieldUpdateOperationsInput | number } export type StatInterfacesCreateManyInput = { id?: number ifState?: string ifLineProtocolState?: string ifSpeedMb: number bandwidth: number description?: string hardwareType?: string fiveMinutesInRate?: bigint | number fiveMinutesOutRate?: bigint | number realtimeInRates?: bigint | number realtimeOutRates?: bigint | number peakInRates?: bigint | number peakOutRates?: bigint | number rxErrorCount?: number board: number port: number portType?: string xponInterfaceNum: number createdAt?: Date | string networkDeviceId: number } export type StatInterfacesUpdateManyMutationInput = { ifState?: StringFieldUpdateOperationsInput | string ifLineProtocolState?: StringFieldUpdateOperationsInput | string ifSpeedMb?: IntFieldUpdateOperationsInput | number bandwidth?: IntFieldUpdateOperationsInput | number description?: StringFieldUpdateOperationsInput | string hardwareType?: StringFieldUpdateOperationsInput | string fiveMinutesInRate?: BigIntFieldUpdateOperationsInput | bigint | number fiveMinutesOutRate?: BigIntFieldUpdateOperationsInput | bigint | number realtimeInRates?: BigIntFieldUpdateOperationsInput | bigint | number realtimeOutRates?: BigIntFieldUpdateOperationsInput | bigint | number peakInRates?: BigIntFieldUpdateOperationsInput | bigint | number peakOutRates?: BigIntFieldUpdateOperationsInput | bigint | number rxErrorCount?: IntFieldUpdateOperationsInput | number board?: IntFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number portType?: StringFieldUpdateOperationsInput | string xponInterfaceNum?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StatInterfacesUncheckedUpdateManyInput = { id?: IntFieldUpdateOperationsInput | number ifState?: StringFieldUpdateOperationsInput | string ifLineProtocolState?: StringFieldUpdateOperationsInput | string ifSpeedMb?: IntFieldUpdateOperationsInput | number bandwidth?: IntFieldUpdateOperationsInput | number description?: StringFieldUpdateOperationsInput | string hardwareType?: StringFieldUpdateOperationsInput | string fiveMinutesInRate?: BigIntFieldUpdateOperationsInput | bigint | number fiveMinutesOutRate?: BigIntFieldUpdateOperationsInput | bigint | number realtimeInRates?: BigIntFieldUpdateOperationsInput | bigint | number realtimeOutRates?: BigIntFieldUpdateOperationsInput | bigint | number peakInRates?: BigIntFieldUpdateOperationsInput | bigint | number peakOutRates?: BigIntFieldUpdateOperationsInput | bigint | number rxErrorCount?: IntFieldUpdateOperationsInput | number board?: IntFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number portType?: StringFieldUpdateOperationsInput | string xponInterfaceNum?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string networkDeviceId?: IntFieldUpdateOperationsInput | number } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringFilter<$PrismaModel> | string } export type DeviceModelListRelationFilter = { every?: DeviceModelWhereInput some?: DeviceModelWhereInput none?: DeviceModelWhereInput } export type DeviceModelOrderByRelationAggregateInput = { _count?: SortOrder } export type DeviceTypeCountOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder type?: SortOrder } export type DeviceTypeAvgOrderByAggregateInput = { id?: SortOrder } export type DeviceTypeMaxOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder type?: SortOrder } export type DeviceTypeMinOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder type?: SortOrder } export type DeviceTypeSumOrderByAggregateInput = { id?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type DeviceVendorCountOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder } export type DeviceVendorAvgOrderByAggregateInput = { id?: SortOrder } export type DeviceVendorMaxOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder } export type DeviceVendorMinOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder } export type DeviceVendorSumOrderByAggregateInput = { id?: SortOrder } export type DeviceTypeScalarRelationFilter = { is?: DeviceTypeWhereInput isNot?: DeviceTypeWhereInput } export type DeviceVendorScalarRelationFilter = { is?: DeviceVendorWhereInput isNot?: DeviceVendorWhereInput } export type NetworkDeviceListRelationFilter = { every?: NetworkDeviceWhereInput some?: NetworkDeviceWhereInput none?: NetworkDeviceWhereInput } export type NetworkDeviceOrderByRelationAggregateInput = { _count?: SortOrder } export type DeviceModelCountOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder vendorId?: SortOrder deviceTypeId?: SortOrder } export type DeviceModelAvgOrderByAggregateInput = { id?: SortOrder vendorId?: SortOrder deviceTypeId?: SortOrder } export type DeviceModelMaxOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder vendorId?: SortOrder deviceTypeId?: SortOrder } export type DeviceModelMinOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder name?: SortOrder vendorId?: SortOrder deviceTypeId?: SortOrder } export type DeviceModelSumOrderByAggregateInput = { id?: SortOrder vendorId?: SortOrder deviceTypeId?: SortOrder } export type DeviceCredentialCountOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder username?: SortOrder password?: SortOrder } export type DeviceCredentialAvgOrderByAggregateInput = { id?: SortOrder } export type DeviceCredentialMaxOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder username?: SortOrder password?: SortOrder } export type DeviceCredentialMinOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder username?: SortOrder password?: SortOrder } export type DeviceCredentialSumOrderByAggregateInput = { id?: SortOrder } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type DeviceCredentialScalarRelationFilter = { is?: DeviceCredentialWhereInput isNot?: DeviceCredentialWhereInput } export type DeviceModelScalarRelationFilter = { is?: DeviceModelWhereInput isNot?: DeviceModelWhereInput } export type StatInactiveOnuListRelationFilter = { every?: StatInactiveOnuWhereInput some?: StatInactiveOnuWhereInput none?: StatInactiveOnuWhereInput } export type StatActiveOnuListRelationFilter = { every?: StatActiveOnuWhereInput some?: StatActiveOnuWhereInput none?: StatActiveOnuWhereInput } export type StatOnuDeviceListRelationFilter = { every?: StatOnuDeviceWhereInput some?: StatOnuDeviceWhereInput none?: StatOnuDeviceWhereInput } export type StatOnuOpticalSignalListRelationFilter = { every?: StatOnuOpticalSignalWhereInput some?: StatOnuOpticalSignalWhereInput none?: StatOnuOpticalSignalWhereInput } export type StatInterfacesListRelationFilter = { every?: StatInterfacesWhereInput some?: StatInterfacesWhereInput none?: StatInterfacesWhereInput } export type NetworkDeviceVersionListRelationFilter = { every?: NetworkDeviceVersionWhereInput some?: NetworkDeviceVersionWhereInput none?: NetworkDeviceVersionWhereInput } export type StatInactiveOnuOrderByRelationAggregateInput = { _count?: SortOrder } export type StatActiveOnuOrderByRelationAggregateInput = { _count?: SortOrder } export type StatOnuDeviceOrderByRelationAggregateInput = { _count?: SortOrder } export type StatOnuOpticalSignalOrderByRelationAggregateInput = { _count?: SortOrder } export type StatInterfacesOrderByRelationAggregateInput = { _count?: SortOrder } export type NetworkDeviceVersionOrderByRelationAggregateInput = { _count?: SortOrder } export type NetworkDeviceCountOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder accessIpAddressV4?: SortOrder accessType?: SortOrder accessPort?: SortOrder description?: SortOrder deviceModelId?: SortOrder deviceCredentialId?: SortOrder enabled?: SortOrder } export type NetworkDeviceAvgOrderByAggregateInput = { id?: SortOrder deviceModelId?: SortOrder deviceCredentialId?: SortOrder } export type NetworkDeviceMaxOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder accessIpAddressV4?: SortOrder accessType?: SortOrder accessPort?: SortOrder description?: SortOrder deviceModelId?: SortOrder deviceCredentialId?: SortOrder enabled?: SortOrder } export type NetworkDeviceMinOrderByAggregateInput = { id?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder accessIpAddressV4?: SortOrder accessType?: SortOrder accessPort?: SortOrder description?: SortOrder deviceModelId?: SortOrder deviceCredentialId?: SortOrder enabled?: SortOrder } export type NetworkDeviceSumOrderByAggregateInput = { id?: SortOrder deviceModelId?: SortOrder deviceCredentialId?: SortOrder } export type BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type NetworkDeviceScalarRelationFilter = { is?: NetworkDeviceWhereInput isNot?: NetworkDeviceWhereInput } export type NetworkDeviceVersionCountOrderByAggregateInput = { id?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder model?: SortOrder softwareVersion?: SortOrder hardwareVersion?: SortOrder macAddress?: SortOrder serialNumber?: SortOrder } export type NetworkDeviceVersionAvgOrderByAggregateInput = { id?: SortOrder networkDeviceId?: SortOrder } export type NetworkDeviceVersionMaxOrderByAggregateInput = { id?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder model?: SortOrder softwareVersion?: SortOrder hardwareVersion?: SortOrder macAddress?: SortOrder serialNumber?: SortOrder } export type NetworkDeviceVersionMinOrderByAggregateInput = { id?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder model?: SortOrder softwareVersion?: SortOrder hardwareVersion?: SortOrder macAddress?: SortOrder serialNumber?: SortOrder } export type NetworkDeviceVersionSumOrderByAggregateInput = { id?: SortOrder networkDeviceId?: SortOrder } export type StatOnuDeviceCountOrderByAggregateInput = { id?: SortOrder vendorId?: SortOrder modelId?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder description?: SortOrder bindType?: SortOrder status?: SortOrder deregReason?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder xponType?: SortOrder } export type StatOnuDeviceAvgOrderByAggregateInput = { id?: SortOrder networkDeviceId?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder } export type StatOnuDeviceMaxOrderByAggregateInput = { id?: SortOrder vendorId?: SortOrder modelId?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder description?: SortOrder bindType?: SortOrder status?: SortOrder deregReason?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder xponType?: SortOrder } export type StatOnuDeviceMinOrderByAggregateInput = { id?: SortOrder vendorId?: SortOrder modelId?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder description?: SortOrder bindType?: SortOrder status?: SortOrder deregReason?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder xponType?: SortOrder } export type StatOnuDeviceSumOrderByAggregateInput = { id?: SortOrder networkDeviceId?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder } export type FloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type StatOnuOpticalSignalCountOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder rxPower?: SortOrder txPower?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder } export type StatOnuOpticalSignalAvgOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder rxPower?: SortOrder txPower?: SortOrder networkDeviceId?: SortOrder } export type StatOnuOpticalSignalMaxOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder rxPower?: SortOrder txPower?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder } export type StatOnuOpticalSignalMinOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder rxPower?: SortOrder txPower?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder } export type StatOnuOpticalSignalSumOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder rxPower?: SortOrder txPower?: SortOrder networkDeviceId?: SortOrder } export type FloatWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type StatActiveOnuCountOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder dereason?: SortOrder alivetime?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder newest?: SortOrder } export type StatActiveOnuAvgOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder alivetime?: SortOrder networkDeviceId?: SortOrder } export type StatActiveOnuMaxOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder dereason?: SortOrder alivetime?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder newest?: SortOrder } export type StatActiveOnuMinOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder dereason?: SortOrder alivetime?: SortOrder networkDeviceId?: SortOrder createdAt?: SortOrder newest?: SortOrder } export type StatActiveOnuSumOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder alivetime?: SortOrder networkDeviceId?: SortOrder } export type StatInactiveOnuCountOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder deregReason?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder newest?: SortOrder } export type StatInactiveOnuAvgOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder networkDeviceId?: SortOrder } export type StatInactiveOnuMaxOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder deregReason?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder newest?: SortOrder } export type StatInactiveOnuMinOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder macAddressOnu?: SortOrder serialNumberOnu?: SortOrder status?: SortOrder deregReason?: SortOrder lastRegister?: SortOrder lastDeregister?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder newest?: SortOrder } export type StatInactiveOnuSumOrderByAggregateInput = { id?: SortOrder xponBoard?: SortOrder xponPort?: SortOrder xponInterface?: SortOrder networkDeviceId?: SortOrder } export type BigIntFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntFilter<$PrismaModel> | bigint | number } export type StatInterfacesCountOrderByAggregateInput = { id?: SortOrder ifState?: SortOrder ifLineProtocolState?: SortOrder ifSpeedMb?: SortOrder bandwidth?: SortOrder description?: SortOrder hardwareType?: SortOrder fiveMinutesInRate?: SortOrder fiveMinutesOutRate?: SortOrder realtimeInRates?: SortOrder realtimeOutRates?: SortOrder peakInRates?: SortOrder peakOutRates?: SortOrder rxErrorCount?: SortOrder board?: SortOrder port?: SortOrder portType?: SortOrder xponInterfaceNum?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder } export type StatInterfacesAvgOrderByAggregateInput = { id?: SortOrder ifSpeedMb?: SortOrder bandwidth?: SortOrder fiveMinutesInRate?: SortOrder fiveMinutesOutRate?: SortOrder realtimeInRates?: SortOrder realtimeOutRates?: SortOrder peakInRates?: SortOrder peakOutRates?: SortOrder rxErrorCount?: SortOrder board?: SortOrder port?: SortOrder xponInterfaceNum?: SortOrder networkDeviceId?: SortOrder } export type StatInterfacesMaxOrderByAggregateInput = { id?: SortOrder ifState?: SortOrder ifLineProtocolState?: SortOrder ifSpeedMb?: SortOrder bandwidth?: SortOrder description?: SortOrder hardwareType?: SortOrder fiveMinutesInRate?: SortOrder fiveMinutesOutRate?: SortOrder realtimeInRates?: SortOrder realtimeOutRates?: SortOrder peakInRates?: SortOrder peakOutRates?: SortOrder rxErrorCount?: SortOrder board?: SortOrder port?: SortOrder portType?: SortOrder xponInterfaceNum?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder } export type StatInterfacesMinOrderByAggregateInput = { id?: SortOrder ifState?: SortOrder ifLineProtocolState?: SortOrder ifSpeedMb?: SortOrder bandwidth?: SortOrder description?: SortOrder hardwareType?: SortOrder fiveMinutesInRate?: SortOrder fiveMinutesOutRate?: SortOrder realtimeInRates?: SortOrder realtimeOutRates?: SortOrder peakInRates?: SortOrder peakOutRates?: SortOrder rxErrorCount?: SortOrder board?: SortOrder port?: SortOrder portType?: SortOrder xponInterfaceNum?: SortOrder createdAt?: SortOrder networkDeviceId?: SortOrder } export type StatInterfacesSumOrderByAggregateInput = { id?: SortOrder ifSpeedMb?: SortOrder bandwidth?: SortOrder fiveMinutesInRate?: SortOrder fiveMinutesOutRate?: SortOrder realtimeInRates?: SortOrder realtimeOutRates?: SortOrder peakInRates?: SortOrder peakOutRates?: SortOrder rxErrorCount?: SortOrder board?: SortOrder port?: SortOrder xponInterfaceNum?: SortOrder networkDeviceId?: SortOrder } export type BigIntWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedBigIntFilter<$PrismaModel> _min?: NestedBigIntFilter<$PrismaModel> _max?: NestedBigIntFilter<$PrismaModel> } export type DeviceModelCreateNestedManyWithoutDeviceTypeInput = { create?: XOR | DeviceModelCreateWithoutDeviceTypeInput[] | DeviceModelUncheckedCreateWithoutDeviceTypeInput[] connectOrCreate?: DeviceModelCreateOrConnectWithoutDeviceTypeInput | DeviceModelCreateOrConnectWithoutDeviceTypeInput[] createMany?: DeviceModelCreateManyDeviceTypeInputEnvelope connect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] } export type DeviceModelUncheckedCreateNestedManyWithoutDeviceTypeInput = { create?: XOR | DeviceModelCreateWithoutDeviceTypeInput[] | DeviceModelUncheckedCreateWithoutDeviceTypeInput[] connectOrCreate?: DeviceModelCreateOrConnectWithoutDeviceTypeInput | DeviceModelCreateOrConnectWithoutDeviceTypeInput[] createMany?: DeviceModelCreateManyDeviceTypeInputEnvelope connect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type StringFieldUpdateOperationsInput = { set?: string } export type DeviceModelUpdateManyWithoutDeviceTypeNestedInput = { create?: XOR | DeviceModelCreateWithoutDeviceTypeInput[] | DeviceModelUncheckedCreateWithoutDeviceTypeInput[] connectOrCreate?: DeviceModelCreateOrConnectWithoutDeviceTypeInput | DeviceModelCreateOrConnectWithoutDeviceTypeInput[] upsert?: DeviceModelUpsertWithWhereUniqueWithoutDeviceTypeInput | DeviceModelUpsertWithWhereUniqueWithoutDeviceTypeInput[] createMany?: DeviceModelCreateManyDeviceTypeInputEnvelope set?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] disconnect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] delete?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] connect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] update?: DeviceModelUpdateWithWhereUniqueWithoutDeviceTypeInput | DeviceModelUpdateWithWhereUniqueWithoutDeviceTypeInput[] updateMany?: DeviceModelUpdateManyWithWhereWithoutDeviceTypeInput | DeviceModelUpdateManyWithWhereWithoutDeviceTypeInput[] deleteMany?: DeviceModelScalarWhereInput | DeviceModelScalarWhereInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type DeviceModelUncheckedUpdateManyWithoutDeviceTypeNestedInput = { create?: XOR | DeviceModelCreateWithoutDeviceTypeInput[] | DeviceModelUncheckedCreateWithoutDeviceTypeInput[] connectOrCreate?: DeviceModelCreateOrConnectWithoutDeviceTypeInput | DeviceModelCreateOrConnectWithoutDeviceTypeInput[] upsert?: DeviceModelUpsertWithWhereUniqueWithoutDeviceTypeInput | DeviceModelUpsertWithWhereUniqueWithoutDeviceTypeInput[] createMany?: DeviceModelCreateManyDeviceTypeInputEnvelope set?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] disconnect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] delete?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] connect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] update?: DeviceModelUpdateWithWhereUniqueWithoutDeviceTypeInput | DeviceModelUpdateWithWhereUniqueWithoutDeviceTypeInput[] updateMany?: DeviceModelUpdateManyWithWhereWithoutDeviceTypeInput | DeviceModelUpdateManyWithWhereWithoutDeviceTypeInput[] deleteMany?: DeviceModelScalarWhereInput | DeviceModelScalarWhereInput[] } export type DeviceModelCreateNestedManyWithoutVendorInput = { create?: XOR | DeviceModelCreateWithoutVendorInput[] | DeviceModelUncheckedCreateWithoutVendorInput[] connectOrCreate?: DeviceModelCreateOrConnectWithoutVendorInput | DeviceModelCreateOrConnectWithoutVendorInput[] createMany?: DeviceModelCreateManyVendorInputEnvelope connect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] } export type DeviceModelUncheckedCreateNestedManyWithoutVendorInput = { create?: XOR | DeviceModelCreateWithoutVendorInput[] | DeviceModelUncheckedCreateWithoutVendorInput[] connectOrCreate?: DeviceModelCreateOrConnectWithoutVendorInput | DeviceModelCreateOrConnectWithoutVendorInput[] createMany?: DeviceModelCreateManyVendorInputEnvelope connect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] } export type DeviceModelUpdateManyWithoutVendorNestedInput = { create?: XOR | DeviceModelCreateWithoutVendorInput[] | DeviceModelUncheckedCreateWithoutVendorInput[] connectOrCreate?: DeviceModelCreateOrConnectWithoutVendorInput | DeviceModelCreateOrConnectWithoutVendorInput[] upsert?: DeviceModelUpsertWithWhereUniqueWithoutVendorInput | DeviceModelUpsertWithWhereUniqueWithoutVendorInput[] createMany?: DeviceModelCreateManyVendorInputEnvelope set?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] disconnect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] delete?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] connect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] update?: DeviceModelUpdateWithWhereUniqueWithoutVendorInput | DeviceModelUpdateWithWhereUniqueWithoutVendorInput[] updateMany?: DeviceModelUpdateManyWithWhereWithoutVendorInput | DeviceModelUpdateManyWithWhereWithoutVendorInput[] deleteMany?: DeviceModelScalarWhereInput | DeviceModelScalarWhereInput[] } export type DeviceModelUncheckedUpdateManyWithoutVendorNestedInput = { create?: XOR | DeviceModelCreateWithoutVendorInput[] | DeviceModelUncheckedCreateWithoutVendorInput[] connectOrCreate?: DeviceModelCreateOrConnectWithoutVendorInput | DeviceModelCreateOrConnectWithoutVendorInput[] upsert?: DeviceModelUpsertWithWhereUniqueWithoutVendorInput | DeviceModelUpsertWithWhereUniqueWithoutVendorInput[] createMany?: DeviceModelCreateManyVendorInputEnvelope set?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] disconnect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] delete?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] connect?: DeviceModelWhereUniqueInput | DeviceModelWhereUniqueInput[] update?: DeviceModelUpdateWithWhereUniqueWithoutVendorInput | DeviceModelUpdateWithWhereUniqueWithoutVendorInput[] updateMany?: DeviceModelUpdateManyWithWhereWithoutVendorInput | DeviceModelUpdateManyWithWhereWithoutVendorInput[] deleteMany?: DeviceModelScalarWhereInput | DeviceModelScalarWhereInput[] } export type DeviceTypeCreateNestedOneWithoutDeviceModelInput = { create?: XOR connectOrCreate?: DeviceTypeCreateOrConnectWithoutDeviceModelInput connect?: DeviceTypeWhereUniqueInput } export type DeviceVendorCreateNestedOneWithoutDeviceModelInput = { create?: XOR connectOrCreate?: DeviceVendorCreateOrConnectWithoutDeviceModelInput connect?: DeviceVendorWhereUniqueInput } export type NetworkDeviceCreateNestedManyWithoutDeviceModelInput = { create?: XOR | NetworkDeviceCreateWithoutDeviceModelInput[] | NetworkDeviceUncheckedCreateWithoutDeviceModelInput[] connectOrCreate?: NetworkDeviceCreateOrConnectWithoutDeviceModelInput | NetworkDeviceCreateOrConnectWithoutDeviceModelInput[] createMany?: NetworkDeviceCreateManyDeviceModelInputEnvelope connect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] } export type NetworkDeviceUncheckedCreateNestedManyWithoutDeviceModelInput = { create?: XOR | NetworkDeviceCreateWithoutDeviceModelInput[] | NetworkDeviceUncheckedCreateWithoutDeviceModelInput[] connectOrCreate?: NetworkDeviceCreateOrConnectWithoutDeviceModelInput | NetworkDeviceCreateOrConnectWithoutDeviceModelInput[] createMany?: NetworkDeviceCreateManyDeviceModelInputEnvelope connect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] } export type DeviceTypeUpdateOneRequiredWithoutDeviceModelNestedInput = { create?: XOR connectOrCreate?: DeviceTypeCreateOrConnectWithoutDeviceModelInput upsert?: DeviceTypeUpsertWithoutDeviceModelInput connect?: DeviceTypeWhereUniqueInput update?: XOR, DeviceTypeUncheckedUpdateWithoutDeviceModelInput> } export type DeviceVendorUpdateOneRequiredWithoutDeviceModelNestedInput = { create?: XOR connectOrCreate?: DeviceVendorCreateOrConnectWithoutDeviceModelInput upsert?: DeviceVendorUpsertWithoutDeviceModelInput connect?: DeviceVendorWhereUniqueInput update?: XOR, DeviceVendorUncheckedUpdateWithoutDeviceModelInput> } export type NetworkDeviceUpdateManyWithoutDeviceModelNestedInput = { create?: XOR | NetworkDeviceCreateWithoutDeviceModelInput[] | NetworkDeviceUncheckedCreateWithoutDeviceModelInput[] connectOrCreate?: NetworkDeviceCreateOrConnectWithoutDeviceModelInput | NetworkDeviceCreateOrConnectWithoutDeviceModelInput[] upsert?: NetworkDeviceUpsertWithWhereUniqueWithoutDeviceModelInput | NetworkDeviceUpsertWithWhereUniqueWithoutDeviceModelInput[] createMany?: NetworkDeviceCreateManyDeviceModelInputEnvelope set?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] disconnect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] delete?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] connect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] update?: NetworkDeviceUpdateWithWhereUniqueWithoutDeviceModelInput | NetworkDeviceUpdateWithWhereUniqueWithoutDeviceModelInput[] updateMany?: NetworkDeviceUpdateManyWithWhereWithoutDeviceModelInput | NetworkDeviceUpdateManyWithWhereWithoutDeviceModelInput[] deleteMany?: NetworkDeviceScalarWhereInput | NetworkDeviceScalarWhereInput[] } export type NetworkDeviceUncheckedUpdateManyWithoutDeviceModelNestedInput = { create?: XOR | NetworkDeviceCreateWithoutDeviceModelInput[] | NetworkDeviceUncheckedCreateWithoutDeviceModelInput[] connectOrCreate?: NetworkDeviceCreateOrConnectWithoutDeviceModelInput | NetworkDeviceCreateOrConnectWithoutDeviceModelInput[] upsert?: NetworkDeviceUpsertWithWhereUniqueWithoutDeviceModelInput | NetworkDeviceUpsertWithWhereUniqueWithoutDeviceModelInput[] createMany?: NetworkDeviceCreateManyDeviceModelInputEnvelope set?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] disconnect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] delete?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] connect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] update?: NetworkDeviceUpdateWithWhereUniqueWithoutDeviceModelInput | NetworkDeviceUpdateWithWhereUniqueWithoutDeviceModelInput[] updateMany?: NetworkDeviceUpdateManyWithWhereWithoutDeviceModelInput | NetworkDeviceUpdateManyWithWhereWithoutDeviceModelInput[] deleteMany?: NetworkDeviceScalarWhereInput | NetworkDeviceScalarWhereInput[] } export type NetworkDeviceCreateNestedManyWithoutDeviceCredentialInput = { create?: XOR | NetworkDeviceCreateWithoutDeviceCredentialInput[] | NetworkDeviceUncheckedCreateWithoutDeviceCredentialInput[] connectOrCreate?: NetworkDeviceCreateOrConnectWithoutDeviceCredentialInput | NetworkDeviceCreateOrConnectWithoutDeviceCredentialInput[] createMany?: NetworkDeviceCreateManyDeviceCredentialInputEnvelope connect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] } export type NetworkDeviceUncheckedCreateNestedManyWithoutDeviceCredentialInput = { create?: XOR | NetworkDeviceCreateWithoutDeviceCredentialInput[] | NetworkDeviceUncheckedCreateWithoutDeviceCredentialInput[] connectOrCreate?: NetworkDeviceCreateOrConnectWithoutDeviceCredentialInput | NetworkDeviceCreateOrConnectWithoutDeviceCredentialInput[] createMany?: NetworkDeviceCreateManyDeviceCredentialInputEnvelope connect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] } export type NetworkDeviceUpdateManyWithoutDeviceCredentialNestedInput = { create?: XOR | NetworkDeviceCreateWithoutDeviceCredentialInput[] | NetworkDeviceUncheckedCreateWithoutDeviceCredentialInput[] connectOrCreate?: NetworkDeviceCreateOrConnectWithoutDeviceCredentialInput | NetworkDeviceCreateOrConnectWithoutDeviceCredentialInput[] upsert?: NetworkDeviceUpsertWithWhereUniqueWithoutDeviceCredentialInput | NetworkDeviceUpsertWithWhereUniqueWithoutDeviceCredentialInput[] createMany?: NetworkDeviceCreateManyDeviceCredentialInputEnvelope set?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] disconnect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] delete?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] connect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] update?: NetworkDeviceUpdateWithWhereUniqueWithoutDeviceCredentialInput | NetworkDeviceUpdateWithWhereUniqueWithoutDeviceCredentialInput[] updateMany?: NetworkDeviceUpdateManyWithWhereWithoutDeviceCredentialInput | NetworkDeviceUpdateManyWithWhereWithoutDeviceCredentialInput[] deleteMany?: NetworkDeviceScalarWhereInput | NetworkDeviceScalarWhereInput[] } export type NetworkDeviceUncheckedUpdateManyWithoutDeviceCredentialNestedInput = { create?: XOR | NetworkDeviceCreateWithoutDeviceCredentialInput[] | NetworkDeviceUncheckedCreateWithoutDeviceCredentialInput[] connectOrCreate?: NetworkDeviceCreateOrConnectWithoutDeviceCredentialInput | NetworkDeviceCreateOrConnectWithoutDeviceCredentialInput[] upsert?: NetworkDeviceUpsertWithWhereUniqueWithoutDeviceCredentialInput | NetworkDeviceUpsertWithWhereUniqueWithoutDeviceCredentialInput[] createMany?: NetworkDeviceCreateManyDeviceCredentialInputEnvelope set?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] disconnect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] delete?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] connect?: NetworkDeviceWhereUniqueInput | NetworkDeviceWhereUniqueInput[] update?: NetworkDeviceUpdateWithWhereUniqueWithoutDeviceCredentialInput | NetworkDeviceUpdateWithWhereUniqueWithoutDeviceCredentialInput[] updateMany?: NetworkDeviceUpdateManyWithWhereWithoutDeviceCredentialInput | NetworkDeviceUpdateManyWithWhereWithoutDeviceCredentialInput[] deleteMany?: NetworkDeviceScalarWhereInput | NetworkDeviceScalarWhereInput[] } export type DeviceCredentialCreateNestedOneWithoutNetworkDeviceInput = { create?: XOR connectOrCreate?: DeviceCredentialCreateOrConnectWithoutNetworkDeviceInput connect?: DeviceCredentialWhereUniqueInput } export type DeviceModelCreateNestedOneWithoutNetworkDeviceInput = { create?: XOR connectOrCreate?: DeviceModelCreateOrConnectWithoutNetworkDeviceInput connect?: DeviceModelWhereUniqueInput } export type StatInactiveOnuCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatInactiveOnuCreateWithoutNetworkDeviceInput[] | StatInactiveOnuUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatInactiveOnuCreateOrConnectWithoutNetworkDeviceInput | StatInactiveOnuCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatInactiveOnuCreateManyNetworkDeviceInputEnvelope connect?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] } export type StatActiveOnuCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatActiveOnuCreateWithoutNetworkDeviceInput[] | StatActiveOnuUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatActiveOnuCreateOrConnectWithoutNetworkDeviceInput | StatActiveOnuCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatActiveOnuCreateManyNetworkDeviceInputEnvelope connect?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] } export type StatOnuDeviceCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatOnuDeviceCreateWithoutNetworkDeviceInput[] | StatOnuDeviceUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatOnuDeviceCreateOrConnectWithoutNetworkDeviceInput | StatOnuDeviceCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatOnuDeviceCreateManyNetworkDeviceInputEnvelope connect?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] } export type StatOnuOpticalSignalCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatOnuOpticalSignalCreateWithoutNetworkDeviceInput[] | StatOnuOpticalSignalUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatOnuOpticalSignalCreateOrConnectWithoutNetworkDeviceInput | StatOnuOpticalSignalCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatOnuOpticalSignalCreateManyNetworkDeviceInputEnvelope connect?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] } export type StatInterfacesCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatInterfacesCreateWithoutNetworkDeviceInput[] | StatInterfacesUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatInterfacesCreateOrConnectWithoutNetworkDeviceInput | StatInterfacesCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatInterfacesCreateManyNetworkDeviceInputEnvelope connect?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] } export type NetworkDeviceVersionCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | NetworkDeviceVersionCreateWithoutNetworkDeviceInput[] | NetworkDeviceVersionUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: NetworkDeviceVersionCreateOrConnectWithoutNetworkDeviceInput | NetworkDeviceVersionCreateOrConnectWithoutNetworkDeviceInput[] createMany?: NetworkDeviceVersionCreateManyNetworkDeviceInputEnvelope connect?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] } export type StatInactiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatInactiveOnuCreateWithoutNetworkDeviceInput[] | StatInactiveOnuUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatInactiveOnuCreateOrConnectWithoutNetworkDeviceInput | StatInactiveOnuCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatInactiveOnuCreateManyNetworkDeviceInputEnvelope connect?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] } export type StatActiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatActiveOnuCreateWithoutNetworkDeviceInput[] | StatActiveOnuUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatActiveOnuCreateOrConnectWithoutNetworkDeviceInput | StatActiveOnuCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatActiveOnuCreateManyNetworkDeviceInputEnvelope connect?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] } export type StatOnuDeviceUncheckedCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatOnuDeviceCreateWithoutNetworkDeviceInput[] | StatOnuDeviceUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatOnuDeviceCreateOrConnectWithoutNetworkDeviceInput | StatOnuDeviceCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatOnuDeviceCreateManyNetworkDeviceInputEnvelope connect?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] } export type StatOnuOpticalSignalUncheckedCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatOnuOpticalSignalCreateWithoutNetworkDeviceInput[] | StatOnuOpticalSignalUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatOnuOpticalSignalCreateOrConnectWithoutNetworkDeviceInput | StatOnuOpticalSignalCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatOnuOpticalSignalCreateManyNetworkDeviceInputEnvelope connect?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] } export type StatInterfacesUncheckedCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | StatInterfacesCreateWithoutNetworkDeviceInput[] | StatInterfacesUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatInterfacesCreateOrConnectWithoutNetworkDeviceInput | StatInterfacesCreateOrConnectWithoutNetworkDeviceInput[] createMany?: StatInterfacesCreateManyNetworkDeviceInputEnvelope connect?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] } export type NetworkDeviceVersionUncheckedCreateNestedManyWithoutNetworkDeviceInput = { create?: XOR | NetworkDeviceVersionCreateWithoutNetworkDeviceInput[] | NetworkDeviceVersionUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: NetworkDeviceVersionCreateOrConnectWithoutNetworkDeviceInput | NetworkDeviceVersionCreateOrConnectWithoutNetworkDeviceInput[] createMany?: NetworkDeviceVersionCreateManyNetworkDeviceInputEnvelope connect?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type DeviceCredentialUpdateOneRequiredWithoutNetworkDeviceNestedInput = { create?: XOR connectOrCreate?: DeviceCredentialCreateOrConnectWithoutNetworkDeviceInput upsert?: DeviceCredentialUpsertWithoutNetworkDeviceInput connect?: DeviceCredentialWhereUniqueInput update?: XOR, DeviceCredentialUncheckedUpdateWithoutNetworkDeviceInput> } export type DeviceModelUpdateOneRequiredWithoutNetworkDeviceNestedInput = { create?: XOR connectOrCreate?: DeviceModelCreateOrConnectWithoutNetworkDeviceInput upsert?: DeviceModelUpsertWithoutNetworkDeviceInput connect?: DeviceModelWhereUniqueInput update?: XOR, DeviceModelUncheckedUpdateWithoutNetworkDeviceInput> } export type StatInactiveOnuUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatInactiveOnuCreateWithoutNetworkDeviceInput[] | StatInactiveOnuUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatInactiveOnuCreateOrConnectWithoutNetworkDeviceInput | StatInactiveOnuCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatInactiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatInactiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatInactiveOnuCreateManyNetworkDeviceInputEnvelope set?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] disconnect?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] delete?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] connect?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] update?: StatInactiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatInactiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatInactiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput | StatInactiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatInactiveOnuScalarWhereInput | StatInactiveOnuScalarWhereInput[] } export type StatActiveOnuUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatActiveOnuCreateWithoutNetworkDeviceInput[] | StatActiveOnuUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatActiveOnuCreateOrConnectWithoutNetworkDeviceInput | StatActiveOnuCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatActiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatActiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatActiveOnuCreateManyNetworkDeviceInputEnvelope set?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] disconnect?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] delete?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] connect?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] update?: StatActiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatActiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatActiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput | StatActiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatActiveOnuScalarWhereInput | StatActiveOnuScalarWhereInput[] } export type StatOnuDeviceUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatOnuDeviceCreateWithoutNetworkDeviceInput[] | StatOnuDeviceUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatOnuDeviceCreateOrConnectWithoutNetworkDeviceInput | StatOnuDeviceCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatOnuDeviceUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatOnuDeviceUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatOnuDeviceCreateManyNetworkDeviceInputEnvelope set?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] disconnect?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] delete?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] connect?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] update?: StatOnuDeviceUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatOnuDeviceUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatOnuDeviceUpdateManyWithWhereWithoutNetworkDeviceInput | StatOnuDeviceUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatOnuDeviceScalarWhereInput | StatOnuDeviceScalarWhereInput[] } export type StatOnuOpticalSignalUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatOnuOpticalSignalCreateWithoutNetworkDeviceInput[] | StatOnuOpticalSignalUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatOnuOpticalSignalCreateOrConnectWithoutNetworkDeviceInput | StatOnuOpticalSignalCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatOnuOpticalSignalUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatOnuOpticalSignalUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatOnuOpticalSignalCreateManyNetworkDeviceInputEnvelope set?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] disconnect?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] delete?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] connect?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] update?: StatOnuOpticalSignalUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatOnuOpticalSignalUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatOnuOpticalSignalUpdateManyWithWhereWithoutNetworkDeviceInput | StatOnuOpticalSignalUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatOnuOpticalSignalScalarWhereInput | StatOnuOpticalSignalScalarWhereInput[] } export type StatInterfacesUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatInterfacesCreateWithoutNetworkDeviceInput[] | StatInterfacesUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatInterfacesCreateOrConnectWithoutNetworkDeviceInput | StatInterfacesCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatInterfacesUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatInterfacesUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatInterfacesCreateManyNetworkDeviceInputEnvelope set?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] disconnect?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] delete?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] connect?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] update?: StatInterfacesUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatInterfacesUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatInterfacesUpdateManyWithWhereWithoutNetworkDeviceInput | StatInterfacesUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatInterfacesScalarWhereInput | StatInterfacesScalarWhereInput[] } export type NetworkDeviceVersionUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | NetworkDeviceVersionCreateWithoutNetworkDeviceInput[] | NetworkDeviceVersionUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: NetworkDeviceVersionCreateOrConnectWithoutNetworkDeviceInput | NetworkDeviceVersionCreateOrConnectWithoutNetworkDeviceInput[] upsert?: NetworkDeviceVersionUpsertWithWhereUniqueWithoutNetworkDeviceInput | NetworkDeviceVersionUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: NetworkDeviceVersionCreateManyNetworkDeviceInputEnvelope set?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] disconnect?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] delete?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] connect?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] update?: NetworkDeviceVersionUpdateWithWhereUniqueWithoutNetworkDeviceInput | NetworkDeviceVersionUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: NetworkDeviceVersionUpdateManyWithWhereWithoutNetworkDeviceInput | NetworkDeviceVersionUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: NetworkDeviceVersionScalarWhereInput | NetworkDeviceVersionScalarWhereInput[] } export type StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatInactiveOnuCreateWithoutNetworkDeviceInput[] | StatInactiveOnuUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatInactiveOnuCreateOrConnectWithoutNetworkDeviceInput | StatInactiveOnuCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatInactiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatInactiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatInactiveOnuCreateManyNetworkDeviceInputEnvelope set?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] disconnect?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] delete?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] connect?: StatInactiveOnuWhereUniqueInput | StatInactiveOnuWhereUniqueInput[] update?: StatInactiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatInactiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatInactiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput | StatInactiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatInactiveOnuScalarWhereInput | StatInactiveOnuScalarWhereInput[] } export type StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatActiveOnuCreateWithoutNetworkDeviceInput[] | StatActiveOnuUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatActiveOnuCreateOrConnectWithoutNetworkDeviceInput | StatActiveOnuCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatActiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatActiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatActiveOnuCreateManyNetworkDeviceInputEnvelope set?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] disconnect?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] delete?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] connect?: StatActiveOnuWhereUniqueInput | StatActiveOnuWhereUniqueInput[] update?: StatActiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatActiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatActiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput | StatActiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatActiveOnuScalarWhereInput | StatActiveOnuScalarWhereInput[] } export type StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatOnuDeviceCreateWithoutNetworkDeviceInput[] | StatOnuDeviceUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatOnuDeviceCreateOrConnectWithoutNetworkDeviceInput | StatOnuDeviceCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatOnuDeviceUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatOnuDeviceUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatOnuDeviceCreateManyNetworkDeviceInputEnvelope set?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] disconnect?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] delete?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] connect?: StatOnuDeviceWhereUniqueInput | StatOnuDeviceWhereUniqueInput[] update?: StatOnuDeviceUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatOnuDeviceUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatOnuDeviceUpdateManyWithWhereWithoutNetworkDeviceInput | StatOnuDeviceUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatOnuDeviceScalarWhereInput | StatOnuDeviceScalarWhereInput[] } export type StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatOnuOpticalSignalCreateWithoutNetworkDeviceInput[] | StatOnuOpticalSignalUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatOnuOpticalSignalCreateOrConnectWithoutNetworkDeviceInput | StatOnuOpticalSignalCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatOnuOpticalSignalUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatOnuOpticalSignalUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatOnuOpticalSignalCreateManyNetworkDeviceInputEnvelope set?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] disconnect?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] delete?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] connect?: StatOnuOpticalSignalWhereUniqueInput | StatOnuOpticalSignalWhereUniqueInput[] update?: StatOnuOpticalSignalUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatOnuOpticalSignalUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatOnuOpticalSignalUpdateManyWithWhereWithoutNetworkDeviceInput | StatOnuOpticalSignalUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatOnuOpticalSignalScalarWhereInput | StatOnuOpticalSignalScalarWhereInput[] } export type StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | StatInterfacesCreateWithoutNetworkDeviceInput[] | StatInterfacesUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: StatInterfacesCreateOrConnectWithoutNetworkDeviceInput | StatInterfacesCreateOrConnectWithoutNetworkDeviceInput[] upsert?: StatInterfacesUpsertWithWhereUniqueWithoutNetworkDeviceInput | StatInterfacesUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: StatInterfacesCreateManyNetworkDeviceInputEnvelope set?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] disconnect?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] delete?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] connect?: StatInterfacesWhereUniqueInput | StatInterfacesWhereUniqueInput[] update?: StatInterfacesUpdateWithWhereUniqueWithoutNetworkDeviceInput | StatInterfacesUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: StatInterfacesUpdateManyWithWhereWithoutNetworkDeviceInput | StatInterfacesUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: StatInterfacesScalarWhereInput | StatInterfacesScalarWhereInput[] } export type NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceNestedInput = { create?: XOR | NetworkDeviceVersionCreateWithoutNetworkDeviceInput[] | NetworkDeviceVersionUncheckedCreateWithoutNetworkDeviceInput[] connectOrCreate?: NetworkDeviceVersionCreateOrConnectWithoutNetworkDeviceInput | NetworkDeviceVersionCreateOrConnectWithoutNetworkDeviceInput[] upsert?: NetworkDeviceVersionUpsertWithWhereUniqueWithoutNetworkDeviceInput | NetworkDeviceVersionUpsertWithWhereUniqueWithoutNetworkDeviceInput[] createMany?: NetworkDeviceVersionCreateManyNetworkDeviceInputEnvelope set?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] disconnect?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] delete?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] connect?: NetworkDeviceVersionWhereUniqueInput | NetworkDeviceVersionWhereUniqueInput[] update?: NetworkDeviceVersionUpdateWithWhereUniqueWithoutNetworkDeviceInput | NetworkDeviceVersionUpdateWithWhereUniqueWithoutNetworkDeviceInput[] updateMany?: NetworkDeviceVersionUpdateManyWithWhereWithoutNetworkDeviceInput | NetworkDeviceVersionUpdateManyWithWhereWithoutNetworkDeviceInput[] deleteMany?: NetworkDeviceVersionScalarWhereInput | NetworkDeviceVersionScalarWhereInput[] } export type NetworkDeviceCreateNestedOneWithoutNetworkDeviceVersionInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutNetworkDeviceVersionInput connect?: NetworkDeviceWhereUniqueInput } export type NetworkDeviceUpdateOneRequiredWithoutNetworkDeviceVersionNestedInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutNetworkDeviceVersionInput upsert?: NetworkDeviceUpsertWithoutNetworkDeviceVersionInput connect?: NetworkDeviceWhereUniqueInput update?: XOR, NetworkDeviceUncheckedUpdateWithoutNetworkDeviceVersionInput> } export type NetworkDeviceCreateNestedOneWithoutStatOnuDeviceInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatOnuDeviceInput connect?: NetworkDeviceWhereUniqueInput } export type NetworkDeviceUpdateOneRequiredWithoutStatOnuDeviceNestedInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatOnuDeviceInput upsert?: NetworkDeviceUpsertWithoutStatOnuDeviceInput connect?: NetworkDeviceWhereUniqueInput update?: XOR, NetworkDeviceUncheckedUpdateWithoutStatOnuDeviceInput> } export type NetworkDeviceCreateNestedOneWithoutStatOnuOpticalSignalInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatOnuOpticalSignalInput connect?: NetworkDeviceWhereUniqueInput } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type NetworkDeviceUpdateOneRequiredWithoutStatOnuOpticalSignalNestedInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatOnuOpticalSignalInput upsert?: NetworkDeviceUpsertWithoutStatOnuOpticalSignalInput connect?: NetworkDeviceWhereUniqueInput update?: XOR, NetworkDeviceUncheckedUpdateWithoutStatOnuOpticalSignalInput> } export type NetworkDeviceCreateNestedOneWithoutStatActiveOnuInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatActiveOnuInput connect?: NetworkDeviceWhereUniqueInput } export type NetworkDeviceUpdateOneRequiredWithoutStatActiveOnuNestedInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatActiveOnuInput upsert?: NetworkDeviceUpsertWithoutStatActiveOnuInput connect?: NetworkDeviceWhereUniqueInput update?: XOR, NetworkDeviceUncheckedUpdateWithoutStatActiveOnuInput> } export type NetworkDeviceCreateNestedOneWithoutStatInactiveOnuInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatInactiveOnuInput connect?: NetworkDeviceWhereUniqueInput } export type NetworkDeviceUpdateOneRequiredWithoutStatInactiveOnuNestedInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatInactiveOnuInput upsert?: NetworkDeviceUpsertWithoutStatInactiveOnuInput connect?: NetworkDeviceWhereUniqueInput update?: XOR, NetworkDeviceUncheckedUpdateWithoutStatInactiveOnuInput> } export type NetworkDeviceCreateNestedOneWithoutStatInterfacesInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatInterfacesInput connect?: NetworkDeviceWhereUniqueInput } export type BigIntFieldUpdateOperationsInput = { set?: bigint | number increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type NetworkDeviceUpdateOneRequiredWithoutStatInterfacesNestedInput = { create?: XOR connectOrCreate?: NetworkDeviceCreateOrConnectWithoutStatInterfacesInput upsert?: NetworkDeviceUpsertWithoutStatInterfacesInput connect?: NetworkDeviceWhereUniqueInput update?: XOR, NetworkDeviceUncheckedUpdateWithoutStatInterfacesInput> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringFilter<$PrismaModel> | string } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedFloatFilter<$PrismaModel> _min?: NestedFloatFilter<$PrismaModel> _max?: NestedFloatFilter<$PrismaModel> } export type NestedBigIntFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntFilter<$PrismaModel> | bigint | number } export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedBigIntFilter<$PrismaModel> _min?: NestedBigIntFilter<$PrismaModel> _max?: NestedBigIntFilter<$PrismaModel> } export type DeviceModelCreateWithoutDeviceTypeInput = { createdAt?: Date | string updatedAt?: Date | string name: string vendor: DeviceVendorCreateNestedOneWithoutDeviceModelInput NetworkDevice?: NetworkDeviceCreateNestedManyWithoutDeviceModelInput } export type DeviceModelUncheckedCreateWithoutDeviceTypeInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string vendorId: number NetworkDevice?: NetworkDeviceUncheckedCreateNestedManyWithoutDeviceModelInput } export type DeviceModelCreateOrConnectWithoutDeviceTypeInput = { where: DeviceModelWhereUniqueInput create: XOR } export type DeviceModelCreateManyDeviceTypeInputEnvelope = { data: DeviceModelCreateManyDeviceTypeInput | DeviceModelCreateManyDeviceTypeInput[] skipDuplicates?: boolean } export type DeviceModelUpsertWithWhereUniqueWithoutDeviceTypeInput = { where: DeviceModelWhereUniqueInput update: XOR create: XOR } export type DeviceModelUpdateWithWhereUniqueWithoutDeviceTypeInput = { where: DeviceModelWhereUniqueInput data: XOR } export type DeviceModelUpdateManyWithWhereWithoutDeviceTypeInput = { where: DeviceModelScalarWhereInput data: XOR } export type DeviceModelScalarWhereInput = { AND?: DeviceModelScalarWhereInput | DeviceModelScalarWhereInput[] OR?: DeviceModelScalarWhereInput[] NOT?: DeviceModelScalarWhereInput | DeviceModelScalarWhereInput[] id?: IntFilter<"DeviceModel"> | number createdAt?: DateTimeFilter<"DeviceModel"> | Date | string updatedAt?: DateTimeFilter<"DeviceModel"> | Date | string name?: StringFilter<"DeviceModel"> | string vendorId?: IntFilter<"DeviceModel"> | number deviceTypeId?: IntFilter<"DeviceModel"> | number } export type DeviceModelCreateWithoutVendorInput = { createdAt?: Date | string updatedAt?: Date | string name: string deviceType: DeviceTypeCreateNestedOneWithoutDeviceModelInput NetworkDevice?: NetworkDeviceCreateNestedManyWithoutDeviceModelInput } export type DeviceModelUncheckedCreateWithoutVendorInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string deviceTypeId: number NetworkDevice?: NetworkDeviceUncheckedCreateNestedManyWithoutDeviceModelInput } export type DeviceModelCreateOrConnectWithoutVendorInput = { where: DeviceModelWhereUniqueInput create: XOR } export type DeviceModelCreateManyVendorInputEnvelope = { data: DeviceModelCreateManyVendorInput | DeviceModelCreateManyVendorInput[] skipDuplicates?: boolean } export type DeviceModelUpsertWithWhereUniqueWithoutVendorInput = { where: DeviceModelWhereUniqueInput update: XOR create: XOR } export type DeviceModelUpdateWithWhereUniqueWithoutVendorInput = { where: DeviceModelWhereUniqueInput data: XOR } export type DeviceModelUpdateManyWithWhereWithoutVendorInput = { where: DeviceModelScalarWhereInput data: XOR } export type DeviceTypeCreateWithoutDeviceModelInput = { createdAt?: Date | string updatedAt?: Date | string type?: string } export type DeviceTypeUncheckedCreateWithoutDeviceModelInput = { id?: number createdAt?: Date | string updatedAt?: Date | string type?: string } export type DeviceTypeCreateOrConnectWithoutDeviceModelInput = { where: DeviceTypeWhereUniqueInput create: XOR } export type DeviceVendorCreateWithoutDeviceModelInput = { createdAt?: Date | string updatedAt?: Date | string name: string } export type DeviceVendorUncheckedCreateWithoutDeviceModelInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string } export type DeviceVendorCreateOrConnectWithoutDeviceModelInput = { where: DeviceVendorWhereUniqueInput create: XOR } export type NetworkDeviceCreateWithoutDeviceModelInput = { createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string enabled?: boolean deviceCredential: DeviceCredentialCreateNestedOneWithoutNetworkDeviceInput StatInactiveOnu?: StatInactiveOnuCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUncheckedCreateWithoutDeviceModelInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceCredentialId: number enabled?: boolean StatInactiveOnu?: StatInactiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesUncheckedCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceCreateOrConnectWithoutDeviceModelInput = { where: NetworkDeviceWhereUniqueInput create: XOR } export type NetworkDeviceCreateManyDeviceModelInputEnvelope = { data: NetworkDeviceCreateManyDeviceModelInput | NetworkDeviceCreateManyDeviceModelInput[] skipDuplicates?: boolean } export type DeviceTypeUpsertWithoutDeviceModelInput = { update: XOR create: XOR where?: DeviceTypeWhereInput } export type DeviceTypeUpdateToOneWithWhereWithoutDeviceModelInput = { where?: DeviceTypeWhereInput data: XOR } export type DeviceTypeUpdateWithoutDeviceModelInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string type?: StringFieldUpdateOperationsInput | string } export type DeviceTypeUncheckedUpdateWithoutDeviceModelInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string type?: StringFieldUpdateOperationsInput | string } export type DeviceVendorUpsertWithoutDeviceModelInput = { update: XOR create: XOR where?: DeviceVendorWhereInput } export type DeviceVendorUpdateToOneWithWhereWithoutDeviceModelInput = { where?: DeviceVendorWhereInput data: XOR } export type DeviceVendorUpdateWithoutDeviceModelInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string } export type DeviceVendorUncheckedUpdateWithoutDeviceModelInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string } export type NetworkDeviceUpsertWithWhereUniqueWithoutDeviceModelInput = { where: NetworkDeviceWhereUniqueInput update: XOR create: XOR } export type NetworkDeviceUpdateWithWhereUniqueWithoutDeviceModelInput = { where: NetworkDeviceWhereUniqueInput data: XOR } export type NetworkDeviceUpdateManyWithWhereWithoutDeviceModelInput = { where: NetworkDeviceScalarWhereInput data: XOR } export type NetworkDeviceScalarWhereInput = { AND?: NetworkDeviceScalarWhereInput | NetworkDeviceScalarWhereInput[] OR?: NetworkDeviceScalarWhereInput[] NOT?: NetworkDeviceScalarWhereInput | NetworkDeviceScalarWhereInput[] id?: IntFilter<"NetworkDevice"> | number createdAt?: DateTimeFilter<"NetworkDevice"> | Date | string updatedAt?: DateTimeFilter<"NetworkDevice"> | Date | string accessIpAddressV4?: StringFilter<"NetworkDevice"> | string accessType?: StringFilter<"NetworkDevice"> | string accessPort?: StringFilter<"NetworkDevice"> | string description?: StringFilter<"NetworkDevice"> | string deviceModelId?: IntFilter<"NetworkDevice"> | number deviceCredentialId?: IntFilter<"NetworkDevice"> | number enabled?: BoolFilter<"NetworkDevice"> | boolean } export type NetworkDeviceCreateWithoutDeviceCredentialInput = { createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string enabled?: boolean deviceModel: DeviceModelCreateNestedOneWithoutNetworkDeviceInput StatInactiveOnu?: StatInactiveOnuCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUncheckedCreateWithoutDeviceCredentialInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number enabled?: boolean StatInactiveOnu?: StatInactiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesUncheckedCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceCreateOrConnectWithoutDeviceCredentialInput = { where: NetworkDeviceWhereUniqueInput create: XOR } export type NetworkDeviceCreateManyDeviceCredentialInputEnvelope = { data: NetworkDeviceCreateManyDeviceCredentialInput | NetworkDeviceCreateManyDeviceCredentialInput[] skipDuplicates?: boolean } export type NetworkDeviceUpsertWithWhereUniqueWithoutDeviceCredentialInput = { where: NetworkDeviceWhereUniqueInput update: XOR create: XOR } export type NetworkDeviceUpdateWithWhereUniqueWithoutDeviceCredentialInput = { where: NetworkDeviceWhereUniqueInput data: XOR } export type NetworkDeviceUpdateManyWithWhereWithoutDeviceCredentialInput = { where: NetworkDeviceScalarWhereInput data: XOR } export type DeviceCredentialCreateWithoutNetworkDeviceInput = { createdAt?: Date | string updatedAt?: Date | string username?: string password?: string } export type DeviceCredentialUncheckedCreateWithoutNetworkDeviceInput = { id?: number createdAt?: Date | string updatedAt?: Date | string username?: string password?: string } export type DeviceCredentialCreateOrConnectWithoutNetworkDeviceInput = { where: DeviceCredentialWhereUniqueInput create: XOR } export type DeviceModelCreateWithoutNetworkDeviceInput = { createdAt?: Date | string updatedAt?: Date | string name: string deviceType: DeviceTypeCreateNestedOneWithoutDeviceModelInput vendor: DeviceVendorCreateNestedOneWithoutDeviceModelInput } export type DeviceModelUncheckedCreateWithoutNetworkDeviceInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string vendorId: number deviceTypeId: number } export type DeviceModelCreateOrConnectWithoutNetworkDeviceInput = { where: DeviceModelWhereUniqueInput create: XOR } export type StatInactiveOnuCreateWithoutNetworkDeviceInput = { xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string deregReason: string lastRegister: Date | string lastDeregister: Date | string createdAt?: Date | string newest?: boolean } export type StatInactiveOnuUncheckedCreateWithoutNetworkDeviceInput = { id?: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string deregReason: string lastRegister: Date | string lastDeregister: Date | string createdAt?: Date | string newest?: boolean } export type StatInactiveOnuCreateOrConnectWithoutNetworkDeviceInput = { where: StatInactiveOnuWhereUniqueInput create: XOR } export type StatInactiveOnuCreateManyNetworkDeviceInputEnvelope = { data: StatInactiveOnuCreateManyNetworkDeviceInput | StatInactiveOnuCreateManyNetworkDeviceInput[] skipDuplicates?: boolean } export type StatActiveOnuCreateWithoutNetworkDeviceInput = { xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string lastRegister: Date | string lastDeregister: Date | string dereason: string alivetime: number createdAt?: Date | string newest?: boolean } export type StatActiveOnuUncheckedCreateWithoutNetworkDeviceInput = { id?: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string lastRegister: Date | string lastDeregister: Date | string dereason: string alivetime: number createdAt?: Date | string newest?: boolean } export type StatActiveOnuCreateOrConnectWithoutNetworkDeviceInput = { where: StatActiveOnuWhereUniqueInput create: XOR } export type StatActiveOnuCreateManyNetworkDeviceInputEnvelope = { data: StatActiveOnuCreateManyNetworkDeviceInput | StatActiveOnuCreateManyNetworkDeviceInput[] skipDuplicates?: boolean } export type StatOnuDeviceCreateWithoutNetworkDeviceInput = { vendorId: string modelId: string macAddressOnu?: string serialNumberOnu?: string description: string bindType: string status: string deregReason: string createdAt?: Date | string xponBoard: number xponPort: number xponInterface: number xponType?: string } export type StatOnuDeviceUncheckedCreateWithoutNetworkDeviceInput = { id?: number vendorId: string modelId: string macAddressOnu?: string serialNumberOnu?: string description: string bindType: string status: string deregReason: string createdAt?: Date | string xponBoard: number xponPort: number xponInterface: number xponType?: string } export type StatOnuDeviceCreateOrConnectWithoutNetworkDeviceInput = { where: StatOnuDeviceWhereUniqueInput create: XOR } export type StatOnuDeviceCreateManyNetworkDeviceInputEnvelope = { data: StatOnuDeviceCreateManyNetworkDeviceInput | StatOnuDeviceCreateManyNetworkDeviceInput[] skipDuplicates?: boolean } export type StatOnuOpticalSignalCreateWithoutNetworkDeviceInput = { xponBoard: number xponPort: number xponInterface: number rxPower: number txPower: number createdAt?: Date | string } export type StatOnuOpticalSignalUncheckedCreateWithoutNetworkDeviceInput = { id?: number xponBoard: number xponPort: number xponInterface: number rxPower: number txPower: number createdAt?: Date | string } export type StatOnuOpticalSignalCreateOrConnectWithoutNetworkDeviceInput = { where: StatOnuOpticalSignalWhereUniqueInput create: XOR } export type StatOnuOpticalSignalCreateManyNetworkDeviceInputEnvelope = { data: StatOnuOpticalSignalCreateManyNetworkDeviceInput | StatOnuOpticalSignalCreateManyNetworkDeviceInput[] skipDuplicates?: boolean } export type StatInterfacesCreateWithoutNetworkDeviceInput = { ifState?: string ifLineProtocolState?: string ifSpeedMb: number bandwidth: number description?: string hardwareType?: string fiveMinutesInRate?: bigint | number fiveMinutesOutRate?: bigint | number realtimeInRates?: bigint | number realtimeOutRates?: bigint | number peakInRates?: bigint | number peakOutRates?: bigint | number rxErrorCount?: number board: number port: number portType?: string xponInterfaceNum: number createdAt?: Date | string } export type StatInterfacesUncheckedCreateWithoutNetworkDeviceInput = { id?: number ifState?: string ifLineProtocolState?: string ifSpeedMb: number bandwidth: number description?: string hardwareType?: string fiveMinutesInRate?: bigint | number fiveMinutesOutRate?: bigint | number realtimeInRates?: bigint | number realtimeOutRates?: bigint | number peakInRates?: bigint | number peakOutRates?: bigint | number rxErrorCount?: number board: number port: number portType?: string xponInterfaceNum: number createdAt?: Date | string } export type StatInterfacesCreateOrConnectWithoutNetworkDeviceInput = { where: StatInterfacesWhereUniqueInput create: XOR } export type StatInterfacesCreateManyNetworkDeviceInputEnvelope = { data: StatInterfacesCreateManyNetworkDeviceInput | StatInterfacesCreateManyNetworkDeviceInput[] skipDuplicates?: boolean } export type NetworkDeviceVersionCreateWithoutNetworkDeviceInput = { createdAt?: Date | string updatedAt?: Date | string model: string softwareVersion: string hardwareVersion: string macAddress: string serialNumber: string } export type NetworkDeviceVersionUncheckedCreateWithoutNetworkDeviceInput = { id?: number createdAt?: Date | string updatedAt?: Date | string model: string softwareVersion: string hardwareVersion: string macAddress: string serialNumber: string } export type NetworkDeviceVersionCreateOrConnectWithoutNetworkDeviceInput = { where: NetworkDeviceVersionWhereUniqueInput create: XOR } export type NetworkDeviceVersionCreateManyNetworkDeviceInputEnvelope = { data: NetworkDeviceVersionCreateManyNetworkDeviceInput | NetworkDeviceVersionCreateManyNetworkDeviceInput[] skipDuplicates?: boolean } export type DeviceCredentialUpsertWithoutNetworkDeviceInput = { update: XOR create: XOR where?: DeviceCredentialWhereInput } export type DeviceCredentialUpdateToOneWithWhereWithoutNetworkDeviceInput = { where?: DeviceCredentialWhereInput data: XOR } export type DeviceCredentialUpdateWithoutNetworkDeviceInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type DeviceCredentialUncheckedUpdateWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string } export type DeviceModelUpsertWithoutNetworkDeviceInput = { update: XOR create: XOR where?: DeviceModelWhereInput } export type DeviceModelUpdateToOneWithWhereWithoutNetworkDeviceInput = { where?: DeviceModelWhereInput data: XOR } export type DeviceModelUpdateWithoutNetworkDeviceInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string deviceType?: DeviceTypeUpdateOneRequiredWithoutDeviceModelNestedInput vendor?: DeviceVendorUpdateOneRequiredWithoutDeviceModelNestedInput } export type DeviceModelUncheckedUpdateWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string vendorId?: IntFieldUpdateOperationsInput | number deviceTypeId?: IntFieldUpdateOperationsInput | number } export type StatInactiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput = { where: StatInactiveOnuWhereUniqueInput update: XOR create: XOR } export type StatInactiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput = { where: StatInactiveOnuWhereUniqueInput data: XOR } export type StatInactiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput = { where: StatInactiveOnuScalarWhereInput data: XOR } export type StatInactiveOnuScalarWhereInput = { AND?: StatInactiveOnuScalarWhereInput | StatInactiveOnuScalarWhereInput[] OR?: StatInactiveOnuScalarWhereInput[] NOT?: StatInactiveOnuScalarWhereInput | StatInactiveOnuScalarWhereInput[] id?: IntFilter<"StatInactiveOnu"> | number xponBoard?: IntFilter<"StatInactiveOnu"> | number xponPort?: IntFilter<"StatInactiveOnu"> | number xponInterface?: IntFilter<"StatInactiveOnu"> | number macAddressOnu?: StringFilter<"StatInactiveOnu"> | string serialNumberOnu?: StringFilter<"StatInactiveOnu"> | string status?: StringFilter<"StatInactiveOnu"> | string deregReason?: StringFilter<"StatInactiveOnu"> | string lastRegister?: DateTimeFilter<"StatInactiveOnu"> | Date | string lastDeregister?: DateTimeFilter<"StatInactiveOnu"> | Date | string createdAt?: DateTimeFilter<"StatInactiveOnu"> | Date | string networkDeviceId?: IntFilter<"StatInactiveOnu"> | number newest?: BoolFilter<"StatInactiveOnu"> | boolean } export type StatActiveOnuUpsertWithWhereUniqueWithoutNetworkDeviceInput = { where: StatActiveOnuWhereUniqueInput update: XOR create: XOR } export type StatActiveOnuUpdateWithWhereUniqueWithoutNetworkDeviceInput = { where: StatActiveOnuWhereUniqueInput data: XOR } export type StatActiveOnuUpdateManyWithWhereWithoutNetworkDeviceInput = { where: StatActiveOnuScalarWhereInput data: XOR } export type StatActiveOnuScalarWhereInput = { AND?: StatActiveOnuScalarWhereInput | StatActiveOnuScalarWhereInput[] OR?: StatActiveOnuScalarWhereInput[] NOT?: StatActiveOnuScalarWhereInput | StatActiveOnuScalarWhereInput[] id?: IntFilter<"StatActiveOnu"> | number xponBoard?: IntFilter<"StatActiveOnu"> | number xponPort?: IntFilter<"StatActiveOnu"> | number xponInterface?: IntFilter<"StatActiveOnu"> | number macAddressOnu?: StringFilter<"StatActiveOnu"> | string serialNumberOnu?: StringFilter<"StatActiveOnu"> | string status?: StringFilter<"StatActiveOnu"> | string lastRegister?: DateTimeFilter<"StatActiveOnu"> | Date | string lastDeregister?: DateTimeFilter<"StatActiveOnu"> | Date | string dereason?: StringFilter<"StatActiveOnu"> | string alivetime?: IntFilter<"StatActiveOnu"> | number networkDeviceId?: IntFilter<"StatActiveOnu"> | number createdAt?: DateTimeFilter<"StatActiveOnu"> | Date | string newest?: BoolFilter<"StatActiveOnu"> | boolean } export type StatOnuDeviceUpsertWithWhereUniqueWithoutNetworkDeviceInput = { where: StatOnuDeviceWhereUniqueInput update: XOR create: XOR } export type StatOnuDeviceUpdateWithWhereUniqueWithoutNetworkDeviceInput = { where: StatOnuDeviceWhereUniqueInput data: XOR } export type StatOnuDeviceUpdateManyWithWhereWithoutNetworkDeviceInput = { where: StatOnuDeviceScalarWhereInput data: XOR } export type StatOnuDeviceScalarWhereInput = { AND?: StatOnuDeviceScalarWhereInput | StatOnuDeviceScalarWhereInput[] OR?: StatOnuDeviceScalarWhereInput[] NOT?: StatOnuDeviceScalarWhereInput | StatOnuDeviceScalarWhereInput[] id?: IntFilter<"StatOnuDevice"> | number vendorId?: StringFilter<"StatOnuDevice"> | string modelId?: StringFilter<"StatOnuDevice"> | string macAddressOnu?: StringFilter<"StatOnuDevice"> | string serialNumberOnu?: StringFilter<"StatOnuDevice"> | string description?: StringFilter<"StatOnuDevice"> | string bindType?: StringFilter<"StatOnuDevice"> | string status?: StringFilter<"StatOnuDevice"> | string deregReason?: StringFilter<"StatOnuDevice"> | string createdAt?: DateTimeFilter<"StatOnuDevice"> | Date | string networkDeviceId?: IntFilter<"StatOnuDevice"> | number xponBoard?: IntFilter<"StatOnuDevice"> | number xponPort?: IntFilter<"StatOnuDevice"> | number xponInterface?: IntFilter<"StatOnuDevice"> | number xponType?: StringFilter<"StatOnuDevice"> | string } export type StatOnuOpticalSignalUpsertWithWhereUniqueWithoutNetworkDeviceInput = { where: StatOnuOpticalSignalWhereUniqueInput update: XOR create: XOR } export type StatOnuOpticalSignalUpdateWithWhereUniqueWithoutNetworkDeviceInput = { where: StatOnuOpticalSignalWhereUniqueInput data: XOR } export type StatOnuOpticalSignalUpdateManyWithWhereWithoutNetworkDeviceInput = { where: StatOnuOpticalSignalScalarWhereInput data: XOR } export type StatOnuOpticalSignalScalarWhereInput = { AND?: StatOnuOpticalSignalScalarWhereInput | StatOnuOpticalSignalScalarWhereInput[] OR?: StatOnuOpticalSignalScalarWhereInput[] NOT?: StatOnuOpticalSignalScalarWhereInput | StatOnuOpticalSignalScalarWhereInput[] id?: IntFilter<"StatOnuOpticalSignal"> | number xponBoard?: IntFilter<"StatOnuOpticalSignal"> | number xponPort?: IntFilter<"StatOnuOpticalSignal"> | number xponInterface?: IntFilter<"StatOnuOpticalSignal"> | number rxPower?: FloatFilter<"StatOnuOpticalSignal"> | number txPower?: FloatFilter<"StatOnuOpticalSignal"> | number createdAt?: DateTimeFilter<"StatOnuOpticalSignal"> | Date | string networkDeviceId?: IntFilter<"StatOnuOpticalSignal"> | number } export type StatInterfacesUpsertWithWhereUniqueWithoutNetworkDeviceInput = { where: StatInterfacesWhereUniqueInput update: XOR create: XOR } export type StatInterfacesUpdateWithWhereUniqueWithoutNetworkDeviceInput = { where: StatInterfacesWhereUniqueInput data: XOR } export type StatInterfacesUpdateManyWithWhereWithoutNetworkDeviceInput = { where: StatInterfacesScalarWhereInput data: XOR } export type StatInterfacesScalarWhereInput = { AND?: StatInterfacesScalarWhereInput | StatInterfacesScalarWhereInput[] OR?: StatInterfacesScalarWhereInput[] NOT?: StatInterfacesScalarWhereInput | StatInterfacesScalarWhereInput[] id?: IntFilter<"StatInterfaces"> | number ifState?: StringFilter<"StatInterfaces"> | string ifLineProtocolState?: StringFilter<"StatInterfaces"> | string ifSpeedMb?: IntFilter<"StatInterfaces"> | number bandwidth?: IntFilter<"StatInterfaces"> | number description?: StringFilter<"StatInterfaces"> | string hardwareType?: StringFilter<"StatInterfaces"> | string fiveMinutesInRate?: BigIntFilter<"StatInterfaces"> | bigint | number fiveMinutesOutRate?: BigIntFilter<"StatInterfaces"> | bigint | number realtimeInRates?: BigIntFilter<"StatInterfaces"> | bigint | number realtimeOutRates?: BigIntFilter<"StatInterfaces"> | bigint | number peakInRates?: BigIntFilter<"StatInterfaces"> | bigint | number peakOutRates?: BigIntFilter<"StatInterfaces"> | bigint | number rxErrorCount?: IntFilter<"StatInterfaces"> | number board?: IntFilter<"StatInterfaces"> | number port?: IntFilter<"StatInterfaces"> | number portType?: StringFilter<"StatInterfaces"> | string xponInterfaceNum?: IntFilter<"StatInterfaces"> | number createdAt?: DateTimeFilter<"StatInterfaces"> | Date | string networkDeviceId?: IntFilter<"StatInterfaces"> | number } export type NetworkDeviceVersionUpsertWithWhereUniqueWithoutNetworkDeviceInput = { where: NetworkDeviceVersionWhereUniqueInput update: XOR create: XOR } export type NetworkDeviceVersionUpdateWithWhereUniqueWithoutNetworkDeviceInput = { where: NetworkDeviceVersionWhereUniqueInput data: XOR } export type NetworkDeviceVersionUpdateManyWithWhereWithoutNetworkDeviceInput = { where: NetworkDeviceVersionScalarWhereInput data: XOR } export type NetworkDeviceVersionScalarWhereInput = { AND?: NetworkDeviceVersionScalarWhereInput | NetworkDeviceVersionScalarWhereInput[] OR?: NetworkDeviceVersionScalarWhereInput[] NOT?: NetworkDeviceVersionScalarWhereInput | NetworkDeviceVersionScalarWhereInput[] id?: IntFilter<"NetworkDeviceVersion"> | number networkDeviceId?: IntFilter<"NetworkDeviceVersion"> | number createdAt?: DateTimeFilter<"NetworkDeviceVersion"> | Date | string updatedAt?: DateTimeFilter<"NetworkDeviceVersion"> | Date | string model?: StringFilter<"NetworkDeviceVersion"> | string softwareVersion?: StringFilter<"NetworkDeviceVersion"> | string hardwareVersion?: StringFilter<"NetworkDeviceVersion"> | string macAddress?: StringFilter<"NetworkDeviceVersion"> | string serialNumber?: StringFilter<"NetworkDeviceVersion"> | string } export type NetworkDeviceCreateWithoutNetworkDeviceVersionInput = { createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string enabled?: boolean deviceCredential: DeviceCredentialCreateNestedOneWithoutNetworkDeviceInput deviceModel: DeviceModelCreateNestedOneWithoutNetworkDeviceInput StatInactiveOnu?: StatInactiveOnuCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUncheckedCreateWithoutNetworkDeviceVersionInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number deviceCredentialId: number enabled?: boolean StatInactiveOnu?: StatInactiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesUncheckedCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceCreateOrConnectWithoutNetworkDeviceVersionInput = { where: NetworkDeviceWhereUniqueInput create: XOR } export type NetworkDeviceUpsertWithoutNetworkDeviceVersionInput = { update: XOR create: XOR where?: NetworkDeviceWhereInput } export type NetworkDeviceUpdateToOneWithWhereWithoutNetworkDeviceVersionInput = { where?: NetworkDeviceWhereInput data: XOR } export type NetworkDeviceUpdateWithoutNetworkDeviceVersionInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean deviceCredential?: DeviceCredentialUpdateOneRequiredWithoutNetworkDeviceNestedInput deviceModel?: DeviceModelUpdateOneRequiredWithoutNetworkDeviceNestedInput StatInactiveOnu?: StatInactiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateWithoutNetworkDeviceVersionInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean StatInactiveOnu?: StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceCreateWithoutStatOnuDeviceInput = { createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string enabled?: boolean deviceCredential: DeviceCredentialCreateNestedOneWithoutNetworkDeviceInput deviceModel: DeviceModelCreateNestedOneWithoutNetworkDeviceInput StatInactiveOnu?: StatInactiveOnuCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUncheckedCreateWithoutStatOnuDeviceInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number deviceCredentialId: number enabled?: boolean StatInactiveOnu?: StatInactiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesUncheckedCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceCreateOrConnectWithoutStatOnuDeviceInput = { where: NetworkDeviceWhereUniqueInput create: XOR } export type NetworkDeviceUpsertWithoutStatOnuDeviceInput = { update: XOR create: XOR where?: NetworkDeviceWhereInput } export type NetworkDeviceUpdateToOneWithWhereWithoutStatOnuDeviceInput = { where?: NetworkDeviceWhereInput data: XOR } export type NetworkDeviceUpdateWithoutStatOnuDeviceInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean deviceCredential?: DeviceCredentialUpdateOneRequiredWithoutNetworkDeviceNestedInput deviceModel?: DeviceModelUpdateOneRequiredWithoutNetworkDeviceNestedInput StatInactiveOnu?: StatInactiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateWithoutStatOnuDeviceInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean StatInactiveOnu?: StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceCreateWithoutStatOnuOpticalSignalInput = { createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string enabled?: boolean deviceCredential: DeviceCredentialCreateNestedOneWithoutNetworkDeviceInput deviceModel: DeviceModelCreateNestedOneWithoutNetworkDeviceInput StatInactiveOnu?: StatInactiveOnuCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUncheckedCreateWithoutStatOnuOpticalSignalInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number deviceCredentialId: number enabled?: boolean StatInactiveOnu?: StatInactiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceUncheckedCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesUncheckedCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceCreateOrConnectWithoutStatOnuOpticalSignalInput = { where: NetworkDeviceWhereUniqueInput create: XOR } export type NetworkDeviceUpsertWithoutStatOnuOpticalSignalInput = { update: XOR create: XOR where?: NetworkDeviceWhereInput } export type NetworkDeviceUpdateToOneWithWhereWithoutStatOnuOpticalSignalInput = { where?: NetworkDeviceWhereInput data: XOR } export type NetworkDeviceUpdateWithoutStatOnuOpticalSignalInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean deviceCredential?: DeviceCredentialUpdateOneRequiredWithoutNetworkDeviceNestedInput deviceModel?: DeviceModelUpdateOneRequiredWithoutNetworkDeviceNestedInput StatInactiveOnu?: StatInactiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateWithoutStatOnuOpticalSignalInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean StatInactiveOnu?: StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceCreateWithoutStatActiveOnuInput = { createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string enabled?: boolean deviceCredential: DeviceCredentialCreateNestedOneWithoutNetworkDeviceInput deviceModel: DeviceModelCreateNestedOneWithoutNetworkDeviceInput StatInactiveOnu?: StatInactiveOnuCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUncheckedCreateWithoutStatActiveOnuInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number deviceCredentialId: number enabled?: boolean StatInactiveOnu?: StatInactiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesUncheckedCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceCreateOrConnectWithoutStatActiveOnuInput = { where: NetworkDeviceWhereUniqueInput create: XOR } export type NetworkDeviceUpsertWithoutStatActiveOnuInput = { update: XOR create: XOR where?: NetworkDeviceWhereInput } export type NetworkDeviceUpdateToOneWithWhereWithoutStatActiveOnuInput = { where?: NetworkDeviceWhereInput data: XOR } export type NetworkDeviceUpdateWithoutStatActiveOnuInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean deviceCredential?: DeviceCredentialUpdateOneRequiredWithoutNetworkDeviceNestedInput deviceModel?: DeviceModelUpdateOneRequiredWithoutNetworkDeviceNestedInput StatInactiveOnu?: StatInactiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateWithoutStatActiveOnuInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean StatInactiveOnu?: StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceCreateWithoutStatInactiveOnuInput = { createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string enabled?: boolean deviceCredential: DeviceCredentialCreateNestedOneWithoutNetworkDeviceInput deviceModel: DeviceModelCreateNestedOneWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUncheckedCreateWithoutStatInactiveOnuInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number deviceCredentialId: number enabled?: boolean StatActiveOnu?: StatActiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedCreateNestedManyWithoutNetworkDeviceInput StatInterfaces?: StatInterfacesUncheckedCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceCreateOrConnectWithoutStatInactiveOnuInput = { where: NetworkDeviceWhereUniqueInput create: XOR } export type NetworkDeviceUpsertWithoutStatInactiveOnuInput = { update: XOR create: XOR where?: NetworkDeviceWhereInput } export type NetworkDeviceUpdateToOneWithWhereWithoutStatInactiveOnuInput = { where?: NetworkDeviceWhereInput data: XOR } export type NetworkDeviceUpdateWithoutStatInactiveOnuInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean deviceCredential?: DeviceCredentialUpdateOneRequiredWithoutNetworkDeviceNestedInput deviceModel?: DeviceModelUpdateOneRequiredWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateWithoutStatInactiveOnuInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean StatActiveOnu?: StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceCreateWithoutStatInterfacesInput = { createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string enabled?: boolean deviceCredential: DeviceCredentialCreateNestedOneWithoutNetworkDeviceInput deviceModel: DeviceModelCreateNestedOneWithoutNetworkDeviceInput StatInactiveOnu?: StatInactiveOnuCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceUncheckedCreateWithoutStatInterfacesInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number deviceCredentialId: number enabled?: boolean StatInactiveOnu?: StatInactiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatActiveOnu?: StatActiveOnuUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuDevice?: StatOnuDeviceUncheckedCreateNestedManyWithoutNetworkDeviceInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedCreateNestedManyWithoutNetworkDeviceInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedCreateNestedManyWithoutNetworkDeviceInput } export type NetworkDeviceCreateOrConnectWithoutStatInterfacesInput = { where: NetworkDeviceWhereUniqueInput create: XOR } export type NetworkDeviceUpsertWithoutStatInterfacesInput = { update: XOR create: XOR where?: NetworkDeviceWhereInput } export type NetworkDeviceUpdateToOneWithWhereWithoutStatInterfacesInput = { where?: NetworkDeviceWhereInput data: XOR } export type NetworkDeviceUpdateWithoutStatInterfacesInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean deviceCredential?: DeviceCredentialUpdateOneRequiredWithoutNetworkDeviceNestedInput deviceModel?: DeviceModelUpdateOneRequiredWithoutNetworkDeviceNestedInput StatInactiveOnu?: StatInactiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateWithoutStatInterfacesInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean StatInactiveOnu?: StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceNestedInput } export type DeviceModelCreateManyDeviceTypeInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string vendorId: number } export type DeviceModelUpdateWithoutDeviceTypeInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string vendor?: DeviceVendorUpdateOneRequiredWithoutDeviceModelNestedInput NetworkDevice?: NetworkDeviceUpdateManyWithoutDeviceModelNestedInput } export type DeviceModelUncheckedUpdateWithoutDeviceTypeInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string vendorId?: IntFieldUpdateOperationsInput | number NetworkDevice?: NetworkDeviceUncheckedUpdateManyWithoutDeviceModelNestedInput } export type DeviceModelUncheckedUpdateManyWithoutDeviceTypeInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string vendorId?: IntFieldUpdateOperationsInput | number } export type DeviceModelCreateManyVendorInput = { id?: number createdAt?: Date | string updatedAt?: Date | string name: string deviceTypeId: number } export type DeviceModelUpdateWithoutVendorInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string deviceType?: DeviceTypeUpdateOneRequiredWithoutDeviceModelNestedInput NetworkDevice?: NetworkDeviceUpdateManyWithoutDeviceModelNestedInput } export type DeviceModelUncheckedUpdateWithoutVendorInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string deviceTypeId?: IntFieldUpdateOperationsInput | number NetworkDevice?: NetworkDeviceUncheckedUpdateManyWithoutDeviceModelNestedInput } export type DeviceModelUncheckedUpdateManyWithoutVendorInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string name?: StringFieldUpdateOperationsInput | string deviceTypeId?: IntFieldUpdateOperationsInput | number } export type NetworkDeviceCreateManyDeviceModelInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceCredentialId: number enabled?: boolean } export type NetworkDeviceUpdateWithoutDeviceModelInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean deviceCredential?: DeviceCredentialUpdateOneRequiredWithoutNetworkDeviceNestedInput StatInactiveOnu?: StatInactiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateWithoutDeviceModelInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean StatInactiveOnu?: StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateManyWithoutDeviceModelInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceCredentialId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean } export type NetworkDeviceCreateManyDeviceCredentialInput = { id?: number createdAt?: Date | string updatedAt?: Date | string accessIpAddressV4: string accessType?: string accessPort?: string description?: string deviceModelId: number enabled?: boolean } export type NetworkDeviceUpdateWithoutDeviceCredentialInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string enabled?: BoolFieldUpdateOperationsInput | boolean deviceModel?: DeviceModelUpdateOneRequiredWithoutNetworkDeviceNestedInput StatInactiveOnu?: StatInactiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateWithoutDeviceCredentialInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean StatInactiveOnu?: StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatActiveOnu?: StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuDevice?: StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatOnuOpticalSignal?: StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceNestedInput StatInterfaces?: StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceNestedInput NetworkDeviceVersion?: NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceNestedInput } export type NetworkDeviceUncheckedUpdateManyWithoutDeviceCredentialInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string accessIpAddressV4?: StringFieldUpdateOperationsInput | string accessType?: StringFieldUpdateOperationsInput | string accessPort?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string deviceModelId?: IntFieldUpdateOperationsInput | number enabled?: BoolFieldUpdateOperationsInput | boolean } export type StatInactiveOnuCreateManyNetworkDeviceInput = { id?: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string deregReason: string lastRegister: Date | string lastDeregister: Date | string createdAt?: Date | string newest?: boolean } export type StatActiveOnuCreateManyNetworkDeviceInput = { id?: number xponBoard: number xponPort: number xponInterface: number macAddressOnu: string serialNumberOnu?: string status: string lastRegister: Date | string lastDeregister: Date | string dereason: string alivetime: number createdAt?: Date | string newest?: boolean } export type StatOnuDeviceCreateManyNetworkDeviceInput = { id?: number vendorId: string modelId: string macAddressOnu?: string serialNumberOnu?: string description: string bindType: string status: string deregReason: string createdAt?: Date | string xponBoard: number xponPort: number xponInterface: number xponType?: string } export type StatOnuOpticalSignalCreateManyNetworkDeviceInput = { id?: number xponBoard: number xponPort: number xponInterface: number rxPower: number txPower: number createdAt?: Date | string } export type StatInterfacesCreateManyNetworkDeviceInput = { id?: number ifState?: string ifLineProtocolState?: string ifSpeedMb: number bandwidth: number description?: string hardwareType?: string fiveMinutesInRate?: bigint | number fiveMinutesOutRate?: bigint | number realtimeInRates?: bigint | number realtimeOutRates?: bigint | number peakInRates?: bigint | number peakOutRates?: bigint | number rxErrorCount?: number board: number port: number portType?: string xponInterfaceNum: number createdAt?: Date | string } export type NetworkDeviceVersionCreateManyNetworkDeviceInput = { id?: number createdAt?: Date | string updatedAt?: Date | string model: string softwareVersion: string hardwareVersion: string macAddress: string serialNumber: string } export type StatInactiveOnuUpdateWithoutNetworkDeviceInput = { xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatInactiveOnuUncheckedUpdateWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatInactiveOnuUncheckedUpdateManyWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatActiveOnuUpdateWithoutNetworkDeviceInput = { xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string dereason?: StringFieldUpdateOperationsInput | string alivetime?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatActiveOnuUncheckedUpdateWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string dereason?: StringFieldUpdateOperationsInput | string alivetime?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatActiveOnuUncheckedUpdateManyWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string lastRegister?: DateTimeFieldUpdateOperationsInput | Date | string lastDeregister?: DateTimeFieldUpdateOperationsInput | Date | string dereason?: StringFieldUpdateOperationsInput | string alivetime?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string newest?: BoolFieldUpdateOperationsInput | boolean } export type StatOnuDeviceUpdateWithoutNetworkDeviceInput = { vendorId?: StringFieldUpdateOperationsInput | string modelId?: StringFieldUpdateOperationsInput | string macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string bindType?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number xponType?: StringFieldUpdateOperationsInput | string } export type StatOnuDeviceUncheckedUpdateWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number vendorId?: StringFieldUpdateOperationsInput | string modelId?: StringFieldUpdateOperationsInput | string macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string bindType?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number xponType?: StringFieldUpdateOperationsInput | string } export type StatOnuDeviceUncheckedUpdateManyWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number vendorId?: StringFieldUpdateOperationsInput | string modelId?: StringFieldUpdateOperationsInput | string macAddressOnu?: StringFieldUpdateOperationsInput | string serialNumberOnu?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string bindType?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string deregReason?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number xponType?: StringFieldUpdateOperationsInput | string } export type StatOnuOpticalSignalUpdateWithoutNetworkDeviceInput = { xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number rxPower?: FloatFieldUpdateOperationsInput | number txPower?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StatOnuOpticalSignalUncheckedUpdateWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number rxPower?: FloatFieldUpdateOperationsInput | number txPower?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StatOnuOpticalSignalUncheckedUpdateManyWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number xponBoard?: IntFieldUpdateOperationsInput | number xponPort?: IntFieldUpdateOperationsInput | number xponInterface?: IntFieldUpdateOperationsInput | number rxPower?: FloatFieldUpdateOperationsInput | number txPower?: FloatFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StatInterfacesUpdateWithoutNetworkDeviceInput = { ifState?: StringFieldUpdateOperationsInput | string ifLineProtocolState?: StringFieldUpdateOperationsInput | string ifSpeedMb?: IntFieldUpdateOperationsInput | number bandwidth?: IntFieldUpdateOperationsInput | number description?: StringFieldUpdateOperationsInput | string hardwareType?: StringFieldUpdateOperationsInput | string fiveMinutesInRate?: BigIntFieldUpdateOperationsInput | bigint | number fiveMinutesOutRate?: BigIntFieldUpdateOperationsInput | bigint | number realtimeInRates?: BigIntFieldUpdateOperationsInput | bigint | number realtimeOutRates?: BigIntFieldUpdateOperationsInput | bigint | number peakInRates?: BigIntFieldUpdateOperationsInput | bigint | number peakOutRates?: BigIntFieldUpdateOperationsInput | bigint | number rxErrorCount?: IntFieldUpdateOperationsInput | number board?: IntFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number portType?: StringFieldUpdateOperationsInput | string xponInterfaceNum?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StatInterfacesUncheckedUpdateWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number ifState?: StringFieldUpdateOperationsInput | string ifLineProtocolState?: StringFieldUpdateOperationsInput | string ifSpeedMb?: IntFieldUpdateOperationsInput | number bandwidth?: IntFieldUpdateOperationsInput | number description?: StringFieldUpdateOperationsInput | string hardwareType?: StringFieldUpdateOperationsInput | string fiveMinutesInRate?: BigIntFieldUpdateOperationsInput | bigint | number fiveMinutesOutRate?: BigIntFieldUpdateOperationsInput | bigint | number realtimeInRates?: BigIntFieldUpdateOperationsInput | bigint | number realtimeOutRates?: BigIntFieldUpdateOperationsInput | bigint | number peakInRates?: BigIntFieldUpdateOperationsInput | bigint | number peakOutRates?: BigIntFieldUpdateOperationsInput | bigint | number rxErrorCount?: IntFieldUpdateOperationsInput | number board?: IntFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number portType?: StringFieldUpdateOperationsInput | string xponInterfaceNum?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StatInterfacesUncheckedUpdateManyWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number ifState?: StringFieldUpdateOperationsInput | string ifLineProtocolState?: StringFieldUpdateOperationsInput | string ifSpeedMb?: IntFieldUpdateOperationsInput | number bandwidth?: IntFieldUpdateOperationsInput | number description?: StringFieldUpdateOperationsInput | string hardwareType?: StringFieldUpdateOperationsInput | string fiveMinutesInRate?: BigIntFieldUpdateOperationsInput | bigint | number fiveMinutesOutRate?: BigIntFieldUpdateOperationsInput | bigint | number realtimeInRates?: BigIntFieldUpdateOperationsInput | bigint | number realtimeOutRates?: BigIntFieldUpdateOperationsInput | bigint | number peakInRates?: BigIntFieldUpdateOperationsInput | bigint | number peakOutRates?: BigIntFieldUpdateOperationsInput | bigint | number rxErrorCount?: IntFieldUpdateOperationsInput | number board?: IntFieldUpdateOperationsInput | number port?: IntFieldUpdateOperationsInput | number portType?: StringFieldUpdateOperationsInput | string xponInterfaceNum?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type NetworkDeviceVersionUpdateWithoutNetworkDeviceInput = { createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string model?: StringFieldUpdateOperationsInput | string softwareVersion?: StringFieldUpdateOperationsInput | string hardwareVersion?: StringFieldUpdateOperationsInput | string macAddress?: StringFieldUpdateOperationsInput | string serialNumber?: StringFieldUpdateOperationsInput | string } export type NetworkDeviceVersionUncheckedUpdateWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string model?: StringFieldUpdateOperationsInput | string softwareVersion?: StringFieldUpdateOperationsInput | string hardwareVersion?: StringFieldUpdateOperationsInput | string macAddress?: StringFieldUpdateOperationsInput | string serialNumber?: StringFieldUpdateOperationsInput | string } export type NetworkDeviceVersionUncheckedUpdateManyWithoutNetworkDeviceInput = { id?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string model?: StringFieldUpdateOperationsInput | string softwareVersion?: StringFieldUpdateOperationsInput | string hardwareVersion?: StringFieldUpdateOperationsInput | string macAddress?: StringFieldUpdateOperationsInput | string serialNumber?: StringFieldUpdateOperationsInput | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }