(query: string, ...values: any[]): PrismaPromise;
-
- /**
- * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
- * @example
- * ```
- * const [george, bob, alice] = await prisma.$transaction([
- * prisma.user.create({ data: { name: 'George' } }),
- * prisma.user.create({ data: { name: 'Bob' } }),
- * prisma.user.create({ data: { name: 'Alice' } }),
- * ])
- * ```
- *
- * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
- */
- $transaction[]>(arg: [...P]): Promise>;
-
- /**
- * `prisma.migration`: Exposes CRUD operations for the **Migration** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Migrations
- * const migrations = await prisma.migration.findMany()
- * ```
- */
- get migration(): Prisma.MigrationDelegate;
-
- /**
- * `prisma.library`: Exposes CRUD operations for the **Library** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Libraries
- * const libraries = await prisma.library.findMany()
- * ```
- */
- get library(): Prisma.LibraryDelegate;
-
- /**
- * `prisma.libraryStatistics`: Exposes CRUD operations for the **LibraryStatistics** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more LibraryStatistics
- * const libraryStatistics = await prisma.libraryStatistics.findMany()
- * ```
- */
- get libraryStatistics(): Prisma.LibraryStatisticsDelegate;
-
- /**
- * `prisma.client`: Exposes CRUD operations for the **Client** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Clients
- * const clients = await prisma.client.findMany()
- * ```
- */
- get client(): Prisma.ClientDelegate;
-
- /**
- * `prisma.location`: Exposes CRUD operations for the **Location** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Locations
- * const locations = await prisma.location.findMany()
- * ```
- */
- get location(): Prisma.LocationDelegate;
-
- /**
- * `prisma.file`: Exposes CRUD operations for the **File** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Files
- * const files = await prisma.file.findMany()
- * ```
- */
- get file(): Prisma.FileDelegate;
-
- /**
- * `prisma.tag`: Exposes CRUD operations for the **Tag** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Tags
- * const tags = await prisma.tag.findMany()
- * ```
- */
- get tag(): Prisma.TagDelegate;
-
- /**
- * `prisma.tagOnFile`: Exposes CRUD operations for the **TagOnFile** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more TagOnFiles
- * const tagOnFiles = await prisma.tagOnFile.findMany()
- * ```
- */
- get tagOnFile(): Prisma.TagOnFileDelegate;
-
- /**
- * `prisma.job`: Exposes CRUD operations for the **Job** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Jobs
- * const jobs = await prisma.job.findMany()
- * ```
- */
- get job(): Prisma.JobDelegate;
-
- /**
- * `prisma.space`: Exposes CRUD operations for the **Space** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Spaces
- * const spaces = await prisma.space.findMany()
- * ```
- */
- get space(): Prisma.SpaceDelegate;
-}
-
-export namespace Prisma {
- export import DMMF = runtime.DMMF
-
- /**
- * 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
-
- /**
- * Prisma Client JS version: 3.10.0
- * Query Engine version: 73e60b76d394f8d37d8ebd1f8918c79029f0db86
- */
- export type PrismaVersion = {
- client: string
- }
-
- export const prismaVersion: PrismaVersion
-
- /**
- * Utility Types
- */
-
- /**
- * From https://github.com/sindresorhus/type-fest/
- * Matches a JSON object.
- * This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from.
- */
- export type JsonObject = {[Key in string]?: JsonValue}
-
- /**
- * From https://github.com/sindresorhus/type-fest/
- * Matches a JSON array.
- */
- export interface JsonArray extends Array {}
-
- /**
- * From https://github.com/sindresorhus/type-fest/
- * Matches any valid JSON value.
- */
- export type JsonValue = string | number | boolean | JsonObject | JsonArray | null
-
- /**
- * Matches a JSON object.
- * Unlike `JsonObject`, this type allows undefined and read-only properties.
- */
- export type InputJsonObject = {readonly [Key in string]?: InputJsonValue | null}
-
- /**
- * Matches a JSON array.
- * Unlike `JsonArray`, readonly arrays are assignable to this type.
- */
- export interface InputJsonArray extends ReadonlyArray {}
-
- /**
- * Matches any valid value that can be used as an input for operations like
- * create and update as the value of a JSON field. Unlike `JsonValue`, this
- * type allows read-only arrays and read-only object properties and disallows
- * `null` at the top level.
- *
- * `null` cannot be used as the value of a JSON field because its meaning
- * would be ambiguous. Use `Prisma.JsonNull` to store the JSON null value or
- * `Prisma.DbNull` to clear the JSON value and set the field to the database
- * NULL value instead.
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values
- */
- export type InputJsonValue = string | number | boolean | InputJsonObject | InputJsonArray
-
- /**
- * 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: '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: '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: 'AnyNull'
-
- type SelectAndInclude = {
- select: any
- include: any
- }
- type HasSelect = {
- select: any
- }
- type HasInclude = {
- include: any
- }
- type CheckSelect = T extends SelectAndInclude
- ? 'Please either choose `select` or `include`'
- : T extends HasSelect
- ? U
- : T extends HasInclude
- ? U
- : S
-
- /**
- * Get the type of the value, that the Promise holds.
- */
- export type PromiseType> = T extends PromiseLike ? U : T;
-
- /**
- * Get the return type of a function which returns a Promise.
- */
- export type PromiseReturnType Promise> = PromiseType>
-
- /**
- * From T, pick a set of properties whose keys are in the union K
- */
- type Prisma__Pick = {
- [P in K]: T[P];
- };
-
-
- export type Enumerable = T | Array;
-
- export type RequiredKeys = {
- [K in keyof T]-?: {} extends Prisma__Pick ? never : K
- }[keyof T]
-
- export type TruthyKeys = {
- [key in keyof T]: T[key] extends false | undefined | null ? never : key
- }[keyof T]
-
- export type TrueKeys = TruthyKeys>>
-
- /**
- * Subset
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
- */
- export type Subset = {
- [key in keyof T]: key extends keyof U ? T[key] : never;
- };
-
- /**
- * SelectSubset
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
- * Additionally, it validates, if both select and include are present. If the case, it errors.
- */
- export type SelectSubset = {
- [key in keyof T]: key extends keyof U ? T[key] : never
- } &
- (T extends SelectAndInclude
- ? 'Please either choose `select` or `include`.'
- : {})
-
- /**
- * Subset + Intersection
- * @desc From `T` pick properties that exist in `U` and intersect `K`
- */
- export type SubsetIntersection = {
- [key in keyof T]: key extends keyof U ? T[key] : never
- } &
- K
-
- type Without = { [P in Exclude]?: never };
-
- /**
- * XOR is needed to have a real mutually exclusive union type
- * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
- */
- type XOR =
- T extends object ?
- U extends object ?
- (Without & U) | (Without & T)
- : U : T
-
-
- /**
- * Is T a Record?
- */
- type IsObject = T extends Array
- ? False
- : T extends Date
- ? False
- : T extends Buffer
- ? False
- : T extends BigInt
- ? False
- : T extends object
- ? True
- : False
-
-
- /**
- * If it's T[], return T
- */
- export type UnEnumerate = T extends Array ? U : T
-
- /**
- * From ts-toolbelt
- */
-
- type __Either = Omit &
- {
- // Merge all but K
- [P in K]: Prisma__Pick // With K possibilities
- }[K]
-
- type EitherStrict = Strict<__Either>
-
- type EitherLoose = ComputeRaw<__Either>
-
- type _Either<
- O extends object,
- K extends Key,
- strict extends Boolean
- > = {
- 1: EitherStrict
- 0: EitherLoose
- }[strict]
-
- type Either<
- O extends object,
- K extends Key,
- strict extends Boolean = 1
- > = O extends unknown ? _Either : never
-
- export type Union = any
-
- type PatchUndefined = {
- [K in keyof O]: O[K] extends undefined ? At : O[K]
- } & {}
-
- /** Helper Types for "Merge" **/
- export type IntersectOf = (
- U extends unknown ? (k: U) => void : never
- ) extends (k: infer I) => void
- ? I
- : never
-
- export type Overwrite = {
- [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
- } & {};
-
- type _Merge = IntersectOf;
- }>>;
-
- type Key = string | number | symbol;
- type AtBasic = K extends keyof O ? O[K] : never;
- type AtStrict = O[K & keyof O];
- type AtLoose = O extends unknown ? AtStrict : never;
- export type At = {
- 1: AtStrict;
- 0: AtLoose;
- }[strict];
-
- export type ComputeRaw = A extends Function ? A : {
- [K in keyof A]: A[K];
- } & {};
-
- export type OptionalFlat = {
- [K in keyof O]?: O[K];
- } & {};
-
- type _Record = {
- [P in K]: T;
- };
-
- type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never;
-
- export type Strict = ComputeRaw<_Strict>;
- /** End Helper Types for "Merge" **/
-
- export type Merge = ComputeRaw<_Merge>>;
-
- /**
- A [[Boolean]]
- */
- export type Boolean = True | False
-
- // /**
- // 1
- // */
- export type True = 1
-
- /**
- 0
- */
- export type False = 0
-
- export type Not = {
- 0: 1
- 1: 0
- }[B]
-
- export type Extends = [A1] extends [never]
- ? 0 // anything `never` is false
- : A1 extends A2
- ? 1
- : 0
-
- export type Has = Not<
- Extends, U1>
- >
-
- export type Or = {
- 0: {
- 0: 0
- 1: 1
- }
- 1: {
- 0: 1
- 1: 1
- }
- }[B1][B2]
-
- export type Keys = U extends unknown ? keyof U : never
-
- type Exact =
- W extends unknown ? A extends Narrowable ? Cast : Cast<
- {[K in keyof A]: K extends keyof W ? Exact : never},
- {[K in keyof W]: K extends keyof A ? Exact : W[K]}>
- : never;
-
- type Narrowable = string | number | boolean | bigint;
-
- type Cast = A extends B ? A : B;
-
- export const type: unique symbol;
-
- export function validator(): (select: Exact) => S;
-
- /**
- * Used by group by
- */
-
- export type GetScalarType = O extends object ? {
- [P in keyof T]: P extends keyof O
- ? O[P]
- : never
- } : never
-
- type FieldPaths<
- T,
- U = Omit
- > = IsObject extends True ? U : T
-
- type GetHavingFields = {
- [K in keyof T]: Or<
- Or, Extends<'AND', K>>,
- Extends<'NOT', K>
- > extends True
- ? // infer is only needed to not hit TS limit
- // based on the brilliant idea of Pierre-Antoine Mills
- // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
- T[K] extends infer TK
- ? GetHavingFields extends object ? Merge> : never>
- : never
- : {} extends FieldPaths
- ? never
- : K
- }[keyof T]
-
- /**
- * Convert tuple to union
- */
- type _TupleToUnion = T extends (infer E)[] ? E : never
- type TupleToUnion = _TupleToUnion
- type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T
-
- /**
- * Like `Pick`, but with an array
- */
- type PickArray> = Prisma__Pick>
-
- /**
- * Exclude all keys with underscores
- */
- type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T
-
- class PrismaClientFetcher {
- private readonly prisma;
- private readonly debug;
- private readonly hooks?;
- constructor(prisma: PrismaClient, debug?: boolean, hooks?: Hooks | undefined);
- request(document: any, dataPath?: string[], rootField?: string, typeName?: string, isList?: boolean, callsite?: string): Promise;
- sanitizeMessage(message: string): string;
- protected unpack(document: any, data: any, path: string[], rootField?: string, isList?: boolean): any;
- }
-
- export const ModelName: {
- Migration: 'Migration',
- Library: 'Library',
- LibraryStatistics: 'LibraryStatistics',
- Client: 'Client',
- Location: 'Location',
- File: 'File',
- Tag: 'Tag',
- TagOnFile: 'TagOnFile',
- Job: 'Job',
- Space: 'Space'
- };
-
- export type ModelName = (typeof ModelName)[keyof typeof ModelName]
-
-
- export type Datasources = {
- db?: Datasource
- }
-
- export type RejectOnNotFound = boolean | ((error: Error) => Error)
- export type RejectPerModel = { [P in ModelName]?: RejectOnNotFound }
- export type RejectPerOperation = { [P in "findUnique" | "findFirst"]?: RejectPerModel | RejectOnNotFound }
- type IsReject = T extends true ? True : T extends (err: Error) => Error ? True : False
- export type HasReject<
- GlobalRejectSettings extends Prisma.PrismaClientOptions['rejectOnNotFound'],
- LocalRejectSettings,
- Action extends PrismaAction,
- Model extends ModelName
- > = LocalRejectSettings extends RejectOnNotFound
- ? IsReject
- : GlobalRejectSettings extends RejectPerOperation
- ? Action extends keyof GlobalRejectSettings
- ? GlobalRejectSettings[Action] extends boolean
- ? IsReject
- : GlobalRejectSettings[Action] extends RejectPerModel
- ? Model extends keyof GlobalRejectSettings[Action]
- ? IsReject
- : False
- : False
- : False
- : IsReject
- export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
-
- export interface PrismaClientOptions {
- /**
- * Configure findUnique/findFirst to throw an error if the query returns null.
- * * @example
- * ```
- * // Reject on both findUnique/findFirst
- * rejectOnNotFound: true
- * // Reject only on findFirst with a custom error
- * rejectOnNotFound: { findFirst: (err) => new Error("Custom Error")}
- * // Reject on user.findUnique with a custom error
- * rejectOnNotFound: { findUnique: {User: (err) => new Error("User not found")}}
- * ```
- */
- rejectOnNotFound?: RejectOnNotFound | RejectPerOperation
- /**
- * Overwrites the datasource url from your prisma.schema file
- */
- datasources?: Datasources
-
- /**
- * @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?: Array
- }
-
- export type Hooks = {
- beforeRequest?: (options: { query: string, path: string[], rootField?: string, typeName?: string, document: any }) => any
- }
-
- /* Types for Logging */
- export type LogLevel = 'info' | 'query' | 'warn' | 'error'
- export type LogDefinition = {
- level: LogLevel
- emit: 'stdout' | 'event'
- }
-
- export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
- export type GetEvents = T extends Array ?
- GetLogType | GetLogType | GetLogType | GetLogType
- : never
-
- export type QueryEvent = {
- timestamp: Date
- query: string
- params: string
- duration: number
- target: string
- }
-
- export type LogEvent = {
- timestamp: Date
- message: string
- target: string
- }
- /* End Types for Logging */
-
-
- export type PrismaAction =
- | 'findUnique'
- | 'findMany'
- | 'findFirst'
- | 'create'
- | 'createMany'
- | 'update'
- | 'updateMany'
- | 'upsert'
- | 'delete'
- | 'deleteMany'
- | 'executeRaw'
- | 'queryRaw'
- | 'aggregate'
- | 'count'
- | 'runCommandRaw'
-
- /**
- * These options are being passed in to the middleware as "params"
- */
- export type MiddlewareParams = {
- model?: ModelName
- action: PrismaAction
- args: any
- dataPath: string[]
- runInTransaction: boolean
- }
-
- /**
- * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
- */
- export type Middleware = (
- params: MiddlewareParams,
- next: (params: MiddlewareParams) => Promise,
- ) => Promise
-
- // tested in getLogLevel.test.ts
- export function getLogLevel(log: Array): LogLevel | undefined;
- export type Datasource = {
- url?: string
- }
-
- /**
- * Count Types
- */
-
-
- /**
- * Count Type LibraryCountOutputType
- */
-
-
- export type LibraryCountOutputType = {
- spaces: number
- }
-
- export type LibraryCountOutputTypeSelect = {
- spaces?: boolean
- }
-
- export type LibraryCountOutputTypeGetPayload<
- S extends boolean | null | undefined | LibraryCountOutputTypeArgs,
- U = keyof S
- > = S extends true
- ? LibraryCountOutputType
- : S extends undefined
- ? never
- : S extends LibraryCountOutputTypeArgs
- ?'include' extends U
- ? LibraryCountOutputType
- : 'select' extends U
- ? {
- [P in TrueKeys]:
- P extends keyof LibraryCountOutputType ? LibraryCountOutputType[P] : never
- }
- : LibraryCountOutputType
- : LibraryCountOutputType
-
-
-
-
- // Custom InputTypes
-
- /**
- * LibraryCountOutputType without action
- */
- export type LibraryCountOutputTypeArgs = {
- /**
- * Select specific fields to fetch from the LibraryCountOutputType
- *
- **/
- select?: LibraryCountOutputTypeSelect | null
- }
-
-
-
- /**
- * Count Type ClientCountOutputType
- */
-
-
- export type ClientCountOutputType = {
- jobs: number
- }
-
- export type ClientCountOutputTypeSelect = {
- jobs?: boolean
- }
-
- export type ClientCountOutputTypeGetPayload<
- S extends boolean | null | undefined | ClientCountOutputTypeArgs,
- U = keyof S
- > = S extends true
- ? ClientCountOutputType
- : S extends undefined
- ? never
- : S extends ClientCountOutputTypeArgs
- ?'include' extends U
- ? ClientCountOutputType
- : 'select' extends U
- ? {
- [P in TrueKeys]:
- P extends keyof ClientCountOutputType ? ClientCountOutputType[P] : never
- }
- : ClientCountOutputType
- : ClientCountOutputType
-
-
-
-
- // Custom InputTypes
-
- /**
- * ClientCountOutputType without action
- */
- export type ClientCountOutputTypeArgs = {
- /**
- * Select specific fields to fetch from the ClientCountOutputType
- *
- **/
- select?: ClientCountOutputTypeSelect | null
- }
-
-
-
- /**
- * Count Type LocationCountOutputType
- */
-
-
- export type LocationCountOutputType = {
- files: number
- }
-
- export type LocationCountOutputTypeSelect = {
- files?: boolean
- }
-
- export type LocationCountOutputTypeGetPayload<
- S extends boolean | null | undefined | LocationCountOutputTypeArgs,
- U = keyof S
- > = S extends true
- ? LocationCountOutputType
- : S extends undefined
- ? never
- : S extends LocationCountOutputTypeArgs
- ?'include' extends U
- ? LocationCountOutputType
- : 'select' extends U
- ? {
- [P in TrueKeys]:
- P extends keyof LocationCountOutputType ? LocationCountOutputType[P] : never
- }
- : LocationCountOutputType
- : LocationCountOutputType
-
-
-
-
- // Custom InputTypes
-
- /**
- * LocationCountOutputType without action
- */
- export type LocationCountOutputTypeArgs = {
- /**
- * Select specific fields to fetch from the LocationCountOutputType
- *
- **/
- select?: LocationCountOutputTypeSelect | null
- }
-
-
-
- /**
- * Count Type FileCountOutputType
- */
-
-
- export type FileCountOutputType = {
- children: number
- file_tags: number
- }
-
- export type FileCountOutputTypeSelect = {
- children?: boolean
- file_tags?: boolean
- }
-
- export type FileCountOutputTypeGetPayload<
- S extends boolean | null | undefined | FileCountOutputTypeArgs,
- U = keyof S
- > = S extends true
- ? FileCountOutputType
- : S extends undefined
- ? never
- : S extends FileCountOutputTypeArgs
- ?'include' extends U
- ? FileCountOutputType
- : 'select' extends U
- ? {
- [P in TrueKeys]:
- P extends keyof FileCountOutputType ? FileCountOutputType[P] : never
- }
- : FileCountOutputType
- : FileCountOutputType
-
-
-
-
- // Custom InputTypes
-
- /**
- * FileCountOutputType without action
- */
- export type FileCountOutputTypeArgs = {
- /**
- * Select specific fields to fetch from the FileCountOutputType
- *
- **/
- select?: FileCountOutputTypeSelect | null
- }
-
-
-
- /**
- * Count Type TagCountOutputType
- */
-
-
- export type TagCountOutputType = {
- tag_files: number
- }
-
- export type TagCountOutputTypeSelect = {
- tag_files?: boolean
- }
-
- export type TagCountOutputTypeGetPayload<
- S extends boolean | null | undefined | TagCountOutputTypeArgs,
- U = keyof S
- > = S extends true
- ? TagCountOutputType
- : S extends undefined
- ? never
- : S extends TagCountOutputTypeArgs
- ?'include' extends U
- ? TagCountOutputType
- : 'select' extends U
- ? {
- [P in TrueKeys]:
- P extends keyof TagCountOutputType ? TagCountOutputType[P] : never
- }
- : TagCountOutputType
- : TagCountOutputType
-
-
-
-
- // Custom InputTypes
-
- /**
- * TagCountOutputType without action
- */
- export type TagCountOutputTypeArgs = {
- /**
- * Select specific fields to fetch from the TagCountOutputType
- *
- **/
- select?: TagCountOutputTypeSelect | null
- }
-
-
-
- /**
- * Models
- */
-
- /**
- * Model Migration
- */
-
-
- export type AggregateMigration = {
- _count: MigrationCountAggregateOutputType | null
- _avg: MigrationAvgAggregateOutputType | null
- _sum: MigrationSumAggregateOutputType | null
- _min: MigrationMinAggregateOutputType | null
- _max: MigrationMaxAggregateOutputType | null
- }
-
- export type MigrationAvgAggregateOutputType = {
- id: number | null
- steps_applied: number | null
- }
-
- export type MigrationSumAggregateOutputType = {
- id: number | null
- steps_applied: number | null
- }
-
- export type MigrationMinAggregateOutputType = {
- id: number | null
- name: string | null
- checksum: string | null
- steps_applied: number | null
- applied_at: Date | null
- }
-
- export type MigrationMaxAggregateOutputType = {
- id: number | null
- name: string | null
- checksum: string | null
- steps_applied: number | null
- applied_at: Date | null
- }
-
- export type MigrationCountAggregateOutputType = {
- id: number
- name: number
- checksum: number
- steps_applied: number
- applied_at: number
- _all: number
- }
-
-
- export type MigrationAvgAggregateInputType = {
- id?: true
- steps_applied?: true
- }
-
- export type MigrationSumAggregateInputType = {
- id?: true
- steps_applied?: true
- }
-
- export type MigrationMinAggregateInputType = {
- id?: true
- name?: true
- checksum?: true
- steps_applied?: true
- applied_at?: true
- }
-
- export type MigrationMaxAggregateInputType = {
- id?: true
- name?: true
- checksum?: true
- steps_applied?: true
- applied_at?: true
- }
-
- export type MigrationCountAggregateInputType = {
- id?: true
- name?: true
- checksum?: true
- steps_applied?: true
- applied_at?: true
- _all?: true
- }
-
- export type MigrationAggregateArgs = {
- /**
- * Filter which Migration to aggregate.
- *
- **/
- where?: MigrationWhereInput
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
- *
- * Determine the order of Migrations to fetch.
- *
- **/
- orderBy?: Enumerable
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
- *
- * Sets the start position
- *
- **/
- cursor?: MigrationWhereUniqueInput
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
- *
- * Take `±n` Migrations 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` Migrations.
- *
- **/
- skip?: number
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Count returned Migrations
- **/
- _count?: true | MigrationCountAggregateInputType
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Select which fields to average
- **/
- _avg?: MigrationAvgAggregateInputType
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Select which fields to sum
- **/
- _sum?: MigrationSumAggregateInputType
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Select which fields to find the minimum value
- **/
- _min?: MigrationMinAggregateInputType
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Select which fields to find the maximum value
- **/
- _max?: MigrationMaxAggregateInputType
- }
-
- export type GetMigrationAggregateType = {
- [P in keyof T & keyof AggregateMigration]: P extends '_count' | 'count'
- ? T[P] extends true
- ? number
- : GetScalarType
- : GetScalarType
- }
-
-
-
-
- export type MigrationGroupByArgs = {
- where?: MigrationWhereInput
- orderBy?: Enumerable
- by: Array
- having?: MigrationScalarWhereWithAggregatesInput
- take?: number
- skip?: number
- _count?: MigrationCountAggregateInputType | true
- _avg?: MigrationAvgAggregateInputType
- _sum?: MigrationSumAggregateInputType
- _min?: MigrationMinAggregateInputType
- _max?: MigrationMaxAggregateInputType
- }
-
-
- export type MigrationGroupByOutputType = {
- id: number
- name: string
- checksum: string
- steps_applied: number
- applied_at: Date
- _count: MigrationCountAggregateOutputType | null
- _avg: MigrationAvgAggregateOutputType | null
- _sum: MigrationSumAggregateOutputType | null
- _min: MigrationMinAggregateOutputType | null
- _max: MigrationMaxAggregateOutputType | null
- }
-
- type GetMigrationGroupByPayload = PrismaPromise<
- Array<
- PickArray &
- {
- [P in ((keyof T) & (keyof MigrationGroupByOutputType))]: P extends '_count'
- ? T[P] extends boolean
- ? number
- : GetScalarType
- : GetScalarType
- }
- >
- >
-
-
- export type MigrationSelect = {
- id?: boolean
- name?: boolean
- checksum?: boolean
- steps_applied?: boolean
- applied_at?: boolean
- }
-
- export type MigrationGetPayload<
- S extends boolean | null | undefined | MigrationArgs,
- U = keyof S
- > = S extends true
- ? Migration
- : S extends undefined
- ? never
- : S extends MigrationArgs | MigrationFindManyArgs
- ?'include' extends U
- ? Migration
- : 'select' extends U
- ? {
- [P in TrueKeys]:
- P extends keyof Migration ? Migration[P] : never
- }
- : Migration
- : Migration
-
-
- type MigrationCountArgs = Merge<
- Omit & {
- select?: MigrationCountAggregateInputType | true
- }
- >
-
- export interface MigrationDelegate {
- /**
- * Find zero or one Migration that matches the filter.
- * @param {MigrationFindUniqueArgs} args - Arguments to find a Migration
- * @example
- * // Get one Migration
- * const migration = await prisma.migration.findUnique({
- * where: {
- * // ... provide filter here
- * }
- * })
- **/
- findUnique(
- args: SelectSubset
- ): HasReject extends True ? CheckSelect, Prisma__MigrationClient>> : CheckSelect, Prisma__MigrationClient | null >>
-
- /**
- * Find the first Migration 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 {MigrationFindFirstArgs} args - Arguments to find a Migration
- * @example
- * // Get one Migration
- * const migration = await prisma.migration.findFirst({
- * where: {
- * // ... provide filter here
- * }
- * })
- **/
- findFirst(
- args?: SelectSubset
- ): HasReject extends True ? CheckSelect, Prisma__MigrationClient>> : CheckSelect, Prisma__MigrationClient | null >>
-
- /**
- * Find zero or more Migrations 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 {MigrationFindManyArgs=} args - Arguments to filter and select certain fields only.
- * @example
- * // Get all Migrations
- * const migrations = await prisma.migration.findMany()
- *
- * // Get first 10 Migrations
- * const migrations = await prisma.migration.findMany({ take: 10 })
- *
- * // Only select the `id`
- * const migrationWithIdOnly = await prisma.migration.findMany({ select: { id: true } })
- *
- **/
- findMany(
- args?: SelectSubset
- ): CheckSelect>, PrismaPromise>>>
-
- /**
- * Create a Migration.
- * @param {MigrationCreateArgs} args - Arguments to create a Migration.
- * @example
- * // Create one Migration
- * const Migration = await prisma.migration.create({
- * data: {
- * // ... data to create a Migration
- * }
- * })
- *
- **/
- create(
- args: SelectSubset
- ): CheckSelect, Prisma__MigrationClient>>
-
- /**
- * Delete a Migration.
- * @param {MigrationDeleteArgs} args - Arguments to delete one Migration.
- * @example
- * // Delete one Migration
- * const Migration = await prisma.migration.delete({
- * where: {
- * // ... filter to delete one Migration
- * }
- * })
- *
- **/
- delete(
- args: SelectSubset
- ): CheckSelect, Prisma__MigrationClient>>
-
- /**
- * Update one Migration.
- * @param {MigrationUpdateArgs} args - Arguments to update one Migration.
- * @example
- * // Update one Migration
- * const migration = await prisma.migration.update({
- * where: {
- * // ... provide filter here
- * },
- * data: {
- * // ... provide data here
- * }
- * })
- *
- **/
- update(
- args: SelectSubset
- ): CheckSelect, Prisma__MigrationClient>>
-
- /**
- * Delete zero or more Migrations.
- * @param {MigrationDeleteManyArgs} args - Arguments to filter Migrations to delete.
- * @example
- * // Delete a few Migrations
- * const { count } = await prisma.migration.deleteMany({
- * where: {
- * // ... provide filter here
- * }
- * })
- *
- **/
- deleteMany(
- args?: SelectSubset
- ): PrismaPromise
-
- /**
- * Update zero or more Migrations.
- * Note, that providing `undefined` is treated as the value not being there.
- * Read more here: https://pris.ly/d/null-undefined
- * @param {MigrationUpdateManyArgs} args - Arguments to update one or more rows.
- * @example
- * // Update many Migrations
- * const migration = await prisma.migration.updateMany({
- * where: {
- * // ... provide filter here
- * },
- * data: {
- * // ... provide data here
- * }
- * })
- *
- **/
- updateMany(
- args: SelectSubset
- ): PrismaPromise
-
- /**
- * Create or update one Migration.
- * @param {MigrationUpsertArgs} args - Arguments to update or create a Migration.
- * @example
- * // Update or create a Migration
- * const migration = await prisma.migration.upsert({
- * create: {
- * // ... data to create a Migration
- * },
- * update: {
- * // ... in case it already exists, update
- * },
- * where: {
- * // ... the filter for the Migration we want to update
- * }
- * })
- **/
- upsert(
- args: SelectSubset
- ): CheckSelect, Prisma__MigrationClient>>
-
- /**
- * Count the number of Migrations.
- * Note, that providing `undefined` is treated as the value not being there.
- * Read more here: https://pris.ly/d/null-undefined
- * @param {MigrationCountArgs} args - Arguments to filter Migrations to count.
- * @example
- * // Count the number of Migrations
- * const count = await prisma.migration.count({
- * where: {
- * // ... the filter for the Migrations we want to count
- * }
- * })
- **/
- count(
- args?: Subset,
- ): PrismaPromise<
- T extends _Record<'select', any>
- ? T['select'] extends true
- ? number
- : GetScalarType
- : number
- >
-
- /**
- * Allows you to perform aggregations operations on a Migration.
- * Note, that providing `undefined` is treated as the value not being there.
- * Read more here: https://pris.ly/d/null-undefined
- * @param {MigrationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
- * @example
- * // Ordered by age ascending
- * // Where email contains prisma.io
- * // Limited to the 10 users
- * const aggregations = await prisma.user.aggregate({
- * _avg: {
- * age: true,
- * },
- * where: {
- * email: {
- * contains: "prisma.io",
- * },
- * },
- * orderBy: {
- * age: "asc",
- * },
- * take: 10,
- * })
- **/
- aggregate(args: Subset): PrismaPromise>
-
- /**
- * Group by Migration.
- * Note, that providing `undefined` is treated as the value not being there.
- * Read more here: https://pris.ly/d/null-undefined
- * @param {MigrationGroupByArgs} 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 MigrationGroupByArgs,
- HasSelectOrTake extends Or<
- Extends<'skip', Keys>,
- Extends<'take', Keys>
- >,
- OrderByArg extends True extends HasSelectOrTake
- ? { orderBy: MigrationGroupByArgs['orderBy'] }
- : { orderBy?: MigrationGroupByArgs['orderBy'] },
- OrderFields extends ExcludeUnderscoreKeys>>,
- ByFields extends TupleToUnion,
- ByValid extends Has,
- HavingFields extends GetHavingFields,
- HavingValid extends Has,
- ByEmpty extends T['by'] extends never[] ? True : False,
- InputErrors extends ByEmpty extends True
- ? `Error: "by" must not be empty.`
- : HavingValid extends False
- ? {
- [P in HavingFields]: P extends ByFields
- ? never
- : P extends string
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
- : [
- Error,
- 'Field ',
- P,
- ` in "having" needs to be provided in "by"`,
- ]
- }[HavingFields]
- : 'take' extends Keys
- ? 'orderBy' extends Keys
- ? ByValid extends True
- ? {}
- : {
- [P in OrderFields]: P extends ByFields
- ? never
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
- }[OrderFields]
- : 'Error: If you provide "take", you also need to provide "orderBy"'
- : 'skip' extends Keys
- ? 'orderBy' extends Keys
- ? ByValid extends True
- ? {}
- : {
- [P in OrderFields]: P extends ByFields
- ? never
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
- }[OrderFields]
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
- : ByValid extends True
- ? {}
- : {
- [P in OrderFields]: P extends ByFields
- ? never
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
- }[OrderFields]
- >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetMigrationGroupByPayload : PrismaPromise
- }
-
- /**
- * The delegate class that acts as a "Promise-like" for Migration.
- * 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 class Prisma__MigrationClient implements PrismaPromise {
- [prisma]: true;
- private readonly _dmmf;
- private readonly _fetcher;
- private readonly _queryType;
- private readonly _rootField;
- private readonly _clientMethod;
- private readonly _args;
- private readonly _dataPath;
- private readonly _errorFormat;
- private readonly _measurePerformance?;
- private _isList;
- private _callsite;
- private _requestPromise?;
- constructor(_dmmf: runtime.DMMFClass, _fetcher: PrismaClientFetcher, _queryType: 'query' | 'mutation', _rootField: string, _clientMethod: string, _args: any, _dataPath: string[], _errorFormat: ErrorFormat, _measurePerformance?: boolean | undefined, _isList?: boolean);
- readonly [Symbol.toStringTag]: 'PrismaClientPromise';
-
-
- private get _document();
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): Promise;
- /**
- * Attaches a callback for only the rejection of the Promise.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of the callback.
- */
- catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): Promise;
- /**
- * 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): Promise;
- }
-
- // Custom InputTypes
-
- /**
- * Migration findUnique
- */
- export type MigrationFindUniqueArgs = {
- /**
- * Select specific fields to fetch from the Migration
- *
- **/
- select?: MigrationSelect | null
- /**
- * Throw an Error if a Migration can't be found
- *
- **/
- rejectOnNotFound?: RejectOnNotFound
- /**
- * Filter, which Migration to fetch.
- *
- **/
- where: MigrationWhereUniqueInput
- }
-
-
- /**
- * Migration findFirst
- */
- export type MigrationFindFirstArgs = {
- /**
- * Select specific fields to fetch from the Migration
- *
- **/
- select?: MigrationSelect | null
- /**
- * Throw an Error if a Migration can't be found
- *
- **/
- rejectOnNotFound?: RejectOnNotFound
- /**
- * Filter, which Migration to fetch.
- *
- **/
- where?: MigrationWhereInput
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
- *
- * Determine the order of Migrations to fetch.
- *
- **/
- orderBy?: Enumerable
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
- *
- * Sets the position for searching for Migrations.
- *
- **/
- cursor?: MigrationWhereUniqueInput
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
- *
- * Take `±n` Migrations 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` Migrations.
- *
- **/
- skip?: number
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
- *
- * Filter by unique combinations of Migrations.
- *
- **/
- distinct?: Enumerable
- }
-
-
- /**
- * Migration findMany
- */
- export type MigrationFindManyArgs = {
- /**
- * Select specific fields to fetch from the Migration
- *
- **/
- select?: MigrationSelect | null
- /**
- * Filter, which Migrations to fetch.
- *
- **/
- where?: MigrationWhereInput
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
- *
- * Determine the order of Migrations to fetch.
- *
- **/
- orderBy?: Enumerable
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
- *
- * Sets the position for listing Migrations.
- *
- **/
- cursor?: MigrationWhereUniqueInput
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
- *
- * Take `±n` Migrations 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` Migrations.
- *
- **/
- skip?: number
- distinct?: Enumerable
- }
-
-
- /**
- * Migration create
- */
- export type MigrationCreateArgs = {
- /**
- * Select specific fields to fetch from the Migration
- *
- **/
- select?: MigrationSelect | null
- /**
- * The data needed to create a Migration.
- *
- **/
- data: XOR
- }
-
-
- /**
- * Migration update
- */
- export type MigrationUpdateArgs = {
- /**
- * Select specific fields to fetch from the Migration
- *
- **/
- select?: MigrationSelect | null
- /**
- * The data needed to update a Migration.
- *
- **/
- data: XOR
- /**
- * Choose, which Migration to update.
- *
- **/
- where: MigrationWhereUniqueInput
- }
-
-
- /**
- * Migration updateMany
- */
- export type MigrationUpdateManyArgs = {
- /**
- * The data used to update Migrations.
- *
- **/
- data: XOR
- /**
- * Filter which Migrations to update
- *
- **/
- where?: MigrationWhereInput
- }
-
-
- /**
- * Migration upsert
- */
- export type MigrationUpsertArgs = {
- /**
- * Select specific fields to fetch from the Migration
- *
- **/
- select?: MigrationSelect | null
- /**
- * The filter to search for the Migration to update in case it exists.
- *
- **/
- where: MigrationWhereUniqueInput
- /**
- * In case the Migration found by the `where` argument doesn't exist, create a new Migration with this data.
- *
- **/
- create: XOR
- /**
- * In case the Migration was found with the provided `where` argument, update it with this data.
- *
- **/
- update: XOR
- }
-
-
- /**
- * Migration delete
- */
- export type MigrationDeleteArgs = {
- /**
- * Select specific fields to fetch from the Migration
- *
- **/
- select?: MigrationSelect | null
- /**
- * Filter which Migration to delete.
- *
- **/
- where: MigrationWhereUniqueInput
- }
-
-
- /**
- * Migration deleteMany
- */
- export type MigrationDeleteManyArgs = {
- /**
- * Filter which Migrations to delete
- *
- **/
- where?: MigrationWhereInput
- }
-
-
- /**
- * Migration without action
- */
- export type MigrationArgs = {
- /**
- * Select specific fields to fetch from the Migration
- *
- **/
- select?: MigrationSelect | null
- }
-
-
-
- /**
- * Model Library
- */
-
-
- export type AggregateLibrary = {
- _count: LibraryCountAggregateOutputType | null
- _avg: LibraryAvgAggregateOutputType | null
- _sum: LibrarySumAggregateOutputType | null
- _min: LibraryMinAggregateOutputType | null
- _max: LibraryMaxAggregateOutputType | null
- }
-
- export type LibraryAvgAggregateOutputType = {
- id: number | null
- encryption: number | null
- }
-
- export type LibrarySumAggregateOutputType = {
- id: number | null
- encryption: number | null
- }
-
- export type LibraryMinAggregateOutputType = {
- id: number | null
- uuid: string | null
- name: string | null
- remote_id: string | null
- is_primary: boolean | null
- encryption: number | null
- date_created: Date | null
- timezone: string | null
- }
-
- export type LibraryMaxAggregateOutputType = {
- id: number | null
- uuid: string | null
- name: string | null
- remote_id: string | null
- is_primary: boolean | null
- encryption: number | null
- date_created: Date | null
- timezone: string | null
- }
-
- export type LibraryCountAggregateOutputType = {
- id: number
- uuid: number
- name: number
- remote_id: number
- is_primary: number
- encryption: number
- date_created: number
- timezone: number
- _all: number
- }
-
-
- export type LibraryAvgAggregateInputType = {
- id?: true
- encryption?: true
- }
-
- export type LibrarySumAggregateInputType = {
- id?: true
- encryption?: true
- }
-
- export type LibraryMinAggregateInputType = {
- id?: true
- uuid?: true
- name?: true
- remote_id?: true
- is_primary?: true
- encryption?: true
- date_created?: true
- timezone?: true
- }
-
- export type LibraryMaxAggregateInputType = {
- id?: true
- uuid?: true
- name?: true
- remote_id?: true
- is_primary?: true
- encryption?: true
- date_created?: true
- timezone?: true
- }
-
- export type LibraryCountAggregateInputType = {
- id?: true
- uuid?: true
- name?: true
- remote_id?: true
- is_primary?: true
- encryption?: true
- date_created?: true
- timezone?: true
- _all?: true
- }
-
- export type LibraryAggregateArgs = {
- /**
- * Filter which Library to aggregate.
- *
- **/
- where?: LibraryWhereInput
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
- *
- * Determine the order of Libraries to fetch.
- *
- **/
- orderBy?: Enumerable
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
- *
- * Sets the start position
- *
- **/
- cursor?: LibraryWhereUniqueInput
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
- *
- * Take `±n` Libraries 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` Libraries.
- *
- **/
- skip?: number
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Count returned Libraries
- **/
- _count?: true | LibraryCountAggregateInputType
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Select which fields to average
- **/
- _avg?: LibraryAvgAggregateInputType
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Select which fields to sum
- **/
- _sum?: LibrarySumAggregateInputType
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Select which fields to find the minimum value
- **/
- _min?: LibraryMinAggregateInputType
- /**
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
- *
- * Select which fields to find the maximum value
- **/
- _max?: LibraryMaxAggregateInputType
- }
-
- export type GetLibraryAggregateType = {
- [P in keyof T & keyof AggregateLibrary]: P extends '_count' | 'count'
- ? T[P] extends true
- ? number
- : GetScalarType
- : GetScalarType
- }
-
-
-
-
- export type LibraryGroupByArgs = {
- where?: LibraryWhereInput
- orderBy?: Enumerable
- by: Array
- having?: LibraryScalarWhereWithAggregatesInput
- take?: number
- skip?: number
- _count?: LibraryCountAggregateInputType | true
- _avg?: LibraryAvgAggregateInputType
- _sum?: LibrarySumAggregateInputType
- _min?: LibraryMinAggregateInputType
- _max?: LibraryMaxAggregateInputType
- }
-
-
- export type LibraryGroupByOutputType = {
- id: number
- uuid: string
- name: string
- remote_id: string | null
- is_primary: boolean
- encryption: number
- date_created: Date
- timezone: string | null
- _count: LibraryCountAggregateOutputType | null
- _avg: LibraryAvgAggregateOutputType | null
- _sum: LibrarySumAggregateOutputType | null
- _min: LibraryMinAggregateOutputType | null
- _max: LibraryMaxAggregateOutputType | null
- }
-
- type GetLibraryGroupByPayload = PrismaPromise<
- Array<
- PickArray &
- {
- [P in ((keyof T) & (keyof LibraryGroupByOutputType))]: P extends '_count'
- ? T[P] extends boolean
- ? number
- : GetScalarType
- : GetScalarType
- }
- >
- >
-
-
- export type LibrarySelect = {
- id?: boolean
- uuid?: boolean
- name?: boolean
- remote_id?: boolean
- is_primary?: boolean
- encryption?: boolean
- date_created?: boolean
- timezone?: boolean
- spaces?: boolean | SpaceFindManyArgs
- _count?: boolean | LibraryCountOutputTypeArgs
- }
-
- export type LibraryInclude = {
- spaces?: boolean | SpaceFindManyArgs
- _count?: boolean | LibraryCountOutputTypeArgs
- }
-
- export type LibraryGetPayload<
- S extends boolean | null | undefined | LibraryArgs,
- U = keyof S
- > = S extends true
- ? Library
- : S extends undefined
- ? never
- : S extends LibraryArgs | LibraryFindManyArgs
- ?'include' extends U
- ? Library & {
- [P in TrueKeys]:
- P extends 'spaces' ? Array < SpaceGetPayload> :
- P extends '_count' ? LibraryCountOutputTypeGetPayload : never
- }
- : 'select' extends U
- ? {
- [P in TrueKeys]:
- P extends 'spaces' ? Array < SpaceGetPayload> :
- P extends '_count' ? LibraryCountOutputTypeGetPayload : P extends keyof Library ? Library[P] : never
- }
- : Library
- : Library
-
-
- type LibraryCountArgs = Merge<
- Omit & {
- select?: LibraryCountAggregateInputType | true
- }
- >
-
- export interface LibraryDelegate