/** * Client **/ import * as runtime from '@prisma/client/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 User * */ export type User = $Result.DefaultSelection /** * Model Calendar * */ export type Calendar = $Result.DefaultSelection /** * Model Event * */ export type Event = $Result.DefaultSelection /** * Model MailCredentials * */ export type MailCredentials = $Result.DefaultSelection /** * Model WebDAVCredentials * */ export type WebDAVCredentials = $Result.DefaultSelection /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more Users * const users = await prisma.user.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 Users * const users = await prisma.user.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.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate; /** * `prisma.calendar`: Exposes CRUD operations for the **Calendar** model. * Example usage: * ```ts * // Fetch zero or more Calendars * const calendars = await prisma.calendar.findMany() * ``` */ get calendar(): Prisma.CalendarDelegate; /** * `prisma.event`: Exposes CRUD operations for the **Event** model. * Example usage: * ```ts * // Fetch zero or more Events * const events = await prisma.event.findMany() * ``` */ get event(): Prisma.EventDelegate; /** * `prisma.mailCredentials`: Exposes CRUD operations for the **MailCredentials** model. * Example usage: * ```ts * // Fetch zero or more MailCredentials * const mailCredentials = await prisma.mailCredentials.findMany() * ``` */ get mailCredentials(): Prisma.MailCredentialsDelegate; /** * `prisma.webDAVCredentials`: Exposes CRUD operations for the **WebDAVCredentials** model. * Example usage: * ```ts * // Fetch zero or more WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.findMany() * ``` */ get webDAVCredentials(): Prisma.WebDAVCredentialsDelegate; } 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.4.1 * Query Engine version: a9055b89e58b4b5bfb59600785423b1db3d0e75d */ 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: { User: 'User', Calendar: 'Calendar', Event: 'Event', MailCredentials: 'MailCredentials', WebDAVCredentials: 'WebDAVCredentials' }; 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: "user" | "calendar" | "event" | "mailCredentials" | "webDAVCredentials" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UserUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } Calendar: { payload: Prisma.$CalendarPayload fields: Prisma.CalendarFieldRefs operations: { findUnique: { args: Prisma.CalendarFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CalendarFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CalendarFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CalendarFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CalendarFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CalendarCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CalendarCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CalendarCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CalendarDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CalendarUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CalendarDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CalendarUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.CalendarUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.CalendarUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CalendarAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CalendarGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CalendarCountArgs result: $Utils.Optional | number } } } Event: { payload: Prisma.$EventPayload fields: Prisma.EventFieldRefs operations: { findUnique: { args: Prisma.EventFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EventFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EventFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EventFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EventFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EventCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EventCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EventCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EventDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EventUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EventDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EventUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.EventUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.EventUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EventAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EventGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EventCountArgs result: $Utils.Optional | number } } } MailCredentials: { payload: Prisma.$MailCredentialsPayload fields: Prisma.MailCredentialsFieldRefs operations: { findUnique: { args: Prisma.MailCredentialsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.MailCredentialsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.MailCredentialsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.MailCredentialsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.MailCredentialsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.MailCredentialsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.MailCredentialsCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.MailCredentialsCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.MailCredentialsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.MailCredentialsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.MailCredentialsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.MailCredentialsUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.MailCredentialsUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.MailCredentialsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.MailCredentialsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.MailCredentialsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.MailCredentialsCountArgs result: $Utils.Optional | number } } } WebDAVCredentials: { payload: Prisma.$WebDAVCredentialsPayload fields: Prisma.WebDAVCredentialsFieldRefs operations: { findUnique: { args: Prisma.WebDAVCredentialsFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.WebDAVCredentialsFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.WebDAVCredentialsFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.WebDAVCredentialsFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.WebDAVCredentialsFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.WebDAVCredentialsCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.WebDAVCredentialsCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.WebDAVCredentialsCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.WebDAVCredentialsDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.WebDAVCredentialsUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.WebDAVCredentialsDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.WebDAVCredentialsUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.WebDAVCredentialsUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.WebDAVCredentialsUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.WebDAVCredentialsAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.WebDAVCredentialsGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.WebDAVCredentialsCountArgs 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 = { user?: UserOmit calendar?: CalendarOmit event?: EventOmit mailCredentials?: MailCredentialsOmit webDAVCredentials?: WebDAVCredentialsOmit } /* 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 UserCountOutputType */ export type UserCountOutputType = { calendars: number events: number } export type UserCountOutputTypeSelect = { calendars?: boolean | UserCountOutputTypeCountCalendarsArgs events?: boolean | UserCountOutputTypeCountEventsArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountCalendarsArgs = { where?: CalendarWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountEventsArgs = { where?: EventWhereInput } /** * Count Type CalendarCountOutputType */ export type CalendarCountOutputType = { events: number } export type CalendarCountOutputTypeSelect = { events?: boolean | CalendarCountOutputTypeCountEventsArgs } // Custom InputTypes /** * CalendarCountOutputType without action */ export type CalendarCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the CalendarCountOutputType */ select?: CalendarCountOutputTypeSelect | null } /** * CalendarCountOutputType without action */ export type CalendarCountOutputTypeCountEventsArgs = { where?: EventWhereInput } /** * Models */ /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserMinAggregateOutputType = { id: string | null email: string | null password: string | null createdAt: Date | null updatedAt: Date | null } export type UserMaxAggregateOutputType = { id: string | null email: string | null password: string | null createdAt: Date | null updatedAt: Date | null } export type UserCountAggregateOutputType = { id: number email: number password: number createdAt: number updatedAt: number _all: number } export type UserMinAggregateInputType = { id?: true email?: true password?: true createdAt?: true updatedAt?: true } export type UserMaxAggregateInputType = { id?: true email?: true password?: true createdAt?: true updatedAt?: true } export type UserCountAggregateInputType = { id?: true email?: true password?: true createdAt?: true updatedAt?: true _all?: true } export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Users **/ _count?: true | UserCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserMaxAggregateInputType } export type GetUserAggregateType = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: string email: string password: string createdAt: Date updatedAt: Date _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean email?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean calendars?: boolean | User$calendarsArgs events?: boolean | User$eventsArgs mailCredentials?: boolean | User$mailCredentialsArgs webdavCredentials?: boolean | User$webdavCredentialsArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean email?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["user"]> export type UserSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean email?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean email?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean } export type UserOmit = $Extensions.GetOmit<"id" | "email" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]> export type UserInclude = { calendars?: boolean | User$calendarsArgs events?: boolean | User$eventsArgs mailCredentials?: boolean | User$mailCredentialsArgs webdavCredentials?: boolean | User$webdavCredentialsArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} export type UserIncludeUpdateManyAndReturn = {} export type $UserPayload = { name: "User" objects: { calendars: Prisma.$CalendarPayload[] events: Prisma.$EventPayload[] mailCredentials: Prisma.$MailCredentialsPayload | null webdavCredentials: Prisma.$WebDAVCredentialsPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string email: string password: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one User that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first User 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 {UserFindFirstArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first User 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 {UserFindFirstOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more Users 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 {UserFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Users * const users = await prisma.user.findMany() * * // Get first 10 Users * const users = await prisma.user.findMany({ take: 10 }) * * // Only select the `id` * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a User. * @param {UserCreateArgs} args - Arguments to create a User. * @example * // Create one User * const User = await prisma.user.create({ * data: { * // ... data to create a User * } * }) * */ create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Users and returns the data saved in the database. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const userWithIdOnly = await prisma.user.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 User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prisma.user.delete({ * where: { * // ... filter to delete one User * } * }) * */ delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one User. * @param {UserUpdateArgs} args - Arguments to update one User. * @example * // Update one User * const user = await prisma.user.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.user.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users and returns the data updated in the database. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. * @example * // Update many Users * const user = await prisma.user.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Users and only return the `id` * const userWithIdOnly = await prisma.user.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 User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User * const user = await prisma.user.upsert({ * create: { * // ... data to create a User * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the User we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserCountArgs} args - Arguments to filter Users to count. * @example * // Count the number of Users * const count = await prisma.user.count({ * where: { * // ... the filter for the Users 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 User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAggregateArgs} 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 User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupByArgs} 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 UserGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['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 ? GetUserGroupByPayload : Prisma.PrismaPromise /** * Fields of the User model */ readonly fields: UserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for User. * 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__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" calendars = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> events = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> mailCredentials = {}>(args?: Subset>): Prisma__MailCredentialsClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | null, null, ExtArgs, ClientOptions> webdavCredentials = {}>(args?: Subset>): Prisma__WebDAVCredentialsClient<$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 User model */ interface UserFieldRefs { readonly id: FieldRef<"User", 'String'> readonly email: FieldRef<"User", 'String'> readonly password: FieldRef<"User", 'String'> readonly createdAt: FieldRef<"User", 'DateTime'> readonly updatedAt: FieldRef<"User", 'DateTime'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectUpdateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput /** * Limit how many Users to delete. */ limit?: number } /** * User.calendars */ export type User$calendarsArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null where?: CalendarWhereInput orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[] cursor?: CalendarWhereUniqueInput take?: number skip?: number distinct?: CalendarScalarFieldEnum | CalendarScalarFieldEnum[] } /** * User.events */ export type User$eventsArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null where?: EventWhereInput orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] cursor?: EventWhereUniqueInput take?: number skip?: number distinct?: EventScalarFieldEnum | EventScalarFieldEnum[] } /** * User.mailCredentials */ export type User$mailCredentialsArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null where?: MailCredentialsWhereInput } /** * User.webdavCredentials */ export type User$webdavCredentialsArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null where?: WebDAVCredentialsWhereInput } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model Calendar */ export type AggregateCalendar = { _count: CalendarCountAggregateOutputType | null _min: CalendarMinAggregateOutputType | null _max: CalendarMaxAggregateOutputType | null } export type CalendarMinAggregateOutputType = { id: string | null name: string | null color: string | null description: string | null userId: string | null createdAt: Date | null updatedAt: Date | null } export type CalendarMaxAggregateOutputType = { id: string | null name: string | null color: string | null description: string | null userId: string | null createdAt: Date | null updatedAt: Date | null } export type CalendarCountAggregateOutputType = { id: number name: number color: number description: number userId: number createdAt: number updatedAt: number _all: number } export type CalendarMinAggregateInputType = { id?: true name?: true color?: true description?: true userId?: true createdAt?: true updatedAt?: true } export type CalendarMaxAggregateInputType = { id?: true name?: true color?: true description?: true userId?: true createdAt?: true updatedAt?: true } export type CalendarCountAggregateInputType = { id?: true name?: true color?: true description?: true userId?: true createdAt?: true updatedAt?: true _all?: true } export type CalendarAggregateArgs = { /** * Filter which Calendar to aggregate. */ where?: CalendarWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Calendars to fetch. */ orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CalendarWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Calendars 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` Calendars. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Calendars **/ _count?: true | CalendarCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CalendarMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CalendarMaxAggregateInputType } export type GetCalendarAggregateType = { [P in keyof T & keyof AggregateCalendar]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CalendarGroupByArgs = { where?: CalendarWhereInput orderBy?: CalendarOrderByWithAggregationInput | CalendarOrderByWithAggregationInput[] by: CalendarScalarFieldEnum[] | CalendarScalarFieldEnum having?: CalendarScalarWhereWithAggregatesInput take?: number skip?: number _count?: CalendarCountAggregateInputType | true _min?: CalendarMinAggregateInputType _max?: CalendarMaxAggregateInputType } export type CalendarGroupByOutputType = { id: string name: string color: string description: string | null userId: string createdAt: Date updatedAt: Date _count: CalendarCountAggregateOutputType | null _min: CalendarMinAggregateOutputType | null _max: CalendarMaxAggregateOutputType | null } type GetCalendarGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CalendarGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CalendarSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean color?: boolean description?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean events?: boolean | Calendar$eventsArgs user?: boolean | UserDefaultArgs _count?: boolean | CalendarCountOutputTypeDefaultArgs }, ExtArgs["result"]["calendar"]> export type CalendarSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean color?: boolean description?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["calendar"]> export type CalendarSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean color?: boolean description?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["calendar"]> export type CalendarSelectScalar = { id?: boolean name?: boolean color?: boolean description?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean } export type CalendarOmit = $Extensions.GetOmit<"id" | "name" | "color" | "description" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["calendar"]> export type CalendarInclude = { events?: boolean | Calendar$eventsArgs user?: boolean | UserDefaultArgs _count?: boolean | CalendarCountOutputTypeDefaultArgs } export type CalendarIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type CalendarIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $CalendarPayload = { name: "Calendar" objects: { events: Prisma.$EventPayload[] user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string name: string color: string description: string | null userId: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["calendar"]> composites: {} } type CalendarGetPayload = $Result.GetResult type CalendarCountArgs = Omit & { select?: CalendarCountAggregateInputType | true } export interface CalendarDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Calendar'], meta: { name: 'Calendar' } } /** * Find zero or one Calendar that matches the filter. * @param {CalendarFindUniqueArgs} args - Arguments to find a Calendar * @example * // Get one Calendar * const calendar = await prisma.calendar.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CalendarClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one Calendar that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CalendarFindUniqueOrThrowArgs} args - Arguments to find a Calendar * @example * // Get one Calendar * const calendar = await prisma.calendar.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CalendarClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first Calendar 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 {CalendarFindFirstArgs} args - Arguments to find a Calendar * @example * // Get one Calendar * const calendar = await prisma.calendar.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CalendarClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first Calendar 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 {CalendarFindFirstOrThrowArgs} args - Arguments to find a Calendar * @example * // Get one Calendar * const calendar = await prisma.calendar.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CalendarClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more Calendars 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 {CalendarFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Calendars * const calendars = await prisma.calendar.findMany() * * // Get first 10 Calendars * const calendars = await prisma.calendar.findMany({ take: 10 }) * * // Only select the `id` * const calendarWithIdOnly = await prisma.calendar.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a Calendar. * @param {CalendarCreateArgs} args - Arguments to create a Calendar. * @example * // Create one Calendar * const Calendar = await prisma.calendar.create({ * data: { * // ... data to create a Calendar * } * }) * */ create(args: SelectSubset>): Prisma__CalendarClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many Calendars. * @param {CalendarCreateManyArgs} args - Arguments to create many Calendars. * @example * // Create many Calendars * const calendar = await prisma.calendar.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Calendars and returns the data saved in the database. * @param {CalendarCreateManyAndReturnArgs} args - Arguments to create many Calendars. * @example * // Create many Calendars * const calendar = await prisma.calendar.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Calendars and only return the `id` * const calendarWithIdOnly = await prisma.calendar.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 Calendar. * @param {CalendarDeleteArgs} args - Arguments to delete one Calendar. * @example * // Delete one Calendar * const Calendar = await prisma.calendar.delete({ * where: { * // ... filter to delete one Calendar * } * }) * */ delete(args: SelectSubset>): Prisma__CalendarClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one Calendar. * @param {CalendarUpdateArgs} args - Arguments to update one Calendar. * @example * // Update one Calendar * const calendar = await prisma.calendar.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CalendarClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more Calendars. * @param {CalendarDeleteManyArgs} args - Arguments to filter Calendars to delete. * @example * // Delete a few Calendars * const { count } = await prisma.calendar.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Calendars. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CalendarUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Calendars * const calendar = await prisma.calendar.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Calendars and returns the data updated in the database. * @param {CalendarUpdateManyAndReturnArgs} args - Arguments to update many Calendars. * @example * // Update many Calendars * const calendar = await prisma.calendar.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Calendars and only return the `id` * const calendarWithIdOnly = await prisma.calendar.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 Calendar. * @param {CalendarUpsertArgs} args - Arguments to update or create a Calendar. * @example * // Update or create a Calendar * const calendar = await prisma.calendar.upsert({ * create: { * // ... data to create a Calendar * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Calendar we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CalendarClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of Calendars. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CalendarCountArgs} args - Arguments to filter Calendars to count. * @example * // Count the number of Calendars * const count = await prisma.calendar.count({ * where: { * // ... the filter for the Calendars 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 Calendar. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CalendarAggregateArgs} 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 Calendar. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CalendarGroupByArgs} 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 CalendarGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CalendarGroupByArgs['orderBy'] } : { orderBy?: CalendarGroupByArgs['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 ? GetCalendarGroupByPayload : Prisma.PrismaPromise /** * Fields of the Calendar model */ readonly fields: CalendarFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Calendar. * 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__CalendarClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" events = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> user = {}>(args?: Subset>): Prisma__UserClient<$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 Calendar model */ interface CalendarFieldRefs { readonly id: FieldRef<"Calendar", 'String'> readonly name: FieldRef<"Calendar", 'String'> readonly color: FieldRef<"Calendar", 'String'> readonly description: FieldRef<"Calendar", 'String'> readonly userId: FieldRef<"Calendar", 'String'> readonly createdAt: FieldRef<"Calendar", 'DateTime'> readonly updatedAt: FieldRef<"Calendar", 'DateTime'> } // Custom InputTypes /** * Calendar findUnique */ export type CalendarFindUniqueArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null /** * Filter, which Calendar to fetch. */ where: CalendarWhereUniqueInput } /** * Calendar findUniqueOrThrow */ export type CalendarFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null /** * Filter, which Calendar to fetch. */ where: CalendarWhereUniqueInput } /** * Calendar findFirst */ export type CalendarFindFirstArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null /** * Filter, which Calendar to fetch. */ where?: CalendarWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Calendars to fetch. */ orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Calendars. */ cursor?: CalendarWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Calendars 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` Calendars. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Calendars. */ distinct?: CalendarScalarFieldEnum | CalendarScalarFieldEnum[] } /** * Calendar findFirstOrThrow */ export type CalendarFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null /** * Filter, which Calendar to fetch. */ where?: CalendarWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Calendars to fetch. */ orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Calendars. */ cursor?: CalendarWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Calendars 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` Calendars. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Calendars. */ distinct?: CalendarScalarFieldEnum | CalendarScalarFieldEnum[] } /** * Calendar findMany */ export type CalendarFindManyArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null /** * Filter, which Calendars to fetch. */ where?: CalendarWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Calendars to fetch. */ orderBy?: CalendarOrderByWithRelationInput | CalendarOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Calendars. */ cursor?: CalendarWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Calendars 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` Calendars. */ skip?: number distinct?: CalendarScalarFieldEnum | CalendarScalarFieldEnum[] } /** * Calendar create */ export type CalendarCreateArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null /** * The data needed to create a Calendar. */ data: XOR } /** * Calendar createMany */ export type CalendarCreateManyArgs = { /** * The data used to create many Calendars. */ data: CalendarCreateManyInput | CalendarCreateManyInput[] skipDuplicates?: boolean } /** * Calendar createManyAndReturn */ export type CalendarCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelectCreateManyAndReturn | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * The data used to create many Calendars. */ data: CalendarCreateManyInput | CalendarCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: CalendarIncludeCreateManyAndReturn | null } /** * Calendar update */ export type CalendarUpdateArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null /** * The data needed to update a Calendar. */ data: XOR /** * Choose, which Calendar to update. */ where: CalendarWhereUniqueInput } /** * Calendar updateMany */ export type CalendarUpdateManyArgs = { /** * The data used to update Calendars. */ data: XOR /** * Filter which Calendars to update */ where?: CalendarWhereInput /** * Limit how many Calendars to update. */ limit?: number } /** * Calendar updateManyAndReturn */ export type CalendarUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelectUpdateManyAndReturn | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * The data used to update Calendars. */ data: XOR /** * Filter which Calendars to update */ where?: CalendarWhereInput /** * Limit how many Calendars to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: CalendarIncludeUpdateManyAndReturn | null } /** * Calendar upsert */ export type CalendarUpsertArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null /** * The filter to search for the Calendar to update in case it exists. */ where: CalendarWhereUniqueInput /** * In case the Calendar found by the `where` argument doesn't exist, create a new Calendar with this data. */ create: XOR /** * In case the Calendar was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Calendar delete */ export type CalendarDeleteArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null /** * Filter which Calendar to delete. */ where: CalendarWhereUniqueInput } /** * Calendar deleteMany */ export type CalendarDeleteManyArgs = { /** * Filter which Calendars to delete */ where?: CalendarWhereInput /** * Limit how many Calendars to delete. */ limit?: number } /** * Calendar.events */ export type Calendar$eventsArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null where?: EventWhereInput orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] cursor?: EventWhereUniqueInput take?: number skip?: number distinct?: EventScalarFieldEnum | EventScalarFieldEnum[] } /** * Calendar without action */ export type CalendarDefaultArgs = { /** * Select specific fields to fetch from the Calendar */ select?: CalendarSelect | null /** * Omit specific fields from the Calendar */ omit?: CalendarOmit | null /** * Choose, which related nodes to fetch as well */ include?: CalendarInclude | null } /** * Model Event */ export type AggregateEvent = { _count: EventCountAggregateOutputType | null _min: EventMinAggregateOutputType | null _max: EventMaxAggregateOutputType | null } export type EventMinAggregateOutputType = { id: string | null title: string | null description: string | null start: Date | null end: Date | null location: string | null isAllDay: boolean | null calendarId: string | null userId: string | null createdAt: Date | null updatedAt: Date | null } export type EventMaxAggregateOutputType = { id: string | null title: string | null description: string | null start: Date | null end: Date | null location: string | null isAllDay: boolean | null calendarId: string | null userId: string | null createdAt: Date | null updatedAt: Date | null } export type EventCountAggregateOutputType = { id: number title: number description: number start: number end: number location: number isAllDay: number calendarId: number userId: number createdAt: number updatedAt: number _all: number } export type EventMinAggregateInputType = { id?: true title?: true description?: true start?: true end?: true location?: true isAllDay?: true calendarId?: true userId?: true createdAt?: true updatedAt?: true } export type EventMaxAggregateInputType = { id?: true title?: true description?: true start?: true end?: true location?: true isAllDay?: true calendarId?: true userId?: true createdAt?: true updatedAt?: true } export type EventCountAggregateInputType = { id?: true title?: true description?: true start?: true end?: true location?: true isAllDay?: true calendarId?: true userId?: true createdAt?: true updatedAt?: true _all?: true } export type EventAggregateArgs = { /** * Filter which Event to aggregate. */ where?: EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events 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` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Events **/ _count?: true | EventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EventMaxAggregateInputType } export type GetEventAggregateType = { [P in keyof T & keyof AggregateEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EventGroupByArgs = { where?: EventWhereInput orderBy?: EventOrderByWithAggregationInput | EventOrderByWithAggregationInput[] by: EventScalarFieldEnum[] | EventScalarFieldEnum having?: EventScalarWhereWithAggregatesInput take?: number skip?: number _count?: EventCountAggregateInputType | true _min?: EventMinAggregateInputType _max?: EventMaxAggregateInputType } export type EventGroupByOutputType = { id: string title: string description: string | null start: Date end: Date location: string | null isAllDay: boolean calendarId: string userId: string createdAt: Date updatedAt: Date _count: EventCountAggregateOutputType | null _min: EventMinAggregateOutputType | null _max: EventMaxAggregateOutputType | null } type GetEventGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EventSelect = $Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean start?: boolean end?: boolean location?: boolean isAllDay?: boolean calendarId?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean calendar?: boolean | CalendarDefaultArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["event"]> export type EventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean start?: boolean end?: boolean location?: boolean isAllDay?: boolean calendarId?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean calendar?: boolean | CalendarDefaultArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["event"]> export type EventSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean start?: boolean end?: boolean location?: boolean isAllDay?: boolean calendarId?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean calendar?: boolean | CalendarDefaultArgs user?: boolean | UserDefaultArgs }, ExtArgs["result"]["event"]> export type EventSelectScalar = { id?: boolean title?: boolean description?: boolean start?: boolean end?: boolean location?: boolean isAllDay?: boolean calendarId?: boolean userId?: boolean createdAt?: boolean updatedAt?: boolean } export type EventOmit = $Extensions.GetOmit<"id" | "title" | "description" | "start" | "end" | "location" | "isAllDay" | "calendarId" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["event"]> export type EventInclude = { calendar?: boolean | CalendarDefaultArgs user?: boolean | UserDefaultArgs } export type EventIncludeCreateManyAndReturn = { calendar?: boolean | CalendarDefaultArgs user?: boolean | UserDefaultArgs } export type EventIncludeUpdateManyAndReturn = { calendar?: boolean | CalendarDefaultArgs user?: boolean | UserDefaultArgs } export type $EventPayload = { name: "Event" objects: { calendar: Prisma.$CalendarPayload user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string title: string description: string | null start: Date end: Date location: string | null isAllDay: boolean calendarId: string userId: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["event"]> composites: {} } type EventGetPayload = $Result.GetResult type EventCountArgs = Omit & { select?: EventCountAggregateInputType | true } export interface EventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Event'], meta: { name: 'Event' } } /** * Find zero or one Event that matches the filter. * @param {EventFindUniqueArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one Event that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EventFindUniqueOrThrowArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first Event 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 {EventFindFirstArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first Event 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 {EventFindFirstOrThrowArgs} args - Arguments to find a Event * @example * // Get one Event * const event = await prisma.event.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more Events 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 {EventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Events * const events = await prisma.event.findMany() * * // Get first 10 Events * const events = await prisma.event.findMany({ take: 10 }) * * // Only select the `id` * const eventWithIdOnly = await prisma.event.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a Event. * @param {EventCreateArgs} args - Arguments to create a Event. * @example * // Create one Event * const Event = await prisma.event.create({ * data: { * // ... data to create a Event * } * }) * */ create(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many Events. * @param {EventCreateManyArgs} args - Arguments to create many Events. * @example * // Create many Events * const event = await prisma.event.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Events and returns the data saved in the database. * @param {EventCreateManyAndReturnArgs} args - Arguments to create many Events. * @example * // Create many Events * const event = await prisma.event.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Events and only return the `id` * const eventWithIdOnly = await prisma.event.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 Event. * @param {EventDeleteArgs} args - Arguments to delete one Event. * @example * // Delete one Event * const Event = await prisma.event.delete({ * where: { * // ... filter to delete one Event * } * }) * */ delete(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one Event. * @param {EventUpdateArgs} args - Arguments to update one Event. * @example * // Update one Event * const event = await prisma.event.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more Events. * @param {EventDeleteManyArgs} args - Arguments to filter Events to delete. * @example * // Delete a few Events * const { count } = await prisma.event.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Events. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Events * const event = await prisma.event.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Events and returns the data updated in the database. * @param {EventUpdateManyAndReturnArgs} args - Arguments to update many Events. * @example * // Update many Events * const event = await prisma.event.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Events and only return the `id` * const eventWithIdOnly = await prisma.event.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 Event. * @param {EventUpsertArgs} args - Arguments to update or create a Event. * @example * // Update or create a Event * const event = await prisma.event.upsert({ * create: { * // ... data to create a Event * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Event we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EventClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of Events. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventCountArgs} args - Arguments to filter Events to count. * @example * // Count the number of Events * const count = await prisma.event.count({ * where: { * // ... the filter for the Events 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 Event. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventAggregateArgs} 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 Event. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EventGroupByArgs} 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 EventGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EventGroupByArgs['orderBy'] } : { orderBy?: EventGroupByArgs['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 ? GetEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the Event model */ readonly fields: EventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Event. * 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__EventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" calendar = {}>(args?: Subset>): Prisma__CalendarClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> user = {}>(args?: Subset>): Prisma__UserClient<$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 Event model */ interface EventFieldRefs { readonly id: FieldRef<"Event", 'String'> readonly title: FieldRef<"Event", 'String'> readonly description: FieldRef<"Event", 'String'> readonly start: FieldRef<"Event", 'DateTime'> readonly end: FieldRef<"Event", 'DateTime'> readonly location: FieldRef<"Event", 'String'> readonly isAllDay: FieldRef<"Event", 'Boolean'> readonly calendarId: FieldRef<"Event", 'String'> readonly userId: FieldRef<"Event", 'String'> readonly createdAt: FieldRef<"Event", 'DateTime'> readonly updatedAt: FieldRef<"Event", 'DateTime'> } // Custom InputTypes /** * Event findUnique */ export type EventFindUniqueArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Event to fetch. */ where: EventWhereUniqueInput } /** * Event findUniqueOrThrow */ export type EventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Event to fetch. */ where: EventWhereUniqueInput } /** * Event findFirst */ export type EventFindFirstArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Event to fetch. */ where?: EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Events. */ cursor?: EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events 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` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Events. */ distinct?: EventScalarFieldEnum | EventScalarFieldEnum[] } /** * Event findFirstOrThrow */ export type EventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Event to fetch. */ where?: EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Events. */ cursor?: EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events 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` Events. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Events. */ distinct?: EventScalarFieldEnum | EventScalarFieldEnum[] } /** * Event findMany */ export type EventFindManyArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter, which Events to fetch. */ where?: EventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Events to fetch. */ orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Events. */ cursor?: EventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Events 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` Events. */ skip?: number distinct?: EventScalarFieldEnum | EventScalarFieldEnum[] } /** * Event create */ export type EventCreateArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * The data needed to create a Event. */ data: XOR } /** * Event createMany */ export type EventCreateManyArgs = { /** * The data used to create many Events. */ data: EventCreateManyInput | EventCreateManyInput[] skipDuplicates?: boolean } /** * Event createManyAndReturn */ export type EventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelectCreateManyAndReturn | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * The data used to create many Events. */ data: EventCreateManyInput | EventCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: EventIncludeCreateManyAndReturn | null } /** * Event update */ export type EventUpdateArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * The data needed to update a Event. */ data: XOR /** * Choose, which Event to update. */ where: EventWhereUniqueInput } /** * Event updateMany */ export type EventUpdateManyArgs = { /** * The data used to update Events. */ data: XOR /** * Filter which Events to update */ where?: EventWhereInput /** * Limit how many Events to update. */ limit?: number } /** * Event updateManyAndReturn */ export type EventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelectUpdateManyAndReturn | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * The data used to update Events. */ data: XOR /** * Filter which Events to update */ where?: EventWhereInput /** * Limit how many Events to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: EventIncludeUpdateManyAndReturn | null } /** * Event upsert */ export type EventUpsertArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * The filter to search for the Event to update in case it exists. */ where: EventWhereUniqueInput /** * In case the Event found by the `where` argument doesn't exist, create a new Event with this data. */ create: XOR /** * In case the Event was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Event delete */ export type EventDeleteArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null /** * Filter which Event to delete. */ where: EventWhereUniqueInput } /** * Event deleteMany */ export type EventDeleteManyArgs = { /** * Filter which Events to delete */ where?: EventWhereInput /** * Limit how many Events to delete. */ limit?: number } /** * Event without action */ export type EventDefaultArgs = { /** * Select specific fields to fetch from the Event */ select?: EventSelect | null /** * Omit specific fields from the Event */ omit?: EventOmit | null /** * Choose, which related nodes to fetch as well */ include?: EventInclude | null } /** * Model MailCredentials */ export type AggregateMailCredentials = { _count: MailCredentialsCountAggregateOutputType | null _avg: MailCredentialsAvgAggregateOutputType | null _sum: MailCredentialsSumAggregateOutputType | null _min: MailCredentialsMinAggregateOutputType | null _max: MailCredentialsMaxAggregateOutputType | null } export type MailCredentialsAvgAggregateOutputType = { port: number | null } export type MailCredentialsSumAggregateOutputType = { port: number | null } export type MailCredentialsMinAggregateOutputType = { id: string | null userId: string | null email: string | null password: string | null host: string | null port: number | null createdAt: Date | null updatedAt: Date | null } export type MailCredentialsMaxAggregateOutputType = { id: string | null userId: string | null email: string | null password: string | null host: string | null port: number | null createdAt: Date | null updatedAt: Date | null } export type MailCredentialsCountAggregateOutputType = { id: number userId: number email: number password: number host: number port: number createdAt: number updatedAt: number _all: number } export type MailCredentialsAvgAggregateInputType = { port?: true } export type MailCredentialsSumAggregateInputType = { port?: true } export type MailCredentialsMinAggregateInputType = { id?: true userId?: true email?: true password?: true host?: true port?: true createdAt?: true updatedAt?: true } export type MailCredentialsMaxAggregateInputType = { id?: true userId?: true email?: true password?: true host?: true port?: true createdAt?: true updatedAt?: true } export type MailCredentialsCountAggregateInputType = { id?: true userId?: true email?: true password?: true host?: true port?: true createdAt?: true updatedAt?: true _all?: true } export type MailCredentialsAggregateArgs = { /** * Filter which MailCredentials to aggregate. */ where?: MailCredentialsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MailCredentials to fetch. */ orderBy?: MailCredentialsOrderByWithRelationInput | MailCredentialsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: MailCredentialsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MailCredentials 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` MailCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned MailCredentials **/ _count?: true | MailCredentialsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: MailCredentialsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: MailCredentialsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: MailCredentialsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: MailCredentialsMaxAggregateInputType } export type GetMailCredentialsAggregateType = { [P in keyof T & keyof AggregateMailCredentials]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type MailCredentialsGroupByArgs = { where?: MailCredentialsWhereInput orderBy?: MailCredentialsOrderByWithAggregationInput | MailCredentialsOrderByWithAggregationInput[] by: MailCredentialsScalarFieldEnum[] | MailCredentialsScalarFieldEnum having?: MailCredentialsScalarWhereWithAggregatesInput take?: number skip?: number _count?: MailCredentialsCountAggregateInputType | true _avg?: MailCredentialsAvgAggregateInputType _sum?: MailCredentialsSumAggregateInputType _min?: MailCredentialsMinAggregateInputType _max?: MailCredentialsMaxAggregateInputType } export type MailCredentialsGroupByOutputType = { id: string userId: string email: string password: string host: string port: number createdAt: Date updatedAt: Date _count: MailCredentialsCountAggregateOutputType | null _avg: MailCredentialsAvgAggregateOutputType | null _sum: MailCredentialsSumAggregateOutputType | null _min: MailCredentialsMinAggregateOutputType | null _max: MailCredentialsMaxAggregateOutputType | null } type GetMailCredentialsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof MailCredentialsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type MailCredentialsSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean email?: boolean password?: boolean host?: boolean port?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["mailCredentials"]> export type MailCredentialsSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean email?: boolean password?: boolean host?: boolean port?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["mailCredentials"]> export type MailCredentialsSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean email?: boolean password?: boolean host?: boolean port?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["mailCredentials"]> export type MailCredentialsSelectScalar = { id?: boolean userId?: boolean email?: boolean password?: boolean host?: boolean port?: boolean createdAt?: boolean updatedAt?: boolean } export type MailCredentialsOmit = $Extensions.GetOmit<"id" | "userId" | "email" | "password" | "host" | "port" | "createdAt" | "updatedAt", ExtArgs["result"]["mailCredentials"]> export type MailCredentialsInclude = { user?: boolean | UserDefaultArgs } export type MailCredentialsIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type MailCredentialsIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $MailCredentialsPayload = { name: "MailCredentials" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string userId: string email: string password: string host: string port: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["mailCredentials"]> composites: {} } type MailCredentialsGetPayload = $Result.GetResult type MailCredentialsCountArgs = Omit & { select?: MailCredentialsCountAggregateInputType | true } export interface MailCredentialsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['MailCredentials'], meta: { name: 'MailCredentials' } } /** * Find zero or one MailCredentials that matches the filter. * @param {MailCredentialsFindUniqueArgs} args - Arguments to find a MailCredentials * @example * // Get one MailCredentials * const mailCredentials = await prisma.mailCredentials.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__MailCredentialsClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one MailCredentials that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MailCredentialsFindUniqueOrThrowArgs} args - Arguments to find a MailCredentials * @example * // Get one MailCredentials * const mailCredentials = await prisma.mailCredentials.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__MailCredentialsClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first MailCredentials 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 {MailCredentialsFindFirstArgs} args - Arguments to find a MailCredentials * @example * // Get one MailCredentials * const mailCredentials = await prisma.mailCredentials.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__MailCredentialsClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first MailCredentials 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 {MailCredentialsFindFirstOrThrowArgs} args - Arguments to find a MailCredentials * @example * // Get one MailCredentials * const mailCredentials = await prisma.mailCredentials.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__MailCredentialsClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more MailCredentials 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 {MailCredentialsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all MailCredentials * const mailCredentials = await prisma.mailCredentials.findMany() * * // Get first 10 MailCredentials * const mailCredentials = await prisma.mailCredentials.findMany({ take: 10 }) * * // Only select the `id` * const mailCredentialsWithIdOnly = await prisma.mailCredentials.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a MailCredentials. * @param {MailCredentialsCreateArgs} args - Arguments to create a MailCredentials. * @example * // Create one MailCredentials * const MailCredentials = await prisma.mailCredentials.create({ * data: { * // ... data to create a MailCredentials * } * }) * */ create(args: SelectSubset>): Prisma__MailCredentialsClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many MailCredentials. * @param {MailCredentialsCreateManyArgs} args - Arguments to create many MailCredentials. * @example * // Create many MailCredentials * const mailCredentials = await prisma.mailCredentials.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many MailCredentials and returns the data saved in the database. * @param {MailCredentialsCreateManyAndReturnArgs} args - Arguments to create many MailCredentials. * @example * // Create many MailCredentials * const mailCredentials = await prisma.mailCredentials.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many MailCredentials and only return the `id` * const mailCredentialsWithIdOnly = await prisma.mailCredentials.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 MailCredentials. * @param {MailCredentialsDeleteArgs} args - Arguments to delete one MailCredentials. * @example * // Delete one MailCredentials * const MailCredentials = await prisma.mailCredentials.delete({ * where: { * // ... filter to delete one MailCredentials * } * }) * */ delete(args: SelectSubset>): Prisma__MailCredentialsClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one MailCredentials. * @param {MailCredentialsUpdateArgs} args - Arguments to update one MailCredentials. * @example * // Update one MailCredentials * const mailCredentials = await prisma.mailCredentials.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__MailCredentialsClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more MailCredentials. * @param {MailCredentialsDeleteManyArgs} args - Arguments to filter MailCredentials to delete. * @example * // Delete a few MailCredentials * const { count } = await prisma.mailCredentials.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more MailCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MailCredentialsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many MailCredentials * const mailCredentials = await prisma.mailCredentials.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more MailCredentials and returns the data updated in the database. * @param {MailCredentialsUpdateManyAndReturnArgs} args - Arguments to update many MailCredentials. * @example * // Update many MailCredentials * const mailCredentials = await prisma.mailCredentials.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more MailCredentials and only return the `id` * const mailCredentialsWithIdOnly = await prisma.mailCredentials.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 MailCredentials. * @param {MailCredentialsUpsertArgs} args - Arguments to update or create a MailCredentials. * @example * // Update or create a MailCredentials * const mailCredentials = await prisma.mailCredentials.upsert({ * create: { * // ... data to create a MailCredentials * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the MailCredentials we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__MailCredentialsClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of MailCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MailCredentialsCountArgs} args - Arguments to filter MailCredentials to count. * @example * // Count the number of MailCredentials * const count = await prisma.mailCredentials.count({ * where: { * // ... the filter for the MailCredentials 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 MailCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MailCredentialsAggregateArgs} 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 MailCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MailCredentialsGroupByArgs} 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 MailCredentialsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: MailCredentialsGroupByArgs['orderBy'] } : { orderBy?: MailCredentialsGroupByArgs['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 ? GetMailCredentialsGroupByPayload : Prisma.PrismaPromise /** * Fields of the MailCredentials model */ readonly fields: MailCredentialsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for MailCredentials. * 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__MailCredentialsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$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 MailCredentials model */ interface MailCredentialsFieldRefs { readonly id: FieldRef<"MailCredentials", 'String'> readonly userId: FieldRef<"MailCredentials", 'String'> readonly email: FieldRef<"MailCredentials", 'String'> readonly password: FieldRef<"MailCredentials", 'String'> readonly host: FieldRef<"MailCredentials", 'String'> readonly port: FieldRef<"MailCredentials", 'Int'> readonly createdAt: FieldRef<"MailCredentials", 'DateTime'> readonly updatedAt: FieldRef<"MailCredentials", 'DateTime'> } // Custom InputTypes /** * MailCredentials findUnique */ export type MailCredentialsFindUniqueArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null /** * Filter, which MailCredentials to fetch. */ where: MailCredentialsWhereUniqueInput } /** * MailCredentials findUniqueOrThrow */ export type MailCredentialsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null /** * Filter, which MailCredentials to fetch. */ where: MailCredentialsWhereUniqueInput } /** * MailCredentials findFirst */ export type MailCredentialsFindFirstArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null /** * Filter, which MailCredentials to fetch. */ where?: MailCredentialsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MailCredentials to fetch. */ orderBy?: MailCredentialsOrderByWithRelationInput | MailCredentialsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MailCredentials. */ cursor?: MailCredentialsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MailCredentials 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` MailCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MailCredentials. */ distinct?: MailCredentialsScalarFieldEnum | MailCredentialsScalarFieldEnum[] } /** * MailCredentials findFirstOrThrow */ export type MailCredentialsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null /** * Filter, which MailCredentials to fetch. */ where?: MailCredentialsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MailCredentials to fetch. */ orderBy?: MailCredentialsOrderByWithRelationInput | MailCredentialsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MailCredentials. */ cursor?: MailCredentialsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MailCredentials 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` MailCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MailCredentials. */ distinct?: MailCredentialsScalarFieldEnum | MailCredentialsScalarFieldEnum[] } /** * MailCredentials findMany */ export type MailCredentialsFindManyArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null /** * Filter, which MailCredentials to fetch. */ where?: MailCredentialsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MailCredentials to fetch. */ orderBy?: MailCredentialsOrderByWithRelationInput | MailCredentialsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing MailCredentials. */ cursor?: MailCredentialsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MailCredentials 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` MailCredentials. */ skip?: number distinct?: MailCredentialsScalarFieldEnum | MailCredentialsScalarFieldEnum[] } /** * MailCredentials create */ export type MailCredentialsCreateArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null /** * The data needed to create a MailCredentials. */ data: XOR } /** * MailCredentials createMany */ export type MailCredentialsCreateManyArgs = { /** * The data used to create many MailCredentials. */ data: MailCredentialsCreateManyInput | MailCredentialsCreateManyInput[] skipDuplicates?: boolean } /** * MailCredentials createManyAndReturn */ export type MailCredentialsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelectCreateManyAndReturn | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * The data used to create many MailCredentials. */ data: MailCredentialsCreateManyInput | MailCredentialsCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsIncludeCreateManyAndReturn | null } /** * MailCredentials update */ export type MailCredentialsUpdateArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null /** * The data needed to update a MailCredentials. */ data: XOR /** * Choose, which MailCredentials to update. */ where: MailCredentialsWhereUniqueInput } /** * MailCredentials updateMany */ export type MailCredentialsUpdateManyArgs = { /** * The data used to update MailCredentials. */ data: XOR /** * Filter which MailCredentials to update */ where?: MailCredentialsWhereInput /** * Limit how many MailCredentials to update. */ limit?: number } /** * MailCredentials updateManyAndReturn */ export type MailCredentialsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelectUpdateManyAndReturn | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * The data used to update MailCredentials. */ data: XOR /** * Filter which MailCredentials to update */ where?: MailCredentialsWhereInput /** * Limit how many MailCredentials to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsIncludeUpdateManyAndReturn | null } /** * MailCredentials upsert */ export type MailCredentialsUpsertArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null /** * The filter to search for the MailCredentials to update in case it exists. */ where: MailCredentialsWhereUniqueInput /** * In case the MailCredentials found by the `where` argument doesn't exist, create a new MailCredentials with this data. */ create: XOR /** * In case the MailCredentials was found with the provided `where` argument, update it with this data. */ update: XOR } /** * MailCredentials delete */ export type MailCredentialsDeleteArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null /** * Filter which MailCredentials to delete. */ where: MailCredentialsWhereUniqueInput } /** * MailCredentials deleteMany */ export type MailCredentialsDeleteManyArgs = { /** * Filter which MailCredentials to delete */ where?: MailCredentialsWhereInput /** * Limit how many MailCredentials to delete. */ limit?: number } /** * MailCredentials without action */ export type MailCredentialsDefaultArgs = { /** * Select specific fields to fetch from the MailCredentials */ select?: MailCredentialsSelect | null /** * Omit specific fields from the MailCredentials */ omit?: MailCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: MailCredentialsInclude | null } /** * Model WebDAVCredentials */ export type AggregateWebDAVCredentials = { _count: WebDAVCredentialsCountAggregateOutputType | null _min: WebDAVCredentialsMinAggregateOutputType | null _max: WebDAVCredentialsMaxAggregateOutputType | null } export type WebDAVCredentialsMinAggregateOutputType = { id: string | null userId: string | null username: string | null password: string | null createdAt: Date | null updatedAt: Date | null } export type WebDAVCredentialsMaxAggregateOutputType = { id: string | null userId: string | null username: string | null password: string | null createdAt: Date | null updatedAt: Date | null } export type WebDAVCredentialsCountAggregateOutputType = { id: number userId: number username: number password: number createdAt: number updatedAt: number _all: number } export type WebDAVCredentialsMinAggregateInputType = { id?: true userId?: true username?: true password?: true createdAt?: true updatedAt?: true } export type WebDAVCredentialsMaxAggregateInputType = { id?: true userId?: true username?: true password?: true createdAt?: true updatedAt?: true } export type WebDAVCredentialsCountAggregateInputType = { id?: true userId?: true username?: true password?: true createdAt?: true updatedAt?: true _all?: true } export type WebDAVCredentialsAggregateArgs = { /** * Filter which WebDAVCredentials to aggregate. */ where?: WebDAVCredentialsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WebDAVCredentials to fetch. */ orderBy?: WebDAVCredentialsOrderByWithRelationInput | WebDAVCredentialsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: WebDAVCredentialsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WebDAVCredentials 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` WebDAVCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned WebDAVCredentials **/ _count?: true | WebDAVCredentialsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: WebDAVCredentialsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: WebDAVCredentialsMaxAggregateInputType } export type GetWebDAVCredentialsAggregateType = { [P in keyof T & keyof AggregateWebDAVCredentials]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type WebDAVCredentialsGroupByArgs = { where?: WebDAVCredentialsWhereInput orderBy?: WebDAVCredentialsOrderByWithAggregationInput | WebDAVCredentialsOrderByWithAggregationInput[] by: WebDAVCredentialsScalarFieldEnum[] | WebDAVCredentialsScalarFieldEnum having?: WebDAVCredentialsScalarWhereWithAggregatesInput take?: number skip?: number _count?: WebDAVCredentialsCountAggregateInputType | true _min?: WebDAVCredentialsMinAggregateInputType _max?: WebDAVCredentialsMaxAggregateInputType } export type WebDAVCredentialsGroupByOutputType = { id: string userId: string username: string password: string createdAt: Date updatedAt: Date _count: WebDAVCredentialsCountAggregateOutputType | null _min: WebDAVCredentialsMinAggregateOutputType | null _max: WebDAVCredentialsMaxAggregateOutputType | null } type GetWebDAVCredentialsGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof WebDAVCredentialsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type WebDAVCredentialsSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean username?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["webDAVCredentials"]> export type WebDAVCredentialsSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean username?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["webDAVCredentials"]> export type WebDAVCredentialsSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean username?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["webDAVCredentials"]> export type WebDAVCredentialsSelectScalar = { id?: boolean userId?: boolean username?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean } export type WebDAVCredentialsOmit = $Extensions.GetOmit<"id" | "userId" | "username" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["webDAVCredentials"]> export type WebDAVCredentialsInclude = { user?: boolean | UserDefaultArgs } export type WebDAVCredentialsIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type WebDAVCredentialsIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $WebDAVCredentialsPayload = { name: "WebDAVCredentials" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string userId: string username: string password: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["webDAVCredentials"]> composites: {} } type WebDAVCredentialsGetPayload = $Result.GetResult type WebDAVCredentialsCountArgs = Omit & { select?: WebDAVCredentialsCountAggregateInputType | true } export interface WebDAVCredentialsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['WebDAVCredentials'], meta: { name: 'WebDAVCredentials' } } /** * Find zero or one WebDAVCredentials that matches the filter. * @param {WebDAVCredentialsFindUniqueArgs} args - Arguments to find a WebDAVCredentials * @example * // Get one WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__WebDAVCredentialsClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find one WebDAVCredentials that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WebDAVCredentialsFindUniqueOrThrowArgs} args - Arguments to find a WebDAVCredentials * @example * // Get one WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__WebDAVCredentialsClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find the first WebDAVCredentials 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 {WebDAVCredentialsFindFirstArgs} args - Arguments to find a WebDAVCredentials * @example * // Get one WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__WebDAVCredentialsClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> /** * Find the first WebDAVCredentials 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 {WebDAVCredentialsFindFirstOrThrowArgs} args - Arguments to find a WebDAVCredentials * @example * // Get one WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__WebDAVCredentialsClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> /** * Find zero or more WebDAVCredentials 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 {WebDAVCredentialsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.findMany() * * // Get first 10 WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.findMany({ take: 10 }) * * // Only select the `id` * const webDAVCredentialsWithIdOnly = await prisma.webDAVCredentials.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> /** * Create a WebDAVCredentials. * @param {WebDAVCredentialsCreateArgs} args - Arguments to create a WebDAVCredentials. * @example * // Create one WebDAVCredentials * const WebDAVCredentials = await prisma.webDAVCredentials.create({ * data: { * // ... data to create a WebDAVCredentials * } * }) * */ create(args: SelectSubset>): Prisma__WebDAVCredentialsClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> /** * Create many WebDAVCredentials. * @param {WebDAVCredentialsCreateManyArgs} args - Arguments to create many WebDAVCredentials. * @example * // Create many WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many WebDAVCredentials and returns the data saved in the database. * @param {WebDAVCredentialsCreateManyAndReturnArgs} args - Arguments to create many WebDAVCredentials. * @example * // Create many WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many WebDAVCredentials and only return the `id` * const webDAVCredentialsWithIdOnly = await prisma.webDAVCredentials.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 WebDAVCredentials. * @param {WebDAVCredentialsDeleteArgs} args - Arguments to delete one WebDAVCredentials. * @example * // Delete one WebDAVCredentials * const WebDAVCredentials = await prisma.webDAVCredentials.delete({ * where: { * // ... filter to delete one WebDAVCredentials * } * }) * */ delete(args: SelectSubset>): Prisma__WebDAVCredentialsClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> /** * Update one WebDAVCredentials. * @param {WebDAVCredentialsUpdateArgs} args - Arguments to update one WebDAVCredentials. * @example * // Update one WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__WebDAVCredentialsClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> /** * Delete zero or more WebDAVCredentials. * @param {WebDAVCredentialsDeleteManyArgs} args - Arguments to filter WebDAVCredentials to delete. * @example * // Delete a few WebDAVCredentials * const { count } = await prisma.webDAVCredentials.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more WebDAVCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WebDAVCredentialsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more WebDAVCredentials and returns the data updated in the database. * @param {WebDAVCredentialsUpdateManyAndReturnArgs} args - Arguments to update many WebDAVCredentials. * @example * // Update many WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more WebDAVCredentials and only return the `id` * const webDAVCredentialsWithIdOnly = await prisma.webDAVCredentials.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 WebDAVCredentials. * @param {WebDAVCredentialsUpsertArgs} args - Arguments to update or create a WebDAVCredentials. * @example * // Update or create a WebDAVCredentials * const webDAVCredentials = await prisma.webDAVCredentials.upsert({ * create: { * // ... data to create a WebDAVCredentials * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the WebDAVCredentials we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__WebDAVCredentialsClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> /** * Count the number of WebDAVCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WebDAVCredentialsCountArgs} args - Arguments to filter WebDAVCredentials to count. * @example * // Count the number of WebDAVCredentials * const count = await prisma.webDAVCredentials.count({ * where: { * // ... the filter for the WebDAVCredentials 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 WebDAVCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WebDAVCredentialsAggregateArgs} 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 WebDAVCredentials. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {WebDAVCredentialsGroupByArgs} 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 WebDAVCredentialsGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: WebDAVCredentialsGroupByArgs['orderBy'] } : { orderBy?: WebDAVCredentialsGroupByArgs['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 ? GetWebDAVCredentialsGroupByPayload : Prisma.PrismaPromise /** * Fields of the WebDAVCredentials model */ readonly fields: WebDAVCredentialsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for WebDAVCredentials. * 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__WebDAVCredentialsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$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 WebDAVCredentials model */ interface WebDAVCredentialsFieldRefs { readonly id: FieldRef<"WebDAVCredentials", 'String'> readonly userId: FieldRef<"WebDAVCredentials", 'String'> readonly username: FieldRef<"WebDAVCredentials", 'String'> readonly password: FieldRef<"WebDAVCredentials", 'String'> readonly createdAt: FieldRef<"WebDAVCredentials", 'DateTime'> readonly updatedAt: FieldRef<"WebDAVCredentials", 'DateTime'> } // Custom InputTypes /** * WebDAVCredentials findUnique */ export type WebDAVCredentialsFindUniqueArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null /** * Filter, which WebDAVCredentials to fetch. */ where: WebDAVCredentialsWhereUniqueInput } /** * WebDAVCredentials findUniqueOrThrow */ export type WebDAVCredentialsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null /** * Filter, which WebDAVCredentials to fetch. */ where: WebDAVCredentialsWhereUniqueInput } /** * WebDAVCredentials findFirst */ export type WebDAVCredentialsFindFirstArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null /** * Filter, which WebDAVCredentials to fetch. */ where?: WebDAVCredentialsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WebDAVCredentials to fetch. */ orderBy?: WebDAVCredentialsOrderByWithRelationInput | WebDAVCredentialsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WebDAVCredentials. */ cursor?: WebDAVCredentialsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WebDAVCredentials 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` WebDAVCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WebDAVCredentials. */ distinct?: WebDAVCredentialsScalarFieldEnum | WebDAVCredentialsScalarFieldEnum[] } /** * WebDAVCredentials findFirstOrThrow */ export type WebDAVCredentialsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null /** * Filter, which WebDAVCredentials to fetch. */ where?: WebDAVCredentialsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WebDAVCredentials to fetch. */ orderBy?: WebDAVCredentialsOrderByWithRelationInput | WebDAVCredentialsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for WebDAVCredentials. */ cursor?: WebDAVCredentialsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WebDAVCredentials 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` WebDAVCredentials. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of WebDAVCredentials. */ distinct?: WebDAVCredentialsScalarFieldEnum | WebDAVCredentialsScalarFieldEnum[] } /** * WebDAVCredentials findMany */ export type WebDAVCredentialsFindManyArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null /** * Filter, which WebDAVCredentials to fetch. */ where?: WebDAVCredentialsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of WebDAVCredentials to fetch. */ orderBy?: WebDAVCredentialsOrderByWithRelationInput | WebDAVCredentialsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing WebDAVCredentials. */ cursor?: WebDAVCredentialsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` WebDAVCredentials 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` WebDAVCredentials. */ skip?: number distinct?: WebDAVCredentialsScalarFieldEnum | WebDAVCredentialsScalarFieldEnum[] } /** * WebDAVCredentials create */ export type WebDAVCredentialsCreateArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null /** * The data needed to create a WebDAVCredentials. */ data: XOR } /** * WebDAVCredentials createMany */ export type WebDAVCredentialsCreateManyArgs = { /** * The data used to create many WebDAVCredentials. */ data: WebDAVCredentialsCreateManyInput | WebDAVCredentialsCreateManyInput[] skipDuplicates?: boolean } /** * WebDAVCredentials createManyAndReturn */ export type WebDAVCredentialsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelectCreateManyAndReturn | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * The data used to create many WebDAVCredentials. */ data: WebDAVCredentialsCreateManyInput | WebDAVCredentialsCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsIncludeCreateManyAndReturn | null } /** * WebDAVCredentials update */ export type WebDAVCredentialsUpdateArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null /** * The data needed to update a WebDAVCredentials. */ data: XOR /** * Choose, which WebDAVCredentials to update. */ where: WebDAVCredentialsWhereUniqueInput } /** * WebDAVCredentials updateMany */ export type WebDAVCredentialsUpdateManyArgs = { /** * The data used to update WebDAVCredentials. */ data: XOR /** * Filter which WebDAVCredentials to update */ where?: WebDAVCredentialsWhereInput /** * Limit how many WebDAVCredentials to update. */ limit?: number } /** * WebDAVCredentials updateManyAndReturn */ export type WebDAVCredentialsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelectUpdateManyAndReturn | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * The data used to update WebDAVCredentials. */ data: XOR /** * Filter which WebDAVCredentials to update */ where?: WebDAVCredentialsWhereInput /** * Limit how many WebDAVCredentials to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsIncludeUpdateManyAndReturn | null } /** * WebDAVCredentials upsert */ export type WebDAVCredentialsUpsertArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null /** * The filter to search for the WebDAVCredentials to update in case it exists. */ where: WebDAVCredentialsWhereUniqueInput /** * In case the WebDAVCredentials found by the `where` argument doesn't exist, create a new WebDAVCredentials with this data. */ create: XOR /** * In case the WebDAVCredentials was found with the provided `where` argument, update it with this data. */ update: XOR } /** * WebDAVCredentials delete */ export type WebDAVCredentialsDeleteArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null /** * Filter which WebDAVCredentials to delete. */ where: WebDAVCredentialsWhereUniqueInput } /** * WebDAVCredentials deleteMany */ export type WebDAVCredentialsDeleteManyArgs = { /** * Filter which WebDAVCredentials to delete */ where?: WebDAVCredentialsWhereInput /** * Limit how many WebDAVCredentials to delete. */ limit?: number } /** * WebDAVCredentials without action */ export type WebDAVCredentialsDefaultArgs = { /** * Select specific fields to fetch from the WebDAVCredentials */ select?: WebDAVCredentialsSelect | null /** * Omit specific fields from the WebDAVCredentials */ omit?: WebDAVCredentialsOmit | null /** * Choose, which related nodes to fetch as well */ include?: WebDAVCredentialsInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const UserScalarFieldEnum: { id: 'id', email: 'email', password: 'password', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const CalendarScalarFieldEnum: { id: 'id', name: 'name', color: 'color', description: 'description', userId: 'userId', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CalendarScalarFieldEnum = (typeof CalendarScalarFieldEnum)[keyof typeof CalendarScalarFieldEnum] export const EventScalarFieldEnum: { id: 'id', title: 'title', description: 'description', start: 'start', end: 'end', location: 'location', isAllDay: 'isAllDay', calendarId: 'calendarId', userId: 'userId', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum] export const MailCredentialsScalarFieldEnum: { id: 'id', userId: 'userId', email: 'email', password: 'password', host: 'host', port: 'port', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type MailCredentialsScalarFieldEnum = (typeof MailCredentialsScalarFieldEnum)[keyof typeof MailCredentialsScalarFieldEnum] export const WebDAVCredentialsScalarFieldEnum: { id: 'id', userId: 'userId', username: 'username', password: 'password', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type WebDAVCredentialsScalarFieldEnum = (typeof WebDAVCredentialsScalarFieldEnum)[keyof typeof WebDAVCredentialsScalarFieldEnum] 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] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type '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 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> /** * Deep Input Types */ export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: StringFilter<"User"> | string email?: StringFilter<"User"> | string password?: StringFilter<"User"> | string createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string calendars?: CalendarListRelationFilter events?: EventListRelationFilter mailCredentials?: XOR | null webdavCredentials?: XOR | null } export type UserOrderByWithRelationInput = { id?: SortOrder email?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder calendars?: CalendarOrderByRelationAggregateInput events?: EventOrderByRelationAggregateInput mailCredentials?: MailCredentialsOrderByWithRelationInput webdavCredentials?: WebDAVCredentialsOrderByWithRelationInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: string email?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] password?: StringFilter<"User"> | string createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string calendars?: CalendarListRelationFilter events?: EventListRelationFilter mailCredentials?: XOR | null webdavCredentials?: XOR | null }, "id" | "email"> export type UserOrderByWithAggregationInput = { id?: SortOrder email?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: UserCountOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"User"> | string email?: StringWithAggregatesFilter<"User"> | string password?: StringWithAggregatesFilter<"User"> | string createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string } export type CalendarWhereInput = { AND?: CalendarWhereInput | CalendarWhereInput[] OR?: CalendarWhereInput[] NOT?: CalendarWhereInput | CalendarWhereInput[] id?: StringFilter<"Calendar"> | string name?: StringFilter<"Calendar"> | string color?: StringFilter<"Calendar"> | string description?: StringNullableFilter<"Calendar"> | string | null userId?: StringFilter<"Calendar"> | string createdAt?: DateTimeFilter<"Calendar"> | Date | string updatedAt?: DateTimeFilter<"Calendar"> | Date | string events?: EventListRelationFilter user?: XOR } export type CalendarOrderByWithRelationInput = { id?: SortOrder name?: SortOrder color?: SortOrder description?: SortOrderInput | SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder events?: EventOrderByRelationAggregateInput user?: UserOrderByWithRelationInput } export type CalendarWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: CalendarWhereInput | CalendarWhereInput[] OR?: CalendarWhereInput[] NOT?: CalendarWhereInput | CalendarWhereInput[] name?: StringFilter<"Calendar"> | string color?: StringFilter<"Calendar"> | string description?: StringNullableFilter<"Calendar"> | string | null userId?: StringFilter<"Calendar"> | string createdAt?: DateTimeFilter<"Calendar"> | Date | string updatedAt?: DateTimeFilter<"Calendar"> | Date | string events?: EventListRelationFilter user?: XOR }, "id"> export type CalendarOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder color?: SortOrder description?: SortOrderInput | SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CalendarCountOrderByAggregateInput _max?: CalendarMaxOrderByAggregateInput _min?: CalendarMinOrderByAggregateInput } export type CalendarScalarWhereWithAggregatesInput = { AND?: CalendarScalarWhereWithAggregatesInput | CalendarScalarWhereWithAggregatesInput[] OR?: CalendarScalarWhereWithAggregatesInput[] NOT?: CalendarScalarWhereWithAggregatesInput | CalendarScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Calendar"> | string name?: StringWithAggregatesFilter<"Calendar"> | string color?: StringWithAggregatesFilter<"Calendar"> | string description?: StringNullableWithAggregatesFilter<"Calendar"> | string | null userId?: StringWithAggregatesFilter<"Calendar"> | string createdAt?: DateTimeWithAggregatesFilter<"Calendar"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Calendar"> | Date | string } export type EventWhereInput = { AND?: EventWhereInput | EventWhereInput[] OR?: EventWhereInput[] NOT?: EventWhereInput | EventWhereInput[] id?: StringFilter<"Event"> | string title?: StringFilter<"Event"> | string description?: StringNullableFilter<"Event"> | string | null start?: DateTimeFilter<"Event"> | Date | string end?: DateTimeFilter<"Event"> | Date | string location?: StringNullableFilter<"Event"> | string | null isAllDay?: BoolFilter<"Event"> | boolean calendarId?: StringFilter<"Event"> | string userId?: StringFilter<"Event"> | string createdAt?: DateTimeFilter<"Event"> | Date | string updatedAt?: DateTimeFilter<"Event"> | Date | string calendar?: XOR user?: XOR } export type EventOrderByWithRelationInput = { id?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder start?: SortOrder end?: SortOrder location?: SortOrderInput | SortOrder isAllDay?: SortOrder calendarId?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder calendar?: CalendarOrderByWithRelationInput user?: UserOrderByWithRelationInput } export type EventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: EventWhereInput | EventWhereInput[] OR?: EventWhereInput[] NOT?: EventWhereInput | EventWhereInput[] title?: StringFilter<"Event"> | string description?: StringNullableFilter<"Event"> | string | null start?: DateTimeFilter<"Event"> | Date | string end?: DateTimeFilter<"Event"> | Date | string location?: StringNullableFilter<"Event"> | string | null isAllDay?: BoolFilter<"Event"> | boolean calendarId?: StringFilter<"Event"> | string userId?: StringFilter<"Event"> | string createdAt?: DateTimeFilter<"Event"> | Date | string updatedAt?: DateTimeFilter<"Event"> | Date | string calendar?: XOR user?: XOR }, "id"> export type EventOrderByWithAggregationInput = { id?: SortOrder title?: SortOrder description?: SortOrderInput | SortOrder start?: SortOrder end?: SortOrder location?: SortOrderInput | SortOrder isAllDay?: SortOrder calendarId?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: EventCountOrderByAggregateInput _max?: EventMaxOrderByAggregateInput _min?: EventMinOrderByAggregateInput } export type EventScalarWhereWithAggregatesInput = { AND?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[] OR?: EventScalarWhereWithAggregatesInput[] NOT?: EventScalarWhereWithAggregatesInput | EventScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Event"> | string title?: StringWithAggregatesFilter<"Event"> | string description?: StringNullableWithAggregatesFilter<"Event"> | string | null start?: DateTimeWithAggregatesFilter<"Event"> | Date | string end?: DateTimeWithAggregatesFilter<"Event"> | Date | string location?: StringNullableWithAggregatesFilter<"Event"> | string | null isAllDay?: BoolWithAggregatesFilter<"Event"> | boolean calendarId?: StringWithAggregatesFilter<"Event"> | string userId?: StringWithAggregatesFilter<"Event"> | string createdAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string } export type MailCredentialsWhereInput = { AND?: MailCredentialsWhereInput | MailCredentialsWhereInput[] OR?: MailCredentialsWhereInput[] NOT?: MailCredentialsWhereInput | MailCredentialsWhereInput[] id?: StringFilter<"MailCredentials"> | string userId?: StringFilter<"MailCredentials"> | string email?: StringFilter<"MailCredentials"> | string password?: StringFilter<"MailCredentials"> | string host?: StringFilter<"MailCredentials"> | string port?: IntFilter<"MailCredentials"> | number createdAt?: DateTimeFilter<"MailCredentials"> | Date | string updatedAt?: DateTimeFilter<"MailCredentials"> | Date | string user?: XOR } export type MailCredentialsOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder email?: SortOrder password?: SortOrder host?: SortOrder port?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput } export type MailCredentialsWhereUniqueInput = Prisma.AtLeast<{ id?: string userId?: string AND?: MailCredentialsWhereInput | MailCredentialsWhereInput[] OR?: MailCredentialsWhereInput[] NOT?: MailCredentialsWhereInput | MailCredentialsWhereInput[] email?: StringFilter<"MailCredentials"> | string password?: StringFilter<"MailCredentials"> | string host?: StringFilter<"MailCredentials"> | string port?: IntFilter<"MailCredentials"> | number createdAt?: DateTimeFilter<"MailCredentials"> | Date | string updatedAt?: DateTimeFilter<"MailCredentials"> | Date | string user?: XOR }, "id" | "userId"> export type MailCredentialsOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder email?: SortOrder password?: SortOrder host?: SortOrder port?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: MailCredentialsCountOrderByAggregateInput _avg?: MailCredentialsAvgOrderByAggregateInput _max?: MailCredentialsMaxOrderByAggregateInput _min?: MailCredentialsMinOrderByAggregateInput _sum?: MailCredentialsSumOrderByAggregateInput } export type MailCredentialsScalarWhereWithAggregatesInput = { AND?: MailCredentialsScalarWhereWithAggregatesInput | MailCredentialsScalarWhereWithAggregatesInput[] OR?: MailCredentialsScalarWhereWithAggregatesInput[] NOT?: MailCredentialsScalarWhereWithAggregatesInput | MailCredentialsScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"MailCredentials"> | string userId?: StringWithAggregatesFilter<"MailCredentials"> | string email?: StringWithAggregatesFilter<"MailCredentials"> | string password?: StringWithAggregatesFilter<"MailCredentials"> | string host?: StringWithAggregatesFilter<"MailCredentials"> | string port?: IntWithAggregatesFilter<"MailCredentials"> | number createdAt?: DateTimeWithAggregatesFilter<"MailCredentials"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"MailCredentials"> | Date | string } export type WebDAVCredentialsWhereInput = { AND?: WebDAVCredentialsWhereInput | WebDAVCredentialsWhereInput[] OR?: WebDAVCredentialsWhereInput[] NOT?: WebDAVCredentialsWhereInput | WebDAVCredentialsWhereInput[] id?: StringFilter<"WebDAVCredentials"> | string userId?: StringFilter<"WebDAVCredentials"> | string username?: StringFilter<"WebDAVCredentials"> | string password?: StringFilter<"WebDAVCredentials"> | string createdAt?: DateTimeFilter<"WebDAVCredentials"> | Date | string updatedAt?: DateTimeFilter<"WebDAVCredentials"> | Date | string user?: XOR } export type WebDAVCredentialsOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder username?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput } export type WebDAVCredentialsWhereUniqueInput = Prisma.AtLeast<{ id?: string userId?: string AND?: WebDAVCredentialsWhereInput | WebDAVCredentialsWhereInput[] OR?: WebDAVCredentialsWhereInput[] NOT?: WebDAVCredentialsWhereInput | WebDAVCredentialsWhereInput[] username?: StringFilter<"WebDAVCredentials"> | string password?: StringFilter<"WebDAVCredentials"> | string createdAt?: DateTimeFilter<"WebDAVCredentials"> | Date | string updatedAt?: DateTimeFilter<"WebDAVCredentials"> | Date | string user?: XOR }, "id" | "userId"> export type WebDAVCredentialsOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder username?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: WebDAVCredentialsCountOrderByAggregateInput _max?: WebDAVCredentialsMaxOrderByAggregateInput _min?: WebDAVCredentialsMinOrderByAggregateInput } export type WebDAVCredentialsScalarWhereWithAggregatesInput = { AND?: WebDAVCredentialsScalarWhereWithAggregatesInput | WebDAVCredentialsScalarWhereWithAggregatesInput[] OR?: WebDAVCredentialsScalarWhereWithAggregatesInput[] NOT?: WebDAVCredentialsScalarWhereWithAggregatesInput | WebDAVCredentialsScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"WebDAVCredentials"> | string userId?: StringWithAggregatesFilter<"WebDAVCredentials"> | string username?: StringWithAggregatesFilter<"WebDAVCredentials"> | string password?: StringWithAggregatesFilter<"WebDAVCredentials"> | string createdAt?: DateTimeWithAggregatesFilter<"WebDAVCredentials"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"WebDAVCredentials"> | Date | string } export type UserCreateInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string calendars?: CalendarCreateNestedManyWithoutUserInput events?: EventCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsCreateNestedOneWithoutUserInput webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput } export type UserUncheckedCreateInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput events?: EventUncheckedCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsUncheckedCreateNestedOneWithoutUserInput webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput } export type UserUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendars?: CalendarUpdateManyWithoutUserNestedInput events?: EventUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUpdateOneWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput events?: EventUncheckedUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUncheckedUpdateOneWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput } export type UserCreateManyInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string } export type UserUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CalendarCreateInput = { id?: string name: string color?: string description?: string | null createdAt?: Date | string updatedAt?: Date | string events?: EventCreateNestedManyWithoutCalendarInput user: UserCreateNestedOneWithoutCalendarsInput } export type CalendarUncheckedCreateInput = { id?: string name: string color?: string description?: string | null userId: string createdAt?: Date | string updatedAt?: Date | string events?: EventUncheckedCreateNestedManyWithoutCalendarInput } export type CalendarUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string color?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string events?: EventUpdateManyWithoutCalendarNestedInput user?: UserUpdateOneRequiredWithoutCalendarsNestedInput } export type CalendarUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string color?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string events?: EventUncheckedUpdateManyWithoutCalendarNestedInput } export type CalendarCreateManyInput = { id?: string name: string color?: string description?: string | null userId: string createdAt?: Date | string updatedAt?: Date | string } export type CalendarUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string color?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CalendarUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string color?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventCreateInput = { id?: string title: string description?: string | null start: Date | string end: Date | string location?: string | null isAllDay?: boolean createdAt?: Date | string updatedAt?: Date | string calendar: CalendarCreateNestedOneWithoutEventsInput user: UserCreateNestedOneWithoutEventsInput } export type EventUncheckedCreateInput = { id?: string title: string description?: string | null start: Date | string end: Date | string location?: string | null isAllDay?: boolean calendarId: string userId: string createdAt?: Date | string updatedAt?: Date | string } export type EventUpdateInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendar?: CalendarUpdateOneRequiredWithoutEventsNestedInput user?: UserUpdateOneRequiredWithoutEventsNestedInput } export type EventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean calendarId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventCreateManyInput = { id?: string title: string description?: string | null start: Date | string end: Date | string location?: string | null isAllDay?: boolean calendarId: string userId: string createdAt?: Date | string updatedAt?: Date | string } export type EventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean calendarId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MailCredentialsCreateInput = { id?: string email: string password: string host: string port: number createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutMailCredentialsInput } export type MailCredentialsUncheckedCreateInput = { id?: string userId: string email: string password: string host: string port: number createdAt?: Date | string updatedAt?: Date | string } export type MailCredentialsUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutMailCredentialsNestedInput } export type MailCredentialsUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MailCredentialsCreateManyInput = { id?: string userId: string email: string password: string host: string port: number createdAt?: Date | string updatedAt?: Date | string } export type MailCredentialsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MailCredentialsUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WebDAVCredentialsCreateInput = { id?: string username: string password: string createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutWebdavCredentialsInput } export type WebDAVCredentialsUncheckedCreateInput = { id?: string userId: string username: string password: string createdAt?: Date | string updatedAt?: Date | string } export type WebDAVCredentialsUpdateInput = { id?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutWebdavCredentialsNestedInput } export type WebDAVCredentialsUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WebDAVCredentialsCreateManyInput = { id?: string userId: string username: string password: string createdAt?: Date | string updatedAt?: Date | string } export type WebDAVCredentialsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WebDAVCredentialsUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | 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 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 CalendarListRelationFilter = { every?: CalendarWhereInput some?: CalendarWhereInput none?: CalendarWhereInput } export type EventListRelationFilter = { every?: EventWhereInput some?: EventWhereInput none?: EventWhereInput } export type MailCredentialsNullableScalarRelationFilter = { is?: MailCredentialsWhereInput | null isNot?: MailCredentialsWhereInput | null } export type WebDAVCredentialsNullableScalarRelationFilter = { is?: WebDAVCredentialsWhereInput | null isNot?: WebDAVCredentialsWhereInput | null } export type CalendarOrderByRelationAggregateInput = { _count?: SortOrder } export type EventOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder email?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder email?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder email?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } 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 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 StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null 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?: NestedStringNullableFilter<$PrismaModel> | string | null } export type UserScalarRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type CalendarCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder color?: SortOrder description?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CalendarMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder color?: SortOrder description?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CalendarMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder color?: SortOrder description?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null 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?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type CalendarScalarRelationFilter = { is?: CalendarWhereInput isNot?: CalendarWhereInput } export type EventCountOrderByAggregateInput = { id?: SortOrder title?: SortOrder description?: SortOrder start?: SortOrder end?: SortOrder location?: SortOrder isAllDay?: SortOrder calendarId?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EventMaxOrderByAggregateInput = { id?: SortOrder title?: SortOrder description?: SortOrder start?: SortOrder end?: SortOrder location?: SortOrder isAllDay?: SortOrder calendarId?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EventMinOrderByAggregateInput = { id?: SortOrder title?: SortOrder description?: SortOrder start?: SortOrder end?: SortOrder location?: SortOrder isAllDay?: SortOrder calendarId?: SortOrder userId?: SortOrder createdAt?: SortOrder updatedAt?: 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 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 MailCredentialsCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder email?: SortOrder password?: SortOrder host?: SortOrder port?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MailCredentialsAvgOrderByAggregateInput = { port?: SortOrder } export type MailCredentialsMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder email?: SortOrder password?: SortOrder host?: SortOrder port?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MailCredentialsMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder email?: SortOrder password?: SortOrder host?: SortOrder port?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type MailCredentialsSumOrderByAggregateInput = { port?: 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 WebDAVCredentialsCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder username?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type WebDAVCredentialsMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder username?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type WebDAVCredentialsMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder username?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CalendarCreateNestedManyWithoutUserInput = { create?: XOR | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[] connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[] createMany?: CalendarCreateManyUserInputEnvelope connect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] } export type EventCreateNestedManyWithoutUserInput = { create?: XOR | EventCreateWithoutUserInput[] | EventUncheckedCreateWithoutUserInput[] connectOrCreate?: EventCreateOrConnectWithoutUserInput | EventCreateOrConnectWithoutUserInput[] createMany?: EventCreateManyUserInputEnvelope connect?: EventWhereUniqueInput | EventWhereUniqueInput[] } export type MailCredentialsCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: MailCredentialsCreateOrConnectWithoutUserInput connect?: MailCredentialsWhereUniqueInput } export type WebDAVCredentialsCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: WebDAVCredentialsCreateOrConnectWithoutUserInput connect?: WebDAVCredentialsWhereUniqueInput } export type CalendarUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[] connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[] createMany?: CalendarCreateManyUserInputEnvelope connect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] } export type EventUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | EventCreateWithoutUserInput[] | EventUncheckedCreateWithoutUserInput[] connectOrCreate?: EventCreateOrConnectWithoutUserInput | EventCreateOrConnectWithoutUserInput[] createMany?: EventCreateManyUserInputEnvelope connect?: EventWhereUniqueInput | EventWhereUniqueInput[] } export type MailCredentialsUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: MailCredentialsCreateOrConnectWithoutUserInput connect?: MailCredentialsWhereUniqueInput } export type WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: WebDAVCredentialsCreateOrConnectWithoutUserInput connect?: WebDAVCredentialsWhereUniqueInput } export type StringFieldUpdateOperationsInput = { set?: string } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type CalendarUpdateManyWithoutUserNestedInput = { create?: XOR | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[] connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[] upsert?: CalendarUpsertWithWhereUniqueWithoutUserInput | CalendarUpsertWithWhereUniqueWithoutUserInput[] createMany?: CalendarCreateManyUserInputEnvelope set?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] disconnect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] delete?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] connect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] update?: CalendarUpdateWithWhereUniqueWithoutUserInput | CalendarUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CalendarUpdateManyWithWhereWithoutUserInput | CalendarUpdateManyWithWhereWithoutUserInput[] deleteMany?: CalendarScalarWhereInput | CalendarScalarWhereInput[] } export type EventUpdateManyWithoutUserNestedInput = { create?: XOR | EventCreateWithoutUserInput[] | EventUncheckedCreateWithoutUserInput[] connectOrCreate?: EventCreateOrConnectWithoutUserInput | EventCreateOrConnectWithoutUserInput[] upsert?: EventUpsertWithWhereUniqueWithoutUserInput | EventUpsertWithWhereUniqueWithoutUserInput[] createMany?: EventCreateManyUserInputEnvelope set?: EventWhereUniqueInput | EventWhereUniqueInput[] disconnect?: EventWhereUniqueInput | EventWhereUniqueInput[] delete?: EventWhereUniqueInput | EventWhereUniqueInput[] connect?: EventWhereUniqueInput | EventWhereUniqueInput[] update?: EventUpdateWithWhereUniqueWithoutUserInput | EventUpdateWithWhereUniqueWithoutUserInput[] updateMany?: EventUpdateManyWithWhereWithoutUserInput | EventUpdateManyWithWhereWithoutUserInput[] deleteMany?: EventScalarWhereInput | EventScalarWhereInput[] } export type MailCredentialsUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: MailCredentialsCreateOrConnectWithoutUserInput upsert?: MailCredentialsUpsertWithoutUserInput disconnect?: MailCredentialsWhereInput | boolean delete?: MailCredentialsWhereInput | boolean connect?: MailCredentialsWhereUniqueInput update?: XOR, MailCredentialsUncheckedUpdateWithoutUserInput> } export type WebDAVCredentialsUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: WebDAVCredentialsCreateOrConnectWithoutUserInput upsert?: WebDAVCredentialsUpsertWithoutUserInput disconnect?: WebDAVCredentialsWhereInput | boolean delete?: WebDAVCredentialsWhereInput | boolean connect?: WebDAVCredentialsWhereUniqueInput update?: XOR, WebDAVCredentialsUncheckedUpdateWithoutUserInput> } export type CalendarUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[] connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[] upsert?: CalendarUpsertWithWhereUniqueWithoutUserInput | CalendarUpsertWithWhereUniqueWithoutUserInput[] createMany?: CalendarCreateManyUserInputEnvelope set?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] disconnect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] delete?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] connect?: CalendarWhereUniqueInput | CalendarWhereUniqueInput[] update?: CalendarUpdateWithWhereUniqueWithoutUserInput | CalendarUpdateWithWhereUniqueWithoutUserInput[] updateMany?: CalendarUpdateManyWithWhereWithoutUserInput | CalendarUpdateManyWithWhereWithoutUserInput[] deleteMany?: CalendarScalarWhereInput | CalendarScalarWhereInput[] } export type EventUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | EventCreateWithoutUserInput[] | EventUncheckedCreateWithoutUserInput[] connectOrCreate?: EventCreateOrConnectWithoutUserInput | EventCreateOrConnectWithoutUserInput[] upsert?: EventUpsertWithWhereUniqueWithoutUserInput | EventUpsertWithWhereUniqueWithoutUserInput[] createMany?: EventCreateManyUserInputEnvelope set?: EventWhereUniqueInput | EventWhereUniqueInput[] disconnect?: EventWhereUniqueInput | EventWhereUniqueInput[] delete?: EventWhereUniqueInput | EventWhereUniqueInput[] connect?: EventWhereUniqueInput | EventWhereUniqueInput[] update?: EventUpdateWithWhereUniqueWithoutUserInput | EventUpdateWithWhereUniqueWithoutUserInput[] updateMany?: EventUpdateManyWithWhereWithoutUserInput | EventUpdateManyWithWhereWithoutUserInput[] deleteMany?: EventScalarWhereInput | EventScalarWhereInput[] } export type MailCredentialsUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: MailCredentialsCreateOrConnectWithoutUserInput upsert?: MailCredentialsUpsertWithoutUserInput disconnect?: MailCredentialsWhereInput | boolean delete?: MailCredentialsWhereInput | boolean connect?: MailCredentialsWhereUniqueInput update?: XOR, MailCredentialsUncheckedUpdateWithoutUserInput> } export type WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: WebDAVCredentialsCreateOrConnectWithoutUserInput upsert?: WebDAVCredentialsUpsertWithoutUserInput disconnect?: WebDAVCredentialsWhereInput | boolean delete?: WebDAVCredentialsWhereInput | boolean connect?: WebDAVCredentialsWhereUniqueInput update?: XOR, WebDAVCredentialsUncheckedUpdateWithoutUserInput> } export type EventCreateNestedManyWithoutCalendarInput = { create?: XOR | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[] connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[] createMany?: EventCreateManyCalendarInputEnvelope connect?: EventWhereUniqueInput | EventWhereUniqueInput[] } export type UserCreateNestedOneWithoutCalendarsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCalendarsInput connect?: UserWhereUniqueInput } export type EventUncheckedCreateNestedManyWithoutCalendarInput = { create?: XOR | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[] connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[] createMany?: EventCreateManyCalendarInputEnvelope connect?: EventWhereUniqueInput | EventWhereUniqueInput[] } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type EventUpdateManyWithoutCalendarNestedInput = { create?: XOR | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[] connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[] upsert?: EventUpsertWithWhereUniqueWithoutCalendarInput | EventUpsertWithWhereUniqueWithoutCalendarInput[] createMany?: EventCreateManyCalendarInputEnvelope set?: EventWhereUniqueInput | EventWhereUniqueInput[] disconnect?: EventWhereUniqueInput | EventWhereUniqueInput[] delete?: EventWhereUniqueInput | EventWhereUniqueInput[] connect?: EventWhereUniqueInput | EventWhereUniqueInput[] update?: EventUpdateWithWhereUniqueWithoutCalendarInput | EventUpdateWithWhereUniqueWithoutCalendarInput[] updateMany?: EventUpdateManyWithWhereWithoutCalendarInput | EventUpdateManyWithWhereWithoutCalendarInput[] deleteMany?: EventScalarWhereInput | EventScalarWhereInput[] } export type UserUpdateOneRequiredWithoutCalendarsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutCalendarsInput upsert?: UserUpsertWithoutCalendarsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutCalendarsInput> } export type EventUncheckedUpdateManyWithoutCalendarNestedInput = { create?: XOR | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[] connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[] upsert?: EventUpsertWithWhereUniqueWithoutCalendarInput | EventUpsertWithWhereUniqueWithoutCalendarInput[] createMany?: EventCreateManyCalendarInputEnvelope set?: EventWhereUniqueInput | EventWhereUniqueInput[] disconnect?: EventWhereUniqueInput | EventWhereUniqueInput[] delete?: EventWhereUniqueInput | EventWhereUniqueInput[] connect?: EventWhereUniqueInput | EventWhereUniqueInput[] update?: EventUpdateWithWhereUniqueWithoutCalendarInput | EventUpdateWithWhereUniqueWithoutCalendarInput[] updateMany?: EventUpdateManyWithWhereWithoutCalendarInput | EventUpdateManyWithWhereWithoutCalendarInput[] deleteMany?: EventScalarWhereInput | EventScalarWhereInput[] } export type CalendarCreateNestedOneWithoutEventsInput = { create?: XOR connectOrCreate?: CalendarCreateOrConnectWithoutEventsInput connect?: CalendarWhereUniqueInput } export type UserCreateNestedOneWithoutEventsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutEventsInput connect?: UserWhereUniqueInput } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type CalendarUpdateOneRequiredWithoutEventsNestedInput = { create?: XOR connectOrCreate?: CalendarCreateOrConnectWithoutEventsInput upsert?: CalendarUpsertWithoutEventsInput connect?: CalendarWhereUniqueInput update?: XOR, CalendarUncheckedUpdateWithoutEventsInput> } export type UserUpdateOneRequiredWithoutEventsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutEventsInput upsert?: UserUpsertWithoutEventsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutEventsInput> } export type UserCreateNestedOneWithoutMailCredentialsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutMailCredentialsInput connect?: UserWhereUniqueInput } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type UserUpdateOneRequiredWithoutMailCredentialsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutMailCredentialsInput upsert?: UserUpsertWithoutMailCredentialsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutMailCredentialsInput> } export type UserCreateNestedOneWithoutWebdavCredentialsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutWebdavCredentialsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutWebdavCredentialsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutWebdavCredentialsInput upsert?: UserUpsertWithoutWebdavCredentialsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutWebdavCredentialsInput> } 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 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 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 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 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 NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null 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?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null 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?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } 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 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 CalendarCreateWithoutUserInput = { id?: string name: string color?: string description?: string | null createdAt?: Date | string updatedAt?: Date | string events?: EventCreateNestedManyWithoutCalendarInput } export type CalendarUncheckedCreateWithoutUserInput = { id?: string name: string color?: string description?: string | null createdAt?: Date | string updatedAt?: Date | string events?: EventUncheckedCreateNestedManyWithoutCalendarInput } export type CalendarCreateOrConnectWithoutUserInput = { where: CalendarWhereUniqueInput create: XOR } export type CalendarCreateManyUserInputEnvelope = { data: CalendarCreateManyUserInput | CalendarCreateManyUserInput[] skipDuplicates?: boolean } export type EventCreateWithoutUserInput = { id?: string title: string description?: string | null start: Date | string end: Date | string location?: string | null isAllDay?: boolean createdAt?: Date | string updatedAt?: Date | string calendar: CalendarCreateNestedOneWithoutEventsInput } export type EventUncheckedCreateWithoutUserInput = { id?: string title: string description?: string | null start: Date | string end: Date | string location?: string | null isAllDay?: boolean calendarId: string createdAt?: Date | string updatedAt?: Date | string } export type EventCreateOrConnectWithoutUserInput = { where: EventWhereUniqueInput create: XOR } export type EventCreateManyUserInputEnvelope = { data: EventCreateManyUserInput | EventCreateManyUserInput[] skipDuplicates?: boolean } export type MailCredentialsCreateWithoutUserInput = { id?: string email: string password: string host: string port: number createdAt?: Date | string updatedAt?: Date | string } export type MailCredentialsUncheckedCreateWithoutUserInput = { id?: string email: string password: string host: string port: number createdAt?: Date | string updatedAt?: Date | string } export type MailCredentialsCreateOrConnectWithoutUserInput = { where: MailCredentialsWhereUniqueInput create: XOR } export type WebDAVCredentialsCreateWithoutUserInput = { id?: string username: string password: string createdAt?: Date | string updatedAt?: Date | string } export type WebDAVCredentialsUncheckedCreateWithoutUserInput = { id?: string username: string password: string createdAt?: Date | string updatedAt?: Date | string } export type WebDAVCredentialsCreateOrConnectWithoutUserInput = { where: WebDAVCredentialsWhereUniqueInput create: XOR } export type CalendarUpsertWithWhereUniqueWithoutUserInput = { where: CalendarWhereUniqueInput update: XOR create: XOR } export type CalendarUpdateWithWhereUniqueWithoutUserInput = { where: CalendarWhereUniqueInput data: XOR } export type CalendarUpdateManyWithWhereWithoutUserInput = { where: CalendarScalarWhereInput data: XOR } export type CalendarScalarWhereInput = { AND?: CalendarScalarWhereInput | CalendarScalarWhereInput[] OR?: CalendarScalarWhereInput[] NOT?: CalendarScalarWhereInput | CalendarScalarWhereInput[] id?: StringFilter<"Calendar"> | string name?: StringFilter<"Calendar"> | string color?: StringFilter<"Calendar"> | string description?: StringNullableFilter<"Calendar"> | string | null userId?: StringFilter<"Calendar"> | string createdAt?: DateTimeFilter<"Calendar"> | Date | string updatedAt?: DateTimeFilter<"Calendar"> | Date | string } export type EventUpsertWithWhereUniqueWithoutUserInput = { where: EventWhereUniqueInput update: XOR create: XOR } export type EventUpdateWithWhereUniqueWithoutUserInput = { where: EventWhereUniqueInput data: XOR } export type EventUpdateManyWithWhereWithoutUserInput = { where: EventScalarWhereInput data: XOR } export type EventScalarWhereInput = { AND?: EventScalarWhereInput | EventScalarWhereInput[] OR?: EventScalarWhereInput[] NOT?: EventScalarWhereInput | EventScalarWhereInput[] id?: StringFilter<"Event"> | string title?: StringFilter<"Event"> | string description?: StringNullableFilter<"Event"> | string | null start?: DateTimeFilter<"Event"> | Date | string end?: DateTimeFilter<"Event"> | Date | string location?: StringNullableFilter<"Event"> | string | null isAllDay?: BoolFilter<"Event"> | boolean calendarId?: StringFilter<"Event"> | string userId?: StringFilter<"Event"> | string createdAt?: DateTimeFilter<"Event"> | Date | string updatedAt?: DateTimeFilter<"Event"> | Date | string } export type MailCredentialsUpsertWithoutUserInput = { update: XOR create: XOR where?: MailCredentialsWhereInput } export type MailCredentialsUpdateToOneWithWhereWithoutUserInput = { where?: MailCredentialsWhereInput data: XOR } export type MailCredentialsUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type MailCredentialsUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WebDAVCredentialsUpsertWithoutUserInput = { update: XOR create: XOR where?: WebDAVCredentialsWhereInput } export type WebDAVCredentialsUpdateToOneWithWhereWithoutUserInput = { where?: WebDAVCredentialsWhereInput data: XOR } export type WebDAVCredentialsUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type WebDAVCredentialsUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string username?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventCreateWithoutCalendarInput = { id?: string title: string description?: string | null start: Date | string end: Date | string location?: string | null isAllDay?: boolean createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutEventsInput } export type EventUncheckedCreateWithoutCalendarInput = { id?: string title: string description?: string | null start: Date | string end: Date | string location?: string | null isAllDay?: boolean userId: string createdAt?: Date | string updatedAt?: Date | string } export type EventCreateOrConnectWithoutCalendarInput = { where: EventWhereUniqueInput create: XOR } export type EventCreateManyCalendarInputEnvelope = { data: EventCreateManyCalendarInput | EventCreateManyCalendarInput[] skipDuplicates?: boolean } export type UserCreateWithoutCalendarsInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string events?: EventCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsCreateNestedOneWithoutUserInput webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput } export type UserUncheckedCreateWithoutCalendarsInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string events?: EventUncheckedCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsUncheckedCreateNestedOneWithoutUserInput webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput } export type UserCreateOrConnectWithoutCalendarsInput = { where: UserWhereUniqueInput create: XOR } export type EventUpsertWithWhereUniqueWithoutCalendarInput = { where: EventWhereUniqueInput update: XOR create: XOR } export type EventUpdateWithWhereUniqueWithoutCalendarInput = { where: EventWhereUniqueInput data: XOR } export type EventUpdateManyWithWhereWithoutCalendarInput = { where: EventScalarWhereInput data: XOR } export type UserUpsertWithoutCalendarsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutCalendarsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutCalendarsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string events?: EventUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUpdateOneWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutCalendarsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string events?: EventUncheckedUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUncheckedUpdateOneWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput } export type CalendarCreateWithoutEventsInput = { id?: string name: string color?: string description?: string | null createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutCalendarsInput } export type CalendarUncheckedCreateWithoutEventsInput = { id?: string name: string color?: string description?: string | null userId: string createdAt?: Date | string updatedAt?: Date | string } export type CalendarCreateOrConnectWithoutEventsInput = { where: CalendarWhereUniqueInput create: XOR } export type UserCreateWithoutEventsInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string calendars?: CalendarCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsCreateNestedOneWithoutUserInput webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput } export type UserUncheckedCreateWithoutEventsInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsUncheckedCreateNestedOneWithoutUserInput webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput } export type UserCreateOrConnectWithoutEventsInput = { where: UserWhereUniqueInput create: XOR } export type CalendarUpsertWithoutEventsInput = { update: XOR create: XOR where?: CalendarWhereInput } export type CalendarUpdateToOneWithWhereWithoutEventsInput = { where?: CalendarWhereInput data: XOR } export type CalendarUpdateWithoutEventsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string color?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutCalendarsNestedInput } export type CalendarUncheckedUpdateWithoutEventsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string color?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUpsertWithoutEventsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutEventsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutEventsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendars?: CalendarUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUpdateOneWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutEventsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUncheckedUpdateOneWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput } export type UserCreateWithoutMailCredentialsInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string calendars?: CalendarCreateNestedManyWithoutUserInput events?: EventCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput } export type UserUncheckedCreateWithoutMailCredentialsInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput events?: EventUncheckedCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput } export type UserCreateOrConnectWithoutMailCredentialsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutMailCredentialsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutMailCredentialsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutMailCredentialsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendars?: CalendarUpdateManyWithoutUserNestedInput events?: EventUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutMailCredentialsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput events?: EventUncheckedUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput } export type UserCreateWithoutWebdavCredentialsInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string calendars?: CalendarCreateNestedManyWithoutUserInput events?: EventCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsCreateNestedOneWithoutUserInput } export type UserUncheckedCreateWithoutWebdavCredentialsInput = { id?: string email: string password: string createdAt?: Date | string updatedAt?: Date | string calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput events?: EventUncheckedCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsUncheckedCreateNestedOneWithoutUserInput } export type UserCreateOrConnectWithoutWebdavCredentialsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutWebdavCredentialsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutWebdavCredentialsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutWebdavCredentialsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendars?: CalendarUpdateManyWithoutUserNestedInput events?: EventUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUpdateOneWithoutUserNestedInput } export type UserUncheckedUpdateWithoutWebdavCredentialsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string password?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput events?: EventUncheckedUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUncheckedUpdateOneWithoutUserNestedInput } export type CalendarCreateManyUserInput = { id?: string name: string color?: string description?: string | null createdAt?: Date | string updatedAt?: Date | string } export type EventCreateManyUserInput = { id?: string title: string description?: string | null start: Date | string end: Date | string location?: string | null isAllDay?: boolean calendarId: string createdAt?: Date | string updatedAt?: Date | string } export type CalendarUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string color?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string events?: EventUpdateManyWithoutCalendarNestedInput } export type CalendarUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string color?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string events?: EventUncheckedUpdateManyWithoutCalendarNestedInput } export type CalendarUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string color?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string calendar?: CalendarUpdateOneRequiredWithoutEventsNestedInput } export type EventUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean calendarId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean calendarId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventCreateManyCalendarInput = { id?: string title: string description?: string | null start: Date | string end: Date | string location?: string | null isAllDay?: boolean userId: string createdAt?: Date | string updatedAt?: Date | string } export type EventUpdateWithoutCalendarInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutEventsNestedInput } export type EventUncheckedUpdateWithoutCalendarInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EventUncheckedUpdateManyWithoutCalendarInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null start?: DateTimeFieldUpdateOperationsInput | Date | string end?: DateTimeFieldUpdateOperationsInput | Date | string location?: NullableStringFieldUpdateOperationsInput | string | null isAllDay?: BoolFieldUpdateOperationsInput | boolean userId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }