NeahFront3/node_modules/.prisma/client/index.d.ts
2025-04-09 18:02:58 +02:00

4213 lines
139 KiB
TypeScript

/**
* 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<T> = $Public.PrismaPromise<T>
/**
* Model Calendar
*
*/
export type Calendar = $Result.DefaultSelection<Prisma.$CalendarPayload>
/**
* Model Event
*
*/
export type Event = $Result.DefaultSelection<Prisma.$EventPayload>
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Calendars
* const calendars = await prisma.calendar.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.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new PrismaClient()
* // Fetch zero or more Calendars
* const calendars = await prisma.calendar.findMany()
* ```
*
*
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
*/
constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void;
/**
* Connect with the database
*/
$connect(): $Utils.JsPromise<void>;
/**
* Disconnect from the database
*/
$disconnect(): $Utils.JsPromise<void>;
/**
* 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<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* 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<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
/**
* 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<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* 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<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
/**
* 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<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call<Prisma.TypeMapCb, {
extArgs: ExtArgs
}>, ClientOptions>
/**
* `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<ExtArgs, ClientOptions>;
/**
* `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<ExtArgs, ClientOptions>;
}
export namespace Prisma {
export import DMMF = runtime.DMMF
export type PrismaPromise<T> = $Public.PrismaPromise<T>
/**
* 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<T> = runtime.Metric<T>
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<any>> = T extends PromiseLike<infer U> ? U : T;
/**
* Get the return type of a function which returns a Promise.
*/
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Prisma__Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
export type Enumerable<T> = T | Array<T>;
export type RequiredKeys<T> = {
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
}[keyof T]
export type TruthyKeys<T> = keyof {
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
}
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
/**
* Subset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
*/
export type Subset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never;
};
/**
* SelectSubset
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
* Additionally, it validates, if both select and include are present. If the case, it errors.
*/
export type SelectSubset<T, U> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
(T extends SelectAndInclude
? 'Please either choose `select` or `include`.'
: T extends SelectAndOmit
? 'Please either choose `select` or `omit`.'
: {})
/**
* Subset + Intersection
* @desc From `T` pick properties that exist in `U` and intersect `K`
*/
export type SubsetIntersection<T, U, K> = {
[key in keyof T]: key extends keyof U ? T[key] : never
} &
K
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
/**
* XOR is needed to have a real mutually exclusive union type
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
*/
type XOR<T, U> =
T extends object ?
U extends object ?
(Without<T, U> & U) | (Without<U, T> & T)
: U : T
/**
* Is T a Record?
*/
type IsObject<T extends any> = T extends Array<any>
? False
: T extends Date
? False
: T extends Uint8Array
? False
: T extends BigInt
? False
: T extends object
? True
: False
/**
* If it's T[], return T
*/
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
/**
* From ts-toolbelt
*/
type __Either<O extends object, K extends Key> = Omit<O, K> &
{
// Merge all but K
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
}[K]
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
type _Either<
O extends object,
K extends Key,
strict extends Boolean
> = {
1: EitherStrict<O, K>
0: EitherLoose<O, K>
}[strict]
type Either<
O extends object,
K extends Key,
strict extends Boolean = 1
> = O extends unknown ? _Either<O, K, strict> : never
export type Union = any
type PatchUndefined<O extends object, O1 extends object> = {
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
} & {}
/** Helper Types for "Merge" **/
export type IntersectOf<U extends Union> = (
U extends unknown ? (k: U) => void : never
) extends (k: infer I) => void
? I
: never
export type Overwrite<O extends object, O1 extends object> = {
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
} & {};
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
[K in keyof U]-?: At<U, K>;
}>>;
type Key = string | number | symbol;
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
1: AtStrict<O, K>;
0: AtLoose<O, K>;
}[strict];
export type ComputeRaw<A extends any> = A extends Function ? A : {
[K in keyof A]: A[K];
} & {};
export type OptionalFlat<O> = {
[K in keyof O]?: O[K];
} & {};
type _Record<K extends keyof any, T> = {
[P in K]: T;
};
// cause typescript not to expand types and preserve names
type NoExpand<T> = T extends unknown ? T : never;
// this type assumes the passed object is entirely optional
type AtLeast<O extends object, K extends string> = NoExpand<
O extends unknown
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
| {[P in keyof O as P extends K ? K : never]-?: O[P]} & O
: never>;
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
/** End Helper Types for "Merge" **/
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
/**
A [[Boolean]]
*/
export type Boolean = True | False
// /**
// 1
// */
export type True = 1
/**
0
*/
export type False = 0
export type Not<B extends Boolean> = {
0: 1
1: 0
}[B]
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
? 0 // anything `never` is false
: A1 extends A2
? 1
: 0
export type Has<U extends Union, U1 extends Union> = Not<
Extends<Exclude<U1, U>, U1>
>
export type Or<B1 extends Boolean, B2 extends Boolean> = {
0: {
0: 0
1: 1
}
1: {
0: 1
1: 1
}
}[B1][B2]
export type Keys<U extends Union> = U extends unknown ? keyof U : never
type Cast<A, B> = A extends B ? A : B;
export const type: unique symbol;
/**
* Used by group by
*/
export type GetScalarType<T, O> = O extends object ? {
[P in keyof T]: P extends keyof O
? O[P]
: never
} : never
type FieldPaths<
T,
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
> = IsObject<T> extends True ? U : T
type GetHavingFields<T> = {
[K in keyof T]: Or<
Or<Extends<'OR', K>, Extends<'AND', K>>,
Extends<'NOT', K>
> extends True
? // infer is only needed to not hit TS limit
// based on the brilliant idea of Pierre-Antoine Mills
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
T[K] extends infer TK
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
: never
: {} extends FieldPaths<T[K]>
? never
: K
}[keyof T]
/**
* Convert tuple to union
*/
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
/**
* Like `Pick`, but additionally can also accept an array of keys
*/
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
/**
* Exclude all keys with underscores
*/
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
export const ModelName: {
Calendar: 'Calendar',
Event: 'Event'
};
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<string, any>> {
returns: Prisma.TypeMap<this['params']['extArgs'], this['params']['clientOptions']>
}
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
meta: {
modelProps: "calendar" | "event"
txIsolationLevel: Prisma.TransactionIsolationLevel
}
model: {
Calendar: {
payload: Prisma.$CalendarPayload<ExtArgs>
fields: Prisma.CalendarFieldRefs
operations: {
findUnique: {
args: Prisma.CalendarFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload> | null
}
findUniqueOrThrow: {
args: Prisma.CalendarFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
findFirst: {
args: Prisma.CalendarFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload> | null
}
findFirstOrThrow: {
args: Prisma.CalendarFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
findMany: {
args: Prisma.CalendarFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>[]
}
create: {
args: Prisma.CalendarCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
createMany: {
args: Prisma.CalendarCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.CalendarCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>[]
}
delete: {
args: Prisma.CalendarDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
update: {
args: Prisma.CalendarUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
deleteMany: {
args: Prisma.CalendarDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.CalendarUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.CalendarUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>[]
}
upsert: {
args: Prisma.CalendarUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$CalendarPayload>
}
aggregate: {
args: Prisma.CalendarAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateCalendar>
}
groupBy: {
args: Prisma.CalendarGroupByArgs<ExtArgs>
result: $Utils.Optional<CalendarGroupByOutputType>[]
}
count: {
args: Prisma.CalendarCountArgs<ExtArgs>
result: $Utils.Optional<CalendarCountAggregateOutputType> | number
}
}
}
Event: {
payload: Prisma.$EventPayload<ExtArgs>
fields: Prisma.EventFieldRefs
operations: {
findUnique: {
args: Prisma.EventFindUniqueArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload> | null
}
findUniqueOrThrow: {
args: Prisma.EventFindUniqueOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
findFirst: {
args: Prisma.EventFindFirstArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload> | null
}
findFirstOrThrow: {
args: Prisma.EventFindFirstOrThrowArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
findMany: {
args: Prisma.EventFindManyArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>[]
}
create: {
args: Prisma.EventCreateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
createMany: {
args: Prisma.EventCreateManyArgs<ExtArgs>
result: BatchPayload
}
createManyAndReturn: {
args: Prisma.EventCreateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>[]
}
delete: {
args: Prisma.EventDeleteArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
update: {
args: Prisma.EventUpdateArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
deleteMany: {
args: Prisma.EventDeleteManyArgs<ExtArgs>
result: BatchPayload
}
updateMany: {
args: Prisma.EventUpdateManyArgs<ExtArgs>
result: BatchPayload
}
updateManyAndReturn: {
args: Prisma.EventUpdateManyAndReturnArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>[]
}
upsert: {
args: Prisma.EventUpsertArgs<ExtArgs>
result: $Utils.PayloadToResult<Prisma.$EventPayload>
}
aggregate: {
args: Prisma.EventAggregateArgs<ExtArgs>
result: $Utils.Optional<AggregateEvent>
}
groupBy: {
args: Prisma.EventGroupByArgs<ExtArgs>
result: $Utils.Optional<EventGroupByOutputType>[]
}
count: {
args: Prisma.EventCountArgs<ExtArgs>
result: $Utils.Optional<EventCountAggregateOutputType> | 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 = {
calendar?: CalendarOmit
event?: EventOmit
}
/* Types for Logging */
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
export type LogDefinition = {
level: LogLevel
emit: 'stdout' | 'event'
}
export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ?
GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]>
: 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<T = any> = (
params: MiddlewareParams,
next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
) => $Utils.JsPromise<T>
// tested in getLogLevel.test.ts
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
/**
* `PrismaClient` proxy available in interactive transactions.
*/
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
export type Datasource = {
url?: string
}
/**
* Count Types
*/
/**
* Count Type CalendarCountOutputType
*/
export type CalendarCountOutputType = {
events: number
}
export type CalendarCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
events?: boolean | CalendarCountOutputTypeCountEventsArgs
}
// Custom InputTypes
/**
* CalendarCountOutputType without action
*/
export type CalendarCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CalendarCountOutputType
*/
select?: CalendarCountOutputTypeSelect<ExtArgs> | null
}
/**
* CalendarCountOutputType without action
*/
export type CalendarCountOutputTypeCountEventsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
where?: EventWhereInput
}
/**
* Models
*/
/**
* 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* 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<T extends CalendarAggregateArgs> = {
[P in keyof T & keyof AggregateCalendar]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateCalendar[P]>
: GetScalarType<T[P], AggregateCalendar[P]>
}
export type CalendarGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
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<T extends CalendarGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<CalendarGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof CalendarGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], CalendarGroupByOutputType[P]>
: GetScalarType<T[P], CalendarGroupByOutputType[P]>
}
>
>
export type CalendarSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
color?: boolean
description?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
events?: boolean | Calendar$eventsArgs<ExtArgs>
_count?: boolean | CalendarCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["calendar"]>
export type CalendarSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
color?: boolean
description?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["calendar"]>
export type CalendarSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
name?: boolean
color?: boolean
description?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["calendar"]>
export type CalendarSelectScalar = {
id?: boolean
name?: boolean
color?: boolean
description?: boolean
userId?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type CalendarOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "color" | "description" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["calendar"]>
export type CalendarInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
events?: boolean | Calendar$eventsArgs<ExtArgs>
_count?: boolean | CalendarCountOutputTypeDefaultArgs<ExtArgs>
}
export type CalendarIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type CalendarIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
export type $CalendarPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Calendar"
objects: {
events: Prisma.$EventPayload<ExtArgs>[]
}
scalars: $Extensions.GetPayloadResult<{
id: string
name: string
color: string
description: string | null
userId: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["calendar"]>
composites: {}
}
type CalendarGetPayload<S extends boolean | null | undefined | CalendarDefaultArgs> = $Result.GetResult<Prisma.$CalendarPayload, S>
type CalendarCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<CalendarFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: CalendarCountAggregateInputType | true
}
export interface CalendarDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends CalendarFindUniqueArgs>(args: SelectSubset<T, CalendarFindUniqueArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarFindUniqueOrThrowArgs>(args: SelectSubset<T, CalendarFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarFindFirstArgs>(args?: SelectSubset<T, CalendarFindFirstArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarFindFirstOrThrowArgs>(args?: SelectSubset<T, CalendarFindFirstOrThrowArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarFindManyArgs>(args?: SelectSubset<T, CalendarFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarCreateArgs>(args: SelectSubset<T, CalendarCreateArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarCreateManyArgs>(args?: SelectSubset<T, CalendarCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends CalendarCreateManyAndReturnArgs>(args?: SelectSubset<T, CalendarCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarDeleteArgs>(args: SelectSubset<T, CalendarDeleteArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarUpdateArgs>(args: SelectSubset<T, CalendarUpdateArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarDeleteManyArgs>(args?: SelectSubset<T, CalendarDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends CalendarUpdateManyArgs>(args: SelectSubset<T, CalendarUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends CalendarUpdateManyAndReturnArgs>(args: SelectSubset<T, CalendarUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarUpsertArgs>(args: SelectSubset<T, CalendarUpsertArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<T extends CalendarCountArgs>(
args?: Subset<T, CalendarCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], CalendarCountAggregateOutputType>
: 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<T extends CalendarAggregateArgs>(args: Subset<T, CalendarAggregateArgs>): Prisma.PrismaPromise<GetCalendarAggregateType<T>>
/**
* 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<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: CalendarGroupByArgs['orderBy'] }
: { orderBy?: CalendarGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Keys<T>
? 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<T>
? 'orderBy' extends Keys<T>
? 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<T, CalendarGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCalendarGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
events<T extends Calendar$eventsArgs<ExtArgs> = {}>(args?: Subset<T, Calendar$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", ClientOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* Filter, which Calendar to fetch.
*/
where: CalendarWhereUniqueInput
}
/**
* Calendar findUniqueOrThrow
*/
export type CalendarFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* Filter, which Calendar to fetch.
*/
where: CalendarWhereUniqueInput
}
/**
* Calendar findFirst
*/
export type CalendarFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* The data needed to create a Calendar.
*/
data: XOR<CalendarCreateInput, CalendarUncheckedCreateInput>
}
/**
* Calendar createMany
*/
export type CalendarCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Calendars.
*/
data: CalendarCreateManyInput | CalendarCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Calendar createManyAndReturn
*/
export type CalendarCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* The data used to create many Calendars.
*/
data: CalendarCreateManyInput | CalendarCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Calendar update
*/
export type CalendarUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* The data needed to update a Calendar.
*/
data: XOR<CalendarUpdateInput, CalendarUncheckedUpdateInput>
/**
* Choose, which Calendar to update.
*/
where: CalendarWhereUniqueInput
}
/**
* Calendar updateMany
*/
export type CalendarUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Calendars.
*/
data: XOR<CalendarUpdateManyMutationInput, CalendarUncheckedUpdateManyInput>
/**
* Filter which Calendars to update
*/
where?: CalendarWhereInput
/**
* Limit how many Calendars to update.
*/
limit?: number
}
/**
* Calendar updateManyAndReturn
*/
export type CalendarUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* The data used to update Calendars.
*/
data: XOR<CalendarUpdateManyMutationInput, CalendarUncheckedUpdateManyInput>
/**
* Filter which Calendars to update
*/
where?: CalendarWhereInput
/**
* Limit how many Calendars to update.
*/
limit?: number
}
/**
* Calendar upsert
*/
export type CalendarUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | 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<CalendarCreateInput, CalendarUncheckedCreateInput>
/**
* In case the Calendar was found with the provided `where` argument, update it with this data.
*/
update: XOR<CalendarUpdateInput, CalendarUncheckedUpdateInput>
}
/**
* Calendar delete
*/
export type CalendarDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | null
/**
* Filter which Calendar to delete.
*/
where: CalendarWhereUniqueInput
}
/**
* Calendar deleteMany
*/
export type CalendarDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Calendars to delete
*/
where?: CalendarWhereInput
/**
* Limit how many Calendars to delete.
*/
limit?: number
}
/**
* Calendar.events
*/
export type Calendar$eventsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
where?: EventWhereInput
orderBy?: EventOrderByWithRelationInput | EventOrderByWithRelationInput[]
cursor?: EventWhereUniqueInput
take?: number
skip?: number
distinct?: EventScalarFieldEnum | EventScalarFieldEnum[]
}
/**
* Calendar without action
*/
export type CalendarDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Calendar
*/
select?: CalendarSelect<ExtArgs> | null
/**
* Omit specific fields from the Calendar
*/
omit?: CalendarOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: CalendarInclude<ExtArgs> | 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
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
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
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
createdAt?: true
updatedAt?: true
}
export type EventMaxAggregateInputType = {
id?: true
title?: true
description?: true
start?: true
end?: true
location?: true
isAllDay?: true
calendarId?: true
createdAt?: true
updatedAt?: true
}
export type EventCountAggregateInputType = {
id?: true
title?: true
description?: true
start?: true
end?: true
location?: true
isAllDay?: true
calendarId?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type EventAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* 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<T extends EventAggregateArgs> = {
[P in keyof T & keyof AggregateEvent]: P extends '_count' | 'count'
? T[P] extends true
? number
: GetScalarType<T[P], AggregateEvent[P]>
: GetScalarType<T[P], AggregateEvent[P]>
}
export type EventGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
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
createdAt: Date
updatedAt: Date
_count: EventCountAggregateOutputType | null
_min: EventMinAggregateOutputType | null
_max: EventMaxAggregateOutputType | null
}
type GetEventGroupByPayload<T extends EventGroupByArgs> = Prisma.PrismaPromise<
Array<
PickEnumerable<EventGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof EventGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: GetScalarType<T[P], EventGroupByOutputType[P]>
: GetScalarType<T[P], EventGroupByOutputType[P]>
}
>
>
export type EventSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
description?: boolean
start?: boolean
end?: boolean
location?: boolean
isAllDay?: boolean
calendarId?: boolean
createdAt?: boolean
updatedAt?: boolean
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
}, ExtArgs["result"]["event"]>
export type EventSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
description?: boolean
start?: boolean
end?: boolean
location?: boolean
isAllDay?: boolean
calendarId?: boolean
createdAt?: boolean
updatedAt?: boolean
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
}, ExtArgs["result"]["event"]>
export type EventSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
id?: boolean
title?: boolean
description?: boolean
start?: boolean
end?: boolean
location?: boolean
isAllDay?: boolean
calendarId?: boolean
createdAt?: boolean
updatedAt?: boolean
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
}, ExtArgs["result"]["event"]>
export type EventSelectScalar = {
id?: boolean
title?: boolean
description?: boolean
start?: boolean
end?: boolean
location?: boolean
isAllDay?: boolean
calendarId?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type EventOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "title" | "description" | "start" | "end" | "location" | "isAllDay" | "calendarId" | "createdAt" | "updatedAt", ExtArgs["result"]["event"]>
export type EventInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
}
export type EventIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
}
export type EventIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
calendar?: boolean | CalendarDefaultArgs<ExtArgs>
}
export type $EventPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
name: "Event"
objects: {
calendar: Prisma.$CalendarPayload<ExtArgs>
}
scalars: $Extensions.GetPayloadResult<{
id: string
title: string
description: string | null
start: Date
end: Date
location: string | null
isAllDay: boolean
calendarId: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["event"]>
composites: {}
}
type EventGetPayload<S extends boolean | null | undefined | EventDefaultArgs> = $Result.GetResult<Prisma.$EventPayload, S>
type EventCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
Omit<EventFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: EventCountAggregateInputType | true
}
export interface EventDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends EventFindUniqueArgs>(args: SelectSubset<T, EventFindUniqueArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventFindUniqueOrThrowArgs>(args: SelectSubset<T, EventFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventFindFirstArgs>(args?: SelectSubset<T, EventFindFirstArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventFindFirstOrThrowArgs>(args?: SelectSubset<T, EventFindFirstOrThrowArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventFindManyArgs>(args?: SelectSubset<T, EventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventCreateArgs>(args: SelectSubset<T, EventCreateArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventCreateManyArgs>(args?: SelectSubset<T, EventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends EventCreateManyAndReturnArgs>(args?: SelectSubset<T, EventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventDeleteArgs>(args: SelectSubset<T, EventDeleteArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventUpdateArgs>(args: SelectSubset<T, EventUpdateArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventDeleteManyArgs>(args?: SelectSubset<T, EventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends EventUpdateManyArgs>(args: SelectSubset<T, EventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
/**
* 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<T extends EventUpdateManyAndReturnArgs>(args: SelectSubset<T, EventUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventUpsertArgs>(args: SelectSubset<T, EventUpsertArgs<ExtArgs>>): Prisma__EventClient<$Result.GetResult<Prisma.$EventPayload<ExtArgs>, 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<T extends EventCountArgs>(
args?: Subset<T, EventCountArgs>,
): Prisma.PrismaPromise<
T extends $Utils.Record<'select', any>
? T['select'] extends true
? number
: GetScalarType<T['select'], EventCountAggregateOutputType>
: 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<T extends EventAggregateArgs>(args: Subset<T, EventAggregateArgs>): Prisma.PrismaPromise<GetEventAggregateType<T>>
/**
* 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<T>>,
Extends<'take', Keys<T>>
>,
OrderByArg extends True extends HasSelectOrTake
? { orderBy: EventGroupByArgs['orderBy'] }
: { orderBy?: EventGroupByArgs['orderBy'] },
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends MaybeTupleToUnion<T['by']>,
ByValid extends Has<ByFields, OrderFields>,
HavingFields extends GetHavingFields<T['having']>,
HavingValid extends Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Keys<T>
? 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<T>
? 'orderBy' extends Keys<T>
? 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<T, EventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
calendar<T extends CalendarDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CalendarDefaultArgs<ExtArgs>>): Prisma__CalendarClient<$Result.GetResult<Prisma.$CalendarPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* 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 createdAt: FieldRef<"Event", 'DateTime'>
readonly updatedAt: FieldRef<"Event", 'DateTime'>
}
// Custom InputTypes
/**
* Event findUnique
*/
export type EventFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where: EventWhereUniqueInput
}
/**
* Event findUniqueOrThrow
*/
export type EventFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter, which Event to fetch.
*/
where: EventWhereUniqueInput
}
/**
* Event findFirst
*/
export type EventFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* The data needed to create a Event.
*/
data: XOR<EventCreateInput, EventUncheckedCreateInput>
}
/**
* Event createMany
*/
export type EventCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to create many Events.
*/
data: EventCreateManyInput | EventCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Event createManyAndReturn
*/
export type EventCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* The data used to create many Events.
*/
data: EventCreateManyInput | EventCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: EventIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Event update
*/
export type EventUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* The data needed to update a Event.
*/
data: XOR<EventUpdateInput, EventUncheckedUpdateInput>
/**
* Choose, which Event to update.
*/
where: EventWhereUniqueInput
}
/**
* Event updateMany
*/
export type EventUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* The data used to update Events.
*/
data: XOR<EventUpdateManyMutationInput, EventUncheckedUpdateManyInput>
/**
* Filter which Events to update
*/
where?: EventWhereInput
/**
* Limit how many Events to update.
*/
limit?: number
}
/**
* Event updateManyAndReturn
*/
export type EventUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* The data used to update Events.
*/
data: XOR<EventUpdateManyMutationInput, EventUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* Event upsert
*/
export type EventUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | 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<EventCreateInput, EventUncheckedCreateInput>
/**
* In case the Event was found with the provided `where` argument, update it with this data.
*/
update: XOR<EventUpdateInput, EventUncheckedUpdateInput>
}
/**
* Event delete
*/
export type EventDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
/**
* Filter which Event to delete.
*/
where: EventWhereUniqueInput
}
/**
* Event deleteMany
*/
export type EventDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Filter which Events to delete
*/
where?: EventWhereInput
/**
* Limit how many Events to delete.
*/
limit?: number
}
/**
* Event without action
*/
export type EventDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Event
*/
select?: EventSelect<ExtArgs> | null
/**
* Omit specific fields from the Event
*/
omit?: EventOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: EventInclude<ExtArgs> | null
}
/**
* Enums
*/
export const TransactionIsolationLevel: {
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
};
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
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',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum]
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[]'>
/**
* Deep Input Types
*/
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
}
export type CalendarOrderByWithRelationInput = {
id?: SortOrder
name?: SortOrder
color?: SortOrder
description?: SortOrderInput | SortOrder
userId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
events?: EventOrderByRelationAggregateInput
}
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
}, "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
createdAt?: DateTimeFilter<"Event"> | Date | string
updatedAt?: DateTimeFilter<"Event"> | Date | string
calendar?: XOR<CalendarScalarRelationFilter, CalendarWhereInput>
}
export type EventOrderByWithRelationInput = {
id?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
start?: SortOrder
end?: SortOrder
location?: SortOrderInput | SortOrder
isAllDay?: SortOrder
calendarId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
calendar?: CalendarOrderByWithRelationInput
}
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
createdAt?: DateTimeFilter<"Event"> | Date | string
updatedAt?: DateTimeFilter<"Event"> | Date | string
calendar?: XOR<CalendarScalarRelationFilter, CalendarWhereInput>
}, "id">
export type EventOrderByWithAggregationInput = {
id?: SortOrder
title?: SortOrder
description?: SortOrderInput | SortOrder
start?: SortOrder
end?: SortOrder
location?: SortOrderInput | SortOrder
isAllDay?: SortOrder
calendarId?: 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
createdAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string
updatedAt?: DateTimeWithAggregatesFilter<"Event"> | Date | string
}
export type CalendarCreateInput = {
id?: string
name: string
color?: string
description?: string | null
userId: string
createdAt?: Date | string
updatedAt?: Date | string
events?: EventCreateNestedManyWithoutCalendarInput
}
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
userId?: StringFieldUpdateOperationsInput | string
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
events?: EventUpdateManyWithoutCalendarNestedInput
}
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
userId?: StringFieldUpdateOperationsInput | string
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
}
export type EventUncheckedCreateInput = {
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 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
}
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
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
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
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 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 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 EventListRelationFilter = {
every?: EventWhereInput
some?: EventWhereInput
none?: EventWhereInput
}
export type SortOrderInput = {
sort: SortOrder
nulls?: NullsOrder
}
export type EventOrderByRelationAggregateInput = {
_count?: SortOrder
}
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 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 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 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 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
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type EventMaxOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
description?: SortOrder
start?: SortOrder
end?: SortOrder
location?: SortOrder
isAllDay?: SortOrder
calendarId?: SortOrder
createdAt?: SortOrder
updatedAt?: SortOrder
}
export type EventMinOrderByAggregateInput = {
id?: SortOrder
title?: SortOrder
description?: SortOrder
start?: SortOrder
end?: SortOrder
location?: SortOrder
isAllDay?: SortOrder
calendarId?: 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 EventCreateNestedManyWithoutCalendarInput = {
create?: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput> | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[]
connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[]
createMany?: EventCreateManyCalendarInputEnvelope
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
}
export type EventUncheckedCreateNestedManyWithoutCalendarInput = {
create?: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput> | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[]
connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[]
createMany?: EventCreateManyCalendarInputEnvelope
connect?: EventWhereUniqueInput | EventWhereUniqueInput[]
}
export type StringFieldUpdateOperationsInput = {
set?: string
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type DateTimeFieldUpdateOperationsInput = {
set?: Date | string
}
export type EventUpdateManyWithoutCalendarNestedInput = {
create?: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput> | 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 EventUncheckedUpdateManyWithoutCalendarNestedInput = {
create?: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput> | 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<CalendarCreateWithoutEventsInput, CalendarUncheckedCreateWithoutEventsInput>
connectOrCreate?: CalendarCreateOrConnectWithoutEventsInput
connect?: CalendarWhereUniqueInput
}
export type BoolFieldUpdateOperationsInput = {
set?: boolean
}
export type CalendarUpdateOneRequiredWithoutEventsNestedInput = {
create?: XOR<CalendarCreateWithoutEventsInput, CalendarUncheckedCreateWithoutEventsInput>
connectOrCreate?: CalendarCreateOrConnectWithoutEventsInput
upsert?: CalendarUpsertWithoutEventsInput
connect?: CalendarWhereUniqueInput
update?: XOR<XOR<CalendarUpdateToOneWithWhereWithoutEventsInput, CalendarUpdateWithoutEventsInput>, CalendarUncheckedUpdateWithoutEventsInput>
}
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 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 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 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 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 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 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
}
export type EventUncheckedCreateWithoutCalendarInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type EventCreateOrConnectWithoutCalendarInput = {
where: EventWhereUniqueInput
create: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput>
}
export type EventCreateManyCalendarInputEnvelope = {
data: EventCreateManyCalendarInput | EventCreateManyCalendarInput[]
skipDuplicates?: boolean
}
export type EventUpsertWithWhereUniqueWithoutCalendarInput = {
where: EventWhereUniqueInput
update: XOR<EventUpdateWithoutCalendarInput, EventUncheckedUpdateWithoutCalendarInput>
create: XOR<EventCreateWithoutCalendarInput, EventUncheckedCreateWithoutCalendarInput>
}
export type EventUpdateWithWhereUniqueWithoutCalendarInput = {
where: EventWhereUniqueInput
data: XOR<EventUpdateWithoutCalendarInput, EventUncheckedUpdateWithoutCalendarInput>
}
export type EventUpdateManyWithWhereWithoutCalendarInput = {
where: EventScalarWhereInput
data: XOR<EventUpdateManyMutationInput, EventUncheckedUpdateManyWithoutCalendarInput>
}
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
createdAt?: DateTimeFilter<"Event"> | Date | string
updatedAt?: DateTimeFilter<"Event"> | Date | string
}
export type CalendarCreateWithoutEventsInput = {
id?: string
name: string
color?: string
description?: string | null
userId: string
createdAt?: Date | string
updatedAt?: Date | string
}
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<CalendarCreateWithoutEventsInput, CalendarUncheckedCreateWithoutEventsInput>
}
export type CalendarUpsertWithoutEventsInput = {
update: XOR<CalendarUpdateWithoutEventsInput, CalendarUncheckedUpdateWithoutEventsInput>
create: XOR<CalendarCreateWithoutEventsInput, CalendarUncheckedCreateWithoutEventsInput>
where?: CalendarWhereInput
}
export type CalendarUpdateToOneWithWhereWithoutEventsInput = {
where?: CalendarWhereInput
data: XOR<CalendarUpdateWithoutEventsInput, CalendarUncheckedUpdateWithoutEventsInput>
}
export type CalendarUpdateWithoutEventsInput = {
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 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 EventCreateManyCalendarInput = {
id?: string
title: string
description?: string | null
start: Date | string
end: Date | string
location?: string | null
isAllDay?: boolean
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
}
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
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
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
}