## Translation Files - Add 11 new language files (es, de, pt, ru, zh, ja, ko, ar, hi, nl, pl) - Add 100+ missing translation keys across all 15 languages - New sections: notebook, pagination, ai.batchOrganization, ai.autoLabels - Update nav section with workspace, quickAccess, myLibrary keys ## Component Updates - Update 15+ components to use translation keys instead of hardcoded text - Components: notebook dialogs, sidebar, header, note-input, ghost-tags, etc. - Replace 80+ hardcoded English/French strings with t() calls - Ensure consistent UI across all supported languages ## Code Quality - Remove 77+ console.log statements from codebase - Clean up API routes, components, hooks, and services - Keep only essential error handling (no debugging logs) ## UI/UX Improvements - Update Keep logo to yellow post-it style (from-yellow-400 to-amber-500) - Change selection colors to #FEF3C6 (notebooks) and #EFB162 (nav items) - Make "+" button permanently visible in notebooks section - Fix grammar and syntax errors in multiple components ## Bug Fixes - Fix JSON syntax errors in it.json, nl.json, pl.json, zh.json - Fix syntax errors in notebook-suggestion-toast.tsx - Fix syntax errors in use-auto-tagging.ts - Fix syntax errors in paragraph-refactor.service.ts - Fix duplicate "fusion" section in nl.json 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Ou une version plus courte si vous préférez : feat(i18n): Add 15 languages, remove logs, update UI components - Create 11 new translation files (es, de, pt, ru, zh, ja, ko, ar, hi, nl, pl) - Add 100+ translation keys: notebook, pagination, AI features - Update 15+ components to use translations (80+ strings) - Remove 77+ console.log statements from codebase - Fix JSON syntax errors in 4 translation files - Fix component syntax errors (toast, hooks, services) - Update logo to yellow post-it style - Change selection colors (#FEF3C6, #EFB162) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
23238 lines
872 KiB
TypeScript
23238 lines
872 KiB
TypeScript
|
|
/**
|
|
* Client
|
|
**/
|
|
|
|
import * as runtime from './runtime/library.js';
|
|
import $Types = runtime.Types // general types
|
|
import $Public = runtime.Types.Public
|
|
import $Utils = runtime.Types.Utils
|
|
import $Extensions = runtime.Types.Extensions
|
|
import $Result = runtime.Types.Result
|
|
|
|
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
|
|
|
|
/**
|
|
* Model User
|
|
*
|
|
*/
|
|
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
|
|
/**
|
|
* Model Account
|
|
*
|
|
*/
|
|
export type Account = $Result.DefaultSelection<Prisma.$AccountPayload>
|
|
/**
|
|
* Model Session
|
|
*
|
|
*/
|
|
export type Session = $Result.DefaultSelection<Prisma.$SessionPayload>
|
|
/**
|
|
* Model VerificationToken
|
|
*
|
|
*/
|
|
export type VerificationToken = $Result.DefaultSelection<Prisma.$VerificationTokenPayload>
|
|
/**
|
|
* Model Notebook
|
|
*
|
|
*/
|
|
export type Notebook = $Result.DefaultSelection<Prisma.$NotebookPayload>
|
|
/**
|
|
* Model Label
|
|
*
|
|
*/
|
|
export type Label = $Result.DefaultSelection<Prisma.$LabelPayload>
|
|
/**
|
|
* Model Note
|
|
*
|
|
*/
|
|
export type Note = $Result.DefaultSelection<Prisma.$NotePayload>
|
|
/**
|
|
* Model NoteShare
|
|
*
|
|
*/
|
|
export type NoteShare = $Result.DefaultSelection<Prisma.$NoteSharePayload>
|
|
/**
|
|
* Model SystemConfig
|
|
*
|
|
*/
|
|
export type SystemConfig = $Result.DefaultSelection<Prisma.$SystemConfigPayload>
|
|
/**
|
|
* Model AiFeedback
|
|
*
|
|
*/
|
|
export type AiFeedback = $Result.DefaultSelection<Prisma.$AiFeedbackPayload>
|
|
/**
|
|
* Model MemoryEchoInsight
|
|
*
|
|
*/
|
|
export type MemoryEchoInsight = $Result.DefaultSelection<Prisma.$MemoryEchoInsightPayload>
|
|
/**
|
|
* Model UserAISettings
|
|
*
|
|
*/
|
|
export type UserAISettings = $Result.DefaultSelection<Prisma.$UserAISettingsPayload>
|
|
|
|
/**
|
|
* ## Prisma Client ʲˢ
|
|
*
|
|
* Type-safe database client for TypeScript & Node.js
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient()
|
|
* // Fetch zero or more Users
|
|
* const users = await prisma.user.findMany()
|
|
* ```
|
|
*
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
*/
|
|
export class PrismaClient<
|
|
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.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 Users
|
|
* const users = await prisma.user.findMany()
|
|
* ```
|
|
*
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
*/
|
|
|
|
constructor(optionsArg ?: Prisma.Subset<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>
|
|
|
|
/**
|
|
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Users
|
|
* const users = await prisma.user.findMany()
|
|
* ```
|
|
*/
|
|
get user(): Prisma.UserDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.account`: Exposes CRUD operations for the **Account** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Accounts
|
|
* const accounts = await prisma.account.findMany()
|
|
* ```
|
|
*/
|
|
get account(): Prisma.AccountDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.session`: Exposes CRUD operations for the **Session** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Sessions
|
|
* const sessions = await prisma.session.findMany()
|
|
* ```
|
|
*/
|
|
get session(): Prisma.SessionDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more VerificationTokens
|
|
* const verificationTokens = await prisma.verificationToken.findMany()
|
|
* ```
|
|
*/
|
|
get verificationToken(): Prisma.VerificationTokenDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.notebook`: Exposes CRUD operations for the **Notebook** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Notebooks
|
|
* const notebooks = await prisma.notebook.findMany()
|
|
* ```
|
|
*/
|
|
get notebook(): Prisma.NotebookDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.label`: Exposes CRUD operations for the **Label** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Labels
|
|
* const labels = await prisma.label.findMany()
|
|
* ```
|
|
*/
|
|
get label(): Prisma.LabelDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.note`: Exposes CRUD operations for the **Note** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Notes
|
|
* const notes = await prisma.note.findMany()
|
|
* ```
|
|
*/
|
|
get note(): Prisma.NoteDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.noteShare`: Exposes CRUD operations for the **NoteShare** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more NoteShares
|
|
* const noteShares = await prisma.noteShare.findMany()
|
|
* ```
|
|
*/
|
|
get noteShare(): Prisma.NoteShareDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.systemConfig`: Exposes CRUD operations for the **SystemConfig** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more SystemConfigs
|
|
* const systemConfigs = await prisma.systemConfig.findMany()
|
|
* ```
|
|
*/
|
|
get systemConfig(): Prisma.SystemConfigDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.aiFeedback`: Exposes CRUD operations for the **AiFeedback** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more AiFeedbacks
|
|
* const aiFeedbacks = await prisma.aiFeedback.findMany()
|
|
* ```
|
|
*/
|
|
get aiFeedback(): Prisma.AiFeedbackDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.memoryEchoInsight`: Exposes CRUD operations for the **MemoryEchoInsight** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more MemoryEchoInsights
|
|
* const memoryEchoInsights = await prisma.memoryEchoInsight.findMany()
|
|
* ```
|
|
*/
|
|
get memoryEchoInsight(): Prisma.MemoryEchoInsightDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.userAISettings`: Exposes CRUD operations for the **UserAISettings** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.findMany()
|
|
* ```
|
|
*/
|
|
get userAISettings(): Prisma.UserAISettingsDelegate<ExtArgs>;
|
|
}
|
|
|
|
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
|
|
export import NotFoundError = runtime.NotFoundError
|
|
|
|
/**
|
|
* 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: 5.22.0
|
|
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
|
|
*/
|
|
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: {
|
|
User: 'User',
|
|
Account: 'Account',
|
|
Session: 'Session',
|
|
VerificationToken: 'VerificationToken',
|
|
Notebook: 'Notebook',
|
|
Label: 'Label',
|
|
Note: 'Note',
|
|
NoteShare: 'NoteShare',
|
|
SystemConfig: 'SystemConfig',
|
|
AiFeedback: 'AiFeedback',
|
|
MemoryEchoInsight: 'MemoryEchoInsight',
|
|
UserAISettings: 'UserAISettings'
|
|
};
|
|
|
|
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: "user" | "account" | "session" | "verificationToken" | "notebook" | "label" | "note" | "noteShare" | "systemConfig" | "aiFeedback" | "memoryEchoInsight" | "userAISettings"
|
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
}
|
|
model: {
|
|
User: {
|
|
payload: Prisma.$UserPayload<ExtArgs>
|
|
fields: Prisma.UserFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.UserFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.UserFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.UserFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.UserCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.UserCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.UserDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.UserUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.UserDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.UserUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.UserUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.UserAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateUser>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.UserGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<UserGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.UserCountArgs<ExtArgs>
|
|
result: $Utils.Optional<UserCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Account: {
|
|
payload: Prisma.$AccountPayload<ExtArgs>
|
|
fields: Prisma.AccountFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.AccountFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.AccountFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.AccountFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.AccountFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.AccountFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.AccountCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.AccountCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.AccountCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.AccountDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.AccountUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.AccountDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.AccountUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.AccountUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AccountPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.AccountAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateAccount>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.AccountGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<AccountGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.AccountCountArgs<ExtArgs>
|
|
result: $Utils.Optional<AccountCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Session: {
|
|
payload: Prisma.$SessionPayload<ExtArgs>
|
|
fields: Prisma.SessionFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.SessionFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.SessionFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.SessionFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.SessionCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.SessionCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.SessionCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.SessionDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.SessionUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.SessionDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.SessionUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.SessionUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SessionPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SessionAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSession>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.SessionGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SessionGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.SessionCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SessionCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
VerificationToken: {
|
|
payload: Prisma.$VerificationTokenPayload<ExtArgs>
|
|
fields: Prisma.VerificationTokenFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.VerificationTokenFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.VerificationTokenFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.VerificationTokenFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.VerificationTokenFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.VerificationTokenFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.VerificationTokenCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.VerificationTokenCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.VerificationTokenCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.VerificationTokenDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.VerificationTokenUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.VerificationTokenDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.VerificationTokenUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.VerificationTokenUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.VerificationTokenAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateVerificationToken>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.VerificationTokenGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<VerificationTokenGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.VerificationTokenCountArgs<ExtArgs>
|
|
result: $Utils.Optional<VerificationTokenCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Notebook: {
|
|
payload: Prisma.$NotebookPayload<ExtArgs>
|
|
fields: Prisma.NotebookFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.NotebookFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.NotebookFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.NotebookFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.NotebookFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.NotebookFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.NotebookCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.NotebookCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.NotebookCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.NotebookDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.NotebookUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.NotebookDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.NotebookUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.NotebookUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotebookPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.NotebookAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateNotebook>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.NotebookGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<NotebookGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.NotebookCountArgs<ExtArgs>
|
|
result: $Utils.Optional<NotebookCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Label: {
|
|
payload: Prisma.$LabelPayload<ExtArgs>
|
|
fields: Prisma.LabelFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.LabelFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.LabelFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.LabelFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.LabelFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.LabelFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.LabelCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.LabelCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.LabelCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.LabelDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.LabelUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.LabelDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.LabelUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.LabelUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$LabelPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.LabelAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateLabel>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.LabelGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<LabelGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.LabelCountArgs<ExtArgs>
|
|
result: $Utils.Optional<LabelCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Note: {
|
|
payload: Prisma.$NotePayload<ExtArgs>
|
|
fields: Prisma.NoteFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.NoteFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.NoteFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.NoteFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.NoteFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.NoteFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.NoteCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.NoteCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.NoteCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.NoteDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.NoteUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.NoteDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.NoteUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.NoteUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NotePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.NoteAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateNote>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.NoteGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<NoteGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.NoteCountArgs<ExtArgs>
|
|
result: $Utils.Optional<NoteCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
NoteShare: {
|
|
payload: Prisma.$NoteSharePayload<ExtArgs>
|
|
fields: Prisma.NoteShareFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.NoteShareFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.NoteShareFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.NoteShareFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.NoteShareFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.NoteShareFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.NoteShareCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.NoteShareCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.NoteShareCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.NoteShareDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.NoteShareUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.NoteShareDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.NoteShareUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.NoteShareUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$NoteSharePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.NoteShareAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateNoteShare>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.NoteShareGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<NoteShareGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.NoteShareCountArgs<ExtArgs>
|
|
result: $Utils.Optional<NoteShareCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
SystemConfig: {
|
|
payload: Prisma.$SystemConfigPayload<ExtArgs>
|
|
fields: Prisma.SystemConfigFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.SystemConfigFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.SystemConfigFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.SystemConfigFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.SystemConfigFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.SystemConfigFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.SystemConfigCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.SystemConfigCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.SystemConfigCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.SystemConfigDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.SystemConfigUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.SystemConfigDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.SystemConfigUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.SystemConfigUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SystemConfigPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SystemConfigAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSystemConfig>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.SystemConfigGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SystemConfigGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.SystemConfigCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SystemConfigCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
AiFeedback: {
|
|
payload: Prisma.$AiFeedbackPayload<ExtArgs>
|
|
fields: Prisma.AiFeedbackFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.AiFeedbackFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.AiFeedbackFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.AiFeedbackFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.AiFeedbackFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.AiFeedbackFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.AiFeedbackCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.AiFeedbackCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.AiFeedbackCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.AiFeedbackDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.AiFeedbackUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.AiFeedbackDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.AiFeedbackUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.AiFeedbackUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$AiFeedbackPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.AiFeedbackAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateAiFeedback>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.AiFeedbackGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<AiFeedbackGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.AiFeedbackCountArgs<ExtArgs>
|
|
result: $Utils.Optional<AiFeedbackCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
MemoryEchoInsight: {
|
|
payload: Prisma.$MemoryEchoInsightPayload<ExtArgs>
|
|
fields: Prisma.MemoryEchoInsightFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.MemoryEchoInsightFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.MemoryEchoInsightFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.MemoryEchoInsightFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.MemoryEchoInsightFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.MemoryEchoInsightFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.MemoryEchoInsightCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.MemoryEchoInsightCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.MemoryEchoInsightCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.MemoryEchoInsightDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.MemoryEchoInsightUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.MemoryEchoInsightDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.MemoryEchoInsightUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.MemoryEchoInsightUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$MemoryEchoInsightPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.MemoryEchoInsightAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateMemoryEchoInsight>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.MemoryEchoInsightGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<MemoryEchoInsightGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.MemoryEchoInsightCountArgs<ExtArgs>
|
|
result: $Utils.Optional<MemoryEchoInsightCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
UserAISettings: {
|
|
payload: Prisma.$UserAISettingsPayload<ExtArgs>
|
|
fields: Prisma.UserAISettingsFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.UserAISettingsFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.UserAISettingsFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.UserAISettingsFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.UserAISettingsFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.UserAISettingsFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.UserAISettingsCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.UserAISettingsCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.UserAISettingsCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.UserAISettingsDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.UserAISettingsUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.UserAISettingsDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.UserAISettingsUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.UserAISettingsUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserAISettingsPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.UserAISettingsAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateUserAISettings>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.UserAISettingsGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<UserAISettingsGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.UserAISettingsCountArgs<ExtArgs>
|
|
result: $Utils.Optional<UserAISettingsCountAggregateOutputType> | 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
|
|
}
|
|
}
|
|
|
|
|
|
/* 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'
|
|
| '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 UserCountOutputType
|
|
*/
|
|
|
|
export type UserCountOutputType = {
|
|
accounts: number
|
|
sessions: number
|
|
notes: number
|
|
labels: number
|
|
notebooks: number
|
|
receivedShares: number
|
|
sentShares: number
|
|
aiFeedback: number
|
|
memoryEchoInsights: number
|
|
}
|
|
|
|
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
accounts?: boolean | UserCountOutputTypeCountAccountsArgs
|
|
sessions?: boolean | UserCountOutputTypeCountSessionsArgs
|
|
notes?: boolean | UserCountOutputTypeCountNotesArgs
|
|
labels?: boolean | UserCountOutputTypeCountLabelsArgs
|
|
notebooks?: boolean | UserCountOutputTypeCountNotebooksArgs
|
|
receivedShares?: boolean | UserCountOutputTypeCountReceivedSharesArgs
|
|
sentShares?: boolean | UserCountOutputTypeCountSentSharesArgs
|
|
aiFeedback?: boolean | UserCountOutputTypeCountAiFeedbackArgs
|
|
memoryEchoInsights?: boolean | UserCountOutputTypeCountMemoryEchoInsightsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserCountOutputType
|
|
*/
|
|
select?: UserCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountAccountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AccountWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SessionWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountNotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoteWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountLabelsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: LabelWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountNotebooksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NotebookWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountReceivedSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoteShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountSentSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoteShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountAiFeedbackArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AiFeedbackWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountMemoryEchoInsightsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: MemoryEchoInsightWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type NotebookCountOutputType
|
|
*/
|
|
|
|
export type NotebookCountOutputType = {
|
|
notes: number
|
|
labels: number
|
|
}
|
|
|
|
export type NotebookCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
notes?: boolean | NotebookCountOutputTypeCountNotesArgs
|
|
labels?: boolean | NotebookCountOutputTypeCountLabelsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* NotebookCountOutputType without action
|
|
*/
|
|
export type NotebookCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NotebookCountOutputType
|
|
*/
|
|
select?: NotebookCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* NotebookCountOutputType without action
|
|
*/
|
|
export type NotebookCountOutputTypeCountNotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoteWhereInput
|
|
}
|
|
|
|
/**
|
|
* NotebookCountOutputType without action
|
|
*/
|
|
export type NotebookCountOutputTypeCountLabelsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: LabelWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type LabelCountOutputType
|
|
*/
|
|
|
|
export type LabelCountOutputType = {
|
|
notes: number
|
|
}
|
|
|
|
export type LabelCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
notes?: boolean | LabelCountOutputTypeCountNotesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* LabelCountOutputType without action
|
|
*/
|
|
export type LabelCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LabelCountOutputType
|
|
*/
|
|
select?: LabelCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* LabelCountOutputType without action
|
|
*/
|
|
export type LabelCountOutputTypeCountNotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoteWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type NoteCountOutputType
|
|
*/
|
|
|
|
export type NoteCountOutputType = {
|
|
shares: number
|
|
labelRelations: number
|
|
aiFeedback: number
|
|
memoryEchoAsNote1: number
|
|
memoryEchoAsNote2: number
|
|
}
|
|
|
|
export type NoteCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
shares?: boolean | NoteCountOutputTypeCountSharesArgs
|
|
labelRelations?: boolean | NoteCountOutputTypeCountLabelRelationsArgs
|
|
aiFeedback?: boolean | NoteCountOutputTypeCountAiFeedbackArgs
|
|
memoryEchoAsNote1?: boolean | NoteCountOutputTypeCountMemoryEchoAsNote1Args
|
|
memoryEchoAsNote2?: boolean | NoteCountOutputTypeCountMemoryEchoAsNote2Args
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* NoteCountOutputType without action
|
|
*/
|
|
export type NoteCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteCountOutputType
|
|
*/
|
|
select?: NoteCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* NoteCountOutputType without action
|
|
*/
|
|
export type NoteCountOutputTypeCountSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoteShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* NoteCountOutputType without action
|
|
*/
|
|
export type NoteCountOutputTypeCountLabelRelationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: LabelWhereInput
|
|
}
|
|
|
|
/**
|
|
* NoteCountOutputType without action
|
|
*/
|
|
export type NoteCountOutputTypeCountAiFeedbackArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AiFeedbackWhereInput
|
|
}
|
|
|
|
/**
|
|
* NoteCountOutputType without action
|
|
*/
|
|
export type NoteCountOutputTypeCountMemoryEchoAsNote1Args<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: MemoryEchoInsightWhereInput
|
|
}
|
|
|
|
/**
|
|
* NoteCountOutputType without action
|
|
*/
|
|
export type NoteCountOutputTypeCountMemoryEchoAsNote2Args<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: MemoryEchoInsightWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Models
|
|
*/
|
|
|
|
/**
|
|
* Model User
|
|
*/
|
|
|
|
export type AggregateUser = {
|
|
_count: UserCountAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type UserMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
email: string | null
|
|
emailVerified: Date | null
|
|
password: string | null
|
|
role: string | null
|
|
image: string | null
|
|
theme: string | null
|
|
resetToken: string | null
|
|
resetTokenExpiry: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type UserMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
email: string | null
|
|
emailVerified: Date | null
|
|
password: string | null
|
|
role: string | null
|
|
image: string | null
|
|
theme: string | null
|
|
resetToken: string | null
|
|
resetTokenExpiry: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type UserCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
email: number
|
|
emailVerified: number
|
|
password: number
|
|
role: number
|
|
image: number
|
|
theme: number
|
|
resetToken: number
|
|
resetTokenExpiry: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type UserMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
email?: true
|
|
emailVerified?: true
|
|
password?: true
|
|
role?: true
|
|
image?: true
|
|
theme?: true
|
|
resetToken?: true
|
|
resetTokenExpiry?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type UserMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
email?: true
|
|
emailVerified?: true
|
|
password?: true
|
|
role?: true
|
|
image?: true
|
|
theme?: true
|
|
resetToken?: true
|
|
resetTokenExpiry?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type UserCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
email?: true
|
|
emailVerified?: true
|
|
password?: true
|
|
role?: true
|
|
image?: true
|
|
theme?: true
|
|
resetToken?: true
|
|
resetTokenExpiry?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which User to aggregate.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Users
|
|
**/
|
|
_count?: true | UserCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: UserMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type GetUserAggregateType<T extends UserAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateUser[P]>
|
|
: GetScalarType<T[P], AggregateUser[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: UserWhereInput
|
|
orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
|
|
by: UserScalarFieldEnum[] | UserScalarFieldEnum
|
|
having?: UserScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UserCountAggregateInputType | true
|
|
_min?: UserMinAggregateInputType
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type UserGroupByOutputType = {
|
|
id: string
|
|
name: string | null
|
|
email: string
|
|
emailVerified: Date | null
|
|
password: string | null
|
|
role: string
|
|
image: string | null
|
|
theme: string
|
|
resetToken: string | null
|
|
resetTokenExpiry: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: UserCountAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<UserGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
email?: boolean
|
|
emailVerified?: boolean
|
|
password?: boolean
|
|
role?: boolean
|
|
image?: boolean
|
|
theme?: boolean
|
|
resetToken?: boolean
|
|
resetTokenExpiry?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
accounts?: boolean | User$accountsArgs<ExtArgs>
|
|
sessions?: boolean | User$sessionsArgs<ExtArgs>
|
|
notes?: boolean | User$notesArgs<ExtArgs>
|
|
labels?: boolean | User$labelsArgs<ExtArgs>
|
|
notebooks?: boolean | User$notebooksArgs<ExtArgs>
|
|
receivedShares?: boolean | User$receivedSharesArgs<ExtArgs>
|
|
sentShares?: boolean | User$sentSharesArgs<ExtArgs>
|
|
aiFeedback?: boolean | User$aiFeedbackArgs<ExtArgs>
|
|
aiSettings?: boolean | User$aiSettingsArgs<ExtArgs>
|
|
memoryEchoInsights?: boolean | User$memoryEchoInsightsArgs<ExtArgs>
|
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
email?: boolean
|
|
emailVerified?: boolean
|
|
password?: boolean
|
|
role?: boolean
|
|
image?: boolean
|
|
theme?: boolean
|
|
resetToken?: boolean
|
|
resetTokenExpiry?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
export type UserSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
email?: boolean
|
|
emailVerified?: boolean
|
|
password?: boolean
|
|
role?: boolean
|
|
image?: boolean
|
|
theme?: boolean
|
|
resetToken?: boolean
|
|
resetTokenExpiry?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
accounts?: boolean | User$accountsArgs<ExtArgs>
|
|
sessions?: boolean | User$sessionsArgs<ExtArgs>
|
|
notes?: boolean | User$notesArgs<ExtArgs>
|
|
labels?: boolean | User$labelsArgs<ExtArgs>
|
|
notebooks?: boolean | User$notebooksArgs<ExtArgs>
|
|
receivedShares?: boolean | User$receivedSharesArgs<ExtArgs>
|
|
sentShares?: boolean | User$sentSharesArgs<ExtArgs>
|
|
aiFeedback?: boolean | User$aiFeedbackArgs<ExtArgs>
|
|
aiSettings?: boolean | User$aiSettingsArgs<ExtArgs>
|
|
memoryEchoInsights?: boolean | User$memoryEchoInsightsArgs<ExtArgs>
|
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
|
|
|
|
export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "User"
|
|
objects: {
|
|
accounts: Prisma.$AccountPayload<ExtArgs>[]
|
|
sessions: Prisma.$SessionPayload<ExtArgs>[]
|
|
notes: Prisma.$NotePayload<ExtArgs>[]
|
|
labels: Prisma.$LabelPayload<ExtArgs>[]
|
|
notebooks: Prisma.$NotebookPayload<ExtArgs>[]
|
|
receivedShares: Prisma.$NoteSharePayload<ExtArgs>[]
|
|
sentShares: Prisma.$NoteSharePayload<ExtArgs>[]
|
|
aiFeedback: Prisma.$AiFeedbackPayload<ExtArgs>[]
|
|
aiSettings: Prisma.$UserAISettingsPayload<ExtArgs> | null
|
|
memoryEchoInsights: Prisma.$MemoryEchoInsightPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string | null
|
|
email: string
|
|
emailVerified: Date | null
|
|
password: string | null
|
|
role: string
|
|
image: string | null
|
|
theme: string
|
|
resetToken: string | null
|
|
resetTokenExpiry: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["user"]>
|
|
composites: {}
|
|
}
|
|
|
|
type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
|
|
|
|
type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<UserFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: UserCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
|
|
/**
|
|
* Find zero or one User that matches the filter.
|
|
* @param {UserFindUniqueArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one User that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first User that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first User that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Users that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Users
|
|
* const users = await prisma.user.findMany()
|
|
*
|
|
* // Get first 10 Users
|
|
* const users = await prisma.user.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a User.
|
|
* @param {UserCreateArgs} args - Arguments to create a User.
|
|
* @example
|
|
* // Create one User
|
|
* const User = await prisma.user.create({
|
|
* data: {
|
|
* // ... data to create a User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Users.
|
|
* @param {UserCreateManyArgs} args - Arguments to create many Users.
|
|
* @example
|
|
* // Create many Users
|
|
* const user = await prisma.user.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Users and returns the data saved in the database.
|
|
* @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
|
|
* @example
|
|
* // Create many Users
|
|
* const user = await prisma.user.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Users and only return the `id`
|
|
* const userWithIdOnly = await prisma.user.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a User.
|
|
* @param {UserDeleteArgs} args - Arguments to delete one User.
|
|
* @example
|
|
* // Delete one User
|
|
* const User = await prisma.user.delete({
|
|
* where: {
|
|
* // ... filter to delete one User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one User.
|
|
* @param {UserUpdateArgs} args - Arguments to update one User.
|
|
* @example
|
|
* // Update one User
|
|
* const user = await prisma.user.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Users.
|
|
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
|
|
* @example
|
|
* // Delete a few Users
|
|
* const { count } = await prisma.user.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Users
|
|
* const user = await prisma.user.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one User.
|
|
* @param {UserUpsertArgs} args - Arguments to update or create a User.
|
|
* @example
|
|
* // Update or create a User
|
|
* const user = await prisma.user.upsert({
|
|
* create: {
|
|
* // ... data to create a User
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the User we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserCountArgs} args - Arguments to filter Users to count.
|
|
* @example
|
|
* // Count the number of Users
|
|
* const count = await prisma.user.count({
|
|
* where: {
|
|
* // ... the filter for the Users we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UserCountArgs>(
|
|
args?: Subset<T, UserCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], UserCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
|
|
|
|
/**
|
|
* Group by User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends UserGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: UserGroupByArgs['orderBy'] }
|
|
: { orderBy?: UserGroupByArgs['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, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
readonly fields: UserFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for User.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
accounts<T extends User$accountsArgs<ExtArgs> = {}>(args?: Subset<T, User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany"> | Null>
|
|
sessions<T extends User$sessionsArgs<ExtArgs> = {}>(args?: Subset<T, User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany"> | Null>
|
|
notes<T extends User$notesArgs<ExtArgs> = {}>(args?: Subset<T, User$notesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findMany"> | Null>
|
|
labels<T extends User$labelsArgs<ExtArgs> = {}>(args?: Subset<T, User$labelsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findMany"> | Null>
|
|
notebooks<T extends User$notebooksArgs<ExtArgs> = {}>(args?: Subset<T, User$notebooksArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "findMany"> | Null>
|
|
receivedShares<T extends User$receivedSharesArgs<ExtArgs> = {}>(args?: Subset<T, User$receivedSharesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findMany"> | Null>
|
|
sentShares<T extends User$sentSharesArgs<ExtArgs> = {}>(args?: Subset<T, User$sentSharesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findMany"> | Null>
|
|
aiFeedback<T extends User$aiFeedbackArgs<ExtArgs> = {}>(args?: Subset<T, User$aiFeedbackArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "findMany"> | Null>
|
|
aiSettings<T extends User$aiSettingsArgs<ExtArgs> = {}>(args?: Subset<T, User$aiSettingsArgs<ExtArgs>>): Prisma__UserAISettingsClient<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
memoryEchoInsights<T extends User$memoryEchoInsightsArgs<ExtArgs> = {}>(args?: Subset<T, User$memoryEchoInsightsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "findMany"> | 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 User model
|
|
*/
|
|
interface UserFieldRefs {
|
|
readonly id: FieldRef<"User", 'String'>
|
|
readonly name: FieldRef<"User", 'String'>
|
|
readonly email: FieldRef<"User", 'String'>
|
|
readonly emailVerified: FieldRef<"User", 'DateTime'>
|
|
readonly password: FieldRef<"User", 'String'>
|
|
readonly role: FieldRef<"User", 'String'>
|
|
readonly image: FieldRef<"User", 'String'>
|
|
readonly theme: FieldRef<"User", 'String'>
|
|
readonly resetToken: FieldRef<"User", 'String'>
|
|
readonly resetTokenExpiry: FieldRef<"User", 'DateTime'>
|
|
readonly createdAt: FieldRef<"User", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"User", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* User findUnique
|
|
*/
|
|
export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findUniqueOrThrow
|
|
*/
|
|
export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findFirst
|
|
*/
|
|
export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findFirstOrThrow
|
|
*/
|
|
export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findMany
|
|
*/
|
|
export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Users to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User create
|
|
*/
|
|
export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a User.
|
|
*/
|
|
data: XOR<UserCreateInput, UserUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* User createMany
|
|
*/
|
|
export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Users.
|
|
*/
|
|
data: UserCreateManyInput | UserCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* User createManyAndReturn
|
|
*/
|
|
export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Users.
|
|
*/
|
|
data: UserCreateManyInput | UserCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* User update
|
|
*/
|
|
export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a User.
|
|
*/
|
|
data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which User to update.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User updateMany
|
|
*/
|
|
export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Users.
|
|
*/
|
|
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Users to update
|
|
*/
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* User upsert
|
|
*/
|
|
export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the User to update in case it exists.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
/**
|
|
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
|
|
*/
|
|
create: XOR<UserCreateInput, UserUncheckedCreateInput>
|
|
/**
|
|
* In case the User was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* User delete
|
|
*/
|
|
export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which User to delete.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User deleteMany
|
|
*/
|
|
export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Users to delete
|
|
*/
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* User.accounts
|
|
*/
|
|
export type User$accountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
where?: AccountWhereInput
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
cursor?: AccountWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.sessions
|
|
*/
|
|
export type User$sessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
where?: SessionWhereInput
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
cursor?: SessionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.notes
|
|
*/
|
|
export type User$notesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
where?: NoteWhereInput
|
|
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
|
|
cursor?: NoteWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.labels
|
|
*/
|
|
export type User$labelsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
where?: LabelWhereInput
|
|
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
|
|
cursor?: LabelWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.notebooks
|
|
*/
|
|
export type User$notebooksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
where?: NotebookWhereInput
|
|
orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[]
|
|
cursor?: NotebookWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.receivedShares
|
|
*/
|
|
export type User$receivedSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
where?: NoteShareWhereInput
|
|
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
|
|
cursor?: NoteShareWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.sentShares
|
|
*/
|
|
export type User$sentSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
where?: NoteShareWhereInput
|
|
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
|
|
cursor?: NoteShareWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.aiFeedback
|
|
*/
|
|
export type User$aiFeedbackArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
where?: AiFeedbackWhereInput
|
|
orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[]
|
|
cursor?: AiFeedbackWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.aiSettings
|
|
*/
|
|
export type User$aiSettingsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
where?: UserAISettingsWhereInput
|
|
}
|
|
|
|
/**
|
|
* User.memoryEchoInsights
|
|
*/
|
|
export type User$memoryEchoInsightsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
where?: MemoryEchoInsightWhereInput
|
|
orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[]
|
|
cursor?: MemoryEchoInsightWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User without action
|
|
*/
|
|
export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Account
|
|
*/
|
|
|
|
export type AggregateAccount = {
|
|
_count: AccountCountAggregateOutputType | null
|
|
_avg: AccountAvgAggregateOutputType | null
|
|
_sum: AccountSumAggregateOutputType | null
|
|
_min: AccountMinAggregateOutputType | null
|
|
_max: AccountMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AccountAvgAggregateOutputType = {
|
|
expires_at: number | null
|
|
}
|
|
|
|
export type AccountSumAggregateOutputType = {
|
|
expires_at: number | null
|
|
}
|
|
|
|
export type AccountMinAggregateOutputType = {
|
|
userId: string | null
|
|
type: string | null
|
|
provider: string | null
|
|
providerAccountId: string | null
|
|
refresh_token: string | null
|
|
access_token: string | null
|
|
expires_at: number | null
|
|
token_type: string | null
|
|
scope: string | null
|
|
id_token: string | null
|
|
session_state: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type AccountMaxAggregateOutputType = {
|
|
userId: string | null
|
|
type: string | null
|
|
provider: string | null
|
|
providerAccountId: string | null
|
|
refresh_token: string | null
|
|
access_token: string | null
|
|
expires_at: number | null
|
|
token_type: string | null
|
|
scope: string | null
|
|
id_token: string | null
|
|
session_state: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type AccountCountAggregateOutputType = {
|
|
userId: number
|
|
type: number
|
|
provider: number
|
|
providerAccountId: number
|
|
refresh_token: number
|
|
access_token: number
|
|
expires_at: number
|
|
token_type: number
|
|
scope: number
|
|
id_token: number
|
|
session_state: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AccountAvgAggregateInputType = {
|
|
expires_at?: true
|
|
}
|
|
|
|
export type AccountSumAggregateInputType = {
|
|
expires_at?: true
|
|
}
|
|
|
|
export type AccountMinAggregateInputType = {
|
|
userId?: true
|
|
type?: true
|
|
provider?: true
|
|
providerAccountId?: true
|
|
refresh_token?: true
|
|
access_token?: true
|
|
expires_at?: true
|
|
token_type?: true
|
|
scope?: true
|
|
id_token?: true
|
|
session_state?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type AccountMaxAggregateInputType = {
|
|
userId?: true
|
|
type?: true
|
|
provider?: true
|
|
providerAccountId?: true
|
|
refresh_token?: true
|
|
access_token?: true
|
|
expires_at?: true
|
|
token_type?: true
|
|
scope?: true
|
|
id_token?: true
|
|
session_state?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type AccountCountAggregateInputType = {
|
|
userId?: true
|
|
type?: true
|
|
provider?: true
|
|
providerAccountId?: true
|
|
refresh_token?: true
|
|
access_token?: true
|
|
expires_at?: true
|
|
token_type?: true
|
|
scope?: true
|
|
id_token?: true
|
|
session_state?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AccountAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Account to aggregate.
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Accounts to fetch.
|
|
*/
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: AccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Accounts 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` Accounts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Accounts
|
|
**/
|
|
_count?: true | AccountCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: AccountAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: AccountSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AccountMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AccountMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateAccount[P]>
|
|
: GetScalarType<T[P], AggregateAccount[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AccountGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AccountWhereInput
|
|
orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[]
|
|
by: AccountScalarFieldEnum[] | AccountScalarFieldEnum
|
|
having?: AccountScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AccountCountAggregateInputType | true
|
|
_avg?: AccountAvgAggregateInputType
|
|
_sum?: AccountSumAggregateInputType
|
|
_min?: AccountMinAggregateInputType
|
|
_max?: AccountMaxAggregateInputType
|
|
}
|
|
|
|
export type AccountGroupByOutputType = {
|
|
userId: string
|
|
type: string
|
|
provider: string
|
|
providerAccountId: string
|
|
refresh_token: string | null
|
|
access_token: string | null
|
|
expires_at: number | null
|
|
token_type: string | null
|
|
scope: string | null
|
|
id_token: string | null
|
|
session_state: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: AccountCountAggregateOutputType | null
|
|
_avg: AccountAvgAggregateOutputType | null
|
|
_sum: AccountSumAggregateOutputType | null
|
|
_min: AccountMinAggregateOutputType | null
|
|
_max: AccountMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<AccountGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], AccountGroupByOutputType[P]>
|
|
: GetScalarType<T[P], AccountGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type AccountSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
userId?: boolean
|
|
type?: boolean
|
|
provider?: boolean
|
|
providerAccountId?: boolean
|
|
refresh_token?: boolean
|
|
access_token?: boolean
|
|
expires_at?: boolean
|
|
token_type?: boolean
|
|
scope?: boolean
|
|
id_token?: boolean
|
|
session_state?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["account"]>
|
|
|
|
export type AccountSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
userId?: boolean
|
|
type?: boolean
|
|
provider?: boolean
|
|
providerAccountId?: boolean
|
|
refresh_token?: boolean
|
|
access_token?: boolean
|
|
expires_at?: boolean
|
|
token_type?: boolean
|
|
scope?: boolean
|
|
id_token?: boolean
|
|
session_state?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["account"]>
|
|
|
|
export type AccountSelectScalar = {
|
|
userId?: boolean
|
|
type?: boolean
|
|
provider?: boolean
|
|
providerAccountId?: boolean
|
|
refresh_token?: boolean
|
|
access_token?: boolean
|
|
expires_at?: boolean
|
|
token_type?: boolean
|
|
scope?: boolean
|
|
id_token?: boolean
|
|
session_state?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type AccountInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type AccountIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AccountPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Account"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
userId: string
|
|
type: string
|
|
provider: string
|
|
providerAccountId: string
|
|
refresh_token: string | null
|
|
access_token: string | null
|
|
expires_at: number | null
|
|
token_type: string | null
|
|
scope: string | null
|
|
id_token: string | null
|
|
session_state: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["account"]>
|
|
composites: {}
|
|
}
|
|
|
|
type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = $Result.GetResult<Prisma.$AccountPayload, S>
|
|
|
|
type AccountCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: AccountCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AccountDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
|
|
/**
|
|
* Find zero or one Account that matches the filter.
|
|
* @param {AccountFindUniqueArgs} args - Arguments to find a Account
|
|
* @example
|
|
* // Get one Account
|
|
* const account = await prisma.account.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AccountFindUniqueArgs>(args: SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Account that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
|
|
* @example
|
|
* // Get one Account
|
|
* const account = await prisma.account.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Account 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 {AccountFindFirstArgs} args - Arguments to find a Account
|
|
* @example
|
|
* // Get one Account
|
|
* const account = await prisma.account.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AccountFindFirstArgs>(args?: SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Account 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 {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
|
|
* @example
|
|
* // Get one Account
|
|
* const account = await prisma.account.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Accounts 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 {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Accounts
|
|
* const accounts = await prisma.account.findMany()
|
|
*
|
|
* // Get first 10 Accounts
|
|
* const accounts = await prisma.account.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `userId`
|
|
* const accountWithUserIdOnly = await prisma.account.findMany({ select: { userId: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AccountFindManyArgs>(args?: SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Account.
|
|
* @param {AccountCreateArgs} args - Arguments to create a Account.
|
|
* @example
|
|
* // Create one Account
|
|
* const Account = await prisma.account.create({
|
|
* data: {
|
|
* // ... data to create a Account
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AccountCreateArgs>(args: SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Accounts.
|
|
* @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
|
|
* @example
|
|
* // Create many Accounts
|
|
* const account = await prisma.account.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AccountCreateManyArgs>(args?: SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Accounts and returns the data saved in the database.
|
|
* @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
|
|
* @example
|
|
* // Create many Accounts
|
|
* const account = await prisma.account.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Accounts and only return the `userId`
|
|
* const accountWithUserIdOnly = await prisma.account.createManyAndReturn({
|
|
* select: { userId: 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 AccountCreateManyAndReturnArgs>(args?: SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a Account.
|
|
* @param {AccountDeleteArgs} args - Arguments to delete one Account.
|
|
* @example
|
|
* // Delete one Account
|
|
* const Account = await prisma.account.delete({
|
|
* where: {
|
|
* // ... filter to delete one Account
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AccountDeleteArgs>(args: SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Account.
|
|
* @param {AccountUpdateArgs} args - Arguments to update one Account.
|
|
* @example
|
|
* // Update one Account
|
|
* const account = await prisma.account.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AccountUpdateArgs>(args: SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Accounts.
|
|
* @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
|
|
* @example
|
|
* // Delete a few Accounts
|
|
* const { count } = await prisma.account.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AccountDeleteManyArgs>(args?: SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Accounts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Accounts
|
|
* const account = await prisma.account.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AccountUpdateManyArgs>(args: SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Account.
|
|
* @param {AccountUpsertArgs} args - Arguments to update or create a Account.
|
|
* @example
|
|
* // Update or create a Account
|
|
* const account = await prisma.account.upsert({
|
|
* create: {
|
|
* // ... data to create a Account
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Account we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AccountUpsertArgs>(args: SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Accounts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountCountArgs} args - Arguments to filter Accounts to count.
|
|
* @example
|
|
* // Count the number of Accounts
|
|
* const count = await prisma.account.count({
|
|
* where: {
|
|
* // ... the filter for the Accounts we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AccountCountArgs>(
|
|
args?: Subset<T, AccountCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], AccountCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Account.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountAggregateArgs} 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 AccountAggregateArgs>(args: Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Account.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AccountGroupByArgs} 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 AccountGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: AccountGroupByArgs['orderBy'] }
|
|
: { orderBy?: AccountGroupByArgs['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, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Account model
|
|
*/
|
|
readonly fields: AccountFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Account.
|
|
* 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__AccountClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* 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 Account model
|
|
*/
|
|
interface AccountFieldRefs {
|
|
readonly userId: FieldRef<"Account", 'String'>
|
|
readonly type: FieldRef<"Account", 'String'>
|
|
readonly provider: FieldRef<"Account", 'String'>
|
|
readonly providerAccountId: FieldRef<"Account", 'String'>
|
|
readonly refresh_token: FieldRef<"Account", 'String'>
|
|
readonly access_token: FieldRef<"Account", 'String'>
|
|
readonly expires_at: FieldRef<"Account", 'Int'>
|
|
readonly token_type: FieldRef<"Account", 'String'>
|
|
readonly scope: FieldRef<"Account", 'String'>
|
|
readonly id_token: FieldRef<"Account", 'String'>
|
|
readonly session_state: FieldRef<"Account", 'String'>
|
|
readonly createdAt: FieldRef<"Account", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Account", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Account findUnique
|
|
*/
|
|
export type AccountFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Account to fetch.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Account findUniqueOrThrow
|
|
*/
|
|
export type AccountFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Account to fetch.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Account findFirst
|
|
*/
|
|
export type AccountFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Account to fetch.
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Accounts to fetch.
|
|
*/
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Accounts.
|
|
*/
|
|
cursor?: AccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Accounts 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` Accounts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Accounts.
|
|
*/
|
|
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Account findFirstOrThrow
|
|
*/
|
|
export type AccountFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Account to fetch.
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Accounts to fetch.
|
|
*/
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Accounts.
|
|
*/
|
|
cursor?: AccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Accounts 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` Accounts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Accounts.
|
|
*/
|
|
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Account findMany
|
|
*/
|
|
export type AccountFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Accounts to fetch.
|
|
*/
|
|
where?: AccountWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Accounts to fetch.
|
|
*/
|
|
orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Accounts.
|
|
*/
|
|
cursor?: AccountWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Accounts 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` Accounts.
|
|
*/
|
|
skip?: number
|
|
distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Account create
|
|
*/
|
|
export type AccountCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Account.
|
|
*/
|
|
data: XOR<AccountCreateInput, AccountUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Account createMany
|
|
*/
|
|
export type AccountCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Accounts.
|
|
*/
|
|
data: AccountCreateManyInput | AccountCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* Account createManyAndReturn
|
|
*/
|
|
export type AccountCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Accounts.
|
|
*/
|
|
data: AccountCreateManyInput | AccountCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Account update
|
|
*/
|
|
export type AccountUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Account.
|
|
*/
|
|
data: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Account to update.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Account updateMany
|
|
*/
|
|
export type AccountUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Accounts.
|
|
*/
|
|
data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Accounts to update
|
|
*/
|
|
where?: AccountWhereInput
|
|
}
|
|
|
|
/**
|
|
* Account upsert
|
|
*/
|
|
export type AccountUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Account to update in case it exists.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
/**
|
|
* In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
|
|
*/
|
|
create: XOR<AccountCreateInput, AccountUncheckedCreateInput>
|
|
/**
|
|
* In case the Account was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Account delete
|
|
*/
|
|
export type AccountDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Account to delete.
|
|
*/
|
|
where: AccountWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Account deleteMany
|
|
*/
|
|
export type AccountDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Accounts to delete
|
|
*/
|
|
where?: AccountWhereInput
|
|
}
|
|
|
|
/**
|
|
* Account without action
|
|
*/
|
|
export type AccountDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AccountInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Session
|
|
*/
|
|
|
|
export type AggregateSession = {
|
|
_count: SessionCountAggregateOutputType | null
|
|
_min: SessionMinAggregateOutputType | null
|
|
_max: SessionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SessionMinAggregateOutputType = {
|
|
sessionToken: string | null
|
|
userId: string | null
|
|
expires: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SessionMaxAggregateOutputType = {
|
|
sessionToken: string | null
|
|
userId: string | null
|
|
expires: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SessionCountAggregateOutputType = {
|
|
sessionToken: number
|
|
userId: number
|
|
expires: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SessionMinAggregateInputType = {
|
|
sessionToken?: true
|
|
userId?: true
|
|
expires?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SessionMaxAggregateInputType = {
|
|
sessionToken?: true
|
|
userId?: true
|
|
expires?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SessionCountAggregateInputType = {
|
|
sessionToken?: true
|
|
userId?: true
|
|
expires?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Session to aggregate.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Sessions
|
|
**/
|
|
_count?: true | SessionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SessionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SessionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSession[P]>
|
|
: GetScalarType<T[P], AggregateSession[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SessionWhereInput
|
|
orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
|
|
by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
|
|
having?: SessionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SessionCountAggregateInputType | true
|
|
_min?: SessionMinAggregateInputType
|
|
_max?: SessionMaxAggregateInputType
|
|
}
|
|
|
|
export type SessionGroupByOutputType = {
|
|
sessionToken: string
|
|
userId: string
|
|
expires: Date
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: SessionCountAggregateOutputType | null
|
|
_min: SessionMinAggregateOutputType | null
|
|
_max: SessionMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SessionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SessionGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SessionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
sessionToken?: boolean
|
|
userId?: boolean
|
|
expires?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["session"]>
|
|
|
|
export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
sessionToken?: boolean
|
|
userId?: boolean
|
|
expires?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["session"]>
|
|
|
|
export type SessionSelectScalar = {
|
|
sessionToken?: boolean
|
|
userId?: boolean
|
|
expires?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type SessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Session"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
sessionToken: string
|
|
userId: string
|
|
expires: Date
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["session"]>
|
|
composites: {}
|
|
}
|
|
|
|
type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
|
|
|
|
type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: SessionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
|
|
/**
|
|
* Find zero or one Session that matches the filter.
|
|
* @param {SessionFindUniqueArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Session that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Session 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 {SessionFindFirstArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SessionFindFirstArgs>(args?: SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Session 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 {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
|
|
* @example
|
|
* // Get one Session
|
|
* const session = await prisma.session.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Sessions 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 {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Sessions
|
|
* const sessions = await prisma.session.findMany()
|
|
*
|
|
* // Get first 10 Sessions
|
|
* const sessions = await prisma.session.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `sessionToken`
|
|
* const sessionWithSessionTokenOnly = await prisma.session.findMany({ select: { sessionToken: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SessionFindManyArgs>(args?: SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Session.
|
|
* @param {SessionCreateArgs} args - Arguments to create a Session.
|
|
* @example
|
|
* // Create one Session
|
|
* const Session = await prisma.session.create({
|
|
* data: {
|
|
* // ... data to create a Session
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SessionCreateArgs>(args: SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Sessions.
|
|
* @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
|
|
* @example
|
|
* // Create many Sessions
|
|
* const session = await prisma.session.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SessionCreateManyArgs>(args?: SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Sessions and returns the data saved in the database.
|
|
* @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
|
|
* @example
|
|
* // Create many Sessions
|
|
* const session = await prisma.session.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Sessions and only return the `sessionToken`
|
|
* const sessionWithSessionTokenOnly = await prisma.session.createManyAndReturn({
|
|
* select: { sessionToken: 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 SessionCreateManyAndReturnArgs>(args?: SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a Session.
|
|
* @param {SessionDeleteArgs} args - Arguments to delete one Session.
|
|
* @example
|
|
* // Delete one Session
|
|
* const Session = await prisma.session.delete({
|
|
* where: {
|
|
* // ... filter to delete one Session
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SessionDeleteArgs>(args: SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Session.
|
|
* @param {SessionUpdateArgs} args - Arguments to update one Session.
|
|
* @example
|
|
* // Update one Session
|
|
* const session = await prisma.session.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Sessions.
|
|
* @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
|
|
* @example
|
|
* // Delete a few Sessions
|
|
* const { count } = await prisma.session.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SessionDeleteManyArgs>(args?: SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Sessions
|
|
* const session = await prisma.session.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SessionUpdateManyArgs>(args: SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Session.
|
|
* @param {SessionUpsertArgs} args - Arguments to update or create a Session.
|
|
* @example
|
|
* // Update or create a Session
|
|
* const session = await prisma.session.upsert({
|
|
* create: {
|
|
* // ... data to create a Session
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Session we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SessionUpsertArgs>(args: SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionCountArgs} args - Arguments to filter Sessions to count.
|
|
* @example
|
|
* // Count the number of Sessions
|
|
* const count = await prisma.session.count({
|
|
* where: {
|
|
* // ... the filter for the Sessions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SessionCountArgs>(
|
|
args?: Subset<T, SessionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SessionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Session.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionAggregateArgs} 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 SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Session.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionGroupByArgs} 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 SessionGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: SessionGroupByArgs['orderBy'] }
|
|
: { orderBy?: SessionGroupByArgs['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, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Session model
|
|
*/
|
|
readonly fields: SessionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Session.
|
|
* 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__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* 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 Session model
|
|
*/
|
|
interface SessionFieldRefs {
|
|
readonly sessionToken: FieldRef<"Session", 'String'>
|
|
readonly userId: FieldRef<"Session", 'String'>
|
|
readonly expires: FieldRef<"Session", 'DateTime'>
|
|
readonly createdAt: FieldRef<"Session", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Session", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Session findUnique
|
|
*/
|
|
export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session findUniqueOrThrow
|
|
*/
|
|
export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session findFirst
|
|
*/
|
|
export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sessions.
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sessions.
|
|
*/
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Session findFirstOrThrow
|
|
*/
|
|
export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Session to fetch.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sessions.
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sessions.
|
|
*/
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Session findMany
|
|
*/
|
|
export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sessions to fetch.
|
|
*/
|
|
where?: SessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Sessions.
|
|
*/
|
|
cursor?: SessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Session create
|
|
*/
|
|
export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Session.
|
|
*/
|
|
data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Session createMany
|
|
*/
|
|
export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Sessions.
|
|
*/
|
|
data: SessionCreateManyInput | SessionCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* Session createManyAndReturn
|
|
*/
|
|
export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Sessions.
|
|
*/
|
|
data: SessionCreateManyInput | SessionCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Session update
|
|
*/
|
|
export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Session.
|
|
*/
|
|
data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Session to update.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session updateMany
|
|
*/
|
|
export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Sessions.
|
|
*/
|
|
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Sessions to update
|
|
*/
|
|
where?: SessionWhereInput
|
|
}
|
|
|
|
/**
|
|
* Session upsert
|
|
*/
|
|
export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Session to update in case it exists.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
/**
|
|
* In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
|
|
*/
|
|
create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
|
|
/**
|
|
* In case the Session was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Session delete
|
|
*/
|
|
export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Session to delete.
|
|
*/
|
|
where: SessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Session deleteMany
|
|
*/
|
|
export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Sessions to delete
|
|
*/
|
|
where?: SessionWhereInput
|
|
}
|
|
|
|
/**
|
|
* Session without action
|
|
*/
|
|
export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SessionInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model VerificationToken
|
|
*/
|
|
|
|
export type AggregateVerificationToken = {
|
|
_count: VerificationTokenCountAggregateOutputType | null
|
|
_min: VerificationTokenMinAggregateOutputType | null
|
|
_max: VerificationTokenMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type VerificationTokenMinAggregateOutputType = {
|
|
identifier: string | null
|
|
token: string | null
|
|
expires: Date | null
|
|
}
|
|
|
|
export type VerificationTokenMaxAggregateOutputType = {
|
|
identifier: string | null
|
|
token: string | null
|
|
expires: Date | null
|
|
}
|
|
|
|
export type VerificationTokenCountAggregateOutputType = {
|
|
identifier: number
|
|
token: number
|
|
expires: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type VerificationTokenMinAggregateInputType = {
|
|
identifier?: true
|
|
token?: true
|
|
expires?: true
|
|
}
|
|
|
|
export type VerificationTokenMaxAggregateInputType = {
|
|
identifier?: true
|
|
token?: true
|
|
expires?: true
|
|
}
|
|
|
|
export type VerificationTokenCountAggregateInputType = {
|
|
identifier?: true
|
|
token?: true
|
|
expires?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type VerificationTokenAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which VerificationToken to aggregate.
|
|
*/
|
|
where?: VerificationTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of VerificationTokens to fetch.
|
|
*/
|
|
orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: VerificationTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` VerificationTokens 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` VerificationTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned VerificationTokens
|
|
**/
|
|
_count?: true | VerificationTokenCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: VerificationTokenMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: VerificationTokenMaxAggregateInputType
|
|
}
|
|
|
|
export type GetVerificationTokenAggregateType<T extends VerificationTokenAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateVerificationToken[P]>
|
|
: GetScalarType<T[P], AggregateVerificationToken[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type VerificationTokenGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: VerificationTokenWhereInput
|
|
orderBy?: VerificationTokenOrderByWithAggregationInput | VerificationTokenOrderByWithAggregationInput[]
|
|
by: VerificationTokenScalarFieldEnum[] | VerificationTokenScalarFieldEnum
|
|
having?: VerificationTokenScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: VerificationTokenCountAggregateInputType | true
|
|
_min?: VerificationTokenMinAggregateInputType
|
|
_max?: VerificationTokenMaxAggregateInputType
|
|
}
|
|
|
|
export type VerificationTokenGroupByOutputType = {
|
|
identifier: string
|
|
token: string
|
|
expires: Date
|
|
_count: VerificationTokenCountAggregateOutputType | null
|
|
_min: VerificationTokenMinAggregateOutputType | null
|
|
_max: VerificationTokenMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetVerificationTokenGroupByPayload<T extends VerificationTokenGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<VerificationTokenGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
|
|
: GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type VerificationTokenSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
identifier?: boolean
|
|
token?: boolean
|
|
expires?: boolean
|
|
}, ExtArgs["result"]["verificationToken"]>
|
|
|
|
export type VerificationTokenSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
identifier?: boolean
|
|
token?: boolean
|
|
expires?: boolean
|
|
}, ExtArgs["result"]["verificationToken"]>
|
|
|
|
export type VerificationTokenSelectScalar = {
|
|
identifier?: boolean
|
|
token?: boolean
|
|
expires?: boolean
|
|
}
|
|
|
|
|
|
export type $VerificationTokenPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "VerificationToken"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
identifier: string
|
|
token: string
|
|
expires: Date
|
|
}, ExtArgs["result"]["verificationToken"]>
|
|
composites: {}
|
|
}
|
|
|
|
type VerificationTokenGetPayload<S extends boolean | null | undefined | VerificationTokenDefaultArgs> = $Result.GetResult<Prisma.$VerificationTokenPayload, S>
|
|
|
|
type VerificationTokenCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<VerificationTokenFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: VerificationTokenCountAggregateInputType | true
|
|
}
|
|
|
|
export interface VerificationTokenDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['VerificationToken'], meta: { name: 'VerificationToken' } }
|
|
/**
|
|
* Find zero or one VerificationToken that matches the filter.
|
|
* @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken
|
|
* @example
|
|
* // Get one VerificationToken
|
|
* const verificationToken = await prisma.verificationToken.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends VerificationTokenFindUniqueArgs>(args: SelectSubset<T, VerificationTokenFindUniqueArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken
|
|
* @example
|
|
* // Get one VerificationToken
|
|
* const verificationToken = await prisma.verificationToken.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends VerificationTokenFindUniqueOrThrowArgs>(args: SelectSubset<T, VerificationTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first VerificationToken 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 {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken
|
|
* @example
|
|
* // Get one VerificationToken
|
|
* const verificationToken = await prisma.verificationToken.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends VerificationTokenFindFirstArgs>(args?: SelectSubset<T, VerificationTokenFindFirstArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first VerificationToken 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 {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken
|
|
* @example
|
|
* // Get one VerificationToken
|
|
* const verificationToken = await prisma.verificationToken.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends VerificationTokenFindFirstOrThrowArgs>(args?: SelectSubset<T, VerificationTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more VerificationTokens 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 {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all VerificationTokens
|
|
* const verificationTokens = await prisma.verificationToken.findMany()
|
|
*
|
|
* // Get first 10 VerificationTokens
|
|
* const verificationTokens = await prisma.verificationToken.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `identifier`
|
|
* const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } })
|
|
*
|
|
*/
|
|
findMany<T extends VerificationTokenFindManyArgs>(args?: SelectSubset<T, VerificationTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a VerificationToken.
|
|
* @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken.
|
|
* @example
|
|
* // Create one VerificationToken
|
|
* const VerificationToken = await prisma.verificationToken.create({
|
|
* data: {
|
|
* // ... data to create a VerificationToken
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends VerificationTokenCreateArgs>(args: SelectSubset<T, VerificationTokenCreateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many VerificationTokens.
|
|
* @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens.
|
|
* @example
|
|
* // Create many VerificationTokens
|
|
* const verificationToken = await prisma.verificationToken.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends VerificationTokenCreateManyArgs>(args?: SelectSubset<T, VerificationTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many VerificationTokens and returns the data saved in the database.
|
|
* @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens.
|
|
* @example
|
|
* // Create many VerificationTokens
|
|
* const verificationToken = await prisma.verificationToken.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many VerificationTokens and only return the `identifier`
|
|
* const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({
|
|
* select: { identifier: 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 VerificationTokenCreateManyAndReturnArgs>(args?: SelectSubset<T, VerificationTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a VerificationToken.
|
|
* @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken.
|
|
* @example
|
|
* // Delete one VerificationToken
|
|
* const VerificationToken = await prisma.verificationToken.delete({
|
|
* where: {
|
|
* // ... filter to delete one VerificationToken
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends VerificationTokenDeleteArgs>(args: SelectSubset<T, VerificationTokenDeleteArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one VerificationToken.
|
|
* @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken.
|
|
* @example
|
|
* // Update one VerificationToken
|
|
* const verificationToken = await prisma.verificationToken.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends VerificationTokenUpdateArgs>(args: SelectSubset<T, VerificationTokenUpdateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more VerificationTokens.
|
|
* @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete.
|
|
* @example
|
|
* // Delete a few VerificationTokens
|
|
* const { count } = await prisma.verificationToken.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends VerificationTokenDeleteManyArgs>(args?: SelectSubset<T, VerificationTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more VerificationTokens.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many VerificationTokens
|
|
* const verificationToken = await prisma.verificationToken.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends VerificationTokenUpdateManyArgs>(args: SelectSubset<T, VerificationTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one VerificationToken.
|
|
* @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken.
|
|
* @example
|
|
* // Update or create a VerificationToken
|
|
* const verificationToken = await prisma.verificationToken.upsert({
|
|
* create: {
|
|
* // ... data to create a VerificationToken
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the VerificationToken we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends VerificationTokenUpsertArgs>(args: SelectSubset<T, VerificationTokenUpsertArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of VerificationTokens.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count.
|
|
* @example
|
|
* // Count the number of VerificationTokens
|
|
* const count = await prisma.verificationToken.count({
|
|
* where: {
|
|
* // ... the filter for the VerificationTokens we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends VerificationTokenCountArgs>(
|
|
args?: Subset<T, VerificationTokenCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], VerificationTokenCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a VerificationToken.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {VerificationTokenAggregateArgs} 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 VerificationTokenAggregateArgs>(args: Subset<T, VerificationTokenAggregateArgs>): Prisma.PrismaPromise<GetVerificationTokenAggregateType<T>>
|
|
|
|
/**
|
|
* Group by VerificationToken.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {VerificationTokenGroupByArgs} 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 VerificationTokenGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: VerificationTokenGroupByArgs['orderBy'] }
|
|
: { orderBy?: VerificationTokenGroupByArgs['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, VerificationTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the VerificationToken model
|
|
*/
|
|
readonly fields: VerificationTokenFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for VerificationToken.
|
|
* 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__VerificationTokenClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* 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 VerificationToken model
|
|
*/
|
|
interface VerificationTokenFieldRefs {
|
|
readonly identifier: FieldRef<"VerificationToken", 'String'>
|
|
readonly token: FieldRef<"VerificationToken", 'String'>
|
|
readonly expires: FieldRef<"VerificationToken", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* VerificationToken findUnique
|
|
*/
|
|
export type VerificationTokenFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which VerificationToken to fetch.
|
|
*/
|
|
where: VerificationTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken findUniqueOrThrow
|
|
*/
|
|
export type VerificationTokenFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which VerificationToken to fetch.
|
|
*/
|
|
where: VerificationTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken findFirst
|
|
*/
|
|
export type VerificationTokenFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which VerificationToken to fetch.
|
|
*/
|
|
where?: VerificationTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of VerificationTokens to fetch.
|
|
*/
|
|
orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for VerificationTokens.
|
|
*/
|
|
cursor?: VerificationTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` VerificationTokens 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` VerificationTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of VerificationTokens.
|
|
*/
|
|
distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* VerificationToken findFirstOrThrow
|
|
*/
|
|
export type VerificationTokenFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which VerificationToken to fetch.
|
|
*/
|
|
where?: VerificationTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of VerificationTokens to fetch.
|
|
*/
|
|
orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for VerificationTokens.
|
|
*/
|
|
cursor?: VerificationTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` VerificationTokens 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` VerificationTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of VerificationTokens.
|
|
*/
|
|
distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* VerificationToken findMany
|
|
*/
|
|
export type VerificationTokenFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which VerificationTokens to fetch.
|
|
*/
|
|
where?: VerificationTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of VerificationTokens to fetch.
|
|
*/
|
|
orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing VerificationTokens.
|
|
*/
|
|
cursor?: VerificationTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` VerificationTokens 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` VerificationTokens.
|
|
*/
|
|
skip?: number
|
|
distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* VerificationToken create
|
|
*/
|
|
export type VerificationTokenCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a VerificationToken.
|
|
*/
|
|
data: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* VerificationToken createMany
|
|
*/
|
|
export type VerificationTokenCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many VerificationTokens.
|
|
*/
|
|
data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* VerificationToken createManyAndReturn
|
|
*/
|
|
export type VerificationTokenCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many VerificationTokens.
|
|
*/
|
|
data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* VerificationToken update
|
|
*/
|
|
export type VerificationTokenUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a VerificationToken.
|
|
*/
|
|
data: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which VerificationToken to update.
|
|
*/
|
|
where: VerificationTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken updateMany
|
|
*/
|
|
export type VerificationTokenUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update VerificationTokens.
|
|
*/
|
|
data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which VerificationTokens to update
|
|
*/
|
|
where?: VerificationTokenWhereInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken upsert
|
|
*/
|
|
export type VerificationTokenUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the VerificationToken to update in case it exists.
|
|
*/
|
|
where: VerificationTokenWhereUniqueInput
|
|
/**
|
|
* In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data.
|
|
*/
|
|
create: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
|
|
/**
|
|
* In case the VerificationToken was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* VerificationToken delete
|
|
*/
|
|
export type VerificationTokenDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Filter which VerificationToken to delete.
|
|
*/
|
|
where: VerificationTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken deleteMany
|
|
*/
|
|
export type VerificationTokenDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which VerificationTokens to delete
|
|
*/
|
|
where?: VerificationTokenWhereInput
|
|
}
|
|
|
|
/**
|
|
* VerificationToken without action
|
|
*/
|
|
export type VerificationTokenDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the VerificationToken
|
|
*/
|
|
select?: VerificationTokenSelect<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Notebook
|
|
*/
|
|
|
|
export type AggregateNotebook = {
|
|
_count: NotebookCountAggregateOutputType | null
|
|
_avg: NotebookAvgAggregateOutputType | null
|
|
_sum: NotebookSumAggregateOutputType | null
|
|
_min: NotebookMinAggregateOutputType | null
|
|
_max: NotebookMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type NotebookAvgAggregateOutputType = {
|
|
order: number | null
|
|
}
|
|
|
|
export type NotebookSumAggregateOutputType = {
|
|
order: number | null
|
|
}
|
|
|
|
export type NotebookMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
icon: string | null
|
|
color: string | null
|
|
order: number | null
|
|
userId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type NotebookMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
icon: string | null
|
|
color: string | null
|
|
order: number | null
|
|
userId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type NotebookCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
icon: number
|
|
color: number
|
|
order: number
|
|
userId: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type NotebookAvgAggregateInputType = {
|
|
order?: true
|
|
}
|
|
|
|
export type NotebookSumAggregateInputType = {
|
|
order?: true
|
|
}
|
|
|
|
export type NotebookMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
icon?: true
|
|
color?: true
|
|
order?: true
|
|
userId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type NotebookMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
icon?: true
|
|
color?: true
|
|
order?: true
|
|
userId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type NotebookCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
icon?: true
|
|
color?: true
|
|
order?: true
|
|
userId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type NotebookAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Notebook to aggregate.
|
|
*/
|
|
where?: NotebookWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Notebooks to fetch.
|
|
*/
|
|
orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: NotebookWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Notebooks 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` Notebooks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Notebooks
|
|
**/
|
|
_count?: true | NotebookCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: NotebookAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: NotebookSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: NotebookMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: NotebookMaxAggregateInputType
|
|
}
|
|
|
|
export type GetNotebookAggregateType<T extends NotebookAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateNotebook]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateNotebook[P]>
|
|
: GetScalarType<T[P], AggregateNotebook[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type NotebookGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NotebookWhereInput
|
|
orderBy?: NotebookOrderByWithAggregationInput | NotebookOrderByWithAggregationInput[]
|
|
by: NotebookScalarFieldEnum[] | NotebookScalarFieldEnum
|
|
having?: NotebookScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: NotebookCountAggregateInputType | true
|
|
_avg?: NotebookAvgAggregateInputType
|
|
_sum?: NotebookSumAggregateInputType
|
|
_min?: NotebookMinAggregateInputType
|
|
_max?: NotebookMaxAggregateInputType
|
|
}
|
|
|
|
export type NotebookGroupByOutputType = {
|
|
id: string
|
|
name: string
|
|
icon: string | null
|
|
color: string | null
|
|
order: number
|
|
userId: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: NotebookCountAggregateOutputType | null
|
|
_avg: NotebookAvgAggregateOutputType | null
|
|
_sum: NotebookSumAggregateOutputType | null
|
|
_min: NotebookMinAggregateOutputType | null
|
|
_max: NotebookMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetNotebookGroupByPayload<T extends NotebookGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<NotebookGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof NotebookGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], NotebookGroupByOutputType[P]>
|
|
: GetScalarType<T[P], NotebookGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type NotebookSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
icon?: boolean
|
|
color?: boolean
|
|
order?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
notes?: boolean | Notebook$notesArgs<ExtArgs>
|
|
labels?: boolean | Notebook$labelsArgs<ExtArgs>
|
|
_count?: boolean | NotebookCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["notebook"]>
|
|
|
|
export type NotebookSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
icon?: boolean
|
|
color?: boolean
|
|
order?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["notebook"]>
|
|
|
|
export type NotebookSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
icon?: boolean
|
|
color?: boolean
|
|
order?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type NotebookInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
notes?: boolean | Notebook$notesArgs<ExtArgs>
|
|
labels?: boolean | Notebook$labelsArgs<ExtArgs>
|
|
_count?: boolean | NotebookCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type NotebookIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $NotebookPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Notebook"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
notes: Prisma.$NotePayload<ExtArgs>[]
|
|
labels: Prisma.$LabelPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string
|
|
icon: string | null
|
|
color: string | null
|
|
order: number
|
|
userId: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["notebook"]>
|
|
composites: {}
|
|
}
|
|
|
|
type NotebookGetPayload<S extends boolean | null | undefined | NotebookDefaultArgs> = $Result.GetResult<Prisma.$NotebookPayload, S>
|
|
|
|
type NotebookCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<NotebookFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: NotebookCountAggregateInputType | true
|
|
}
|
|
|
|
export interface NotebookDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Notebook'], meta: { name: 'Notebook' } }
|
|
/**
|
|
* Find zero or one Notebook that matches the filter.
|
|
* @param {NotebookFindUniqueArgs} args - Arguments to find a Notebook
|
|
* @example
|
|
* // Get one Notebook
|
|
* const notebook = await prisma.notebook.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends NotebookFindUniqueArgs>(args: SelectSubset<T, NotebookFindUniqueArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Notebook that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {NotebookFindUniqueOrThrowArgs} args - Arguments to find a Notebook
|
|
* @example
|
|
* // Get one Notebook
|
|
* const notebook = await prisma.notebook.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends NotebookFindUniqueOrThrowArgs>(args: SelectSubset<T, NotebookFindUniqueOrThrowArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Notebook 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 {NotebookFindFirstArgs} args - Arguments to find a Notebook
|
|
* @example
|
|
* // Get one Notebook
|
|
* const notebook = await prisma.notebook.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends NotebookFindFirstArgs>(args?: SelectSubset<T, NotebookFindFirstArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Notebook 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 {NotebookFindFirstOrThrowArgs} args - Arguments to find a Notebook
|
|
* @example
|
|
* // Get one Notebook
|
|
* const notebook = await prisma.notebook.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends NotebookFindFirstOrThrowArgs>(args?: SelectSubset<T, NotebookFindFirstOrThrowArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Notebooks 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 {NotebookFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Notebooks
|
|
* const notebooks = await prisma.notebook.findMany()
|
|
*
|
|
* // Get first 10 Notebooks
|
|
* const notebooks = await prisma.notebook.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const notebookWithIdOnly = await prisma.notebook.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends NotebookFindManyArgs>(args?: SelectSubset<T, NotebookFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Notebook.
|
|
* @param {NotebookCreateArgs} args - Arguments to create a Notebook.
|
|
* @example
|
|
* // Create one Notebook
|
|
* const Notebook = await prisma.notebook.create({
|
|
* data: {
|
|
* // ... data to create a Notebook
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends NotebookCreateArgs>(args: SelectSubset<T, NotebookCreateArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Notebooks.
|
|
* @param {NotebookCreateManyArgs} args - Arguments to create many Notebooks.
|
|
* @example
|
|
* // Create many Notebooks
|
|
* const notebook = await prisma.notebook.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends NotebookCreateManyArgs>(args?: SelectSubset<T, NotebookCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Notebooks and returns the data saved in the database.
|
|
* @param {NotebookCreateManyAndReturnArgs} args - Arguments to create many Notebooks.
|
|
* @example
|
|
* // Create many Notebooks
|
|
* const notebook = await prisma.notebook.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Notebooks and only return the `id`
|
|
* const notebookWithIdOnly = await prisma.notebook.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 NotebookCreateManyAndReturnArgs>(args?: SelectSubset<T, NotebookCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a Notebook.
|
|
* @param {NotebookDeleteArgs} args - Arguments to delete one Notebook.
|
|
* @example
|
|
* // Delete one Notebook
|
|
* const Notebook = await prisma.notebook.delete({
|
|
* where: {
|
|
* // ... filter to delete one Notebook
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends NotebookDeleteArgs>(args: SelectSubset<T, NotebookDeleteArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Notebook.
|
|
* @param {NotebookUpdateArgs} args - Arguments to update one Notebook.
|
|
* @example
|
|
* // Update one Notebook
|
|
* const notebook = await prisma.notebook.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends NotebookUpdateArgs>(args: SelectSubset<T, NotebookUpdateArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Notebooks.
|
|
* @param {NotebookDeleteManyArgs} args - Arguments to filter Notebooks to delete.
|
|
* @example
|
|
* // Delete a few Notebooks
|
|
* const { count } = await prisma.notebook.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends NotebookDeleteManyArgs>(args?: SelectSubset<T, NotebookDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Notebooks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NotebookUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Notebooks
|
|
* const notebook = await prisma.notebook.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends NotebookUpdateManyArgs>(args: SelectSubset<T, NotebookUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Notebook.
|
|
* @param {NotebookUpsertArgs} args - Arguments to update or create a Notebook.
|
|
* @example
|
|
* // Update or create a Notebook
|
|
* const notebook = await prisma.notebook.upsert({
|
|
* create: {
|
|
* // ... data to create a Notebook
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Notebook we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends NotebookUpsertArgs>(args: SelectSubset<T, NotebookUpsertArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Notebooks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NotebookCountArgs} args - Arguments to filter Notebooks to count.
|
|
* @example
|
|
* // Count the number of Notebooks
|
|
* const count = await prisma.notebook.count({
|
|
* where: {
|
|
* // ... the filter for the Notebooks we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends NotebookCountArgs>(
|
|
args?: Subset<T, NotebookCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], NotebookCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Notebook.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NotebookAggregateArgs} 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 NotebookAggregateArgs>(args: Subset<T, NotebookAggregateArgs>): Prisma.PrismaPromise<GetNotebookAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Notebook.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NotebookGroupByArgs} 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 NotebookGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: NotebookGroupByArgs['orderBy'] }
|
|
: { orderBy?: NotebookGroupByArgs['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, NotebookGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNotebookGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Notebook model
|
|
*/
|
|
readonly fields: NotebookFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Notebook.
|
|
* 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__NotebookClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
notes<T extends Notebook$notesArgs<ExtArgs> = {}>(args?: Subset<T, Notebook$notesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findMany"> | Null>
|
|
labels<T extends Notebook$labelsArgs<ExtArgs> = {}>(args?: Subset<T, Notebook$labelsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findMany"> | 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 Notebook model
|
|
*/
|
|
interface NotebookFieldRefs {
|
|
readonly id: FieldRef<"Notebook", 'String'>
|
|
readonly name: FieldRef<"Notebook", 'String'>
|
|
readonly icon: FieldRef<"Notebook", 'String'>
|
|
readonly color: FieldRef<"Notebook", 'String'>
|
|
readonly order: FieldRef<"Notebook", 'Int'>
|
|
readonly userId: FieldRef<"Notebook", 'String'>
|
|
readonly createdAt: FieldRef<"Notebook", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Notebook", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Notebook findUnique
|
|
*/
|
|
export type NotebookFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Notebook to fetch.
|
|
*/
|
|
where: NotebookWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Notebook findUniqueOrThrow
|
|
*/
|
|
export type NotebookFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Notebook to fetch.
|
|
*/
|
|
where: NotebookWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Notebook findFirst
|
|
*/
|
|
export type NotebookFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Notebook to fetch.
|
|
*/
|
|
where?: NotebookWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Notebooks to fetch.
|
|
*/
|
|
orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Notebooks.
|
|
*/
|
|
cursor?: NotebookWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Notebooks 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` Notebooks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Notebooks.
|
|
*/
|
|
distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Notebook findFirstOrThrow
|
|
*/
|
|
export type NotebookFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Notebook to fetch.
|
|
*/
|
|
where?: NotebookWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Notebooks to fetch.
|
|
*/
|
|
orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Notebooks.
|
|
*/
|
|
cursor?: NotebookWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Notebooks 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` Notebooks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Notebooks.
|
|
*/
|
|
distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Notebook findMany
|
|
*/
|
|
export type NotebookFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Notebooks to fetch.
|
|
*/
|
|
where?: NotebookWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Notebooks to fetch.
|
|
*/
|
|
orderBy?: NotebookOrderByWithRelationInput | NotebookOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Notebooks.
|
|
*/
|
|
cursor?: NotebookWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Notebooks 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` Notebooks.
|
|
*/
|
|
skip?: number
|
|
distinct?: NotebookScalarFieldEnum | NotebookScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Notebook create
|
|
*/
|
|
export type NotebookCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Notebook.
|
|
*/
|
|
data: XOR<NotebookCreateInput, NotebookUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Notebook createMany
|
|
*/
|
|
export type NotebookCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Notebooks.
|
|
*/
|
|
data: NotebookCreateManyInput | NotebookCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* Notebook createManyAndReturn
|
|
*/
|
|
export type NotebookCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Notebooks.
|
|
*/
|
|
data: NotebookCreateManyInput | NotebookCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Notebook update
|
|
*/
|
|
export type NotebookUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Notebook.
|
|
*/
|
|
data: XOR<NotebookUpdateInput, NotebookUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Notebook to update.
|
|
*/
|
|
where: NotebookWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Notebook updateMany
|
|
*/
|
|
export type NotebookUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Notebooks.
|
|
*/
|
|
data: XOR<NotebookUpdateManyMutationInput, NotebookUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Notebooks to update
|
|
*/
|
|
where?: NotebookWhereInput
|
|
}
|
|
|
|
/**
|
|
* Notebook upsert
|
|
*/
|
|
export type NotebookUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Notebook to update in case it exists.
|
|
*/
|
|
where: NotebookWhereUniqueInput
|
|
/**
|
|
* In case the Notebook found by the `where` argument doesn't exist, create a new Notebook with this data.
|
|
*/
|
|
create: XOR<NotebookCreateInput, NotebookUncheckedCreateInput>
|
|
/**
|
|
* In case the Notebook was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<NotebookUpdateInput, NotebookUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Notebook delete
|
|
*/
|
|
export type NotebookDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Notebook to delete.
|
|
*/
|
|
where: NotebookWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Notebook deleteMany
|
|
*/
|
|
export type NotebookDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Notebooks to delete
|
|
*/
|
|
where?: NotebookWhereInput
|
|
}
|
|
|
|
/**
|
|
* Notebook.notes
|
|
*/
|
|
export type Notebook$notesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
where?: NoteWhereInput
|
|
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
|
|
cursor?: NoteWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Notebook.labels
|
|
*/
|
|
export type Notebook$labelsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
where?: LabelWhereInput
|
|
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
|
|
cursor?: LabelWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Notebook without action
|
|
*/
|
|
export type NotebookDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Label
|
|
*/
|
|
|
|
export type AggregateLabel = {
|
|
_count: LabelCountAggregateOutputType | null
|
|
_min: LabelMinAggregateOutputType | null
|
|
_max: LabelMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type LabelMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
color: string | null
|
|
notebookId: string | null
|
|
userId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type LabelMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
color: string | null
|
|
notebookId: string | null
|
|
userId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type LabelCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
color: number
|
|
notebookId: number
|
|
userId: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type LabelMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
color?: true
|
|
notebookId?: true
|
|
userId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type LabelMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
color?: true
|
|
notebookId?: true
|
|
userId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type LabelCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
color?: true
|
|
notebookId?: true
|
|
userId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type LabelAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Label to aggregate.
|
|
*/
|
|
where?: LabelWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Labels to fetch.
|
|
*/
|
|
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: LabelWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Labels 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` Labels.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Labels
|
|
**/
|
|
_count?: true | LabelCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: LabelMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: LabelMaxAggregateInputType
|
|
}
|
|
|
|
export type GetLabelAggregateType<T extends LabelAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateLabel]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateLabel[P]>
|
|
: GetScalarType<T[P], AggregateLabel[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type LabelGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: LabelWhereInput
|
|
orderBy?: LabelOrderByWithAggregationInput | LabelOrderByWithAggregationInput[]
|
|
by: LabelScalarFieldEnum[] | LabelScalarFieldEnum
|
|
having?: LabelScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: LabelCountAggregateInputType | true
|
|
_min?: LabelMinAggregateInputType
|
|
_max?: LabelMaxAggregateInputType
|
|
}
|
|
|
|
export type LabelGroupByOutputType = {
|
|
id: string
|
|
name: string
|
|
color: string
|
|
notebookId: string | null
|
|
userId: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: LabelCountAggregateOutputType | null
|
|
_min: LabelMinAggregateOutputType | null
|
|
_max: LabelMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetLabelGroupByPayload<T extends LabelGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<LabelGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof LabelGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], LabelGroupByOutputType[P]>
|
|
: GetScalarType<T[P], LabelGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type LabelSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
color?: boolean
|
|
notebookId?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
notebook?: boolean | Label$notebookArgs<ExtArgs>
|
|
notes?: boolean | Label$notesArgs<ExtArgs>
|
|
user?: boolean | Label$userArgs<ExtArgs>
|
|
_count?: boolean | LabelCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["label"]>
|
|
|
|
export type LabelSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
color?: boolean
|
|
notebookId?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
notebook?: boolean | Label$notebookArgs<ExtArgs>
|
|
user?: boolean | Label$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["label"]>
|
|
|
|
export type LabelSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
color?: boolean
|
|
notebookId?: boolean
|
|
userId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type LabelInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
notebook?: boolean | Label$notebookArgs<ExtArgs>
|
|
notes?: boolean | Label$notesArgs<ExtArgs>
|
|
user?: boolean | Label$userArgs<ExtArgs>
|
|
_count?: boolean | LabelCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type LabelIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
notebook?: boolean | Label$notebookArgs<ExtArgs>
|
|
user?: boolean | Label$userArgs<ExtArgs>
|
|
}
|
|
|
|
export type $LabelPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Label"
|
|
objects: {
|
|
notebook: Prisma.$NotebookPayload<ExtArgs> | null
|
|
notes: Prisma.$NotePayload<ExtArgs>[]
|
|
user: Prisma.$UserPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string
|
|
color: string
|
|
notebookId: string | null
|
|
userId: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["label"]>
|
|
composites: {}
|
|
}
|
|
|
|
type LabelGetPayload<S extends boolean | null | undefined | LabelDefaultArgs> = $Result.GetResult<Prisma.$LabelPayload, S>
|
|
|
|
type LabelCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<LabelFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: LabelCountAggregateInputType | true
|
|
}
|
|
|
|
export interface LabelDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Label'], meta: { name: 'Label' } }
|
|
/**
|
|
* Find zero or one Label that matches the filter.
|
|
* @param {LabelFindUniqueArgs} args - Arguments to find a Label
|
|
* @example
|
|
* // Get one Label
|
|
* const label = await prisma.label.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends LabelFindUniqueArgs>(args: SelectSubset<T, LabelFindUniqueArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Label that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {LabelFindUniqueOrThrowArgs} args - Arguments to find a Label
|
|
* @example
|
|
* // Get one Label
|
|
* const label = await prisma.label.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends LabelFindUniqueOrThrowArgs>(args: SelectSubset<T, LabelFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Label 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 {LabelFindFirstArgs} args - Arguments to find a Label
|
|
* @example
|
|
* // Get one Label
|
|
* const label = await prisma.label.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends LabelFindFirstArgs>(args?: SelectSubset<T, LabelFindFirstArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Label 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 {LabelFindFirstOrThrowArgs} args - Arguments to find a Label
|
|
* @example
|
|
* // Get one Label
|
|
* const label = await prisma.label.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends LabelFindFirstOrThrowArgs>(args?: SelectSubset<T, LabelFindFirstOrThrowArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Labels 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 {LabelFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Labels
|
|
* const labels = await prisma.label.findMany()
|
|
*
|
|
* // Get first 10 Labels
|
|
* const labels = await prisma.label.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const labelWithIdOnly = await prisma.label.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends LabelFindManyArgs>(args?: SelectSubset<T, LabelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Label.
|
|
* @param {LabelCreateArgs} args - Arguments to create a Label.
|
|
* @example
|
|
* // Create one Label
|
|
* const Label = await prisma.label.create({
|
|
* data: {
|
|
* // ... data to create a Label
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends LabelCreateArgs>(args: SelectSubset<T, LabelCreateArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Labels.
|
|
* @param {LabelCreateManyArgs} args - Arguments to create many Labels.
|
|
* @example
|
|
* // Create many Labels
|
|
* const label = await prisma.label.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends LabelCreateManyArgs>(args?: SelectSubset<T, LabelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Labels and returns the data saved in the database.
|
|
* @param {LabelCreateManyAndReturnArgs} args - Arguments to create many Labels.
|
|
* @example
|
|
* // Create many Labels
|
|
* const label = await prisma.label.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Labels and only return the `id`
|
|
* const labelWithIdOnly = await prisma.label.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 LabelCreateManyAndReturnArgs>(args?: SelectSubset<T, LabelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a Label.
|
|
* @param {LabelDeleteArgs} args - Arguments to delete one Label.
|
|
* @example
|
|
* // Delete one Label
|
|
* const Label = await prisma.label.delete({
|
|
* where: {
|
|
* // ... filter to delete one Label
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends LabelDeleteArgs>(args: SelectSubset<T, LabelDeleteArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Label.
|
|
* @param {LabelUpdateArgs} args - Arguments to update one Label.
|
|
* @example
|
|
* // Update one Label
|
|
* const label = await prisma.label.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends LabelUpdateArgs>(args: SelectSubset<T, LabelUpdateArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Labels.
|
|
* @param {LabelDeleteManyArgs} args - Arguments to filter Labels to delete.
|
|
* @example
|
|
* // Delete a few Labels
|
|
* const { count } = await prisma.label.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends LabelDeleteManyArgs>(args?: SelectSubset<T, LabelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Labels.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LabelUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Labels
|
|
* const label = await prisma.label.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends LabelUpdateManyArgs>(args: SelectSubset<T, LabelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Label.
|
|
* @param {LabelUpsertArgs} args - Arguments to update or create a Label.
|
|
* @example
|
|
* // Update or create a Label
|
|
* const label = await prisma.label.upsert({
|
|
* create: {
|
|
* // ... data to create a Label
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Label we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends LabelUpsertArgs>(args: SelectSubset<T, LabelUpsertArgs<ExtArgs>>): Prisma__LabelClient<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Labels.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LabelCountArgs} args - Arguments to filter Labels to count.
|
|
* @example
|
|
* // Count the number of Labels
|
|
* const count = await prisma.label.count({
|
|
* where: {
|
|
* // ... the filter for the Labels we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends LabelCountArgs>(
|
|
args?: Subset<T, LabelCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], LabelCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Label.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LabelAggregateArgs} 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 LabelAggregateArgs>(args: Subset<T, LabelAggregateArgs>): Prisma.PrismaPromise<GetLabelAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Label.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {LabelGroupByArgs} 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 LabelGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: LabelGroupByArgs['orderBy'] }
|
|
: { orderBy?: LabelGroupByArgs['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, LabelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLabelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Label model
|
|
*/
|
|
readonly fields: LabelFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Label.
|
|
* 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__LabelClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
notebook<T extends Label$notebookArgs<ExtArgs> = {}>(args?: Subset<T, Label$notebookArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
notes<T extends Label$notesArgs<ExtArgs> = {}>(args?: Subset<T, Label$notesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findMany"> | Null>
|
|
user<T extends Label$userArgs<ExtArgs> = {}>(args?: Subset<T, Label$userArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
/**
|
|
* 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 Label model
|
|
*/
|
|
interface LabelFieldRefs {
|
|
readonly id: FieldRef<"Label", 'String'>
|
|
readonly name: FieldRef<"Label", 'String'>
|
|
readonly color: FieldRef<"Label", 'String'>
|
|
readonly notebookId: FieldRef<"Label", 'String'>
|
|
readonly userId: FieldRef<"Label", 'String'>
|
|
readonly createdAt: FieldRef<"Label", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Label", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Label findUnique
|
|
*/
|
|
export type LabelFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Label to fetch.
|
|
*/
|
|
where: LabelWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Label findUniqueOrThrow
|
|
*/
|
|
export type LabelFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Label to fetch.
|
|
*/
|
|
where: LabelWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Label findFirst
|
|
*/
|
|
export type LabelFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Label to fetch.
|
|
*/
|
|
where?: LabelWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Labels to fetch.
|
|
*/
|
|
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Labels.
|
|
*/
|
|
cursor?: LabelWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Labels 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` Labels.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Labels.
|
|
*/
|
|
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Label findFirstOrThrow
|
|
*/
|
|
export type LabelFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Label to fetch.
|
|
*/
|
|
where?: LabelWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Labels to fetch.
|
|
*/
|
|
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Labels.
|
|
*/
|
|
cursor?: LabelWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Labels 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` Labels.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Labels.
|
|
*/
|
|
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Label findMany
|
|
*/
|
|
export type LabelFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Labels to fetch.
|
|
*/
|
|
where?: LabelWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Labels to fetch.
|
|
*/
|
|
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Labels.
|
|
*/
|
|
cursor?: LabelWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Labels 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` Labels.
|
|
*/
|
|
skip?: number
|
|
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Label create
|
|
*/
|
|
export type LabelCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Label.
|
|
*/
|
|
data: XOR<LabelCreateInput, LabelUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Label createMany
|
|
*/
|
|
export type LabelCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Labels.
|
|
*/
|
|
data: LabelCreateManyInput | LabelCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* Label createManyAndReturn
|
|
*/
|
|
export type LabelCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Labels.
|
|
*/
|
|
data: LabelCreateManyInput | LabelCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Label update
|
|
*/
|
|
export type LabelUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Label.
|
|
*/
|
|
data: XOR<LabelUpdateInput, LabelUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Label to update.
|
|
*/
|
|
where: LabelWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Label updateMany
|
|
*/
|
|
export type LabelUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Labels.
|
|
*/
|
|
data: XOR<LabelUpdateManyMutationInput, LabelUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Labels to update
|
|
*/
|
|
where?: LabelWhereInput
|
|
}
|
|
|
|
/**
|
|
* Label upsert
|
|
*/
|
|
export type LabelUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Label to update in case it exists.
|
|
*/
|
|
where: LabelWhereUniqueInput
|
|
/**
|
|
* In case the Label found by the `where` argument doesn't exist, create a new Label with this data.
|
|
*/
|
|
create: XOR<LabelCreateInput, LabelUncheckedCreateInput>
|
|
/**
|
|
* In case the Label was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<LabelUpdateInput, LabelUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Label delete
|
|
*/
|
|
export type LabelDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Label to delete.
|
|
*/
|
|
where: LabelWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Label deleteMany
|
|
*/
|
|
export type LabelDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Labels to delete
|
|
*/
|
|
where?: LabelWhereInput
|
|
}
|
|
|
|
/**
|
|
* Label.notebook
|
|
*/
|
|
export type Label$notebookArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
where?: NotebookWhereInput
|
|
}
|
|
|
|
/**
|
|
* Label.notes
|
|
*/
|
|
export type Label$notesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
where?: NoteWhereInput
|
|
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
|
|
cursor?: NoteWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Label.user
|
|
*/
|
|
export type Label$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* Label without action
|
|
*/
|
|
export type LabelDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model Note
|
|
*/
|
|
|
|
export type AggregateNote = {
|
|
_count: NoteCountAggregateOutputType | null
|
|
_avg: NoteAvgAggregateOutputType | null
|
|
_sum: NoteSumAggregateOutputType | null
|
|
_min: NoteMinAggregateOutputType | null
|
|
_max: NoteMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type NoteAvgAggregateOutputType = {
|
|
order: number | null
|
|
aiConfidence: number | null
|
|
languageConfidence: number | null
|
|
}
|
|
|
|
export type NoteSumAggregateOutputType = {
|
|
order: number | null
|
|
aiConfidence: number | null
|
|
languageConfidence: number | null
|
|
}
|
|
|
|
export type NoteMinAggregateOutputType = {
|
|
id: string | null
|
|
title: string | null
|
|
content: string | null
|
|
color: string | null
|
|
isPinned: boolean | null
|
|
isArchived: boolean | null
|
|
type: string | null
|
|
checkItems: string | null
|
|
labels: string | null
|
|
images: string | null
|
|
links: string | null
|
|
reminder: Date | null
|
|
isReminderDone: boolean | null
|
|
reminderRecurrence: string | null
|
|
reminderLocation: string | null
|
|
isMarkdown: boolean | null
|
|
size: string | null
|
|
embedding: string | null
|
|
sharedWith: string | null
|
|
userId: string | null
|
|
order: number | null
|
|
notebookId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
autoGenerated: boolean | null
|
|
aiProvider: string | null
|
|
aiConfidence: number | null
|
|
language: string | null
|
|
languageConfidence: number | null
|
|
lastAiAnalysis: Date | null
|
|
}
|
|
|
|
export type NoteMaxAggregateOutputType = {
|
|
id: string | null
|
|
title: string | null
|
|
content: string | null
|
|
color: string | null
|
|
isPinned: boolean | null
|
|
isArchived: boolean | null
|
|
type: string | null
|
|
checkItems: string | null
|
|
labels: string | null
|
|
images: string | null
|
|
links: string | null
|
|
reminder: Date | null
|
|
isReminderDone: boolean | null
|
|
reminderRecurrence: string | null
|
|
reminderLocation: string | null
|
|
isMarkdown: boolean | null
|
|
size: string | null
|
|
embedding: string | null
|
|
sharedWith: string | null
|
|
userId: string | null
|
|
order: number | null
|
|
notebookId: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
autoGenerated: boolean | null
|
|
aiProvider: string | null
|
|
aiConfidence: number | null
|
|
language: string | null
|
|
languageConfidence: number | null
|
|
lastAiAnalysis: Date | null
|
|
}
|
|
|
|
export type NoteCountAggregateOutputType = {
|
|
id: number
|
|
title: number
|
|
content: number
|
|
color: number
|
|
isPinned: number
|
|
isArchived: number
|
|
type: number
|
|
checkItems: number
|
|
labels: number
|
|
images: number
|
|
links: number
|
|
reminder: number
|
|
isReminderDone: number
|
|
reminderRecurrence: number
|
|
reminderLocation: number
|
|
isMarkdown: number
|
|
size: number
|
|
embedding: number
|
|
sharedWith: number
|
|
userId: number
|
|
order: number
|
|
notebookId: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
autoGenerated: number
|
|
aiProvider: number
|
|
aiConfidence: number
|
|
language: number
|
|
languageConfidence: number
|
|
lastAiAnalysis: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type NoteAvgAggregateInputType = {
|
|
order?: true
|
|
aiConfidence?: true
|
|
languageConfidence?: true
|
|
}
|
|
|
|
export type NoteSumAggregateInputType = {
|
|
order?: true
|
|
aiConfidence?: true
|
|
languageConfidence?: true
|
|
}
|
|
|
|
export type NoteMinAggregateInputType = {
|
|
id?: true
|
|
title?: true
|
|
content?: true
|
|
color?: true
|
|
isPinned?: true
|
|
isArchived?: true
|
|
type?: true
|
|
checkItems?: true
|
|
labels?: true
|
|
images?: true
|
|
links?: true
|
|
reminder?: true
|
|
isReminderDone?: true
|
|
reminderRecurrence?: true
|
|
reminderLocation?: true
|
|
isMarkdown?: true
|
|
size?: true
|
|
embedding?: true
|
|
sharedWith?: true
|
|
userId?: true
|
|
order?: true
|
|
notebookId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
autoGenerated?: true
|
|
aiProvider?: true
|
|
aiConfidence?: true
|
|
language?: true
|
|
languageConfidence?: true
|
|
lastAiAnalysis?: true
|
|
}
|
|
|
|
export type NoteMaxAggregateInputType = {
|
|
id?: true
|
|
title?: true
|
|
content?: true
|
|
color?: true
|
|
isPinned?: true
|
|
isArchived?: true
|
|
type?: true
|
|
checkItems?: true
|
|
labels?: true
|
|
images?: true
|
|
links?: true
|
|
reminder?: true
|
|
isReminderDone?: true
|
|
reminderRecurrence?: true
|
|
reminderLocation?: true
|
|
isMarkdown?: true
|
|
size?: true
|
|
embedding?: true
|
|
sharedWith?: true
|
|
userId?: true
|
|
order?: true
|
|
notebookId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
autoGenerated?: true
|
|
aiProvider?: true
|
|
aiConfidence?: true
|
|
language?: true
|
|
languageConfidence?: true
|
|
lastAiAnalysis?: true
|
|
}
|
|
|
|
export type NoteCountAggregateInputType = {
|
|
id?: true
|
|
title?: true
|
|
content?: true
|
|
color?: true
|
|
isPinned?: true
|
|
isArchived?: true
|
|
type?: true
|
|
checkItems?: true
|
|
labels?: true
|
|
images?: true
|
|
links?: true
|
|
reminder?: true
|
|
isReminderDone?: true
|
|
reminderRecurrence?: true
|
|
reminderLocation?: true
|
|
isMarkdown?: true
|
|
size?: true
|
|
embedding?: true
|
|
sharedWith?: true
|
|
userId?: true
|
|
order?: true
|
|
notebookId?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
autoGenerated?: true
|
|
aiProvider?: true
|
|
aiConfidence?: true
|
|
language?: true
|
|
languageConfidence?: true
|
|
lastAiAnalysis?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type NoteAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Note to aggregate.
|
|
*/
|
|
where?: NoteWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Notes to fetch.
|
|
*/
|
|
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: NoteWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Notes 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` Notes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Notes
|
|
**/
|
|
_count?: true | NoteCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: NoteAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: NoteSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: NoteMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: NoteMaxAggregateInputType
|
|
}
|
|
|
|
export type GetNoteAggregateType<T extends NoteAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateNote]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateNote[P]>
|
|
: GetScalarType<T[P], AggregateNote[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type NoteGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoteWhereInput
|
|
orderBy?: NoteOrderByWithAggregationInput | NoteOrderByWithAggregationInput[]
|
|
by: NoteScalarFieldEnum[] | NoteScalarFieldEnum
|
|
having?: NoteScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: NoteCountAggregateInputType | true
|
|
_avg?: NoteAvgAggregateInputType
|
|
_sum?: NoteSumAggregateInputType
|
|
_min?: NoteMinAggregateInputType
|
|
_max?: NoteMaxAggregateInputType
|
|
}
|
|
|
|
export type NoteGroupByOutputType = {
|
|
id: string
|
|
title: string | null
|
|
content: string
|
|
color: string
|
|
isPinned: boolean
|
|
isArchived: boolean
|
|
type: string
|
|
checkItems: string | null
|
|
labels: string | null
|
|
images: string | null
|
|
links: string | null
|
|
reminder: Date | null
|
|
isReminderDone: boolean
|
|
reminderRecurrence: string | null
|
|
reminderLocation: string | null
|
|
isMarkdown: boolean
|
|
size: string
|
|
embedding: string | null
|
|
sharedWith: string | null
|
|
userId: string | null
|
|
order: number
|
|
notebookId: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
autoGenerated: boolean | null
|
|
aiProvider: string | null
|
|
aiConfidence: number | null
|
|
language: string | null
|
|
languageConfidence: number | null
|
|
lastAiAnalysis: Date | null
|
|
_count: NoteCountAggregateOutputType | null
|
|
_avg: NoteAvgAggregateOutputType | null
|
|
_sum: NoteSumAggregateOutputType | null
|
|
_min: NoteMinAggregateOutputType | null
|
|
_max: NoteMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetNoteGroupByPayload<T extends NoteGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<NoteGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof NoteGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], NoteGroupByOutputType[P]>
|
|
: GetScalarType<T[P], NoteGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type NoteSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
title?: boolean
|
|
content?: boolean
|
|
color?: boolean
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: boolean
|
|
checkItems?: boolean
|
|
labels?: boolean
|
|
images?: boolean
|
|
links?: boolean
|
|
reminder?: boolean
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: boolean
|
|
reminderLocation?: boolean
|
|
isMarkdown?: boolean
|
|
size?: boolean
|
|
embedding?: boolean
|
|
sharedWith?: boolean
|
|
userId?: boolean
|
|
order?: boolean
|
|
notebookId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
autoGenerated?: boolean
|
|
aiProvider?: boolean
|
|
aiConfidence?: boolean
|
|
language?: boolean
|
|
languageConfidence?: boolean
|
|
lastAiAnalysis?: boolean
|
|
user?: boolean | Note$userArgs<ExtArgs>
|
|
shares?: boolean | Note$sharesArgs<ExtArgs>
|
|
notebook?: boolean | Note$notebookArgs<ExtArgs>
|
|
labelRelations?: boolean | Note$labelRelationsArgs<ExtArgs>
|
|
aiFeedback?: boolean | Note$aiFeedbackArgs<ExtArgs>
|
|
memoryEchoAsNote1?: boolean | Note$memoryEchoAsNote1Args<ExtArgs>
|
|
memoryEchoAsNote2?: boolean | Note$memoryEchoAsNote2Args<ExtArgs>
|
|
_count?: boolean | NoteCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["note"]>
|
|
|
|
export type NoteSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
title?: boolean
|
|
content?: boolean
|
|
color?: boolean
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: boolean
|
|
checkItems?: boolean
|
|
labels?: boolean
|
|
images?: boolean
|
|
links?: boolean
|
|
reminder?: boolean
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: boolean
|
|
reminderLocation?: boolean
|
|
isMarkdown?: boolean
|
|
size?: boolean
|
|
embedding?: boolean
|
|
sharedWith?: boolean
|
|
userId?: boolean
|
|
order?: boolean
|
|
notebookId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
autoGenerated?: boolean
|
|
aiProvider?: boolean
|
|
aiConfidence?: boolean
|
|
language?: boolean
|
|
languageConfidence?: boolean
|
|
lastAiAnalysis?: boolean
|
|
user?: boolean | Note$userArgs<ExtArgs>
|
|
notebook?: boolean | Note$notebookArgs<ExtArgs>
|
|
}, ExtArgs["result"]["note"]>
|
|
|
|
export type NoteSelectScalar = {
|
|
id?: boolean
|
|
title?: boolean
|
|
content?: boolean
|
|
color?: boolean
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: boolean
|
|
checkItems?: boolean
|
|
labels?: boolean
|
|
images?: boolean
|
|
links?: boolean
|
|
reminder?: boolean
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: boolean
|
|
reminderLocation?: boolean
|
|
isMarkdown?: boolean
|
|
size?: boolean
|
|
embedding?: boolean
|
|
sharedWith?: boolean
|
|
userId?: boolean
|
|
order?: boolean
|
|
notebookId?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
autoGenerated?: boolean
|
|
aiProvider?: boolean
|
|
aiConfidence?: boolean
|
|
language?: boolean
|
|
languageConfidence?: boolean
|
|
lastAiAnalysis?: boolean
|
|
}
|
|
|
|
export type NoteInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | Note$userArgs<ExtArgs>
|
|
shares?: boolean | Note$sharesArgs<ExtArgs>
|
|
notebook?: boolean | Note$notebookArgs<ExtArgs>
|
|
labelRelations?: boolean | Note$labelRelationsArgs<ExtArgs>
|
|
aiFeedback?: boolean | Note$aiFeedbackArgs<ExtArgs>
|
|
memoryEchoAsNote1?: boolean | Note$memoryEchoAsNote1Args<ExtArgs>
|
|
memoryEchoAsNote2?: boolean | Note$memoryEchoAsNote2Args<ExtArgs>
|
|
_count?: boolean | NoteCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type NoteIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | Note$userArgs<ExtArgs>
|
|
notebook?: boolean | Note$notebookArgs<ExtArgs>
|
|
}
|
|
|
|
export type $NotePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Note"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs> | null
|
|
shares: Prisma.$NoteSharePayload<ExtArgs>[]
|
|
notebook: Prisma.$NotebookPayload<ExtArgs> | null
|
|
labelRelations: Prisma.$LabelPayload<ExtArgs>[]
|
|
aiFeedback: Prisma.$AiFeedbackPayload<ExtArgs>[]
|
|
memoryEchoAsNote1: Prisma.$MemoryEchoInsightPayload<ExtArgs>[]
|
|
memoryEchoAsNote2: Prisma.$MemoryEchoInsightPayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
title: string | null
|
|
content: string
|
|
color: string
|
|
isPinned: boolean
|
|
isArchived: boolean
|
|
type: string
|
|
checkItems: string | null
|
|
labels: string | null
|
|
images: string | null
|
|
links: string | null
|
|
reminder: Date | null
|
|
isReminderDone: boolean
|
|
reminderRecurrence: string | null
|
|
reminderLocation: string | null
|
|
isMarkdown: boolean
|
|
size: string
|
|
embedding: string | null
|
|
sharedWith: string | null
|
|
userId: string | null
|
|
order: number
|
|
notebookId: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
autoGenerated: boolean | null
|
|
aiProvider: string | null
|
|
aiConfidence: number | null
|
|
language: string | null
|
|
languageConfidence: number | null
|
|
lastAiAnalysis: Date | null
|
|
}, ExtArgs["result"]["note"]>
|
|
composites: {}
|
|
}
|
|
|
|
type NoteGetPayload<S extends boolean | null | undefined | NoteDefaultArgs> = $Result.GetResult<Prisma.$NotePayload, S>
|
|
|
|
type NoteCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<NoteFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: NoteCountAggregateInputType | true
|
|
}
|
|
|
|
export interface NoteDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Note'], meta: { name: 'Note' } }
|
|
/**
|
|
* Find zero or one Note that matches the filter.
|
|
* @param {NoteFindUniqueArgs} args - Arguments to find a Note
|
|
* @example
|
|
* // Get one Note
|
|
* const note = await prisma.note.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends NoteFindUniqueArgs>(args: SelectSubset<T, NoteFindUniqueArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one Note that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {NoteFindUniqueOrThrowArgs} args - Arguments to find a Note
|
|
* @example
|
|
* // Get one Note
|
|
* const note = await prisma.note.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends NoteFindUniqueOrThrowArgs>(args: SelectSubset<T, NoteFindUniqueOrThrowArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Note 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 {NoteFindFirstArgs} args - Arguments to find a Note
|
|
* @example
|
|
* // Get one Note
|
|
* const note = await prisma.note.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends NoteFindFirstArgs>(args?: SelectSubset<T, NoteFindFirstArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first Note 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 {NoteFindFirstOrThrowArgs} args - Arguments to find a Note
|
|
* @example
|
|
* // Get one Note
|
|
* const note = await prisma.note.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends NoteFindFirstOrThrowArgs>(args?: SelectSubset<T, NoteFindFirstOrThrowArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Notes 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 {NoteFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Notes
|
|
* const notes = await prisma.note.findMany()
|
|
*
|
|
* // Get first 10 Notes
|
|
* const notes = await prisma.note.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const noteWithIdOnly = await prisma.note.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends NoteFindManyArgs>(args?: SelectSubset<T, NoteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a Note.
|
|
* @param {NoteCreateArgs} args - Arguments to create a Note.
|
|
* @example
|
|
* // Create one Note
|
|
* const Note = await prisma.note.create({
|
|
* data: {
|
|
* // ... data to create a Note
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends NoteCreateArgs>(args: SelectSubset<T, NoteCreateArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Notes.
|
|
* @param {NoteCreateManyArgs} args - Arguments to create many Notes.
|
|
* @example
|
|
* // Create many Notes
|
|
* const note = await prisma.note.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends NoteCreateManyArgs>(args?: SelectSubset<T, NoteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Notes and returns the data saved in the database.
|
|
* @param {NoteCreateManyAndReturnArgs} args - Arguments to create many Notes.
|
|
* @example
|
|
* // Create many Notes
|
|
* const note = await prisma.note.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Notes and only return the `id`
|
|
* const noteWithIdOnly = await prisma.note.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 NoteCreateManyAndReturnArgs>(args?: SelectSubset<T, NoteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a Note.
|
|
* @param {NoteDeleteArgs} args - Arguments to delete one Note.
|
|
* @example
|
|
* // Delete one Note
|
|
* const Note = await prisma.note.delete({
|
|
* where: {
|
|
* // ... filter to delete one Note
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends NoteDeleteArgs>(args: SelectSubset<T, NoteDeleteArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one Note.
|
|
* @param {NoteUpdateArgs} args - Arguments to update one Note.
|
|
* @example
|
|
* // Update one Note
|
|
* const note = await prisma.note.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends NoteUpdateArgs>(args: SelectSubset<T, NoteUpdateArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Notes.
|
|
* @param {NoteDeleteManyArgs} args - Arguments to filter Notes to delete.
|
|
* @example
|
|
* // Delete a few Notes
|
|
* const { count } = await prisma.note.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends NoteDeleteManyArgs>(args?: SelectSubset<T, NoteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Notes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoteUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Notes
|
|
* const note = await prisma.note.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends NoteUpdateManyArgs>(args: SelectSubset<T, NoteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Note.
|
|
* @param {NoteUpsertArgs} args - Arguments to update or create a Note.
|
|
* @example
|
|
* // Update or create a Note
|
|
* const note = await prisma.note.upsert({
|
|
* create: {
|
|
* // ... data to create a Note
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Note we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends NoteUpsertArgs>(args: SelectSubset<T, NoteUpsertArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Notes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoteCountArgs} args - Arguments to filter Notes to count.
|
|
* @example
|
|
* // Count the number of Notes
|
|
* const count = await prisma.note.count({
|
|
* where: {
|
|
* // ... the filter for the Notes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends NoteCountArgs>(
|
|
args?: Subset<T, NoteCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], NoteCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Note.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoteAggregateArgs} 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 NoteAggregateArgs>(args: Subset<T, NoteAggregateArgs>): Prisma.PrismaPromise<GetNoteAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Note.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoteGroupByArgs} 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 NoteGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: NoteGroupByArgs['orderBy'] }
|
|
: { orderBy?: NoteGroupByArgs['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, NoteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNoteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Note model
|
|
*/
|
|
readonly fields: NoteFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Note.
|
|
* 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__NoteClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Note$userArgs<ExtArgs> = {}>(args?: Subset<T, Note$userArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
shares<T extends Note$sharesArgs<ExtArgs> = {}>(args?: Subset<T, Note$sharesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findMany"> | Null>
|
|
notebook<T extends Note$notebookArgs<ExtArgs> = {}>(args?: Subset<T, Note$notebookArgs<ExtArgs>>): Prisma__NotebookClient<$Result.GetResult<Prisma.$NotebookPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
labelRelations<T extends Note$labelRelationsArgs<ExtArgs> = {}>(args?: Subset<T, Note$labelRelationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findMany"> | Null>
|
|
aiFeedback<T extends Note$aiFeedbackArgs<ExtArgs> = {}>(args?: Subset<T, Note$aiFeedbackArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "findMany"> | Null>
|
|
memoryEchoAsNote1<T extends Note$memoryEchoAsNote1Args<ExtArgs> = {}>(args?: Subset<T, Note$memoryEchoAsNote1Args<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "findMany"> | Null>
|
|
memoryEchoAsNote2<T extends Note$memoryEchoAsNote2Args<ExtArgs> = {}>(args?: Subset<T, Note$memoryEchoAsNote2Args<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "findMany"> | 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 Note model
|
|
*/
|
|
interface NoteFieldRefs {
|
|
readonly id: FieldRef<"Note", 'String'>
|
|
readonly title: FieldRef<"Note", 'String'>
|
|
readonly content: FieldRef<"Note", 'String'>
|
|
readonly color: FieldRef<"Note", 'String'>
|
|
readonly isPinned: FieldRef<"Note", 'Boolean'>
|
|
readonly isArchived: FieldRef<"Note", 'Boolean'>
|
|
readonly type: FieldRef<"Note", 'String'>
|
|
readonly checkItems: FieldRef<"Note", 'String'>
|
|
readonly labels: FieldRef<"Note", 'String'>
|
|
readonly images: FieldRef<"Note", 'String'>
|
|
readonly links: FieldRef<"Note", 'String'>
|
|
readonly reminder: FieldRef<"Note", 'DateTime'>
|
|
readonly isReminderDone: FieldRef<"Note", 'Boolean'>
|
|
readonly reminderRecurrence: FieldRef<"Note", 'String'>
|
|
readonly reminderLocation: FieldRef<"Note", 'String'>
|
|
readonly isMarkdown: FieldRef<"Note", 'Boolean'>
|
|
readonly size: FieldRef<"Note", 'String'>
|
|
readonly embedding: FieldRef<"Note", 'String'>
|
|
readonly sharedWith: FieldRef<"Note", 'String'>
|
|
readonly userId: FieldRef<"Note", 'String'>
|
|
readonly order: FieldRef<"Note", 'Int'>
|
|
readonly notebookId: FieldRef<"Note", 'String'>
|
|
readonly createdAt: FieldRef<"Note", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"Note", 'DateTime'>
|
|
readonly autoGenerated: FieldRef<"Note", 'Boolean'>
|
|
readonly aiProvider: FieldRef<"Note", 'String'>
|
|
readonly aiConfidence: FieldRef<"Note", 'Int'>
|
|
readonly language: FieldRef<"Note", 'String'>
|
|
readonly languageConfidence: FieldRef<"Note", 'Float'>
|
|
readonly lastAiAnalysis: FieldRef<"Note", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Note findUnique
|
|
*/
|
|
export type NoteFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Note to fetch.
|
|
*/
|
|
where: NoteWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Note findUniqueOrThrow
|
|
*/
|
|
export type NoteFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Note to fetch.
|
|
*/
|
|
where: NoteWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Note findFirst
|
|
*/
|
|
export type NoteFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Note to fetch.
|
|
*/
|
|
where?: NoteWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Notes to fetch.
|
|
*/
|
|
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Notes.
|
|
*/
|
|
cursor?: NoteWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Notes 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` Notes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Notes.
|
|
*/
|
|
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Note findFirstOrThrow
|
|
*/
|
|
export type NoteFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Note to fetch.
|
|
*/
|
|
where?: NoteWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Notes to fetch.
|
|
*/
|
|
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Notes.
|
|
*/
|
|
cursor?: NoteWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Notes 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` Notes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Notes.
|
|
*/
|
|
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Note findMany
|
|
*/
|
|
export type NoteFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Notes to fetch.
|
|
*/
|
|
where?: NoteWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Notes to fetch.
|
|
*/
|
|
orderBy?: NoteOrderByWithRelationInput | NoteOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Notes.
|
|
*/
|
|
cursor?: NoteWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Notes 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` Notes.
|
|
*/
|
|
skip?: number
|
|
distinct?: NoteScalarFieldEnum | NoteScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Note create
|
|
*/
|
|
export type NoteCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Note.
|
|
*/
|
|
data: XOR<NoteCreateInput, NoteUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Note createMany
|
|
*/
|
|
export type NoteCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Notes.
|
|
*/
|
|
data: NoteCreateManyInput | NoteCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* Note createManyAndReturn
|
|
*/
|
|
export type NoteCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Notes.
|
|
*/
|
|
data: NoteCreateManyInput | NoteCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Note update
|
|
*/
|
|
export type NoteUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Note.
|
|
*/
|
|
data: XOR<NoteUpdateInput, NoteUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Note to update.
|
|
*/
|
|
where: NoteWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Note updateMany
|
|
*/
|
|
export type NoteUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Notes.
|
|
*/
|
|
data: XOR<NoteUpdateManyMutationInput, NoteUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Notes to update
|
|
*/
|
|
where?: NoteWhereInput
|
|
}
|
|
|
|
/**
|
|
* Note upsert
|
|
*/
|
|
export type NoteUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Note to update in case it exists.
|
|
*/
|
|
where: NoteWhereUniqueInput
|
|
/**
|
|
* In case the Note found by the `where` argument doesn't exist, create a new Note with this data.
|
|
*/
|
|
create: XOR<NoteCreateInput, NoteUncheckedCreateInput>
|
|
/**
|
|
* In case the Note was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<NoteUpdateInput, NoteUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Note delete
|
|
*/
|
|
export type NoteDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Note to delete.
|
|
*/
|
|
where: NoteWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Note deleteMany
|
|
*/
|
|
export type NoteDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Notes to delete
|
|
*/
|
|
where?: NoteWhereInput
|
|
}
|
|
|
|
/**
|
|
* Note.user
|
|
*/
|
|
export type Note$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* Note.shares
|
|
*/
|
|
export type Note$sharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
where?: NoteShareWhereInput
|
|
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
|
|
cursor?: NoteShareWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Note.notebook
|
|
*/
|
|
export type Note$notebookArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Notebook
|
|
*/
|
|
select?: NotebookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NotebookInclude<ExtArgs> | null
|
|
where?: NotebookWhereInput
|
|
}
|
|
|
|
/**
|
|
* Note.labelRelations
|
|
*/
|
|
export type Note$labelRelationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Label
|
|
*/
|
|
select?: LabelSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: LabelInclude<ExtArgs> | null
|
|
where?: LabelWhereInput
|
|
orderBy?: LabelOrderByWithRelationInput | LabelOrderByWithRelationInput[]
|
|
cursor?: LabelWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: LabelScalarFieldEnum | LabelScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Note.aiFeedback
|
|
*/
|
|
export type Note$aiFeedbackArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
where?: AiFeedbackWhereInput
|
|
orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[]
|
|
cursor?: AiFeedbackWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Note.memoryEchoAsNote1
|
|
*/
|
|
export type Note$memoryEchoAsNote1Args<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
where?: MemoryEchoInsightWhereInput
|
|
orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[]
|
|
cursor?: MemoryEchoInsightWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Note.memoryEchoAsNote2
|
|
*/
|
|
export type Note$memoryEchoAsNote2Args<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
where?: MemoryEchoInsightWhereInput
|
|
orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[]
|
|
cursor?: MemoryEchoInsightWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Note without action
|
|
*/
|
|
export type NoteDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Note
|
|
*/
|
|
select?: NoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model NoteShare
|
|
*/
|
|
|
|
export type AggregateNoteShare = {
|
|
_count: NoteShareCountAggregateOutputType | null
|
|
_min: NoteShareMinAggregateOutputType | null
|
|
_max: NoteShareMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type NoteShareMinAggregateOutputType = {
|
|
id: string | null
|
|
noteId: string | null
|
|
userId: string | null
|
|
sharedBy: string | null
|
|
status: string | null
|
|
permission: string | null
|
|
notifiedAt: Date | null
|
|
respondedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type NoteShareMaxAggregateOutputType = {
|
|
id: string | null
|
|
noteId: string | null
|
|
userId: string | null
|
|
sharedBy: string | null
|
|
status: string | null
|
|
permission: string | null
|
|
notifiedAt: Date | null
|
|
respondedAt: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type NoteShareCountAggregateOutputType = {
|
|
id: number
|
|
noteId: number
|
|
userId: number
|
|
sharedBy: number
|
|
status: number
|
|
permission: number
|
|
notifiedAt: number
|
|
respondedAt: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type NoteShareMinAggregateInputType = {
|
|
id?: true
|
|
noteId?: true
|
|
userId?: true
|
|
sharedBy?: true
|
|
status?: true
|
|
permission?: true
|
|
notifiedAt?: true
|
|
respondedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type NoteShareMaxAggregateInputType = {
|
|
id?: true
|
|
noteId?: true
|
|
userId?: true
|
|
sharedBy?: true
|
|
status?: true
|
|
permission?: true
|
|
notifiedAt?: true
|
|
respondedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type NoteShareCountAggregateInputType = {
|
|
id?: true
|
|
noteId?: true
|
|
userId?: true
|
|
sharedBy?: true
|
|
status?: true
|
|
permission?: true
|
|
notifiedAt?: true
|
|
respondedAt?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type NoteShareAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which NoteShare to aggregate.
|
|
*/
|
|
where?: NoteShareWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of NoteShares to fetch.
|
|
*/
|
|
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: NoteShareWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` NoteShares 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` NoteShares.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned NoteShares
|
|
**/
|
|
_count?: true | NoteShareCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: NoteShareMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: NoteShareMaxAggregateInputType
|
|
}
|
|
|
|
export type GetNoteShareAggregateType<T extends NoteShareAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateNoteShare]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateNoteShare[P]>
|
|
: GetScalarType<T[P], AggregateNoteShare[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type NoteShareGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: NoteShareWhereInput
|
|
orderBy?: NoteShareOrderByWithAggregationInput | NoteShareOrderByWithAggregationInput[]
|
|
by: NoteShareScalarFieldEnum[] | NoteShareScalarFieldEnum
|
|
having?: NoteShareScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: NoteShareCountAggregateInputType | true
|
|
_min?: NoteShareMinAggregateInputType
|
|
_max?: NoteShareMaxAggregateInputType
|
|
}
|
|
|
|
export type NoteShareGroupByOutputType = {
|
|
id: string
|
|
noteId: string
|
|
userId: string
|
|
sharedBy: string
|
|
status: string
|
|
permission: string
|
|
notifiedAt: Date | null
|
|
respondedAt: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: NoteShareCountAggregateOutputType | null
|
|
_min: NoteShareMinAggregateOutputType | null
|
|
_max: NoteShareMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetNoteShareGroupByPayload<T extends NoteShareGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<NoteShareGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof NoteShareGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], NoteShareGroupByOutputType[P]>
|
|
: GetScalarType<T[P], NoteShareGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type NoteShareSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
noteId?: boolean
|
|
userId?: boolean
|
|
sharedBy?: boolean
|
|
status?: boolean
|
|
permission?: boolean
|
|
notifiedAt?: boolean
|
|
respondedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
note?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
sharer?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["noteShare"]>
|
|
|
|
export type NoteShareSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
noteId?: boolean
|
|
userId?: boolean
|
|
sharedBy?: boolean
|
|
status?: boolean
|
|
permission?: boolean
|
|
notifiedAt?: boolean
|
|
respondedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
note?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
sharer?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["noteShare"]>
|
|
|
|
export type NoteShareSelectScalar = {
|
|
id?: boolean
|
|
noteId?: boolean
|
|
userId?: boolean
|
|
sharedBy?: boolean
|
|
status?: boolean
|
|
permission?: boolean
|
|
notifiedAt?: boolean
|
|
respondedAt?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type NoteShareInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
note?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
sharer?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type NoteShareIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
note?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
sharer?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $NoteSharePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "NoteShare"
|
|
objects: {
|
|
note: Prisma.$NotePayload<ExtArgs>
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
sharer: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
noteId: string
|
|
userId: string
|
|
sharedBy: string
|
|
status: string
|
|
permission: string
|
|
notifiedAt: Date | null
|
|
respondedAt: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["noteShare"]>
|
|
composites: {}
|
|
}
|
|
|
|
type NoteShareGetPayload<S extends boolean | null | undefined | NoteShareDefaultArgs> = $Result.GetResult<Prisma.$NoteSharePayload, S>
|
|
|
|
type NoteShareCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<NoteShareFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: NoteShareCountAggregateInputType | true
|
|
}
|
|
|
|
export interface NoteShareDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['NoteShare'], meta: { name: 'NoteShare' } }
|
|
/**
|
|
* Find zero or one NoteShare that matches the filter.
|
|
* @param {NoteShareFindUniqueArgs} args - Arguments to find a NoteShare
|
|
* @example
|
|
* // Get one NoteShare
|
|
* const noteShare = await prisma.noteShare.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends NoteShareFindUniqueArgs>(args: SelectSubset<T, NoteShareFindUniqueArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one NoteShare that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {NoteShareFindUniqueOrThrowArgs} args - Arguments to find a NoteShare
|
|
* @example
|
|
* // Get one NoteShare
|
|
* const noteShare = await prisma.noteShare.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends NoteShareFindUniqueOrThrowArgs>(args: SelectSubset<T, NoteShareFindUniqueOrThrowArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first NoteShare 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 {NoteShareFindFirstArgs} args - Arguments to find a NoteShare
|
|
* @example
|
|
* // Get one NoteShare
|
|
* const noteShare = await prisma.noteShare.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends NoteShareFindFirstArgs>(args?: SelectSubset<T, NoteShareFindFirstArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first NoteShare 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 {NoteShareFindFirstOrThrowArgs} args - Arguments to find a NoteShare
|
|
* @example
|
|
* // Get one NoteShare
|
|
* const noteShare = await prisma.noteShare.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends NoteShareFindFirstOrThrowArgs>(args?: SelectSubset<T, NoteShareFindFirstOrThrowArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more NoteShares 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 {NoteShareFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all NoteShares
|
|
* const noteShares = await prisma.noteShare.findMany()
|
|
*
|
|
* // Get first 10 NoteShares
|
|
* const noteShares = await prisma.noteShare.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const noteShareWithIdOnly = await prisma.noteShare.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends NoteShareFindManyArgs>(args?: SelectSubset<T, NoteShareFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a NoteShare.
|
|
* @param {NoteShareCreateArgs} args - Arguments to create a NoteShare.
|
|
* @example
|
|
* // Create one NoteShare
|
|
* const NoteShare = await prisma.noteShare.create({
|
|
* data: {
|
|
* // ... data to create a NoteShare
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends NoteShareCreateArgs>(args: SelectSubset<T, NoteShareCreateArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many NoteShares.
|
|
* @param {NoteShareCreateManyArgs} args - Arguments to create many NoteShares.
|
|
* @example
|
|
* // Create many NoteShares
|
|
* const noteShare = await prisma.noteShare.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends NoteShareCreateManyArgs>(args?: SelectSubset<T, NoteShareCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many NoteShares and returns the data saved in the database.
|
|
* @param {NoteShareCreateManyAndReturnArgs} args - Arguments to create many NoteShares.
|
|
* @example
|
|
* // Create many NoteShares
|
|
* const noteShare = await prisma.noteShare.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many NoteShares and only return the `id`
|
|
* const noteShareWithIdOnly = await prisma.noteShare.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 NoteShareCreateManyAndReturnArgs>(args?: SelectSubset<T, NoteShareCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a NoteShare.
|
|
* @param {NoteShareDeleteArgs} args - Arguments to delete one NoteShare.
|
|
* @example
|
|
* // Delete one NoteShare
|
|
* const NoteShare = await prisma.noteShare.delete({
|
|
* where: {
|
|
* // ... filter to delete one NoteShare
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends NoteShareDeleteArgs>(args: SelectSubset<T, NoteShareDeleteArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one NoteShare.
|
|
* @param {NoteShareUpdateArgs} args - Arguments to update one NoteShare.
|
|
* @example
|
|
* // Update one NoteShare
|
|
* const noteShare = await prisma.noteShare.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends NoteShareUpdateArgs>(args: SelectSubset<T, NoteShareUpdateArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more NoteShares.
|
|
* @param {NoteShareDeleteManyArgs} args - Arguments to filter NoteShares to delete.
|
|
* @example
|
|
* // Delete a few NoteShares
|
|
* const { count } = await prisma.noteShare.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends NoteShareDeleteManyArgs>(args?: SelectSubset<T, NoteShareDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more NoteShares.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoteShareUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many NoteShares
|
|
* const noteShare = await prisma.noteShare.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends NoteShareUpdateManyArgs>(args: SelectSubset<T, NoteShareUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one NoteShare.
|
|
* @param {NoteShareUpsertArgs} args - Arguments to update or create a NoteShare.
|
|
* @example
|
|
* // Update or create a NoteShare
|
|
* const noteShare = await prisma.noteShare.upsert({
|
|
* create: {
|
|
* // ... data to create a NoteShare
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the NoteShare we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends NoteShareUpsertArgs>(args: SelectSubset<T, NoteShareUpsertArgs<ExtArgs>>): Prisma__NoteShareClient<$Result.GetResult<Prisma.$NoteSharePayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of NoteShares.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoteShareCountArgs} args - Arguments to filter NoteShares to count.
|
|
* @example
|
|
* // Count the number of NoteShares
|
|
* const count = await prisma.noteShare.count({
|
|
* where: {
|
|
* // ... the filter for the NoteShares we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends NoteShareCountArgs>(
|
|
args?: Subset<T, NoteShareCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], NoteShareCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a NoteShare.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoteShareAggregateArgs} 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 NoteShareAggregateArgs>(args: Subset<T, NoteShareAggregateArgs>): Prisma.PrismaPromise<GetNoteShareAggregateType<T>>
|
|
|
|
/**
|
|
* Group by NoteShare.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {NoteShareGroupByArgs} 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 NoteShareGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: NoteShareGroupByArgs['orderBy'] }
|
|
: { orderBy?: NoteShareGroupByArgs['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, NoteShareGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNoteShareGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the NoteShare model
|
|
*/
|
|
readonly fields: NoteShareFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for NoteShare.
|
|
* 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__NoteShareClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
note<T extends NoteDefaultArgs<ExtArgs> = {}>(args?: Subset<T, NoteDefaultArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
sharer<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* 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 NoteShare model
|
|
*/
|
|
interface NoteShareFieldRefs {
|
|
readonly id: FieldRef<"NoteShare", 'String'>
|
|
readonly noteId: FieldRef<"NoteShare", 'String'>
|
|
readonly userId: FieldRef<"NoteShare", 'String'>
|
|
readonly sharedBy: FieldRef<"NoteShare", 'String'>
|
|
readonly status: FieldRef<"NoteShare", 'String'>
|
|
readonly permission: FieldRef<"NoteShare", 'String'>
|
|
readonly notifiedAt: FieldRef<"NoteShare", 'DateTime'>
|
|
readonly respondedAt: FieldRef<"NoteShare", 'DateTime'>
|
|
readonly createdAt: FieldRef<"NoteShare", 'DateTime'>
|
|
readonly updatedAt: FieldRef<"NoteShare", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* NoteShare findUnique
|
|
*/
|
|
export type NoteShareFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoteShare to fetch.
|
|
*/
|
|
where: NoteShareWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* NoteShare findUniqueOrThrow
|
|
*/
|
|
export type NoteShareFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoteShare to fetch.
|
|
*/
|
|
where: NoteShareWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* NoteShare findFirst
|
|
*/
|
|
export type NoteShareFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoteShare to fetch.
|
|
*/
|
|
where?: NoteShareWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of NoteShares to fetch.
|
|
*/
|
|
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for NoteShares.
|
|
*/
|
|
cursor?: NoteShareWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` NoteShares 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` NoteShares.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of NoteShares.
|
|
*/
|
|
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* NoteShare findFirstOrThrow
|
|
*/
|
|
export type NoteShareFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoteShare to fetch.
|
|
*/
|
|
where?: NoteShareWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of NoteShares to fetch.
|
|
*/
|
|
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for NoteShares.
|
|
*/
|
|
cursor?: NoteShareWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` NoteShares 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` NoteShares.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of NoteShares.
|
|
*/
|
|
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* NoteShare findMany
|
|
*/
|
|
export type NoteShareFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which NoteShares to fetch.
|
|
*/
|
|
where?: NoteShareWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of NoteShares to fetch.
|
|
*/
|
|
orderBy?: NoteShareOrderByWithRelationInput | NoteShareOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing NoteShares.
|
|
*/
|
|
cursor?: NoteShareWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` NoteShares 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` NoteShares.
|
|
*/
|
|
skip?: number
|
|
distinct?: NoteShareScalarFieldEnum | NoteShareScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* NoteShare create
|
|
*/
|
|
export type NoteShareCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a NoteShare.
|
|
*/
|
|
data: XOR<NoteShareCreateInput, NoteShareUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* NoteShare createMany
|
|
*/
|
|
export type NoteShareCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many NoteShares.
|
|
*/
|
|
data: NoteShareCreateManyInput | NoteShareCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* NoteShare createManyAndReturn
|
|
*/
|
|
export type NoteShareCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many NoteShares.
|
|
*/
|
|
data: NoteShareCreateManyInput | NoteShareCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* NoteShare update
|
|
*/
|
|
export type NoteShareUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a NoteShare.
|
|
*/
|
|
data: XOR<NoteShareUpdateInput, NoteShareUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which NoteShare to update.
|
|
*/
|
|
where: NoteShareWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* NoteShare updateMany
|
|
*/
|
|
export type NoteShareUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update NoteShares.
|
|
*/
|
|
data: XOR<NoteShareUpdateManyMutationInput, NoteShareUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which NoteShares to update
|
|
*/
|
|
where?: NoteShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* NoteShare upsert
|
|
*/
|
|
export type NoteShareUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the NoteShare to update in case it exists.
|
|
*/
|
|
where: NoteShareWhereUniqueInput
|
|
/**
|
|
* In case the NoteShare found by the `where` argument doesn't exist, create a new NoteShare with this data.
|
|
*/
|
|
create: XOR<NoteShareCreateInput, NoteShareUncheckedCreateInput>
|
|
/**
|
|
* In case the NoteShare was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<NoteShareUpdateInput, NoteShareUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* NoteShare delete
|
|
*/
|
|
export type NoteShareDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which NoteShare to delete.
|
|
*/
|
|
where: NoteShareWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* NoteShare deleteMany
|
|
*/
|
|
export type NoteShareDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which NoteShares to delete
|
|
*/
|
|
where?: NoteShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* NoteShare without action
|
|
*/
|
|
export type NoteShareDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the NoteShare
|
|
*/
|
|
select?: NoteShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: NoteShareInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model SystemConfig
|
|
*/
|
|
|
|
export type AggregateSystemConfig = {
|
|
_count: SystemConfigCountAggregateOutputType | null
|
|
_min: SystemConfigMinAggregateOutputType | null
|
|
_max: SystemConfigMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SystemConfigMinAggregateOutputType = {
|
|
key: string | null
|
|
value: string | null
|
|
}
|
|
|
|
export type SystemConfigMaxAggregateOutputType = {
|
|
key: string | null
|
|
value: string | null
|
|
}
|
|
|
|
export type SystemConfigCountAggregateOutputType = {
|
|
key: number
|
|
value: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SystemConfigMinAggregateInputType = {
|
|
key?: true
|
|
value?: true
|
|
}
|
|
|
|
export type SystemConfigMaxAggregateInputType = {
|
|
key?: true
|
|
value?: true
|
|
}
|
|
|
|
export type SystemConfigCountAggregateInputType = {
|
|
key?: true
|
|
value?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SystemConfigAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SystemConfig to aggregate.
|
|
*/
|
|
where?: SystemConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SystemConfigs to fetch.
|
|
*/
|
|
orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: SystemConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SystemConfigs 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` SystemConfigs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SystemConfigs
|
|
**/
|
|
_count?: true | SystemConfigCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SystemConfigMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SystemConfigMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSystemConfigAggregateType<T extends SystemConfigAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSystemConfig]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSystemConfig[P]>
|
|
: GetScalarType<T[P], AggregateSystemConfig[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SystemConfigGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: SystemConfigWhereInput
|
|
orderBy?: SystemConfigOrderByWithAggregationInput | SystemConfigOrderByWithAggregationInput[]
|
|
by: SystemConfigScalarFieldEnum[] | SystemConfigScalarFieldEnum
|
|
having?: SystemConfigScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SystemConfigCountAggregateInputType | true
|
|
_min?: SystemConfigMinAggregateInputType
|
|
_max?: SystemConfigMaxAggregateInputType
|
|
}
|
|
|
|
export type SystemConfigGroupByOutputType = {
|
|
key: string
|
|
value: string
|
|
_count: SystemConfigCountAggregateOutputType | null
|
|
_min: SystemConfigMinAggregateOutputType | null
|
|
_max: SystemConfigMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSystemConfigGroupByPayload<T extends SystemConfigGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SystemConfigGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SystemConfigGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SystemConfigGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SystemConfigGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type SystemConfigSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
key?: boolean
|
|
value?: boolean
|
|
}, ExtArgs["result"]["systemConfig"]>
|
|
|
|
export type SystemConfigSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
key?: boolean
|
|
value?: boolean
|
|
}, ExtArgs["result"]["systemConfig"]>
|
|
|
|
export type SystemConfigSelectScalar = {
|
|
key?: boolean
|
|
value?: boolean
|
|
}
|
|
|
|
|
|
export type $SystemConfigPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "SystemConfig"
|
|
objects: {}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
key: string
|
|
value: string
|
|
}, ExtArgs["result"]["systemConfig"]>
|
|
composites: {}
|
|
}
|
|
|
|
type SystemConfigGetPayload<S extends boolean | null | undefined | SystemConfigDefaultArgs> = $Result.GetResult<Prisma.$SystemConfigPayload, S>
|
|
|
|
type SystemConfigCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<SystemConfigFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: SystemConfigCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SystemConfigDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SystemConfig'], meta: { name: 'SystemConfig' } }
|
|
/**
|
|
* Find zero or one SystemConfig that matches the filter.
|
|
* @param {SystemConfigFindUniqueArgs} args - Arguments to find a SystemConfig
|
|
* @example
|
|
* // Get one SystemConfig
|
|
* const systemConfig = await prisma.systemConfig.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SystemConfigFindUniqueArgs>(args: SelectSubset<T, SystemConfigFindUniqueArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one SystemConfig that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SystemConfigFindUniqueOrThrowArgs} args - Arguments to find a SystemConfig
|
|
* @example
|
|
* // Get one SystemConfig
|
|
* const systemConfig = await prisma.systemConfig.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SystemConfigFindUniqueOrThrowArgs>(args: SelectSubset<T, SystemConfigFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first SystemConfig 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 {SystemConfigFindFirstArgs} args - Arguments to find a SystemConfig
|
|
* @example
|
|
* // Get one SystemConfig
|
|
* const systemConfig = await prisma.systemConfig.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SystemConfigFindFirstArgs>(args?: SelectSubset<T, SystemConfigFindFirstArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first SystemConfig 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 {SystemConfigFindFirstOrThrowArgs} args - Arguments to find a SystemConfig
|
|
* @example
|
|
* // Get one SystemConfig
|
|
* const systemConfig = await prisma.systemConfig.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SystemConfigFindFirstOrThrowArgs>(args?: SelectSubset<T, SystemConfigFindFirstOrThrowArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more SystemConfigs 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 {SystemConfigFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SystemConfigs
|
|
* const systemConfigs = await prisma.systemConfig.findMany()
|
|
*
|
|
* // Get first 10 SystemConfigs
|
|
* const systemConfigs = await prisma.systemConfig.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `key`
|
|
* const systemConfigWithKeyOnly = await prisma.systemConfig.findMany({ select: { key: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SystemConfigFindManyArgs>(args?: SelectSubset<T, SystemConfigFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a SystemConfig.
|
|
* @param {SystemConfigCreateArgs} args - Arguments to create a SystemConfig.
|
|
* @example
|
|
* // Create one SystemConfig
|
|
* const SystemConfig = await prisma.systemConfig.create({
|
|
* data: {
|
|
* // ... data to create a SystemConfig
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SystemConfigCreateArgs>(args: SelectSubset<T, SystemConfigCreateArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many SystemConfigs.
|
|
* @param {SystemConfigCreateManyArgs} args - Arguments to create many SystemConfigs.
|
|
* @example
|
|
* // Create many SystemConfigs
|
|
* const systemConfig = await prisma.systemConfig.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SystemConfigCreateManyArgs>(args?: SelectSubset<T, SystemConfigCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many SystemConfigs and returns the data saved in the database.
|
|
* @param {SystemConfigCreateManyAndReturnArgs} args - Arguments to create many SystemConfigs.
|
|
* @example
|
|
* // Create many SystemConfigs
|
|
* const systemConfig = await prisma.systemConfig.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many SystemConfigs and only return the `key`
|
|
* const systemConfigWithKeyOnly = await prisma.systemConfig.createManyAndReturn({
|
|
* select: { key: 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 SystemConfigCreateManyAndReturnArgs>(args?: SelectSubset<T, SystemConfigCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a SystemConfig.
|
|
* @param {SystemConfigDeleteArgs} args - Arguments to delete one SystemConfig.
|
|
* @example
|
|
* // Delete one SystemConfig
|
|
* const SystemConfig = await prisma.systemConfig.delete({
|
|
* where: {
|
|
* // ... filter to delete one SystemConfig
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SystemConfigDeleteArgs>(args: SelectSubset<T, SystemConfigDeleteArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one SystemConfig.
|
|
* @param {SystemConfigUpdateArgs} args - Arguments to update one SystemConfig.
|
|
* @example
|
|
* // Update one SystemConfig
|
|
* const systemConfig = await prisma.systemConfig.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SystemConfigUpdateArgs>(args: SelectSubset<T, SystemConfigUpdateArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more SystemConfigs.
|
|
* @param {SystemConfigDeleteManyArgs} args - Arguments to filter SystemConfigs to delete.
|
|
* @example
|
|
* // Delete a few SystemConfigs
|
|
* const { count } = await prisma.systemConfig.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SystemConfigDeleteManyArgs>(args?: SelectSubset<T, SystemConfigDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SystemConfigs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SystemConfigUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SystemConfigs
|
|
* const systemConfig = await prisma.systemConfig.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SystemConfigUpdateManyArgs>(args: SelectSubset<T, SystemConfigUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one SystemConfig.
|
|
* @param {SystemConfigUpsertArgs} args - Arguments to update or create a SystemConfig.
|
|
* @example
|
|
* // Update or create a SystemConfig
|
|
* const systemConfig = await prisma.systemConfig.upsert({
|
|
* create: {
|
|
* // ... data to create a SystemConfig
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SystemConfig we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SystemConfigUpsertArgs>(args: SelectSubset<T, SystemConfigUpsertArgs<ExtArgs>>): Prisma__SystemConfigClient<$Result.GetResult<Prisma.$SystemConfigPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of SystemConfigs.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SystemConfigCountArgs} args - Arguments to filter SystemConfigs to count.
|
|
* @example
|
|
* // Count the number of SystemConfigs
|
|
* const count = await prisma.systemConfig.count({
|
|
* where: {
|
|
* // ... the filter for the SystemConfigs we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SystemConfigCountArgs>(
|
|
args?: Subset<T, SystemConfigCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SystemConfigCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SystemConfig.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SystemConfigAggregateArgs} 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 SystemConfigAggregateArgs>(args: Subset<T, SystemConfigAggregateArgs>): Prisma.PrismaPromise<GetSystemConfigAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SystemConfig.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SystemConfigGroupByArgs} 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 SystemConfigGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: SystemConfigGroupByArgs['orderBy'] }
|
|
: { orderBy?: SystemConfigGroupByArgs['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, SystemConfigGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSystemConfigGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SystemConfig model
|
|
*/
|
|
readonly fields: SystemConfigFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SystemConfig.
|
|
* 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__SystemConfigClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* 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 SystemConfig model
|
|
*/
|
|
interface SystemConfigFieldRefs {
|
|
readonly key: FieldRef<"SystemConfig", 'String'>
|
|
readonly value: FieldRef<"SystemConfig", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SystemConfig findUnique
|
|
*/
|
|
export type SystemConfigFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which SystemConfig to fetch.
|
|
*/
|
|
where: SystemConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SystemConfig findUniqueOrThrow
|
|
*/
|
|
export type SystemConfigFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which SystemConfig to fetch.
|
|
*/
|
|
where: SystemConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SystemConfig findFirst
|
|
*/
|
|
export type SystemConfigFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which SystemConfig to fetch.
|
|
*/
|
|
where?: SystemConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SystemConfigs to fetch.
|
|
*/
|
|
orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SystemConfigs.
|
|
*/
|
|
cursor?: SystemConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SystemConfigs 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` SystemConfigs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SystemConfigs.
|
|
*/
|
|
distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SystemConfig findFirstOrThrow
|
|
*/
|
|
export type SystemConfigFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which SystemConfig to fetch.
|
|
*/
|
|
where?: SystemConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SystemConfigs to fetch.
|
|
*/
|
|
orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SystemConfigs.
|
|
*/
|
|
cursor?: SystemConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SystemConfigs 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` SystemConfigs.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SystemConfigs.
|
|
*/
|
|
distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SystemConfig findMany
|
|
*/
|
|
export type SystemConfigFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which SystemConfigs to fetch.
|
|
*/
|
|
where?: SystemConfigWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SystemConfigs to fetch.
|
|
*/
|
|
orderBy?: SystemConfigOrderByWithRelationInput | SystemConfigOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SystemConfigs.
|
|
*/
|
|
cursor?: SystemConfigWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SystemConfigs 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` SystemConfigs.
|
|
*/
|
|
skip?: number
|
|
distinct?: SystemConfigScalarFieldEnum | SystemConfigScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SystemConfig create
|
|
*/
|
|
export type SystemConfigCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SystemConfig.
|
|
*/
|
|
data: XOR<SystemConfigCreateInput, SystemConfigUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SystemConfig createMany
|
|
*/
|
|
export type SystemConfigCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SystemConfigs.
|
|
*/
|
|
data: SystemConfigCreateManyInput | SystemConfigCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* SystemConfig createManyAndReturn
|
|
*/
|
|
export type SystemConfigCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many SystemConfigs.
|
|
*/
|
|
data: SystemConfigCreateManyInput | SystemConfigCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* SystemConfig update
|
|
*/
|
|
export type SystemConfigUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SystemConfig.
|
|
*/
|
|
data: XOR<SystemConfigUpdateInput, SystemConfigUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SystemConfig to update.
|
|
*/
|
|
where: SystemConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SystemConfig updateMany
|
|
*/
|
|
export type SystemConfigUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SystemConfigs.
|
|
*/
|
|
data: XOR<SystemConfigUpdateManyMutationInput, SystemConfigUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SystemConfigs to update
|
|
*/
|
|
where?: SystemConfigWhereInput
|
|
}
|
|
|
|
/**
|
|
* SystemConfig upsert
|
|
*/
|
|
export type SystemConfigUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the SystemConfig to update in case it exists.
|
|
*/
|
|
where: SystemConfigWhereUniqueInput
|
|
/**
|
|
* In case the SystemConfig found by the `where` argument doesn't exist, create a new SystemConfig with this data.
|
|
*/
|
|
create: XOR<SystemConfigCreateInput, SystemConfigUncheckedCreateInput>
|
|
/**
|
|
* In case the SystemConfig was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<SystemConfigUpdateInput, SystemConfigUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SystemConfig delete
|
|
*/
|
|
export type SystemConfigDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
/**
|
|
* Filter which SystemConfig to delete.
|
|
*/
|
|
where: SystemConfigWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SystemConfig deleteMany
|
|
*/
|
|
export type SystemConfigDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SystemConfigs to delete
|
|
*/
|
|
where?: SystemConfigWhereInput
|
|
}
|
|
|
|
/**
|
|
* SystemConfig without action
|
|
*/
|
|
export type SystemConfigDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SystemConfig
|
|
*/
|
|
select?: SystemConfigSelect<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model AiFeedback
|
|
*/
|
|
|
|
export type AggregateAiFeedback = {
|
|
_count: AiFeedbackCountAggregateOutputType | null
|
|
_min: AiFeedbackMinAggregateOutputType | null
|
|
_max: AiFeedbackMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AiFeedbackMinAggregateOutputType = {
|
|
id: string | null
|
|
noteId: string | null
|
|
userId: string | null
|
|
feedbackType: string | null
|
|
feature: string | null
|
|
originalContent: string | null
|
|
correctedContent: string | null
|
|
metadata: string | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type AiFeedbackMaxAggregateOutputType = {
|
|
id: string | null
|
|
noteId: string | null
|
|
userId: string | null
|
|
feedbackType: string | null
|
|
feature: string | null
|
|
originalContent: string | null
|
|
correctedContent: string | null
|
|
metadata: string | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type AiFeedbackCountAggregateOutputType = {
|
|
id: number
|
|
noteId: number
|
|
userId: number
|
|
feedbackType: number
|
|
feature: number
|
|
originalContent: number
|
|
correctedContent: number
|
|
metadata: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AiFeedbackMinAggregateInputType = {
|
|
id?: true
|
|
noteId?: true
|
|
userId?: true
|
|
feedbackType?: true
|
|
feature?: true
|
|
originalContent?: true
|
|
correctedContent?: true
|
|
metadata?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type AiFeedbackMaxAggregateInputType = {
|
|
id?: true
|
|
noteId?: true
|
|
userId?: true
|
|
feedbackType?: true
|
|
feature?: true
|
|
originalContent?: true
|
|
correctedContent?: true
|
|
metadata?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type AiFeedbackCountAggregateInputType = {
|
|
id?: true
|
|
noteId?: true
|
|
userId?: true
|
|
feedbackType?: true
|
|
feature?: true
|
|
originalContent?: true
|
|
correctedContent?: true
|
|
metadata?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AiFeedbackAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AiFeedback to aggregate.
|
|
*/
|
|
where?: AiFeedbackWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AiFeedbacks to fetch.
|
|
*/
|
|
orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: AiFeedbackWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AiFeedbacks 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` AiFeedbacks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AiFeedbacks
|
|
**/
|
|
_count?: true | AiFeedbackCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AiFeedbackMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AiFeedbackMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAiFeedbackAggregateType<T extends AiFeedbackAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAiFeedback]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateAiFeedback[P]>
|
|
: GetScalarType<T[P], AggregateAiFeedback[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AiFeedbackGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: AiFeedbackWhereInput
|
|
orderBy?: AiFeedbackOrderByWithAggregationInput | AiFeedbackOrderByWithAggregationInput[]
|
|
by: AiFeedbackScalarFieldEnum[] | AiFeedbackScalarFieldEnum
|
|
having?: AiFeedbackScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AiFeedbackCountAggregateInputType | true
|
|
_min?: AiFeedbackMinAggregateInputType
|
|
_max?: AiFeedbackMaxAggregateInputType
|
|
}
|
|
|
|
export type AiFeedbackGroupByOutputType = {
|
|
id: string
|
|
noteId: string
|
|
userId: string | null
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent: string | null
|
|
metadata: string | null
|
|
createdAt: Date
|
|
_count: AiFeedbackCountAggregateOutputType | null
|
|
_min: AiFeedbackMinAggregateOutputType | null
|
|
_max: AiFeedbackMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetAiFeedbackGroupByPayload<T extends AiFeedbackGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<AiFeedbackGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AiFeedbackGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], AiFeedbackGroupByOutputType[P]>
|
|
: GetScalarType<T[P], AiFeedbackGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type AiFeedbackSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
noteId?: boolean
|
|
userId?: boolean
|
|
feedbackType?: boolean
|
|
feature?: boolean
|
|
originalContent?: boolean
|
|
correctedContent?: boolean
|
|
metadata?: boolean
|
|
createdAt?: boolean
|
|
note?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | AiFeedback$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["aiFeedback"]>
|
|
|
|
export type AiFeedbackSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
noteId?: boolean
|
|
userId?: boolean
|
|
feedbackType?: boolean
|
|
feature?: boolean
|
|
originalContent?: boolean
|
|
correctedContent?: boolean
|
|
metadata?: boolean
|
|
createdAt?: boolean
|
|
note?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | AiFeedback$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["aiFeedback"]>
|
|
|
|
export type AiFeedbackSelectScalar = {
|
|
id?: boolean
|
|
noteId?: boolean
|
|
userId?: boolean
|
|
feedbackType?: boolean
|
|
feature?: boolean
|
|
originalContent?: boolean
|
|
correctedContent?: boolean
|
|
metadata?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type AiFeedbackInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
note?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | AiFeedback$userArgs<ExtArgs>
|
|
}
|
|
export type AiFeedbackIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
note?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | AiFeedback$userArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AiFeedbackPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "AiFeedback"
|
|
objects: {
|
|
note: Prisma.$NotePayload<ExtArgs>
|
|
user: Prisma.$UserPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
noteId: string
|
|
userId: string | null
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent: string | null
|
|
metadata: string | null
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["aiFeedback"]>
|
|
composites: {}
|
|
}
|
|
|
|
type AiFeedbackGetPayload<S extends boolean | null | undefined | AiFeedbackDefaultArgs> = $Result.GetResult<Prisma.$AiFeedbackPayload, S>
|
|
|
|
type AiFeedbackCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<AiFeedbackFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: AiFeedbackCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AiFeedbackDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AiFeedback'], meta: { name: 'AiFeedback' } }
|
|
/**
|
|
* Find zero or one AiFeedback that matches the filter.
|
|
* @param {AiFeedbackFindUniqueArgs} args - Arguments to find a AiFeedback
|
|
* @example
|
|
* // Get one AiFeedback
|
|
* const aiFeedback = await prisma.aiFeedback.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AiFeedbackFindUniqueArgs>(args: SelectSubset<T, AiFeedbackFindUniqueArgs<ExtArgs>>): Prisma__AiFeedbackClient<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one AiFeedback that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AiFeedbackFindUniqueOrThrowArgs} args - Arguments to find a AiFeedback
|
|
* @example
|
|
* // Get one AiFeedback
|
|
* const aiFeedback = await prisma.aiFeedback.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AiFeedbackFindUniqueOrThrowArgs>(args: SelectSubset<T, AiFeedbackFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AiFeedbackClient<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first AiFeedback 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 {AiFeedbackFindFirstArgs} args - Arguments to find a AiFeedback
|
|
* @example
|
|
* // Get one AiFeedback
|
|
* const aiFeedback = await prisma.aiFeedback.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AiFeedbackFindFirstArgs>(args?: SelectSubset<T, AiFeedbackFindFirstArgs<ExtArgs>>): Prisma__AiFeedbackClient<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first AiFeedback 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 {AiFeedbackFindFirstOrThrowArgs} args - Arguments to find a AiFeedback
|
|
* @example
|
|
* // Get one AiFeedback
|
|
* const aiFeedback = await prisma.aiFeedback.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AiFeedbackFindFirstOrThrowArgs>(args?: SelectSubset<T, AiFeedbackFindFirstOrThrowArgs<ExtArgs>>): Prisma__AiFeedbackClient<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more AiFeedbacks 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 {AiFeedbackFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AiFeedbacks
|
|
* const aiFeedbacks = await prisma.aiFeedback.findMany()
|
|
*
|
|
* // Get first 10 AiFeedbacks
|
|
* const aiFeedbacks = await prisma.aiFeedback.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const aiFeedbackWithIdOnly = await prisma.aiFeedback.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AiFeedbackFindManyArgs>(args?: SelectSubset<T, AiFeedbackFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a AiFeedback.
|
|
* @param {AiFeedbackCreateArgs} args - Arguments to create a AiFeedback.
|
|
* @example
|
|
* // Create one AiFeedback
|
|
* const AiFeedback = await prisma.aiFeedback.create({
|
|
* data: {
|
|
* // ... data to create a AiFeedback
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AiFeedbackCreateArgs>(args: SelectSubset<T, AiFeedbackCreateArgs<ExtArgs>>): Prisma__AiFeedbackClient<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many AiFeedbacks.
|
|
* @param {AiFeedbackCreateManyArgs} args - Arguments to create many AiFeedbacks.
|
|
* @example
|
|
* // Create many AiFeedbacks
|
|
* const aiFeedback = await prisma.aiFeedback.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AiFeedbackCreateManyArgs>(args?: SelectSubset<T, AiFeedbackCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many AiFeedbacks and returns the data saved in the database.
|
|
* @param {AiFeedbackCreateManyAndReturnArgs} args - Arguments to create many AiFeedbacks.
|
|
* @example
|
|
* // Create many AiFeedbacks
|
|
* const aiFeedback = await prisma.aiFeedback.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AiFeedbacks and only return the `id`
|
|
* const aiFeedbackWithIdOnly = await prisma.aiFeedback.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 AiFeedbackCreateManyAndReturnArgs>(args?: SelectSubset<T, AiFeedbackCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a AiFeedback.
|
|
* @param {AiFeedbackDeleteArgs} args - Arguments to delete one AiFeedback.
|
|
* @example
|
|
* // Delete one AiFeedback
|
|
* const AiFeedback = await prisma.aiFeedback.delete({
|
|
* where: {
|
|
* // ... filter to delete one AiFeedback
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AiFeedbackDeleteArgs>(args: SelectSubset<T, AiFeedbackDeleteArgs<ExtArgs>>): Prisma__AiFeedbackClient<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one AiFeedback.
|
|
* @param {AiFeedbackUpdateArgs} args - Arguments to update one AiFeedback.
|
|
* @example
|
|
* // Update one AiFeedback
|
|
* const aiFeedback = await prisma.aiFeedback.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AiFeedbackUpdateArgs>(args: SelectSubset<T, AiFeedbackUpdateArgs<ExtArgs>>): Prisma__AiFeedbackClient<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more AiFeedbacks.
|
|
* @param {AiFeedbackDeleteManyArgs} args - Arguments to filter AiFeedbacks to delete.
|
|
* @example
|
|
* // Delete a few AiFeedbacks
|
|
* const { count } = await prisma.aiFeedback.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AiFeedbackDeleteManyArgs>(args?: SelectSubset<T, AiFeedbackDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AiFeedbacks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AiFeedbackUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AiFeedbacks
|
|
* const aiFeedback = await prisma.aiFeedback.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AiFeedbackUpdateManyArgs>(args: SelectSubset<T, AiFeedbackUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one AiFeedback.
|
|
* @param {AiFeedbackUpsertArgs} args - Arguments to update or create a AiFeedback.
|
|
* @example
|
|
* // Update or create a AiFeedback
|
|
* const aiFeedback = await prisma.aiFeedback.upsert({
|
|
* create: {
|
|
* // ... data to create a AiFeedback
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AiFeedback we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AiFeedbackUpsertArgs>(args: SelectSubset<T, AiFeedbackUpsertArgs<ExtArgs>>): Prisma__AiFeedbackClient<$Result.GetResult<Prisma.$AiFeedbackPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of AiFeedbacks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AiFeedbackCountArgs} args - Arguments to filter AiFeedbacks to count.
|
|
* @example
|
|
* // Count the number of AiFeedbacks
|
|
* const count = await prisma.aiFeedback.count({
|
|
* where: {
|
|
* // ... the filter for the AiFeedbacks we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AiFeedbackCountArgs>(
|
|
args?: Subset<T, AiFeedbackCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], AiFeedbackCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AiFeedback.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AiFeedbackAggregateArgs} 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 AiFeedbackAggregateArgs>(args: Subset<T, AiFeedbackAggregateArgs>): Prisma.PrismaPromise<GetAiFeedbackAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AiFeedback.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AiFeedbackGroupByArgs} 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 AiFeedbackGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: AiFeedbackGroupByArgs['orderBy'] }
|
|
: { orderBy?: AiFeedbackGroupByArgs['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, AiFeedbackGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAiFeedbackGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AiFeedback model
|
|
*/
|
|
readonly fields: AiFeedbackFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AiFeedback.
|
|
* 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__AiFeedbackClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
note<T extends NoteDefaultArgs<ExtArgs> = {}>(args?: Subset<T, NoteDefaultArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
user<T extends AiFeedback$userArgs<ExtArgs> = {}>(args?: Subset<T, AiFeedback$userArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
/**
|
|
* 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 AiFeedback model
|
|
*/
|
|
interface AiFeedbackFieldRefs {
|
|
readonly id: FieldRef<"AiFeedback", 'String'>
|
|
readonly noteId: FieldRef<"AiFeedback", 'String'>
|
|
readonly userId: FieldRef<"AiFeedback", 'String'>
|
|
readonly feedbackType: FieldRef<"AiFeedback", 'String'>
|
|
readonly feature: FieldRef<"AiFeedback", 'String'>
|
|
readonly originalContent: FieldRef<"AiFeedback", 'String'>
|
|
readonly correctedContent: FieldRef<"AiFeedback", 'String'>
|
|
readonly metadata: FieldRef<"AiFeedback", 'String'>
|
|
readonly createdAt: FieldRef<"AiFeedback", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AiFeedback findUnique
|
|
*/
|
|
export type AiFeedbackFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AiFeedback to fetch.
|
|
*/
|
|
where: AiFeedbackWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AiFeedback findUniqueOrThrow
|
|
*/
|
|
export type AiFeedbackFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AiFeedback to fetch.
|
|
*/
|
|
where: AiFeedbackWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AiFeedback findFirst
|
|
*/
|
|
export type AiFeedbackFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AiFeedback to fetch.
|
|
*/
|
|
where?: AiFeedbackWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AiFeedbacks to fetch.
|
|
*/
|
|
orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AiFeedbacks.
|
|
*/
|
|
cursor?: AiFeedbackWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AiFeedbacks 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` AiFeedbacks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AiFeedbacks.
|
|
*/
|
|
distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AiFeedback findFirstOrThrow
|
|
*/
|
|
export type AiFeedbackFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AiFeedback to fetch.
|
|
*/
|
|
where?: AiFeedbackWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AiFeedbacks to fetch.
|
|
*/
|
|
orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AiFeedbacks.
|
|
*/
|
|
cursor?: AiFeedbackWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AiFeedbacks 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` AiFeedbacks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AiFeedbacks.
|
|
*/
|
|
distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AiFeedback findMany
|
|
*/
|
|
export type AiFeedbackFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AiFeedbacks to fetch.
|
|
*/
|
|
where?: AiFeedbackWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AiFeedbacks to fetch.
|
|
*/
|
|
orderBy?: AiFeedbackOrderByWithRelationInput | AiFeedbackOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AiFeedbacks.
|
|
*/
|
|
cursor?: AiFeedbackWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AiFeedbacks 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` AiFeedbacks.
|
|
*/
|
|
skip?: number
|
|
distinct?: AiFeedbackScalarFieldEnum | AiFeedbackScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AiFeedback create
|
|
*/
|
|
export type AiFeedbackCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AiFeedback.
|
|
*/
|
|
data: XOR<AiFeedbackCreateInput, AiFeedbackUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AiFeedback createMany
|
|
*/
|
|
export type AiFeedbackCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AiFeedbacks.
|
|
*/
|
|
data: AiFeedbackCreateManyInput | AiFeedbackCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* AiFeedback createManyAndReturn
|
|
*/
|
|
export type AiFeedbackCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AiFeedbacks.
|
|
*/
|
|
data: AiFeedbackCreateManyInput | AiFeedbackCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AiFeedback update
|
|
*/
|
|
export type AiFeedbackUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AiFeedback.
|
|
*/
|
|
data: XOR<AiFeedbackUpdateInput, AiFeedbackUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AiFeedback to update.
|
|
*/
|
|
where: AiFeedbackWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AiFeedback updateMany
|
|
*/
|
|
export type AiFeedbackUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AiFeedbacks.
|
|
*/
|
|
data: XOR<AiFeedbackUpdateManyMutationInput, AiFeedbackUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AiFeedbacks to update
|
|
*/
|
|
where?: AiFeedbackWhereInput
|
|
}
|
|
|
|
/**
|
|
* AiFeedback upsert
|
|
*/
|
|
export type AiFeedbackUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AiFeedback to update in case it exists.
|
|
*/
|
|
where: AiFeedbackWhereUniqueInput
|
|
/**
|
|
* In case the AiFeedback found by the `where` argument doesn't exist, create a new AiFeedback with this data.
|
|
*/
|
|
create: XOR<AiFeedbackCreateInput, AiFeedbackUncheckedCreateInput>
|
|
/**
|
|
* In case the AiFeedback was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<AiFeedbackUpdateInput, AiFeedbackUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AiFeedback delete
|
|
*/
|
|
export type AiFeedbackDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which AiFeedback to delete.
|
|
*/
|
|
where: AiFeedbackWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AiFeedback deleteMany
|
|
*/
|
|
export type AiFeedbackDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AiFeedbacks to delete
|
|
*/
|
|
where?: AiFeedbackWhereInput
|
|
}
|
|
|
|
/**
|
|
* AiFeedback.user
|
|
*/
|
|
export type AiFeedback$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* AiFeedback without action
|
|
*/
|
|
export type AiFeedbackDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AiFeedback
|
|
*/
|
|
select?: AiFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: AiFeedbackInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model MemoryEchoInsight
|
|
*/
|
|
|
|
export type AggregateMemoryEchoInsight = {
|
|
_count: MemoryEchoInsightCountAggregateOutputType | null
|
|
_avg: MemoryEchoInsightAvgAggregateOutputType | null
|
|
_sum: MemoryEchoInsightSumAggregateOutputType | null
|
|
_min: MemoryEchoInsightMinAggregateOutputType | null
|
|
_max: MemoryEchoInsightMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type MemoryEchoInsightAvgAggregateOutputType = {
|
|
similarityScore: number | null
|
|
}
|
|
|
|
export type MemoryEchoInsightSumAggregateOutputType = {
|
|
similarityScore: number | null
|
|
}
|
|
|
|
export type MemoryEchoInsightMinAggregateOutputType = {
|
|
id: string | null
|
|
userId: string | null
|
|
note1Id: string | null
|
|
note2Id: string | null
|
|
similarityScore: number | null
|
|
insight: string | null
|
|
insightDate: Date | null
|
|
viewed: boolean | null
|
|
feedback: string | null
|
|
dismissed: boolean | null
|
|
}
|
|
|
|
export type MemoryEchoInsightMaxAggregateOutputType = {
|
|
id: string | null
|
|
userId: string | null
|
|
note1Id: string | null
|
|
note2Id: string | null
|
|
similarityScore: number | null
|
|
insight: string | null
|
|
insightDate: Date | null
|
|
viewed: boolean | null
|
|
feedback: string | null
|
|
dismissed: boolean | null
|
|
}
|
|
|
|
export type MemoryEchoInsightCountAggregateOutputType = {
|
|
id: number
|
|
userId: number
|
|
note1Id: number
|
|
note2Id: number
|
|
similarityScore: number
|
|
insight: number
|
|
insightDate: number
|
|
viewed: number
|
|
feedback: number
|
|
dismissed: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type MemoryEchoInsightAvgAggregateInputType = {
|
|
similarityScore?: true
|
|
}
|
|
|
|
export type MemoryEchoInsightSumAggregateInputType = {
|
|
similarityScore?: true
|
|
}
|
|
|
|
export type MemoryEchoInsightMinAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
note1Id?: true
|
|
note2Id?: true
|
|
similarityScore?: true
|
|
insight?: true
|
|
insightDate?: true
|
|
viewed?: true
|
|
feedback?: true
|
|
dismissed?: true
|
|
}
|
|
|
|
export type MemoryEchoInsightMaxAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
note1Id?: true
|
|
note2Id?: true
|
|
similarityScore?: true
|
|
insight?: true
|
|
insightDate?: true
|
|
viewed?: true
|
|
feedback?: true
|
|
dismissed?: true
|
|
}
|
|
|
|
export type MemoryEchoInsightCountAggregateInputType = {
|
|
id?: true
|
|
userId?: true
|
|
note1Id?: true
|
|
note2Id?: true
|
|
similarityScore?: true
|
|
insight?: true
|
|
insightDate?: true
|
|
viewed?: true
|
|
feedback?: true
|
|
dismissed?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type MemoryEchoInsightAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MemoryEchoInsight to aggregate.
|
|
*/
|
|
where?: MemoryEchoInsightWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MemoryEchoInsights to fetch.
|
|
*/
|
|
orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: MemoryEchoInsightWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MemoryEchoInsights 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` MemoryEchoInsights.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned MemoryEchoInsights
|
|
**/
|
|
_count?: true | MemoryEchoInsightCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: MemoryEchoInsightAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: MemoryEchoInsightSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: MemoryEchoInsightMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: MemoryEchoInsightMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMemoryEchoInsightAggregateType<T extends MemoryEchoInsightAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMemoryEchoInsight]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateMemoryEchoInsight[P]>
|
|
: GetScalarType<T[P], AggregateMemoryEchoInsight[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type MemoryEchoInsightGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: MemoryEchoInsightWhereInput
|
|
orderBy?: MemoryEchoInsightOrderByWithAggregationInput | MemoryEchoInsightOrderByWithAggregationInput[]
|
|
by: MemoryEchoInsightScalarFieldEnum[] | MemoryEchoInsightScalarFieldEnum
|
|
having?: MemoryEchoInsightScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: MemoryEchoInsightCountAggregateInputType | true
|
|
_avg?: MemoryEchoInsightAvgAggregateInputType
|
|
_sum?: MemoryEchoInsightSumAggregateInputType
|
|
_min?: MemoryEchoInsightMinAggregateInputType
|
|
_max?: MemoryEchoInsightMaxAggregateInputType
|
|
}
|
|
|
|
export type MemoryEchoInsightGroupByOutputType = {
|
|
id: string
|
|
userId: string | null
|
|
note1Id: string
|
|
note2Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate: Date
|
|
viewed: boolean
|
|
feedback: string | null
|
|
dismissed: boolean
|
|
_count: MemoryEchoInsightCountAggregateOutputType | null
|
|
_avg: MemoryEchoInsightAvgAggregateOutputType | null
|
|
_sum: MemoryEchoInsightSumAggregateOutputType | null
|
|
_min: MemoryEchoInsightMinAggregateOutputType | null
|
|
_max: MemoryEchoInsightMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetMemoryEchoInsightGroupByPayload<T extends MemoryEchoInsightGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<MemoryEchoInsightGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof MemoryEchoInsightGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], MemoryEchoInsightGroupByOutputType[P]>
|
|
: GetScalarType<T[P], MemoryEchoInsightGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type MemoryEchoInsightSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
note1Id?: boolean
|
|
note2Id?: boolean
|
|
similarityScore?: boolean
|
|
insight?: boolean
|
|
insightDate?: boolean
|
|
viewed?: boolean
|
|
feedback?: boolean
|
|
dismissed?: boolean
|
|
note1?: boolean | NoteDefaultArgs<ExtArgs>
|
|
note2?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | MemoryEchoInsight$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["memoryEchoInsight"]>
|
|
|
|
export type MemoryEchoInsightSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
note1Id?: boolean
|
|
note2Id?: boolean
|
|
similarityScore?: boolean
|
|
insight?: boolean
|
|
insightDate?: boolean
|
|
viewed?: boolean
|
|
feedback?: boolean
|
|
dismissed?: boolean
|
|
note1?: boolean | NoteDefaultArgs<ExtArgs>
|
|
note2?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | MemoryEchoInsight$userArgs<ExtArgs>
|
|
}, ExtArgs["result"]["memoryEchoInsight"]>
|
|
|
|
export type MemoryEchoInsightSelectScalar = {
|
|
id?: boolean
|
|
userId?: boolean
|
|
note1Id?: boolean
|
|
note2Id?: boolean
|
|
similarityScore?: boolean
|
|
insight?: boolean
|
|
insightDate?: boolean
|
|
viewed?: boolean
|
|
feedback?: boolean
|
|
dismissed?: boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
note1?: boolean | NoteDefaultArgs<ExtArgs>
|
|
note2?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | MemoryEchoInsight$userArgs<ExtArgs>
|
|
}
|
|
export type MemoryEchoInsightIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
note1?: boolean | NoteDefaultArgs<ExtArgs>
|
|
note2?: boolean | NoteDefaultArgs<ExtArgs>
|
|
user?: boolean | MemoryEchoInsight$userArgs<ExtArgs>
|
|
}
|
|
|
|
export type $MemoryEchoInsightPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "MemoryEchoInsight"
|
|
objects: {
|
|
note1: Prisma.$NotePayload<ExtArgs>
|
|
note2: Prisma.$NotePayload<ExtArgs>
|
|
user: Prisma.$UserPayload<ExtArgs> | null
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
userId: string | null
|
|
note1Id: string
|
|
note2Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate: Date
|
|
viewed: boolean
|
|
feedback: string | null
|
|
dismissed: boolean
|
|
}, ExtArgs["result"]["memoryEchoInsight"]>
|
|
composites: {}
|
|
}
|
|
|
|
type MemoryEchoInsightGetPayload<S extends boolean | null | undefined | MemoryEchoInsightDefaultArgs> = $Result.GetResult<Prisma.$MemoryEchoInsightPayload, S>
|
|
|
|
type MemoryEchoInsightCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<MemoryEchoInsightFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: MemoryEchoInsightCountAggregateInputType | true
|
|
}
|
|
|
|
export interface MemoryEchoInsightDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MemoryEchoInsight'], meta: { name: 'MemoryEchoInsight' } }
|
|
/**
|
|
* Find zero or one MemoryEchoInsight that matches the filter.
|
|
* @param {MemoryEchoInsightFindUniqueArgs} args - Arguments to find a MemoryEchoInsight
|
|
* @example
|
|
* // Get one MemoryEchoInsight
|
|
* const memoryEchoInsight = await prisma.memoryEchoInsight.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends MemoryEchoInsightFindUniqueArgs>(args: SelectSubset<T, MemoryEchoInsightFindUniqueArgs<ExtArgs>>): Prisma__MemoryEchoInsightClient<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one MemoryEchoInsight that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {MemoryEchoInsightFindUniqueOrThrowArgs} args - Arguments to find a MemoryEchoInsight
|
|
* @example
|
|
* // Get one MemoryEchoInsight
|
|
* const memoryEchoInsight = await prisma.memoryEchoInsight.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends MemoryEchoInsightFindUniqueOrThrowArgs>(args: SelectSubset<T, MemoryEchoInsightFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MemoryEchoInsightClient<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first MemoryEchoInsight 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 {MemoryEchoInsightFindFirstArgs} args - Arguments to find a MemoryEchoInsight
|
|
* @example
|
|
* // Get one MemoryEchoInsight
|
|
* const memoryEchoInsight = await prisma.memoryEchoInsight.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends MemoryEchoInsightFindFirstArgs>(args?: SelectSubset<T, MemoryEchoInsightFindFirstArgs<ExtArgs>>): Prisma__MemoryEchoInsightClient<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first MemoryEchoInsight 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 {MemoryEchoInsightFindFirstOrThrowArgs} args - Arguments to find a MemoryEchoInsight
|
|
* @example
|
|
* // Get one MemoryEchoInsight
|
|
* const memoryEchoInsight = await prisma.memoryEchoInsight.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends MemoryEchoInsightFindFirstOrThrowArgs>(args?: SelectSubset<T, MemoryEchoInsightFindFirstOrThrowArgs<ExtArgs>>): Prisma__MemoryEchoInsightClient<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more MemoryEchoInsights 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 {MemoryEchoInsightFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all MemoryEchoInsights
|
|
* const memoryEchoInsights = await prisma.memoryEchoInsight.findMany()
|
|
*
|
|
* // Get first 10 MemoryEchoInsights
|
|
* const memoryEchoInsights = await prisma.memoryEchoInsight.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const memoryEchoInsightWithIdOnly = await prisma.memoryEchoInsight.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends MemoryEchoInsightFindManyArgs>(args?: SelectSubset<T, MemoryEchoInsightFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a MemoryEchoInsight.
|
|
* @param {MemoryEchoInsightCreateArgs} args - Arguments to create a MemoryEchoInsight.
|
|
* @example
|
|
* // Create one MemoryEchoInsight
|
|
* const MemoryEchoInsight = await prisma.memoryEchoInsight.create({
|
|
* data: {
|
|
* // ... data to create a MemoryEchoInsight
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends MemoryEchoInsightCreateArgs>(args: SelectSubset<T, MemoryEchoInsightCreateArgs<ExtArgs>>): Prisma__MemoryEchoInsightClient<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many MemoryEchoInsights.
|
|
* @param {MemoryEchoInsightCreateManyArgs} args - Arguments to create many MemoryEchoInsights.
|
|
* @example
|
|
* // Create many MemoryEchoInsights
|
|
* const memoryEchoInsight = await prisma.memoryEchoInsight.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends MemoryEchoInsightCreateManyArgs>(args?: SelectSubset<T, MemoryEchoInsightCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many MemoryEchoInsights and returns the data saved in the database.
|
|
* @param {MemoryEchoInsightCreateManyAndReturnArgs} args - Arguments to create many MemoryEchoInsights.
|
|
* @example
|
|
* // Create many MemoryEchoInsights
|
|
* const memoryEchoInsight = await prisma.memoryEchoInsight.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many MemoryEchoInsights and only return the `id`
|
|
* const memoryEchoInsightWithIdOnly = await prisma.memoryEchoInsight.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 MemoryEchoInsightCreateManyAndReturnArgs>(args?: SelectSubset<T, MemoryEchoInsightCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a MemoryEchoInsight.
|
|
* @param {MemoryEchoInsightDeleteArgs} args - Arguments to delete one MemoryEchoInsight.
|
|
* @example
|
|
* // Delete one MemoryEchoInsight
|
|
* const MemoryEchoInsight = await prisma.memoryEchoInsight.delete({
|
|
* where: {
|
|
* // ... filter to delete one MemoryEchoInsight
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends MemoryEchoInsightDeleteArgs>(args: SelectSubset<T, MemoryEchoInsightDeleteArgs<ExtArgs>>): Prisma__MemoryEchoInsightClient<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one MemoryEchoInsight.
|
|
* @param {MemoryEchoInsightUpdateArgs} args - Arguments to update one MemoryEchoInsight.
|
|
* @example
|
|
* // Update one MemoryEchoInsight
|
|
* const memoryEchoInsight = await prisma.memoryEchoInsight.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends MemoryEchoInsightUpdateArgs>(args: SelectSubset<T, MemoryEchoInsightUpdateArgs<ExtArgs>>): Prisma__MemoryEchoInsightClient<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more MemoryEchoInsights.
|
|
* @param {MemoryEchoInsightDeleteManyArgs} args - Arguments to filter MemoryEchoInsights to delete.
|
|
* @example
|
|
* // Delete a few MemoryEchoInsights
|
|
* const { count } = await prisma.memoryEchoInsight.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends MemoryEchoInsightDeleteManyArgs>(args?: SelectSubset<T, MemoryEchoInsightDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more MemoryEchoInsights.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MemoryEchoInsightUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many MemoryEchoInsights
|
|
* const memoryEchoInsight = await prisma.memoryEchoInsight.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends MemoryEchoInsightUpdateManyArgs>(args: SelectSubset<T, MemoryEchoInsightUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one MemoryEchoInsight.
|
|
* @param {MemoryEchoInsightUpsertArgs} args - Arguments to update or create a MemoryEchoInsight.
|
|
* @example
|
|
* // Update or create a MemoryEchoInsight
|
|
* const memoryEchoInsight = await prisma.memoryEchoInsight.upsert({
|
|
* create: {
|
|
* // ... data to create a MemoryEchoInsight
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the MemoryEchoInsight we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends MemoryEchoInsightUpsertArgs>(args: SelectSubset<T, MemoryEchoInsightUpsertArgs<ExtArgs>>): Prisma__MemoryEchoInsightClient<$Result.GetResult<Prisma.$MemoryEchoInsightPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of MemoryEchoInsights.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MemoryEchoInsightCountArgs} args - Arguments to filter MemoryEchoInsights to count.
|
|
* @example
|
|
* // Count the number of MemoryEchoInsights
|
|
* const count = await prisma.memoryEchoInsight.count({
|
|
* where: {
|
|
* // ... the filter for the MemoryEchoInsights we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends MemoryEchoInsightCountArgs>(
|
|
args?: Subset<T, MemoryEchoInsightCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], MemoryEchoInsightCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a MemoryEchoInsight.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MemoryEchoInsightAggregateArgs} 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 MemoryEchoInsightAggregateArgs>(args: Subset<T, MemoryEchoInsightAggregateArgs>): Prisma.PrismaPromise<GetMemoryEchoInsightAggregateType<T>>
|
|
|
|
/**
|
|
* Group by MemoryEchoInsight.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {MemoryEchoInsightGroupByArgs} 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 MemoryEchoInsightGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: MemoryEchoInsightGroupByArgs['orderBy'] }
|
|
: { orderBy?: MemoryEchoInsightGroupByArgs['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, MemoryEchoInsightGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMemoryEchoInsightGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the MemoryEchoInsight model
|
|
*/
|
|
readonly fields: MemoryEchoInsightFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for MemoryEchoInsight.
|
|
* 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__MemoryEchoInsightClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
note1<T extends NoteDefaultArgs<ExtArgs> = {}>(args?: Subset<T, NoteDefaultArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
note2<T extends NoteDefaultArgs<ExtArgs> = {}>(args?: Subset<T, NoteDefaultArgs<ExtArgs>>): Prisma__NoteClient<$Result.GetResult<Prisma.$NotePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
user<T extends MemoryEchoInsight$userArgs<ExtArgs> = {}>(args?: Subset<T, MemoryEchoInsight$userArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
/**
|
|
* 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 MemoryEchoInsight model
|
|
*/
|
|
interface MemoryEchoInsightFieldRefs {
|
|
readonly id: FieldRef<"MemoryEchoInsight", 'String'>
|
|
readonly userId: FieldRef<"MemoryEchoInsight", 'String'>
|
|
readonly note1Id: FieldRef<"MemoryEchoInsight", 'String'>
|
|
readonly note2Id: FieldRef<"MemoryEchoInsight", 'String'>
|
|
readonly similarityScore: FieldRef<"MemoryEchoInsight", 'Float'>
|
|
readonly insight: FieldRef<"MemoryEchoInsight", 'String'>
|
|
readonly insightDate: FieldRef<"MemoryEchoInsight", 'DateTime'>
|
|
readonly viewed: FieldRef<"MemoryEchoInsight", 'Boolean'>
|
|
readonly feedback: FieldRef<"MemoryEchoInsight", 'String'>
|
|
readonly dismissed: FieldRef<"MemoryEchoInsight", 'Boolean'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* MemoryEchoInsight findUnique
|
|
*/
|
|
export type MemoryEchoInsightFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MemoryEchoInsight to fetch.
|
|
*/
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight findUniqueOrThrow
|
|
*/
|
|
export type MemoryEchoInsightFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MemoryEchoInsight to fetch.
|
|
*/
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight findFirst
|
|
*/
|
|
export type MemoryEchoInsightFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MemoryEchoInsight to fetch.
|
|
*/
|
|
where?: MemoryEchoInsightWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MemoryEchoInsights to fetch.
|
|
*/
|
|
orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MemoryEchoInsights.
|
|
*/
|
|
cursor?: MemoryEchoInsightWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MemoryEchoInsights 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` MemoryEchoInsights.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MemoryEchoInsights.
|
|
*/
|
|
distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight findFirstOrThrow
|
|
*/
|
|
export type MemoryEchoInsightFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MemoryEchoInsight to fetch.
|
|
*/
|
|
where?: MemoryEchoInsightWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MemoryEchoInsights to fetch.
|
|
*/
|
|
orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for MemoryEchoInsights.
|
|
*/
|
|
cursor?: MemoryEchoInsightWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MemoryEchoInsights 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` MemoryEchoInsights.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of MemoryEchoInsights.
|
|
*/
|
|
distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight findMany
|
|
*/
|
|
export type MemoryEchoInsightFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which MemoryEchoInsights to fetch.
|
|
*/
|
|
where?: MemoryEchoInsightWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of MemoryEchoInsights to fetch.
|
|
*/
|
|
orderBy?: MemoryEchoInsightOrderByWithRelationInput | MemoryEchoInsightOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing MemoryEchoInsights.
|
|
*/
|
|
cursor?: MemoryEchoInsightWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` MemoryEchoInsights 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` MemoryEchoInsights.
|
|
*/
|
|
skip?: number
|
|
distinct?: MemoryEchoInsightScalarFieldEnum | MemoryEchoInsightScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight create
|
|
*/
|
|
export type MemoryEchoInsightCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a MemoryEchoInsight.
|
|
*/
|
|
data: XOR<MemoryEchoInsightCreateInput, MemoryEchoInsightUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight createMany
|
|
*/
|
|
export type MemoryEchoInsightCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many MemoryEchoInsights.
|
|
*/
|
|
data: MemoryEchoInsightCreateManyInput | MemoryEchoInsightCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight createManyAndReturn
|
|
*/
|
|
export type MemoryEchoInsightCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many MemoryEchoInsights.
|
|
*/
|
|
data: MemoryEchoInsightCreateManyInput | MemoryEchoInsightCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight update
|
|
*/
|
|
export type MemoryEchoInsightUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a MemoryEchoInsight.
|
|
*/
|
|
data: XOR<MemoryEchoInsightUpdateInput, MemoryEchoInsightUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which MemoryEchoInsight to update.
|
|
*/
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight updateMany
|
|
*/
|
|
export type MemoryEchoInsightUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update MemoryEchoInsights.
|
|
*/
|
|
data: XOR<MemoryEchoInsightUpdateManyMutationInput, MemoryEchoInsightUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which MemoryEchoInsights to update
|
|
*/
|
|
where?: MemoryEchoInsightWhereInput
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight upsert
|
|
*/
|
|
export type MemoryEchoInsightUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the MemoryEchoInsight to update in case it exists.
|
|
*/
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
/**
|
|
* In case the MemoryEchoInsight found by the `where` argument doesn't exist, create a new MemoryEchoInsight with this data.
|
|
*/
|
|
create: XOR<MemoryEchoInsightCreateInput, MemoryEchoInsightUncheckedCreateInput>
|
|
/**
|
|
* In case the MemoryEchoInsight was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<MemoryEchoInsightUpdateInput, MemoryEchoInsightUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight delete
|
|
*/
|
|
export type MemoryEchoInsightDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which MemoryEchoInsight to delete.
|
|
*/
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight deleteMany
|
|
*/
|
|
export type MemoryEchoInsightDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which MemoryEchoInsights to delete
|
|
*/
|
|
where?: MemoryEchoInsightWhereInput
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight.user
|
|
*/
|
|
export type MemoryEchoInsight$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* MemoryEchoInsight without action
|
|
*/
|
|
export type MemoryEchoInsightDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the MemoryEchoInsight
|
|
*/
|
|
select?: MemoryEchoInsightSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: MemoryEchoInsightInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model UserAISettings
|
|
*/
|
|
|
|
export type AggregateUserAISettings = {
|
|
_count: UserAISettingsCountAggregateOutputType | null
|
|
_min: UserAISettingsMinAggregateOutputType | null
|
|
_max: UserAISettingsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type UserAISettingsMinAggregateOutputType = {
|
|
userId: string | null
|
|
titleSuggestions: boolean | null
|
|
semanticSearch: boolean | null
|
|
paragraphRefactor: boolean | null
|
|
memoryEcho: boolean | null
|
|
memoryEchoFrequency: string | null
|
|
aiProvider: string | null
|
|
preferredLanguage: string | null
|
|
fontSize: string | null
|
|
demoMode: boolean | null
|
|
}
|
|
|
|
export type UserAISettingsMaxAggregateOutputType = {
|
|
userId: string | null
|
|
titleSuggestions: boolean | null
|
|
semanticSearch: boolean | null
|
|
paragraphRefactor: boolean | null
|
|
memoryEcho: boolean | null
|
|
memoryEchoFrequency: string | null
|
|
aiProvider: string | null
|
|
preferredLanguage: string | null
|
|
fontSize: string | null
|
|
demoMode: boolean | null
|
|
}
|
|
|
|
export type UserAISettingsCountAggregateOutputType = {
|
|
userId: number
|
|
titleSuggestions: number
|
|
semanticSearch: number
|
|
paragraphRefactor: number
|
|
memoryEcho: number
|
|
memoryEchoFrequency: number
|
|
aiProvider: number
|
|
preferredLanguage: number
|
|
fontSize: number
|
|
demoMode: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type UserAISettingsMinAggregateInputType = {
|
|
userId?: true
|
|
titleSuggestions?: true
|
|
semanticSearch?: true
|
|
paragraphRefactor?: true
|
|
memoryEcho?: true
|
|
memoryEchoFrequency?: true
|
|
aiProvider?: true
|
|
preferredLanguage?: true
|
|
fontSize?: true
|
|
demoMode?: true
|
|
}
|
|
|
|
export type UserAISettingsMaxAggregateInputType = {
|
|
userId?: true
|
|
titleSuggestions?: true
|
|
semanticSearch?: true
|
|
paragraphRefactor?: true
|
|
memoryEcho?: true
|
|
memoryEchoFrequency?: true
|
|
aiProvider?: true
|
|
preferredLanguage?: true
|
|
fontSize?: true
|
|
demoMode?: true
|
|
}
|
|
|
|
export type UserAISettingsCountAggregateInputType = {
|
|
userId?: true
|
|
titleSuggestions?: true
|
|
semanticSearch?: true
|
|
paragraphRefactor?: true
|
|
memoryEcho?: true
|
|
memoryEchoFrequency?: true
|
|
aiProvider?: true
|
|
preferredLanguage?: true
|
|
fontSize?: true
|
|
demoMode?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type UserAISettingsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which UserAISettings to aggregate.
|
|
*/
|
|
where?: UserAISettingsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserAISettings to fetch.
|
|
*/
|
|
orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: UserAISettingsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserAISettings 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` UserAISettings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned UserAISettings
|
|
**/
|
|
_count?: true | UserAISettingsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: UserAISettingsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: UserAISettingsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetUserAISettingsAggregateType<T extends UserAISettingsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUserAISettings]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateUserAISettings[P]>
|
|
: GetScalarType<T[P], AggregateUserAISettings[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UserAISettingsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: UserAISettingsWhereInput
|
|
orderBy?: UserAISettingsOrderByWithAggregationInput | UserAISettingsOrderByWithAggregationInput[]
|
|
by: UserAISettingsScalarFieldEnum[] | UserAISettingsScalarFieldEnum
|
|
having?: UserAISettingsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UserAISettingsCountAggregateInputType | true
|
|
_min?: UserAISettingsMinAggregateInputType
|
|
_max?: UserAISettingsMaxAggregateInputType
|
|
}
|
|
|
|
export type UserAISettingsGroupByOutputType = {
|
|
userId: string
|
|
titleSuggestions: boolean
|
|
semanticSearch: boolean
|
|
paragraphRefactor: boolean
|
|
memoryEcho: boolean
|
|
memoryEchoFrequency: string
|
|
aiProvider: string
|
|
preferredLanguage: string
|
|
fontSize: string
|
|
demoMode: boolean
|
|
_count: UserAISettingsCountAggregateOutputType | null
|
|
_min: UserAISettingsMinAggregateOutputType | null
|
|
_max: UserAISettingsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetUserAISettingsGroupByPayload<T extends UserAISettingsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<UserAISettingsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserAISettingsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], UserAISettingsGroupByOutputType[P]>
|
|
: GetScalarType<T[P], UserAISettingsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type UserAISettingsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
userId?: boolean
|
|
titleSuggestions?: boolean
|
|
semanticSearch?: boolean
|
|
paragraphRefactor?: boolean
|
|
memoryEcho?: boolean
|
|
memoryEchoFrequency?: boolean
|
|
aiProvider?: boolean
|
|
preferredLanguage?: boolean
|
|
fontSize?: boolean
|
|
demoMode?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["userAISettings"]>
|
|
|
|
export type UserAISettingsSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
userId?: boolean
|
|
titleSuggestions?: boolean
|
|
semanticSearch?: boolean
|
|
paragraphRefactor?: boolean
|
|
memoryEcho?: boolean
|
|
memoryEchoFrequency?: boolean
|
|
aiProvider?: boolean
|
|
preferredLanguage?: boolean
|
|
fontSize?: boolean
|
|
demoMode?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["userAISettings"]>
|
|
|
|
export type UserAISettingsSelectScalar = {
|
|
userId?: boolean
|
|
titleSuggestions?: boolean
|
|
semanticSearch?: boolean
|
|
paragraphRefactor?: boolean
|
|
memoryEcho?: boolean
|
|
memoryEchoFrequency?: boolean
|
|
aiProvider?: boolean
|
|
preferredLanguage?: boolean
|
|
fontSize?: boolean
|
|
demoMode?: boolean
|
|
}
|
|
|
|
export type UserAISettingsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type UserAISettingsIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $UserAISettingsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "UserAISettings"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
userId: string
|
|
titleSuggestions: boolean
|
|
semanticSearch: boolean
|
|
paragraphRefactor: boolean
|
|
memoryEcho: boolean
|
|
memoryEchoFrequency: string
|
|
aiProvider: string
|
|
preferredLanguage: string
|
|
fontSize: string
|
|
demoMode: boolean
|
|
}, ExtArgs["result"]["userAISettings"]>
|
|
composites: {}
|
|
}
|
|
|
|
type UserAISettingsGetPayload<S extends boolean | null | undefined | UserAISettingsDefaultArgs> = $Result.GetResult<Prisma.$UserAISettingsPayload, S>
|
|
|
|
type UserAISettingsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<UserAISettingsFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: UserAISettingsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UserAISettingsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserAISettings'], meta: { name: 'UserAISettings' } }
|
|
/**
|
|
* Find zero or one UserAISettings that matches the filter.
|
|
* @param {UserAISettingsFindUniqueArgs} args - Arguments to find a UserAISettings
|
|
* @example
|
|
* // Get one UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UserAISettingsFindUniqueArgs>(args: SelectSubset<T, UserAISettingsFindUniqueArgs<ExtArgs>>): Prisma__UserAISettingsClient<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one UserAISettings that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UserAISettingsFindUniqueOrThrowArgs} args - Arguments to find a UserAISettings
|
|
* @example
|
|
* // Get one UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UserAISettingsFindUniqueOrThrowArgs>(args: SelectSubset<T, UserAISettingsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserAISettingsClient<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first UserAISettings 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 {UserAISettingsFindFirstArgs} args - Arguments to find a UserAISettings
|
|
* @example
|
|
* // Get one UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UserAISettingsFindFirstArgs>(args?: SelectSubset<T, UserAISettingsFindFirstArgs<ExtArgs>>): Prisma__UserAISettingsClient<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first UserAISettings 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 {UserAISettingsFindFirstOrThrowArgs} args - Arguments to find a UserAISettings
|
|
* @example
|
|
* // Get one UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UserAISettingsFindFirstOrThrowArgs>(args?: SelectSubset<T, UserAISettingsFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserAISettingsClient<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more UserAISettings 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 {UserAISettingsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.findMany()
|
|
*
|
|
* // Get first 10 UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `userId`
|
|
* const userAISettingsWithUserIdOnly = await prisma.userAISettings.findMany({ select: { userId: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UserAISettingsFindManyArgs>(args?: SelectSubset<T, UserAISettingsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a UserAISettings.
|
|
* @param {UserAISettingsCreateArgs} args - Arguments to create a UserAISettings.
|
|
* @example
|
|
* // Create one UserAISettings
|
|
* const UserAISettings = await prisma.userAISettings.create({
|
|
* data: {
|
|
* // ... data to create a UserAISettings
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UserAISettingsCreateArgs>(args: SelectSubset<T, UserAISettingsCreateArgs<ExtArgs>>): Prisma__UserAISettingsClient<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many UserAISettings.
|
|
* @param {UserAISettingsCreateManyArgs} args - Arguments to create many UserAISettings.
|
|
* @example
|
|
* // Create many UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends UserAISettingsCreateManyArgs>(args?: SelectSubset<T, UserAISettingsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many UserAISettings and returns the data saved in the database.
|
|
* @param {UserAISettingsCreateManyAndReturnArgs} args - Arguments to create many UserAISettings.
|
|
* @example
|
|
* // Create many UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many UserAISettings and only return the `userId`
|
|
* const userAISettingsWithUserIdOnly = await prisma.userAISettings.createManyAndReturn({
|
|
* select: { userId: 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 UserAISettingsCreateManyAndReturnArgs>(args?: SelectSubset<T, UserAISettingsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a UserAISettings.
|
|
* @param {UserAISettingsDeleteArgs} args - Arguments to delete one UserAISettings.
|
|
* @example
|
|
* // Delete one UserAISettings
|
|
* const UserAISettings = await prisma.userAISettings.delete({
|
|
* where: {
|
|
* // ... filter to delete one UserAISettings
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UserAISettingsDeleteArgs>(args: SelectSubset<T, UserAISettingsDeleteArgs<ExtArgs>>): Prisma__UserAISettingsClient<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one UserAISettings.
|
|
* @param {UserAISettingsUpdateArgs} args - Arguments to update one UserAISettings.
|
|
* @example
|
|
* // Update one UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UserAISettingsUpdateArgs>(args: SelectSubset<T, UserAISettingsUpdateArgs<ExtArgs>>): Prisma__UserAISettingsClient<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more UserAISettings.
|
|
* @param {UserAISettingsDeleteManyArgs} args - Arguments to filter UserAISettings to delete.
|
|
* @example
|
|
* // Delete a few UserAISettings
|
|
* const { count } = await prisma.userAISettings.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UserAISettingsDeleteManyArgs>(args?: SelectSubset<T, UserAISettingsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more UserAISettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAISettingsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends UserAISettingsUpdateManyArgs>(args: SelectSubset<T, UserAISettingsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one UserAISettings.
|
|
* @param {UserAISettingsUpsertArgs} args - Arguments to update or create a UserAISettings.
|
|
* @example
|
|
* // Update or create a UserAISettings
|
|
* const userAISettings = await prisma.userAISettings.upsert({
|
|
* create: {
|
|
* // ... data to create a UserAISettings
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the UserAISettings we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UserAISettingsUpsertArgs>(args: SelectSubset<T, UserAISettingsUpsertArgs<ExtArgs>>): Prisma__UserAISettingsClient<$Result.GetResult<Prisma.$UserAISettingsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of UserAISettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAISettingsCountArgs} args - Arguments to filter UserAISettings to count.
|
|
* @example
|
|
* // Count the number of UserAISettings
|
|
* const count = await prisma.userAISettings.count({
|
|
* where: {
|
|
* // ... the filter for the UserAISettings we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UserAISettingsCountArgs>(
|
|
args?: Subset<T, UserAISettingsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], UserAISettingsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a UserAISettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAISettingsAggregateArgs} 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 UserAISettingsAggregateArgs>(args: Subset<T, UserAISettingsAggregateArgs>): Prisma.PrismaPromise<GetUserAISettingsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by UserAISettings.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAISettingsGroupByArgs} 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 UserAISettingsGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: UserAISettingsGroupByArgs['orderBy'] }
|
|
: { orderBy?: UserAISettingsGroupByArgs['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, UserAISettingsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserAISettingsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the UserAISettings model
|
|
*/
|
|
readonly fields: UserAISettingsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for UserAISettings.
|
|
* 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__UserAISettingsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* 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 UserAISettings model
|
|
*/
|
|
interface UserAISettingsFieldRefs {
|
|
readonly userId: FieldRef<"UserAISettings", 'String'>
|
|
readonly titleSuggestions: FieldRef<"UserAISettings", 'Boolean'>
|
|
readonly semanticSearch: FieldRef<"UserAISettings", 'Boolean'>
|
|
readonly paragraphRefactor: FieldRef<"UserAISettings", 'Boolean'>
|
|
readonly memoryEcho: FieldRef<"UserAISettings", 'Boolean'>
|
|
readonly memoryEchoFrequency: FieldRef<"UserAISettings", 'String'>
|
|
readonly aiProvider: FieldRef<"UserAISettings", 'String'>
|
|
readonly preferredLanguage: FieldRef<"UserAISettings", 'String'>
|
|
readonly fontSize: FieldRef<"UserAISettings", 'String'>
|
|
readonly demoMode: FieldRef<"UserAISettings", 'Boolean'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* UserAISettings findUnique
|
|
*/
|
|
export type UserAISettingsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserAISettings to fetch.
|
|
*/
|
|
where: UserAISettingsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserAISettings findUniqueOrThrow
|
|
*/
|
|
export type UserAISettingsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserAISettings to fetch.
|
|
*/
|
|
where: UserAISettingsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserAISettings findFirst
|
|
*/
|
|
export type UserAISettingsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserAISettings to fetch.
|
|
*/
|
|
where?: UserAISettingsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserAISettings to fetch.
|
|
*/
|
|
orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for UserAISettings.
|
|
*/
|
|
cursor?: UserAISettingsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserAISettings 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` UserAISettings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of UserAISettings.
|
|
*/
|
|
distinct?: UserAISettingsScalarFieldEnum | UserAISettingsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserAISettings findFirstOrThrow
|
|
*/
|
|
export type UserAISettingsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserAISettings to fetch.
|
|
*/
|
|
where?: UserAISettingsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserAISettings to fetch.
|
|
*/
|
|
orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for UserAISettings.
|
|
*/
|
|
cursor?: UserAISettingsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserAISettings 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` UserAISettings.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of UserAISettings.
|
|
*/
|
|
distinct?: UserAISettingsScalarFieldEnum | UserAISettingsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserAISettings findMany
|
|
*/
|
|
export type UserAISettingsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which UserAISettings to fetch.
|
|
*/
|
|
where?: UserAISettingsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of UserAISettings to fetch.
|
|
*/
|
|
orderBy?: UserAISettingsOrderByWithRelationInput | UserAISettingsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing UserAISettings.
|
|
*/
|
|
cursor?: UserAISettingsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` UserAISettings 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` UserAISettings.
|
|
*/
|
|
skip?: number
|
|
distinct?: UserAISettingsScalarFieldEnum | UserAISettingsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* UserAISettings create
|
|
*/
|
|
export type UserAISettingsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a UserAISettings.
|
|
*/
|
|
data: XOR<UserAISettingsCreateInput, UserAISettingsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* UserAISettings createMany
|
|
*/
|
|
export type UserAISettingsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many UserAISettings.
|
|
*/
|
|
data: UserAISettingsCreateManyInput | UserAISettingsCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* UserAISettings createManyAndReturn
|
|
*/
|
|
export type UserAISettingsCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many UserAISettings.
|
|
*/
|
|
data: UserAISettingsCreateManyInput | UserAISettingsCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* UserAISettings update
|
|
*/
|
|
export type UserAISettingsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a UserAISettings.
|
|
*/
|
|
data: XOR<UserAISettingsUpdateInput, UserAISettingsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which UserAISettings to update.
|
|
*/
|
|
where: UserAISettingsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserAISettings updateMany
|
|
*/
|
|
export type UserAISettingsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update UserAISettings.
|
|
*/
|
|
data: XOR<UserAISettingsUpdateManyMutationInput, UserAISettingsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which UserAISettings to update
|
|
*/
|
|
where?: UserAISettingsWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserAISettings upsert
|
|
*/
|
|
export type UserAISettingsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the UserAISettings to update in case it exists.
|
|
*/
|
|
where: UserAISettingsWhereUniqueInput
|
|
/**
|
|
* In case the UserAISettings found by the `where` argument doesn't exist, create a new UserAISettings with this data.
|
|
*/
|
|
create: XOR<UserAISettingsCreateInput, UserAISettingsUncheckedCreateInput>
|
|
/**
|
|
* In case the UserAISettings was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<UserAISettingsUpdateInput, UserAISettingsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* UserAISettings delete
|
|
*/
|
|
export type UserAISettingsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which UserAISettings to delete.
|
|
*/
|
|
where: UserAISettingsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* UserAISettings deleteMany
|
|
*/
|
|
export type UserAISettingsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which UserAISettings to delete
|
|
*/
|
|
where?: UserAISettingsWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserAISettings without action
|
|
*/
|
|
export type UserAISettingsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserAISettings
|
|
*/
|
|
select?: UserAISettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserAISettingsInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel: {
|
|
Serializable: 'Serializable'
|
|
};
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const UserScalarFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
email: 'email',
|
|
emailVerified: 'emailVerified',
|
|
password: 'password',
|
|
role: 'role',
|
|
image: 'image',
|
|
theme: 'theme',
|
|
resetToken: 'resetToken',
|
|
resetTokenExpiry: 'resetTokenExpiry',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
export const AccountScalarFieldEnum: {
|
|
userId: 'userId',
|
|
type: 'type',
|
|
provider: 'provider',
|
|
providerAccountId: 'providerAccountId',
|
|
refresh_token: 'refresh_token',
|
|
access_token: 'access_token',
|
|
expires_at: 'expires_at',
|
|
token_type: 'token_type',
|
|
scope: 'scope',
|
|
id_token: 'id_token',
|
|
session_state: 'session_state',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
|
|
|
|
|
|
export const SessionScalarFieldEnum: {
|
|
sessionToken: 'sessionToken',
|
|
userId: 'userId',
|
|
expires: 'expires',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
|
|
|
|
|
|
export const VerificationTokenScalarFieldEnum: {
|
|
identifier: 'identifier',
|
|
token: 'token',
|
|
expires: 'expires'
|
|
};
|
|
|
|
export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum]
|
|
|
|
|
|
export const NotebookScalarFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
icon: 'icon',
|
|
color: 'color',
|
|
order: 'order',
|
|
userId: 'userId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type NotebookScalarFieldEnum = (typeof NotebookScalarFieldEnum)[keyof typeof NotebookScalarFieldEnum]
|
|
|
|
|
|
export const LabelScalarFieldEnum: {
|
|
id: 'id',
|
|
name: 'name',
|
|
color: 'color',
|
|
notebookId: 'notebookId',
|
|
userId: 'userId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type LabelScalarFieldEnum = (typeof LabelScalarFieldEnum)[keyof typeof LabelScalarFieldEnum]
|
|
|
|
|
|
export const NoteScalarFieldEnum: {
|
|
id: 'id',
|
|
title: 'title',
|
|
content: 'content',
|
|
color: 'color',
|
|
isPinned: 'isPinned',
|
|
isArchived: 'isArchived',
|
|
type: 'type',
|
|
checkItems: 'checkItems',
|
|
labels: 'labels',
|
|
images: 'images',
|
|
links: 'links',
|
|
reminder: 'reminder',
|
|
isReminderDone: 'isReminderDone',
|
|
reminderRecurrence: 'reminderRecurrence',
|
|
reminderLocation: 'reminderLocation',
|
|
isMarkdown: 'isMarkdown',
|
|
size: 'size',
|
|
embedding: 'embedding',
|
|
sharedWith: 'sharedWith',
|
|
userId: 'userId',
|
|
order: 'order',
|
|
notebookId: 'notebookId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
autoGenerated: 'autoGenerated',
|
|
aiProvider: 'aiProvider',
|
|
aiConfidence: 'aiConfidence',
|
|
language: 'language',
|
|
languageConfidence: 'languageConfidence',
|
|
lastAiAnalysis: 'lastAiAnalysis'
|
|
};
|
|
|
|
export type NoteScalarFieldEnum = (typeof NoteScalarFieldEnum)[keyof typeof NoteScalarFieldEnum]
|
|
|
|
|
|
export const NoteShareScalarFieldEnum: {
|
|
id: 'id',
|
|
noteId: 'noteId',
|
|
userId: 'userId',
|
|
sharedBy: 'sharedBy',
|
|
status: 'status',
|
|
permission: 'permission',
|
|
notifiedAt: 'notifiedAt',
|
|
respondedAt: 'respondedAt',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
export type NoteShareScalarFieldEnum = (typeof NoteShareScalarFieldEnum)[keyof typeof NoteShareScalarFieldEnum]
|
|
|
|
|
|
export const SystemConfigScalarFieldEnum: {
|
|
key: 'key',
|
|
value: 'value'
|
|
};
|
|
|
|
export type SystemConfigScalarFieldEnum = (typeof SystemConfigScalarFieldEnum)[keyof typeof SystemConfigScalarFieldEnum]
|
|
|
|
|
|
export const AiFeedbackScalarFieldEnum: {
|
|
id: 'id',
|
|
noteId: 'noteId',
|
|
userId: 'userId',
|
|
feedbackType: 'feedbackType',
|
|
feature: 'feature',
|
|
originalContent: 'originalContent',
|
|
correctedContent: 'correctedContent',
|
|
metadata: 'metadata',
|
|
createdAt: 'createdAt'
|
|
};
|
|
|
|
export type AiFeedbackScalarFieldEnum = (typeof AiFeedbackScalarFieldEnum)[keyof typeof AiFeedbackScalarFieldEnum]
|
|
|
|
|
|
export const MemoryEchoInsightScalarFieldEnum: {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
note1Id: 'note1Id',
|
|
note2Id: 'note2Id',
|
|
similarityScore: 'similarityScore',
|
|
insight: 'insight',
|
|
insightDate: 'insightDate',
|
|
viewed: 'viewed',
|
|
feedback: 'feedback',
|
|
dismissed: 'dismissed'
|
|
};
|
|
|
|
export type MemoryEchoInsightScalarFieldEnum = (typeof MemoryEchoInsightScalarFieldEnum)[keyof typeof MemoryEchoInsightScalarFieldEnum]
|
|
|
|
|
|
export const UserAISettingsScalarFieldEnum: {
|
|
userId: 'userId',
|
|
titleSuggestions: 'titleSuggestions',
|
|
semanticSearch: 'semanticSearch',
|
|
paragraphRefactor: 'paragraphRefactor',
|
|
memoryEcho: 'memoryEcho',
|
|
memoryEchoFrequency: 'memoryEchoFrequency',
|
|
aiProvider: 'aiProvider',
|
|
preferredLanguage: 'preferredLanguage',
|
|
fontSize: 'fontSize',
|
|
demoMode: 'demoMode'
|
|
};
|
|
|
|
export type UserAISettingsScalarFieldEnum = (typeof UserAISettingsScalarFieldEnum)[keyof typeof UserAISettingsScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder: {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
};
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
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 'DateTime'
|
|
*/
|
|
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Int'
|
|
*/
|
|
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Boolean'
|
|
*/
|
|
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
|
|
|
|
|
|
|
/**
|
|
* Reference to a field of type 'Float'
|
|
*/
|
|
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
|
|
|
|
/**
|
|
* Deep Input Types
|
|
*/
|
|
|
|
|
|
export type UserWhereInput = {
|
|
AND?: UserWhereInput | UserWhereInput[]
|
|
OR?: UserWhereInput[]
|
|
NOT?: UserWhereInput | UserWhereInput[]
|
|
id?: StringFilter<"User"> | string
|
|
name?: StringNullableFilter<"User"> | string | null
|
|
email?: StringFilter<"User"> | string
|
|
emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
|
|
password?: StringNullableFilter<"User"> | string | null
|
|
role?: StringFilter<"User"> | string
|
|
image?: StringNullableFilter<"User"> | string | null
|
|
theme?: StringFilter<"User"> | string
|
|
resetToken?: StringNullableFilter<"User"> | string | null
|
|
resetTokenExpiry?: DateTimeNullableFilter<"User"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: DateTimeFilter<"User"> | Date | string
|
|
accounts?: AccountListRelationFilter
|
|
sessions?: SessionListRelationFilter
|
|
notes?: NoteListRelationFilter
|
|
labels?: LabelListRelationFilter
|
|
notebooks?: NotebookListRelationFilter
|
|
receivedShares?: NoteShareListRelationFilter
|
|
sentShares?: NoteShareListRelationFilter
|
|
aiFeedback?: AiFeedbackListRelationFilter
|
|
aiSettings?: XOR<UserAISettingsNullableRelationFilter, UserAISettingsWhereInput> | null
|
|
memoryEchoInsights?: MemoryEchoInsightListRelationFilter
|
|
}
|
|
|
|
export type UserOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrderInput | SortOrder
|
|
email?: SortOrder
|
|
emailVerified?: SortOrderInput | SortOrder
|
|
password?: SortOrderInput | SortOrder
|
|
role?: SortOrder
|
|
image?: SortOrderInput | SortOrder
|
|
theme?: SortOrder
|
|
resetToken?: SortOrderInput | SortOrder
|
|
resetTokenExpiry?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
accounts?: AccountOrderByRelationAggregateInput
|
|
sessions?: SessionOrderByRelationAggregateInput
|
|
notes?: NoteOrderByRelationAggregateInput
|
|
labels?: LabelOrderByRelationAggregateInput
|
|
notebooks?: NotebookOrderByRelationAggregateInput
|
|
receivedShares?: NoteShareOrderByRelationAggregateInput
|
|
sentShares?: NoteShareOrderByRelationAggregateInput
|
|
aiFeedback?: AiFeedbackOrderByRelationAggregateInput
|
|
aiSettings?: UserAISettingsOrderByWithRelationInput
|
|
memoryEchoInsights?: MemoryEchoInsightOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type UserWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
email?: string
|
|
resetToken?: string
|
|
AND?: UserWhereInput | UserWhereInput[]
|
|
OR?: UserWhereInput[]
|
|
NOT?: UserWhereInput | UserWhereInput[]
|
|
name?: StringNullableFilter<"User"> | string | null
|
|
emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
|
|
password?: StringNullableFilter<"User"> | string | null
|
|
role?: StringFilter<"User"> | string
|
|
image?: StringNullableFilter<"User"> | string | null
|
|
theme?: StringFilter<"User"> | string
|
|
resetTokenExpiry?: DateTimeNullableFilter<"User"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: DateTimeFilter<"User"> | Date | string
|
|
accounts?: AccountListRelationFilter
|
|
sessions?: SessionListRelationFilter
|
|
notes?: NoteListRelationFilter
|
|
labels?: LabelListRelationFilter
|
|
notebooks?: NotebookListRelationFilter
|
|
receivedShares?: NoteShareListRelationFilter
|
|
sentShares?: NoteShareListRelationFilter
|
|
aiFeedback?: AiFeedbackListRelationFilter
|
|
aiSettings?: XOR<UserAISettingsNullableRelationFilter, UserAISettingsWhereInput> | null
|
|
memoryEchoInsights?: MemoryEchoInsightListRelationFilter
|
|
}, "id" | "email" | "resetToken">
|
|
|
|
export type UserOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrderInput | SortOrder
|
|
email?: SortOrder
|
|
emailVerified?: SortOrderInput | SortOrder
|
|
password?: SortOrderInput | SortOrder
|
|
role?: SortOrder
|
|
image?: SortOrderInput | SortOrder
|
|
theme?: SortOrder
|
|
resetToken?: SortOrderInput | SortOrder
|
|
resetTokenExpiry?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: UserCountOrderByAggregateInput
|
|
_max?: UserMaxOrderByAggregateInput
|
|
_min?: UserMinOrderByAggregateInput
|
|
}
|
|
|
|
export type UserScalarWhereWithAggregatesInput = {
|
|
AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
|
|
OR?: UserScalarWhereWithAggregatesInput[]
|
|
NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"User"> | string
|
|
name?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
email?: StringWithAggregatesFilter<"User"> | string
|
|
emailVerified?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
|
|
password?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
role?: StringWithAggregatesFilter<"User"> | string
|
|
image?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
theme?: StringWithAggregatesFilter<"User"> | string
|
|
resetToken?: StringNullableWithAggregatesFilter<"User"> | string | null
|
|
resetTokenExpiry?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
}
|
|
|
|
export type AccountWhereInput = {
|
|
AND?: AccountWhereInput | AccountWhereInput[]
|
|
OR?: AccountWhereInput[]
|
|
NOT?: AccountWhereInput | AccountWhereInput[]
|
|
userId?: StringFilter<"Account"> | string
|
|
type?: StringFilter<"Account"> | string
|
|
provider?: StringFilter<"Account"> | string
|
|
providerAccountId?: StringFilter<"Account"> | string
|
|
refresh_token?: StringNullableFilter<"Account"> | string | null
|
|
access_token?: StringNullableFilter<"Account"> | string | null
|
|
expires_at?: IntNullableFilter<"Account"> | number | null
|
|
token_type?: StringNullableFilter<"Account"> | string | null
|
|
scope?: StringNullableFilter<"Account"> | string | null
|
|
id_token?: StringNullableFilter<"Account"> | string | null
|
|
session_state?: StringNullableFilter<"Account"> | string | null
|
|
createdAt?: DateTimeFilter<"Account"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Account"> | Date | string
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
export type AccountOrderByWithRelationInput = {
|
|
userId?: SortOrder
|
|
type?: SortOrder
|
|
provider?: SortOrder
|
|
providerAccountId?: SortOrder
|
|
refresh_token?: SortOrderInput | SortOrder
|
|
access_token?: SortOrderInput | SortOrder
|
|
expires_at?: SortOrderInput | SortOrder
|
|
token_type?: SortOrderInput | SortOrder
|
|
scope?: SortOrderInput | SortOrder
|
|
id_token?: SortOrderInput | SortOrder
|
|
session_state?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type AccountWhereUniqueInput = Prisma.AtLeast<{
|
|
provider_providerAccountId?: AccountProviderProviderAccountIdCompoundUniqueInput
|
|
AND?: AccountWhereInput | AccountWhereInput[]
|
|
OR?: AccountWhereInput[]
|
|
NOT?: AccountWhereInput | AccountWhereInput[]
|
|
userId?: StringFilter<"Account"> | string
|
|
type?: StringFilter<"Account"> | string
|
|
provider?: StringFilter<"Account"> | string
|
|
providerAccountId?: StringFilter<"Account"> | string
|
|
refresh_token?: StringNullableFilter<"Account"> | string | null
|
|
access_token?: StringNullableFilter<"Account"> | string | null
|
|
expires_at?: IntNullableFilter<"Account"> | number | null
|
|
token_type?: StringNullableFilter<"Account"> | string | null
|
|
scope?: StringNullableFilter<"Account"> | string | null
|
|
id_token?: StringNullableFilter<"Account"> | string | null
|
|
session_state?: StringNullableFilter<"Account"> | string | null
|
|
createdAt?: DateTimeFilter<"Account"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Account"> | Date | string
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
}, "provider_providerAccountId">
|
|
|
|
export type AccountOrderByWithAggregationInput = {
|
|
userId?: SortOrder
|
|
type?: SortOrder
|
|
provider?: SortOrder
|
|
providerAccountId?: SortOrder
|
|
refresh_token?: SortOrderInput | SortOrder
|
|
access_token?: SortOrderInput | SortOrder
|
|
expires_at?: SortOrderInput | SortOrder
|
|
token_type?: SortOrderInput | SortOrder
|
|
scope?: SortOrderInput | SortOrder
|
|
id_token?: SortOrderInput | SortOrder
|
|
session_state?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: AccountCountOrderByAggregateInput
|
|
_avg?: AccountAvgOrderByAggregateInput
|
|
_max?: AccountMaxOrderByAggregateInput
|
|
_min?: AccountMinOrderByAggregateInput
|
|
_sum?: AccountSumOrderByAggregateInput
|
|
}
|
|
|
|
export type AccountScalarWhereWithAggregatesInput = {
|
|
AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
|
|
OR?: AccountScalarWhereWithAggregatesInput[]
|
|
NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
|
|
userId?: StringWithAggregatesFilter<"Account"> | string
|
|
type?: StringWithAggregatesFilter<"Account"> | string
|
|
provider?: StringWithAggregatesFilter<"Account"> | string
|
|
providerAccountId?: StringWithAggregatesFilter<"Account"> | string
|
|
refresh_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
|
|
access_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
|
|
expires_at?: IntNullableWithAggregatesFilter<"Account"> | number | null
|
|
token_type?: StringNullableWithAggregatesFilter<"Account"> | string | null
|
|
scope?: StringNullableWithAggregatesFilter<"Account"> | string | null
|
|
id_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
|
|
session_state?: StringNullableWithAggregatesFilter<"Account"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string
|
|
}
|
|
|
|
export type SessionWhereInput = {
|
|
AND?: SessionWhereInput | SessionWhereInput[]
|
|
OR?: SessionWhereInput[]
|
|
NOT?: SessionWhereInput | SessionWhereInput[]
|
|
sessionToken?: StringFilter<"Session"> | string
|
|
userId?: StringFilter<"Session"> | string
|
|
expires?: DateTimeFilter<"Session"> | Date | string
|
|
createdAt?: DateTimeFilter<"Session"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Session"> | Date | string
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
export type SessionOrderByWithRelationInput = {
|
|
sessionToken?: SortOrder
|
|
userId?: SortOrder
|
|
expires?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type SessionWhereUniqueInput = Prisma.AtLeast<{
|
|
sessionToken?: string
|
|
AND?: SessionWhereInput | SessionWhereInput[]
|
|
OR?: SessionWhereInput[]
|
|
NOT?: SessionWhereInput | SessionWhereInput[]
|
|
userId?: StringFilter<"Session"> | string
|
|
expires?: DateTimeFilter<"Session"> | Date | string
|
|
createdAt?: DateTimeFilter<"Session"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Session"> | Date | string
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
}, "sessionToken">
|
|
|
|
export type SessionOrderByWithAggregationInput = {
|
|
sessionToken?: SortOrder
|
|
userId?: SortOrder
|
|
expires?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: SessionCountOrderByAggregateInput
|
|
_max?: SessionMaxOrderByAggregateInput
|
|
_min?: SessionMinOrderByAggregateInput
|
|
}
|
|
|
|
export type SessionScalarWhereWithAggregatesInput = {
|
|
AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
|
|
OR?: SessionScalarWhereWithAggregatesInput[]
|
|
NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
|
|
sessionToken?: StringWithAggregatesFilter<"Session"> | string
|
|
userId?: StringWithAggregatesFilter<"Session"> | string
|
|
expires?: DateTimeWithAggregatesFilter<"Session"> | Date | string
|
|
createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
|
|
}
|
|
|
|
export type VerificationTokenWhereInput = {
|
|
AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
|
|
OR?: VerificationTokenWhereInput[]
|
|
NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
|
|
identifier?: StringFilter<"VerificationToken"> | string
|
|
token?: StringFilter<"VerificationToken"> | string
|
|
expires?: DateTimeFilter<"VerificationToken"> | Date | string
|
|
}
|
|
|
|
export type VerificationTokenOrderByWithRelationInput = {
|
|
identifier?: SortOrder
|
|
token?: SortOrder
|
|
expires?: SortOrder
|
|
}
|
|
|
|
export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{
|
|
identifier_token?: VerificationTokenIdentifierTokenCompoundUniqueInput
|
|
AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
|
|
OR?: VerificationTokenWhereInput[]
|
|
NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
|
|
identifier?: StringFilter<"VerificationToken"> | string
|
|
token?: StringFilter<"VerificationToken"> | string
|
|
expires?: DateTimeFilter<"VerificationToken"> | Date | string
|
|
}, "identifier_token">
|
|
|
|
export type VerificationTokenOrderByWithAggregationInput = {
|
|
identifier?: SortOrder
|
|
token?: SortOrder
|
|
expires?: SortOrder
|
|
_count?: VerificationTokenCountOrderByAggregateInput
|
|
_max?: VerificationTokenMaxOrderByAggregateInput
|
|
_min?: VerificationTokenMinOrderByAggregateInput
|
|
}
|
|
|
|
export type VerificationTokenScalarWhereWithAggregatesInput = {
|
|
AND?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
|
|
OR?: VerificationTokenScalarWhereWithAggregatesInput[]
|
|
NOT?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
|
|
identifier?: StringWithAggregatesFilter<"VerificationToken"> | string
|
|
token?: StringWithAggregatesFilter<"VerificationToken"> | string
|
|
expires?: DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string
|
|
}
|
|
|
|
export type NotebookWhereInput = {
|
|
AND?: NotebookWhereInput | NotebookWhereInput[]
|
|
OR?: NotebookWhereInput[]
|
|
NOT?: NotebookWhereInput | NotebookWhereInput[]
|
|
id?: StringFilter<"Notebook"> | string
|
|
name?: StringFilter<"Notebook"> | string
|
|
icon?: StringNullableFilter<"Notebook"> | string | null
|
|
color?: StringNullableFilter<"Notebook"> | string | null
|
|
order?: IntFilter<"Notebook"> | number
|
|
userId?: StringFilter<"Notebook"> | string
|
|
createdAt?: DateTimeFilter<"Notebook"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Notebook"> | Date | string
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
notes?: NoteListRelationFilter
|
|
labels?: LabelListRelationFilter
|
|
}
|
|
|
|
export type NotebookOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrderInput | SortOrder
|
|
color?: SortOrderInput | SortOrder
|
|
order?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
notes?: NoteOrderByRelationAggregateInput
|
|
labels?: LabelOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type NotebookWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: NotebookWhereInput | NotebookWhereInput[]
|
|
OR?: NotebookWhereInput[]
|
|
NOT?: NotebookWhereInput | NotebookWhereInput[]
|
|
name?: StringFilter<"Notebook"> | string
|
|
icon?: StringNullableFilter<"Notebook"> | string | null
|
|
color?: StringNullableFilter<"Notebook"> | string | null
|
|
order?: IntFilter<"Notebook"> | number
|
|
userId?: StringFilter<"Notebook"> | string
|
|
createdAt?: DateTimeFilter<"Notebook"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Notebook"> | Date | string
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
notes?: NoteListRelationFilter
|
|
labels?: LabelListRelationFilter
|
|
}, "id">
|
|
|
|
export type NotebookOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrderInput | SortOrder
|
|
color?: SortOrderInput | SortOrder
|
|
order?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: NotebookCountOrderByAggregateInput
|
|
_avg?: NotebookAvgOrderByAggregateInput
|
|
_max?: NotebookMaxOrderByAggregateInput
|
|
_min?: NotebookMinOrderByAggregateInput
|
|
_sum?: NotebookSumOrderByAggregateInput
|
|
}
|
|
|
|
export type NotebookScalarWhereWithAggregatesInput = {
|
|
AND?: NotebookScalarWhereWithAggregatesInput | NotebookScalarWhereWithAggregatesInput[]
|
|
OR?: NotebookScalarWhereWithAggregatesInput[]
|
|
NOT?: NotebookScalarWhereWithAggregatesInput | NotebookScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"Notebook"> | string
|
|
name?: StringWithAggregatesFilter<"Notebook"> | string
|
|
icon?: StringNullableWithAggregatesFilter<"Notebook"> | string | null
|
|
color?: StringNullableWithAggregatesFilter<"Notebook"> | string | null
|
|
order?: IntWithAggregatesFilter<"Notebook"> | number
|
|
userId?: StringWithAggregatesFilter<"Notebook"> | string
|
|
createdAt?: DateTimeWithAggregatesFilter<"Notebook"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Notebook"> | Date | string
|
|
}
|
|
|
|
export type LabelWhereInput = {
|
|
AND?: LabelWhereInput | LabelWhereInput[]
|
|
OR?: LabelWhereInput[]
|
|
NOT?: LabelWhereInput | LabelWhereInput[]
|
|
id?: StringFilter<"Label"> | string
|
|
name?: StringFilter<"Label"> | string
|
|
color?: StringFilter<"Label"> | string
|
|
notebookId?: StringNullableFilter<"Label"> | string | null
|
|
userId?: StringNullableFilter<"Label"> | string | null
|
|
createdAt?: DateTimeFilter<"Label"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Label"> | Date | string
|
|
notebook?: XOR<NotebookNullableRelationFilter, NotebookWhereInput> | null
|
|
notes?: NoteListRelationFilter
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
}
|
|
|
|
export type LabelOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
color?: SortOrder
|
|
notebookId?: SortOrderInput | SortOrder
|
|
userId?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
notebook?: NotebookOrderByWithRelationInput
|
|
notes?: NoteOrderByRelationAggregateInput
|
|
user?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type LabelWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
notebookId_name?: LabelNotebookIdNameCompoundUniqueInput
|
|
AND?: LabelWhereInput | LabelWhereInput[]
|
|
OR?: LabelWhereInput[]
|
|
NOT?: LabelWhereInput | LabelWhereInput[]
|
|
name?: StringFilter<"Label"> | string
|
|
color?: StringFilter<"Label"> | string
|
|
notebookId?: StringNullableFilter<"Label"> | string | null
|
|
userId?: StringNullableFilter<"Label"> | string | null
|
|
createdAt?: DateTimeFilter<"Label"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Label"> | Date | string
|
|
notebook?: XOR<NotebookNullableRelationFilter, NotebookWhereInput> | null
|
|
notes?: NoteListRelationFilter
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
}, "id" | "notebookId_name">
|
|
|
|
export type LabelOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
color?: SortOrder
|
|
notebookId?: SortOrderInput | SortOrder
|
|
userId?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: LabelCountOrderByAggregateInput
|
|
_max?: LabelMaxOrderByAggregateInput
|
|
_min?: LabelMinOrderByAggregateInput
|
|
}
|
|
|
|
export type LabelScalarWhereWithAggregatesInput = {
|
|
AND?: LabelScalarWhereWithAggregatesInput | LabelScalarWhereWithAggregatesInput[]
|
|
OR?: LabelScalarWhereWithAggregatesInput[]
|
|
NOT?: LabelScalarWhereWithAggregatesInput | LabelScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"Label"> | string
|
|
name?: StringWithAggregatesFilter<"Label"> | string
|
|
color?: StringWithAggregatesFilter<"Label"> | string
|
|
notebookId?: StringNullableWithAggregatesFilter<"Label"> | string | null
|
|
userId?: StringNullableWithAggregatesFilter<"Label"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"Label"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Label"> | Date | string
|
|
}
|
|
|
|
export type NoteWhereInput = {
|
|
AND?: NoteWhereInput | NoteWhereInput[]
|
|
OR?: NoteWhereInput[]
|
|
NOT?: NoteWhereInput | NoteWhereInput[]
|
|
id?: StringFilter<"Note"> | string
|
|
title?: StringNullableFilter<"Note"> | string | null
|
|
content?: StringFilter<"Note"> | string
|
|
color?: StringFilter<"Note"> | string
|
|
isPinned?: BoolFilter<"Note"> | boolean
|
|
isArchived?: BoolFilter<"Note"> | boolean
|
|
type?: StringFilter<"Note"> | string
|
|
checkItems?: StringNullableFilter<"Note"> | string | null
|
|
labels?: StringNullableFilter<"Note"> | string | null
|
|
images?: StringNullableFilter<"Note"> | string | null
|
|
links?: StringNullableFilter<"Note"> | string | null
|
|
reminder?: DateTimeNullableFilter<"Note"> | Date | string | null
|
|
isReminderDone?: BoolFilter<"Note"> | boolean
|
|
reminderRecurrence?: StringNullableFilter<"Note"> | string | null
|
|
reminderLocation?: StringNullableFilter<"Note"> | string | null
|
|
isMarkdown?: BoolFilter<"Note"> | boolean
|
|
size?: StringFilter<"Note"> | string
|
|
embedding?: StringNullableFilter<"Note"> | string | null
|
|
sharedWith?: StringNullableFilter<"Note"> | string | null
|
|
userId?: StringNullableFilter<"Note"> | string | null
|
|
order?: IntFilter<"Note"> | number
|
|
notebookId?: StringNullableFilter<"Note"> | string | null
|
|
createdAt?: DateTimeFilter<"Note"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Note"> | Date | string
|
|
autoGenerated?: BoolNullableFilter<"Note"> | boolean | null
|
|
aiProvider?: StringNullableFilter<"Note"> | string | null
|
|
aiConfidence?: IntNullableFilter<"Note"> | number | null
|
|
language?: StringNullableFilter<"Note"> | string | null
|
|
languageConfidence?: FloatNullableFilter<"Note"> | number | null
|
|
lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
shares?: NoteShareListRelationFilter
|
|
notebook?: XOR<NotebookNullableRelationFilter, NotebookWhereInput> | null
|
|
labelRelations?: LabelListRelationFilter
|
|
aiFeedback?: AiFeedbackListRelationFilter
|
|
memoryEchoAsNote1?: MemoryEchoInsightListRelationFilter
|
|
memoryEchoAsNote2?: MemoryEchoInsightListRelationFilter
|
|
}
|
|
|
|
export type NoteOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
title?: SortOrderInput | SortOrder
|
|
content?: SortOrder
|
|
color?: SortOrder
|
|
isPinned?: SortOrder
|
|
isArchived?: SortOrder
|
|
type?: SortOrder
|
|
checkItems?: SortOrderInput | SortOrder
|
|
labels?: SortOrderInput | SortOrder
|
|
images?: SortOrderInput | SortOrder
|
|
links?: SortOrderInput | SortOrder
|
|
reminder?: SortOrderInput | SortOrder
|
|
isReminderDone?: SortOrder
|
|
reminderRecurrence?: SortOrderInput | SortOrder
|
|
reminderLocation?: SortOrderInput | SortOrder
|
|
isMarkdown?: SortOrder
|
|
size?: SortOrder
|
|
embedding?: SortOrderInput | SortOrder
|
|
sharedWith?: SortOrderInput | SortOrder
|
|
userId?: SortOrderInput | SortOrder
|
|
order?: SortOrder
|
|
notebookId?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
autoGenerated?: SortOrderInput | SortOrder
|
|
aiProvider?: SortOrderInput | SortOrder
|
|
aiConfidence?: SortOrderInput | SortOrder
|
|
language?: SortOrderInput | SortOrder
|
|
languageConfidence?: SortOrderInput | SortOrder
|
|
lastAiAnalysis?: SortOrderInput | SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
shares?: NoteShareOrderByRelationAggregateInput
|
|
notebook?: NotebookOrderByWithRelationInput
|
|
labelRelations?: LabelOrderByRelationAggregateInput
|
|
aiFeedback?: AiFeedbackOrderByRelationAggregateInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightOrderByRelationAggregateInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type NoteWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: NoteWhereInput | NoteWhereInput[]
|
|
OR?: NoteWhereInput[]
|
|
NOT?: NoteWhereInput | NoteWhereInput[]
|
|
title?: StringNullableFilter<"Note"> | string | null
|
|
content?: StringFilter<"Note"> | string
|
|
color?: StringFilter<"Note"> | string
|
|
isPinned?: BoolFilter<"Note"> | boolean
|
|
isArchived?: BoolFilter<"Note"> | boolean
|
|
type?: StringFilter<"Note"> | string
|
|
checkItems?: StringNullableFilter<"Note"> | string | null
|
|
labels?: StringNullableFilter<"Note"> | string | null
|
|
images?: StringNullableFilter<"Note"> | string | null
|
|
links?: StringNullableFilter<"Note"> | string | null
|
|
reminder?: DateTimeNullableFilter<"Note"> | Date | string | null
|
|
isReminderDone?: BoolFilter<"Note"> | boolean
|
|
reminderRecurrence?: StringNullableFilter<"Note"> | string | null
|
|
reminderLocation?: StringNullableFilter<"Note"> | string | null
|
|
isMarkdown?: BoolFilter<"Note"> | boolean
|
|
size?: StringFilter<"Note"> | string
|
|
embedding?: StringNullableFilter<"Note"> | string | null
|
|
sharedWith?: StringNullableFilter<"Note"> | string | null
|
|
userId?: StringNullableFilter<"Note"> | string | null
|
|
order?: IntFilter<"Note"> | number
|
|
notebookId?: StringNullableFilter<"Note"> | string | null
|
|
createdAt?: DateTimeFilter<"Note"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Note"> | Date | string
|
|
autoGenerated?: BoolNullableFilter<"Note"> | boolean | null
|
|
aiProvider?: StringNullableFilter<"Note"> | string | null
|
|
aiConfidence?: IntNullableFilter<"Note"> | number | null
|
|
language?: StringNullableFilter<"Note"> | string | null
|
|
languageConfidence?: FloatNullableFilter<"Note"> | number | null
|
|
lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
shares?: NoteShareListRelationFilter
|
|
notebook?: XOR<NotebookNullableRelationFilter, NotebookWhereInput> | null
|
|
labelRelations?: LabelListRelationFilter
|
|
aiFeedback?: AiFeedbackListRelationFilter
|
|
memoryEchoAsNote1?: MemoryEchoInsightListRelationFilter
|
|
memoryEchoAsNote2?: MemoryEchoInsightListRelationFilter
|
|
}, "id">
|
|
|
|
export type NoteOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
title?: SortOrderInput | SortOrder
|
|
content?: SortOrder
|
|
color?: SortOrder
|
|
isPinned?: SortOrder
|
|
isArchived?: SortOrder
|
|
type?: SortOrder
|
|
checkItems?: SortOrderInput | SortOrder
|
|
labels?: SortOrderInput | SortOrder
|
|
images?: SortOrderInput | SortOrder
|
|
links?: SortOrderInput | SortOrder
|
|
reminder?: SortOrderInput | SortOrder
|
|
isReminderDone?: SortOrder
|
|
reminderRecurrence?: SortOrderInput | SortOrder
|
|
reminderLocation?: SortOrderInput | SortOrder
|
|
isMarkdown?: SortOrder
|
|
size?: SortOrder
|
|
embedding?: SortOrderInput | SortOrder
|
|
sharedWith?: SortOrderInput | SortOrder
|
|
userId?: SortOrderInput | SortOrder
|
|
order?: SortOrder
|
|
notebookId?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
autoGenerated?: SortOrderInput | SortOrder
|
|
aiProvider?: SortOrderInput | SortOrder
|
|
aiConfidence?: SortOrderInput | SortOrder
|
|
language?: SortOrderInput | SortOrder
|
|
languageConfidence?: SortOrderInput | SortOrder
|
|
lastAiAnalysis?: SortOrderInput | SortOrder
|
|
_count?: NoteCountOrderByAggregateInput
|
|
_avg?: NoteAvgOrderByAggregateInput
|
|
_max?: NoteMaxOrderByAggregateInput
|
|
_min?: NoteMinOrderByAggregateInput
|
|
_sum?: NoteSumOrderByAggregateInput
|
|
}
|
|
|
|
export type NoteScalarWhereWithAggregatesInput = {
|
|
AND?: NoteScalarWhereWithAggregatesInput | NoteScalarWhereWithAggregatesInput[]
|
|
OR?: NoteScalarWhereWithAggregatesInput[]
|
|
NOT?: NoteScalarWhereWithAggregatesInput | NoteScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"Note"> | string
|
|
title?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
content?: StringWithAggregatesFilter<"Note"> | string
|
|
color?: StringWithAggregatesFilter<"Note"> | string
|
|
isPinned?: BoolWithAggregatesFilter<"Note"> | boolean
|
|
isArchived?: BoolWithAggregatesFilter<"Note"> | boolean
|
|
type?: StringWithAggregatesFilter<"Note"> | string
|
|
checkItems?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
labels?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
images?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
links?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
reminder?: DateTimeNullableWithAggregatesFilter<"Note"> | Date | string | null
|
|
isReminderDone?: BoolWithAggregatesFilter<"Note"> | boolean
|
|
reminderRecurrence?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
reminderLocation?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
isMarkdown?: BoolWithAggregatesFilter<"Note"> | boolean
|
|
size?: StringWithAggregatesFilter<"Note"> | string
|
|
embedding?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
sharedWith?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
userId?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
order?: IntWithAggregatesFilter<"Note"> | number
|
|
notebookId?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"Note"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"Note"> | Date | string
|
|
autoGenerated?: BoolNullableWithAggregatesFilter<"Note"> | boolean | null
|
|
aiProvider?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
aiConfidence?: IntNullableWithAggregatesFilter<"Note"> | number | null
|
|
language?: StringNullableWithAggregatesFilter<"Note"> | string | null
|
|
languageConfidence?: FloatNullableWithAggregatesFilter<"Note"> | number | null
|
|
lastAiAnalysis?: DateTimeNullableWithAggregatesFilter<"Note"> | Date | string | null
|
|
}
|
|
|
|
export type NoteShareWhereInput = {
|
|
AND?: NoteShareWhereInput | NoteShareWhereInput[]
|
|
OR?: NoteShareWhereInput[]
|
|
NOT?: NoteShareWhereInput | NoteShareWhereInput[]
|
|
id?: StringFilter<"NoteShare"> | string
|
|
noteId?: StringFilter<"NoteShare"> | string
|
|
userId?: StringFilter<"NoteShare"> | string
|
|
sharedBy?: StringFilter<"NoteShare"> | string
|
|
status?: StringFilter<"NoteShare"> | string
|
|
permission?: StringFilter<"NoteShare"> | string
|
|
notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
|
|
respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"NoteShare"> | Date | string
|
|
updatedAt?: DateTimeFilter<"NoteShare"> | Date | string
|
|
note?: XOR<NoteRelationFilter, NoteWhereInput>
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
sharer?: XOR<UserRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
export type NoteShareOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrder
|
|
sharedBy?: SortOrder
|
|
status?: SortOrder
|
|
permission?: SortOrder
|
|
notifiedAt?: SortOrderInput | SortOrder
|
|
respondedAt?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
note?: NoteOrderByWithRelationInput
|
|
user?: UserOrderByWithRelationInput
|
|
sharer?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type NoteShareWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
noteId_userId?: NoteShareNoteIdUserIdCompoundUniqueInput
|
|
AND?: NoteShareWhereInput | NoteShareWhereInput[]
|
|
OR?: NoteShareWhereInput[]
|
|
NOT?: NoteShareWhereInput | NoteShareWhereInput[]
|
|
noteId?: StringFilter<"NoteShare"> | string
|
|
userId?: StringFilter<"NoteShare"> | string
|
|
sharedBy?: StringFilter<"NoteShare"> | string
|
|
status?: StringFilter<"NoteShare"> | string
|
|
permission?: StringFilter<"NoteShare"> | string
|
|
notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
|
|
respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"NoteShare"> | Date | string
|
|
updatedAt?: DateTimeFilter<"NoteShare"> | Date | string
|
|
note?: XOR<NoteRelationFilter, NoteWhereInput>
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
sharer?: XOR<UserRelationFilter, UserWhereInput>
|
|
}, "id" | "noteId_userId">
|
|
|
|
export type NoteShareOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrder
|
|
sharedBy?: SortOrder
|
|
status?: SortOrder
|
|
permission?: SortOrder
|
|
notifiedAt?: SortOrderInput | SortOrder
|
|
respondedAt?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
_count?: NoteShareCountOrderByAggregateInput
|
|
_max?: NoteShareMaxOrderByAggregateInput
|
|
_min?: NoteShareMinOrderByAggregateInput
|
|
}
|
|
|
|
export type NoteShareScalarWhereWithAggregatesInput = {
|
|
AND?: NoteShareScalarWhereWithAggregatesInput | NoteShareScalarWhereWithAggregatesInput[]
|
|
OR?: NoteShareScalarWhereWithAggregatesInput[]
|
|
NOT?: NoteShareScalarWhereWithAggregatesInput | NoteShareScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"NoteShare"> | string
|
|
noteId?: StringWithAggregatesFilter<"NoteShare"> | string
|
|
userId?: StringWithAggregatesFilter<"NoteShare"> | string
|
|
sharedBy?: StringWithAggregatesFilter<"NoteShare"> | string
|
|
status?: StringWithAggregatesFilter<"NoteShare"> | string
|
|
permission?: StringWithAggregatesFilter<"NoteShare"> | string
|
|
notifiedAt?: DateTimeNullableWithAggregatesFilter<"NoteShare"> | Date | string | null
|
|
respondedAt?: DateTimeNullableWithAggregatesFilter<"NoteShare"> | Date | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"NoteShare"> | Date | string
|
|
updatedAt?: DateTimeWithAggregatesFilter<"NoteShare"> | Date | string
|
|
}
|
|
|
|
export type SystemConfigWhereInput = {
|
|
AND?: SystemConfigWhereInput | SystemConfigWhereInput[]
|
|
OR?: SystemConfigWhereInput[]
|
|
NOT?: SystemConfigWhereInput | SystemConfigWhereInput[]
|
|
key?: StringFilter<"SystemConfig"> | string
|
|
value?: StringFilter<"SystemConfig"> | string
|
|
}
|
|
|
|
export type SystemConfigOrderByWithRelationInput = {
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
}
|
|
|
|
export type SystemConfigWhereUniqueInput = Prisma.AtLeast<{
|
|
key?: string
|
|
AND?: SystemConfigWhereInput | SystemConfigWhereInput[]
|
|
OR?: SystemConfigWhereInput[]
|
|
NOT?: SystemConfigWhereInput | SystemConfigWhereInput[]
|
|
value?: StringFilter<"SystemConfig"> | string
|
|
}, "key">
|
|
|
|
export type SystemConfigOrderByWithAggregationInput = {
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
_count?: SystemConfigCountOrderByAggregateInput
|
|
_max?: SystemConfigMaxOrderByAggregateInput
|
|
_min?: SystemConfigMinOrderByAggregateInput
|
|
}
|
|
|
|
export type SystemConfigScalarWhereWithAggregatesInput = {
|
|
AND?: SystemConfigScalarWhereWithAggregatesInput | SystemConfigScalarWhereWithAggregatesInput[]
|
|
OR?: SystemConfigScalarWhereWithAggregatesInput[]
|
|
NOT?: SystemConfigScalarWhereWithAggregatesInput | SystemConfigScalarWhereWithAggregatesInput[]
|
|
key?: StringWithAggregatesFilter<"SystemConfig"> | string
|
|
value?: StringWithAggregatesFilter<"SystemConfig"> | string
|
|
}
|
|
|
|
export type AiFeedbackWhereInput = {
|
|
AND?: AiFeedbackWhereInput | AiFeedbackWhereInput[]
|
|
OR?: AiFeedbackWhereInput[]
|
|
NOT?: AiFeedbackWhereInput | AiFeedbackWhereInput[]
|
|
id?: StringFilter<"AiFeedback"> | string
|
|
noteId?: StringFilter<"AiFeedback"> | string
|
|
userId?: StringNullableFilter<"AiFeedback"> | string | null
|
|
feedbackType?: StringFilter<"AiFeedback"> | string
|
|
feature?: StringFilter<"AiFeedback"> | string
|
|
originalContent?: StringFilter<"AiFeedback"> | string
|
|
correctedContent?: StringNullableFilter<"AiFeedback"> | string | null
|
|
metadata?: StringNullableFilter<"AiFeedback"> | string | null
|
|
createdAt?: DateTimeFilter<"AiFeedback"> | Date | string
|
|
note?: XOR<NoteRelationFilter, NoteWhereInput>
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
}
|
|
|
|
export type AiFeedbackOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrderInput | SortOrder
|
|
feedbackType?: SortOrder
|
|
feature?: SortOrder
|
|
originalContent?: SortOrder
|
|
correctedContent?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
note?: NoteOrderByWithRelationInput
|
|
user?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type AiFeedbackWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: AiFeedbackWhereInput | AiFeedbackWhereInput[]
|
|
OR?: AiFeedbackWhereInput[]
|
|
NOT?: AiFeedbackWhereInput | AiFeedbackWhereInput[]
|
|
noteId?: StringFilter<"AiFeedback"> | string
|
|
userId?: StringNullableFilter<"AiFeedback"> | string | null
|
|
feedbackType?: StringFilter<"AiFeedback"> | string
|
|
feature?: StringFilter<"AiFeedback"> | string
|
|
originalContent?: StringFilter<"AiFeedback"> | string
|
|
correctedContent?: StringNullableFilter<"AiFeedback"> | string | null
|
|
metadata?: StringNullableFilter<"AiFeedback"> | string | null
|
|
createdAt?: DateTimeFilter<"AiFeedback"> | Date | string
|
|
note?: XOR<NoteRelationFilter, NoteWhereInput>
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
}, "id">
|
|
|
|
export type AiFeedbackOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrderInput | SortOrder
|
|
feedbackType?: SortOrder
|
|
feature?: SortOrder
|
|
originalContent?: SortOrder
|
|
correctedContent?: SortOrderInput | SortOrder
|
|
metadata?: SortOrderInput | SortOrder
|
|
createdAt?: SortOrder
|
|
_count?: AiFeedbackCountOrderByAggregateInput
|
|
_max?: AiFeedbackMaxOrderByAggregateInput
|
|
_min?: AiFeedbackMinOrderByAggregateInput
|
|
}
|
|
|
|
export type AiFeedbackScalarWhereWithAggregatesInput = {
|
|
AND?: AiFeedbackScalarWhereWithAggregatesInput | AiFeedbackScalarWhereWithAggregatesInput[]
|
|
OR?: AiFeedbackScalarWhereWithAggregatesInput[]
|
|
NOT?: AiFeedbackScalarWhereWithAggregatesInput | AiFeedbackScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"AiFeedback"> | string
|
|
noteId?: StringWithAggregatesFilter<"AiFeedback"> | string
|
|
userId?: StringNullableWithAggregatesFilter<"AiFeedback"> | string | null
|
|
feedbackType?: StringWithAggregatesFilter<"AiFeedback"> | string
|
|
feature?: StringWithAggregatesFilter<"AiFeedback"> | string
|
|
originalContent?: StringWithAggregatesFilter<"AiFeedback"> | string
|
|
correctedContent?: StringNullableWithAggregatesFilter<"AiFeedback"> | string | null
|
|
metadata?: StringNullableWithAggregatesFilter<"AiFeedback"> | string | null
|
|
createdAt?: DateTimeWithAggregatesFilter<"AiFeedback"> | Date | string
|
|
}
|
|
|
|
export type MemoryEchoInsightWhereInput = {
|
|
AND?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[]
|
|
OR?: MemoryEchoInsightWhereInput[]
|
|
NOT?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[]
|
|
id?: StringFilter<"MemoryEchoInsight"> | string
|
|
userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null
|
|
note1Id?: StringFilter<"MemoryEchoInsight"> | string
|
|
note2Id?: StringFilter<"MemoryEchoInsight"> | string
|
|
similarityScore?: FloatFilter<"MemoryEchoInsight"> | number
|
|
insight?: StringFilter<"MemoryEchoInsight"> | string
|
|
insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string
|
|
viewed?: BoolFilter<"MemoryEchoInsight"> | boolean
|
|
feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null
|
|
dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean
|
|
note1?: XOR<NoteRelationFilter, NoteWhereInput>
|
|
note2?: XOR<NoteRelationFilter, NoteWhereInput>
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
}
|
|
|
|
export type MemoryEchoInsightOrderByWithRelationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrderInput | SortOrder
|
|
note1Id?: SortOrder
|
|
note2Id?: SortOrder
|
|
similarityScore?: SortOrder
|
|
insight?: SortOrder
|
|
insightDate?: SortOrder
|
|
viewed?: SortOrder
|
|
feedback?: SortOrderInput | SortOrder
|
|
dismissed?: SortOrder
|
|
note1?: NoteOrderByWithRelationInput
|
|
note2?: NoteOrderByWithRelationInput
|
|
user?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type MemoryEchoInsightWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
userId_insightDate?: MemoryEchoInsightUserIdInsightDateCompoundUniqueInput
|
|
AND?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[]
|
|
OR?: MemoryEchoInsightWhereInput[]
|
|
NOT?: MemoryEchoInsightWhereInput | MemoryEchoInsightWhereInput[]
|
|
userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null
|
|
note1Id?: StringFilter<"MemoryEchoInsight"> | string
|
|
note2Id?: StringFilter<"MemoryEchoInsight"> | string
|
|
similarityScore?: FloatFilter<"MemoryEchoInsight"> | number
|
|
insight?: StringFilter<"MemoryEchoInsight"> | string
|
|
insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string
|
|
viewed?: BoolFilter<"MemoryEchoInsight"> | boolean
|
|
feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null
|
|
dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean
|
|
note1?: XOR<NoteRelationFilter, NoteWhereInput>
|
|
note2?: XOR<NoteRelationFilter, NoteWhereInput>
|
|
user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
|
|
}, "id" | "userId_insightDate">
|
|
|
|
export type MemoryEchoInsightOrderByWithAggregationInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrderInput | SortOrder
|
|
note1Id?: SortOrder
|
|
note2Id?: SortOrder
|
|
similarityScore?: SortOrder
|
|
insight?: SortOrder
|
|
insightDate?: SortOrder
|
|
viewed?: SortOrder
|
|
feedback?: SortOrderInput | SortOrder
|
|
dismissed?: SortOrder
|
|
_count?: MemoryEchoInsightCountOrderByAggregateInput
|
|
_avg?: MemoryEchoInsightAvgOrderByAggregateInput
|
|
_max?: MemoryEchoInsightMaxOrderByAggregateInput
|
|
_min?: MemoryEchoInsightMinOrderByAggregateInput
|
|
_sum?: MemoryEchoInsightSumOrderByAggregateInput
|
|
}
|
|
|
|
export type MemoryEchoInsightScalarWhereWithAggregatesInput = {
|
|
AND?: MemoryEchoInsightScalarWhereWithAggregatesInput | MemoryEchoInsightScalarWhereWithAggregatesInput[]
|
|
OR?: MemoryEchoInsightScalarWhereWithAggregatesInput[]
|
|
NOT?: MemoryEchoInsightScalarWhereWithAggregatesInput | MemoryEchoInsightScalarWhereWithAggregatesInput[]
|
|
id?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string
|
|
userId?: StringNullableWithAggregatesFilter<"MemoryEchoInsight"> | string | null
|
|
note1Id?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string
|
|
note2Id?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string
|
|
similarityScore?: FloatWithAggregatesFilter<"MemoryEchoInsight"> | number
|
|
insight?: StringWithAggregatesFilter<"MemoryEchoInsight"> | string
|
|
insightDate?: DateTimeWithAggregatesFilter<"MemoryEchoInsight"> | Date | string
|
|
viewed?: BoolWithAggregatesFilter<"MemoryEchoInsight"> | boolean
|
|
feedback?: StringNullableWithAggregatesFilter<"MemoryEchoInsight"> | string | null
|
|
dismissed?: BoolWithAggregatesFilter<"MemoryEchoInsight"> | boolean
|
|
}
|
|
|
|
export type UserAISettingsWhereInput = {
|
|
AND?: UserAISettingsWhereInput | UserAISettingsWhereInput[]
|
|
OR?: UserAISettingsWhereInput[]
|
|
NOT?: UserAISettingsWhereInput | UserAISettingsWhereInput[]
|
|
userId?: StringFilter<"UserAISettings"> | string
|
|
titleSuggestions?: BoolFilter<"UserAISettings"> | boolean
|
|
semanticSearch?: BoolFilter<"UserAISettings"> | boolean
|
|
paragraphRefactor?: BoolFilter<"UserAISettings"> | boolean
|
|
memoryEcho?: BoolFilter<"UserAISettings"> | boolean
|
|
memoryEchoFrequency?: StringFilter<"UserAISettings"> | string
|
|
aiProvider?: StringFilter<"UserAISettings"> | string
|
|
preferredLanguage?: StringFilter<"UserAISettings"> | string
|
|
fontSize?: StringFilter<"UserAISettings"> | string
|
|
demoMode?: BoolFilter<"UserAISettings"> | boolean
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
export type UserAISettingsOrderByWithRelationInput = {
|
|
userId?: SortOrder
|
|
titleSuggestions?: SortOrder
|
|
semanticSearch?: SortOrder
|
|
paragraphRefactor?: SortOrder
|
|
memoryEcho?: SortOrder
|
|
memoryEchoFrequency?: SortOrder
|
|
aiProvider?: SortOrder
|
|
preferredLanguage?: SortOrder
|
|
fontSize?: SortOrder
|
|
demoMode?: SortOrder
|
|
user?: UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type UserAISettingsWhereUniqueInput = Prisma.AtLeast<{
|
|
userId?: string
|
|
AND?: UserAISettingsWhereInput | UserAISettingsWhereInput[]
|
|
OR?: UserAISettingsWhereInput[]
|
|
NOT?: UserAISettingsWhereInput | UserAISettingsWhereInput[]
|
|
titleSuggestions?: BoolFilter<"UserAISettings"> | boolean
|
|
semanticSearch?: BoolFilter<"UserAISettings"> | boolean
|
|
paragraphRefactor?: BoolFilter<"UserAISettings"> | boolean
|
|
memoryEcho?: BoolFilter<"UserAISettings"> | boolean
|
|
memoryEchoFrequency?: StringFilter<"UserAISettings"> | string
|
|
aiProvider?: StringFilter<"UserAISettings"> | string
|
|
preferredLanguage?: StringFilter<"UserAISettings"> | string
|
|
fontSize?: StringFilter<"UserAISettings"> | string
|
|
demoMode?: BoolFilter<"UserAISettings"> | boolean
|
|
user?: XOR<UserRelationFilter, UserWhereInput>
|
|
}, "userId">
|
|
|
|
export type UserAISettingsOrderByWithAggregationInput = {
|
|
userId?: SortOrder
|
|
titleSuggestions?: SortOrder
|
|
semanticSearch?: SortOrder
|
|
paragraphRefactor?: SortOrder
|
|
memoryEcho?: SortOrder
|
|
memoryEchoFrequency?: SortOrder
|
|
aiProvider?: SortOrder
|
|
preferredLanguage?: SortOrder
|
|
fontSize?: SortOrder
|
|
demoMode?: SortOrder
|
|
_count?: UserAISettingsCountOrderByAggregateInput
|
|
_max?: UserAISettingsMaxOrderByAggregateInput
|
|
_min?: UserAISettingsMinOrderByAggregateInput
|
|
}
|
|
|
|
export type UserAISettingsScalarWhereWithAggregatesInput = {
|
|
AND?: UserAISettingsScalarWhereWithAggregatesInput | UserAISettingsScalarWhereWithAggregatesInput[]
|
|
OR?: UserAISettingsScalarWhereWithAggregatesInput[]
|
|
NOT?: UserAISettingsScalarWhereWithAggregatesInput | UserAISettingsScalarWhereWithAggregatesInput[]
|
|
userId?: StringWithAggregatesFilter<"UserAISettings"> | string
|
|
titleSuggestions?: BoolWithAggregatesFilter<"UserAISettings"> | boolean
|
|
semanticSearch?: BoolWithAggregatesFilter<"UserAISettings"> | boolean
|
|
paragraphRefactor?: BoolWithAggregatesFilter<"UserAISettings"> | boolean
|
|
memoryEcho?: BoolWithAggregatesFilter<"UserAISettings"> | boolean
|
|
memoryEchoFrequency?: StringWithAggregatesFilter<"UserAISettings"> | string
|
|
aiProvider?: StringWithAggregatesFilter<"UserAISettings"> | string
|
|
preferredLanguage?: StringWithAggregatesFilter<"UserAISettings"> | string
|
|
fontSize?: StringWithAggregatesFilter<"UserAISettings"> | string
|
|
demoMode?: BoolWithAggregatesFilter<"UserAISettings"> | boolean
|
|
}
|
|
|
|
export type UserCreateInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateManyInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type UserUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type UserUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AccountCreateInput = {
|
|
type: string
|
|
provider: string
|
|
providerAccountId: string
|
|
refresh_token?: string | null
|
|
access_token?: string | null
|
|
expires_at?: number | null
|
|
token_type?: string | null
|
|
scope?: string | null
|
|
id_token?: string | null
|
|
session_state?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: UserCreateNestedOneWithoutAccountsInput
|
|
}
|
|
|
|
export type AccountUncheckedCreateInput = {
|
|
userId: string
|
|
type: string
|
|
provider: string
|
|
providerAccountId: string
|
|
refresh_token?: string | null
|
|
access_token?: string | null
|
|
expires_at?: number | null
|
|
token_type?: string | null
|
|
scope?: string | null
|
|
id_token?: string | null
|
|
session_state?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AccountUpdateInput = {
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
provider?: StringFieldUpdateOperationsInput | string
|
|
providerAccountId?: StringFieldUpdateOperationsInput | string
|
|
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
access_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
|
|
token_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
scope?: NullableStringFieldUpdateOperationsInput | string | null
|
|
id_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
session_state?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutAccountsNestedInput
|
|
}
|
|
|
|
export type AccountUncheckedUpdateInput = {
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
provider?: StringFieldUpdateOperationsInput | string
|
|
providerAccountId?: StringFieldUpdateOperationsInput | string
|
|
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
access_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
|
|
token_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
scope?: NullableStringFieldUpdateOperationsInput | string | null
|
|
id_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
session_state?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AccountCreateManyInput = {
|
|
userId: string
|
|
type: string
|
|
provider: string
|
|
providerAccountId: string
|
|
refresh_token?: string | null
|
|
access_token?: string | null
|
|
expires_at?: number | null
|
|
token_type?: string | null
|
|
scope?: string | null
|
|
id_token?: string | null
|
|
session_state?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AccountUpdateManyMutationInput = {
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
provider?: StringFieldUpdateOperationsInput | string
|
|
providerAccountId?: StringFieldUpdateOperationsInput | string
|
|
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
access_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
|
|
token_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
scope?: NullableStringFieldUpdateOperationsInput | string | null
|
|
id_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
session_state?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AccountUncheckedUpdateManyInput = {
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
provider?: StringFieldUpdateOperationsInput | string
|
|
providerAccountId?: StringFieldUpdateOperationsInput | string
|
|
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
access_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
|
|
token_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
scope?: NullableStringFieldUpdateOperationsInput | string | null
|
|
id_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
session_state?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionCreateInput = {
|
|
sessionToken: string
|
|
expires: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: UserCreateNestedOneWithoutSessionsInput
|
|
}
|
|
|
|
export type SessionUncheckedCreateInput = {
|
|
sessionToken: string
|
|
userId: string
|
|
expires: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SessionUpdateInput = {
|
|
sessionToken?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutSessionsNestedInput
|
|
}
|
|
|
|
export type SessionUncheckedUpdateInput = {
|
|
sessionToken?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionCreateManyInput = {
|
|
sessionToken: string
|
|
userId: string
|
|
expires: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SessionUpdateManyMutationInput = {
|
|
sessionToken?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionUncheckedUpdateManyInput = {
|
|
sessionToken?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type VerificationTokenCreateInput = {
|
|
identifier: string
|
|
token: string
|
|
expires: Date | string
|
|
}
|
|
|
|
export type VerificationTokenUncheckedCreateInput = {
|
|
identifier: string
|
|
token: string
|
|
expires: Date | string
|
|
}
|
|
|
|
export type VerificationTokenUpdateInput = {
|
|
identifier?: StringFieldUpdateOperationsInput | string
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type VerificationTokenUncheckedUpdateInput = {
|
|
identifier?: StringFieldUpdateOperationsInput | string
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type VerificationTokenCreateManyInput = {
|
|
identifier: string
|
|
token: string
|
|
expires: Date | string
|
|
}
|
|
|
|
export type VerificationTokenUpdateManyMutationInput = {
|
|
identifier?: StringFieldUpdateOperationsInput | string
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type VerificationTokenUncheckedUpdateManyInput = {
|
|
identifier?: StringFieldUpdateOperationsInput | string
|
|
token?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NotebookCreateInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: UserCreateNestedOneWithoutNotebooksInput
|
|
notes?: NoteCreateNestedManyWithoutNotebookInput
|
|
labels?: LabelCreateNestedManyWithoutNotebookInput
|
|
}
|
|
|
|
export type NotebookUncheckedCreateInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
userId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput
|
|
}
|
|
|
|
export type NotebookUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutNotebooksNestedInput
|
|
notes?: NoteUpdateManyWithoutNotebookNestedInput
|
|
labels?: LabelUpdateManyWithoutNotebookNestedInput
|
|
}
|
|
|
|
export type NotebookUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput
|
|
}
|
|
|
|
export type NotebookCreateManyInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
userId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NotebookUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NotebookUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type LabelCreateInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notebook?: NotebookCreateNestedOneWithoutLabelsInput
|
|
notes?: NoteCreateNestedManyWithoutLabelRelationsInput
|
|
user?: UserCreateNestedOneWithoutLabelsInput
|
|
}
|
|
|
|
export type LabelUncheckedCreateInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
notebookId?: string | null
|
|
userId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput
|
|
}
|
|
|
|
export type LabelUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notebook?: NotebookUpdateOneWithoutLabelsNestedInput
|
|
notes?: NoteUpdateManyWithoutLabelRelationsNestedInput
|
|
user?: UserUpdateOneWithoutLabelsNestedInput
|
|
}
|
|
|
|
export type LabelUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput
|
|
}
|
|
|
|
export type LabelCreateManyInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
notebookId?: string | null
|
|
userId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type LabelUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type LabelUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteCreateInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
user?: UserCreateNestedOneWithoutNotesInput
|
|
shares?: NoteShareCreateNestedManyWithoutNoteInput
|
|
notebook?: NotebookCreateNestedOneWithoutNotesInput
|
|
labelRelations?: LabelCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteUncheckedCreateInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
userId?: string | null
|
|
order?: number
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput
|
|
labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
user?: UserUpdateOneWithoutNotesNestedInput
|
|
shares?: NoteShareUpdateManyWithoutNoteNestedInput
|
|
notebook?: NotebookUpdateOneWithoutNotesNestedInput
|
|
labelRelations?: LabelUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput
|
|
labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteCreateManyInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
userId?: string | null
|
|
order?: number
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
}
|
|
|
|
export type NoteUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type NoteUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type NoteShareCreateInput = {
|
|
id?: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
note: NoteCreateNestedOneWithoutSharesInput
|
|
user: UserCreateNestedOneWithoutReceivedSharesInput
|
|
sharer: UserCreateNestedOneWithoutSentSharesInput
|
|
}
|
|
|
|
export type NoteShareUncheckedCreateInput = {
|
|
id?: string
|
|
noteId: string
|
|
userId: string
|
|
sharedBy: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoteShareUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
note?: NoteUpdateOneRequiredWithoutSharesNestedInput
|
|
user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput
|
|
sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
sharedBy?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteShareCreateManyInput = {
|
|
id?: string
|
|
noteId: string
|
|
userId: string
|
|
sharedBy: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoteShareUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
sharedBy?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SystemConfigCreateInput = {
|
|
key: string
|
|
value: string
|
|
}
|
|
|
|
export type SystemConfigUncheckedCreateInput = {
|
|
key: string
|
|
value: string
|
|
}
|
|
|
|
export type SystemConfigUpdateInput = {
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
value?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SystemConfigUncheckedUpdateInput = {
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
value?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SystemConfigCreateManyInput = {
|
|
key: string
|
|
value: string
|
|
}
|
|
|
|
export type SystemConfigUpdateManyMutationInput = {
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
value?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SystemConfigUncheckedUpdateManyInput = {
|
|
key?: StringFieldUpdateOperationsInput | string
|
|
value?: StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AiFeedbackCreateInput = {
|
|
id?: string
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent?: string | null
|
|
metadata?: string | null
|
|
createdAt?: Date | string
|
|
note: NoteCreateNestedOneWithoutAiFeedbackInput
|
|
user?: UserCreateNestedOneWithoutAiFeedbackInput
|
|
}
|
|
|
|
export type AiFeedbackUncheckedCreateInput = {
|
|
id?: string
|
|
noteId: string
|
|
userId?: string | null
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent?: string | null
|
|
metadata?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type AiFeedbackUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
note?: NoteUpdateOneRequiredWithoutAiFeedbackNestedInput
|
|
user?: UserUpdateOneWithoutAiFeedbackNestedInput
|
|
}
|
|
|
|
export type AiFeedbackUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AiFeedbackCreateManyInput = {
|
|
id?: string
|
|
noteId: string
|
|
userId?: string | null
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent?: string | null
|
|
metadata?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type AiFeedbackUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AiFeedbackUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateInput = {
|
|
id?: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input
|
|
note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input
|
|
user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedCreateInput = {
|
|
id?: string
|
|
userId?: string | null
|
|
note1Id: string
|
|
note2Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput
|
|
note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput
|
|
user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
note1Id?: StringFieldUpdateOperationsInput | string
|
|
note2Id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateManyInput = {
|
|
id?: string
|
|
userId?: string | null
|
|
note1Id: string
|
|
note2Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateManyMutationInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateManyInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
note1Id?: StringFieldUpdateOperationsInput | string
|
|
note2Id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type UserAISettingsCreateInput = {
|
|
titleSuggestions?: boolean
|
|
semanticSearch?: boolean
|
|
paragraphRefactor?: boolean
|
|
memoryEcho?: boolean
|
|
memoryEchoFrequency?: string
|
|
aiProvider?: string
|
|
preferredLanguage?: string
|
|
fontSize?: string
|
|
demoMode?: boolean
|
|
user: UserCreateNestedOneWithoutAiSettingsInput
|
|
}
|
|
|
|
export type UserAISettingsUncheckedCreateInput = {
|
|
userId: string
|
|
titleSuggestions?: boolean
|
|
semanticSearch?: boolean
|
|
paragraphRefactor?: boolean
|
|
memoryEcho?: boolean
|
|
memoryEchoFrequency?: string
|
|
aiProvider?: string
|
|
preferredLanguage?: string
|
|
fontSize?: string
|
|
demoMode?: boolean
|
|
}
|
|
|
|
export type UserAISettingsUpdateInput = {
|
|
titleSuggestions?: BoolFieldUpdateOperationsInput | boolean
|
|
semanticSearch?: BoolFieldUpdateOperationsInput | boolean
|
|
paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEcho?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEchoFrequency?: StringFieldUpdateOperationsInput | string
|
|
aiProvider?: StringFieldUpdateOperationsInput | string
|
|
preferredLanguage?: StringFieldUpdateOperationsInput | string
|
|
fontSize?: StringFieldUpdateOperationsInput | string
|
|
demoMode?: BoolFieldUpdateOperationsInput | boolean
|
|
user?: UserUpdateOneRequiredWithoutAiSettingsNestedInput
|
|
}
|
|
|
|
export type UserAISettingsUncheckedUpdateInput = {
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
titleSuggestions?: BoolFieldUpdateOperationsInput | boolean
|
|
semanticSearch?: BoolFieldUpdateOperationsInput | boolean
|
|
paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEcho?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEchoFrequency?: StringFieldUpdateOperationsInput | string
|
|
aiProvider?: StringFieldUpdateOperationsInput | string
|
|
preferredLanguage?: StringFieldUpdateOperationsInput | string
|
|
fontSize?: StringFieldUpdateOperationsInput | string
|
|
demoMode?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type UserAISettingsCreateManyInput = {
|
|
userId: string
|
|
titleSuggestions?: boolean
|
|
semanticSearch?: boolean
|
|
paragraphRefactor?: boolean
|
|
memoryEcho?: boolean
|
|
memoryEchoFrequency?: string
|
|
aiProvider?: string
|
|
preferredLanguage?: string
|
|
fontSize?: string
|
|
demoMode?: boolean
|
|
}
|
|
|
|
export type UserAISettingsUpdateManyMutationInput = {
|
|
titleSuggestions?: BoolFieldUpdateOperationsInput | boolean
|
|
semanticSearch?: BoolFieldUpdateOperationsInput | boolean
|
|
paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEcho?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEchoFrequency?: StringFieldUpdateOperationsInput | string
|
|
aiProvider?: StringFieldUpdateOperationsInput | string
|
|
preferredLanguage?: StringFieldUpdateOperationsInput | string
|
|
fontSize?: StringFieldUpdateOperationsInput | string
|
|
demoMode?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type UserAISettingsUncheckedUpdateManyInput = {
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
titleSuggestions?: BoolFieldUpdateOperationsInput | boolean
|
|
semanticSearch?: BoolFieldUpdateOperationsInput | boolean
|
|
paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEcho?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEchoFrequency?: StringFieldUpdateOperationsInput | string
|
|
aiProvider?: StringFieldUpdateOperationsInput | string
|
|
preferredLanguage?: StringFieldUpdateOperationsInput | string
|
|
fontSize?: StringFieldUpdateOperationsInput | string
|
|
demoMode?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type StringFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
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 StringNullableFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | 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 DateTimeNullableFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
|
}
|
|
|
|
export type DateTimeFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
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 AccountListRelationFilter = {
|
|
every?: AccountWhereInput
|
|
some?: AccountWhereInput
|
|
none?: AccountWhereInput
|
|
}
|
|
|
|
export type SessionListRelationFilter = {
|
|
every?: SessionWhereInput
|
|
some?: SessionWhereInput
|
|
none?: SessionWhereInput
|
|
}
|
|
|
|
export type NoteListRelationFilter = {
|
|
every?: NoteWhereInput
|
|
some?: NoteWhereInput
|
|
none?: NoteWhereInput
|
|
}
|
|
|
|
export type LabelListRelationFilter = {
|
|
every?: LabelWhereInput
|
|
some?: LabelWhereInput
|
|
none?: LabelWhereInput
|
|
}
|
|
|
|
export type NotebookListRelationFilter = {
|
|
every?: NotebookWhereInput
|
|
some?: NotebookWhereInput
|
|
none?: NotebookWhereInput
|
|
}
|
|
|
|
export type NoteShareListRelationFilter = {
|
|
every?: NoteShareWhereInput
|
|
some?: NoteShareWhereInput
|
|
none?: NoteShareWhereInput
|
|
}
|
|
|
|
export type AiFeedbackListRelationFilter = {
|
|
every?: AiFeedbackWhereInput
|
|
some?: AiFeedbackWhereInput
|
|
none?: AiFeedbackWhereInput
|
|
}
|
|
|
|
export type UserAISettingsNullableRelationFilter = {
|
|
is?: UserAISettingsWhereInput | null
|
|
isNot?: UserAISettingsWhereInput | null
|
|
}
|
|
|
|
export type MemoryEchoInsightListRelationFilter = {
|
|
every?: MemoryEchoInsightWhereInput
|
|
some?: MemoryEchoInsightWhereInput
|
|
none?: MemoryEchoInsightWhereInput
|
|
}
|
|
|
|
export type SortOrderInput = {
|
|
sort: SortOrder
|
|
nulls?: NullsOrder
|
|
}
|
|
|
|
export type AccountOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type SessionOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type NoteOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type LabelOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type NotebookOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type NoteShareOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type AiFeedbackOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type MemoryEchoInsightOrderByRelationAggregateInput = {
|
|
_count?: SortOrder
|
|
}
|
|
|
|
export type UserCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
email?: SortOrder
|
|
emailVerified?: SortOrder
|
|
password?: SortOrder
|
|
role?: SortOrder
|
|
image?: SortOrder
|
|
theme?: SortOrder
|
|
resetToken?: SortOrder
|
|
resetTokenExpiry?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type UserMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
email?: SortOrder
|
|
emailVerified?: SortOrder
|
|
password?: SortOrder
|
|
role?: SortOrder
|
|
image?: SortOrder
|
|
theme?: SortOrder
|
|
resetToken?: SortOrder
|
|
resetTokenExpiry?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type UserMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
email?: SortOrder
|
|
emailVerified?: SortOrder
|
|
password?: SortOrder
|
|
role?: SortOrder
|
|
image?: SortOrder
|
|
theme?: SortOrder
|
|
resetToken?: SortOrder
|
|
resetTokenExpiry?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
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 StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel> | null
|
|
in?: string[] | null
|
|
notIn?: string[] | 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 DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
_max?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
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 IntNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type UserRelationFilter = {
|
|
is?: UserWhereInput
|
|
isNot?: UserWhereInput
|
|
}
|
|
|
|
export type AccountProviderProviderAccountIdCompoundUniqueInput = {
|
|
provider: string
|
|
providerAccountId: string
|
|
}
|
|
|
|
export type AccountCountOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
type?: SortOrder
|
|
provider?: SortOrder
|
|
providerAccountId?: SortOrder
|
|
refresh_token?: SortOrder
|
|
access_token?: SortOrder
|
|
expires_at?: SortOrder
|
|
token_type?: SortOrder
|
|
scope?: SortOrder
|
|
id_token?: SortOrder
|
|
session_state?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AccountAvgOrderByAggregateInput = {
|
|
expires_at?: SortOrder
|
|
}
|
|
|
|
export type AccountMaxOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
type?: SortOrder
|
|
provider?: SortOrder
|
|
providerAccountId?: SortOrder
|
|
refresh_token?: SortOrder
|
|
access_token?: SortOrder
|
|
expires_at?: SortOrder
|
|
token_type?: SortOrder
|
|
scope?: SortOrder
|
|
id_token?: SortOrder
|
|
session_state?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AccountMinOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
type?: SortOrder
|
|
provider?: SortOrder
|
|
providerAccountId?: SortOrder
|
|
refresh_token?: SortOrder
|
|
access_token?: SortOrder
|
|
expires_at?: SortOrder
|
|
token_type?: SortOrder
|
|
scope?: SortOrder
|
|
id_token?: SortOrder
|
|
session_state?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type AccountSumOrderByAggregateInput = {
|
|
expires_at?: SortOrder
|
|
}
|
|
|
|
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedIntNullableFilter<$PrismaModel>
|
|
_max?: NestedIntNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type SessionCountOrderByAggregateInput = {
|
|
sessionToken?: SortOrder
|
|
userId?: SortOrder
|
|
expires?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SessionMaxOrderByAggregateInput = {
|
|
sessionToken?: SortOrder
|
|
userId?: SortOrder
|
|
expires?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SessionMinOrderByAggregateInput = {
|
|
sessionToken?: SortOrder
|
|
userId?: SortOrder
|
|
expires?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type VerificationTokenIdentifierTokenCompoundUniqueInput = {
|
|
identifier: string
|
|
token: string
|
|
}
|
|
|
|
export type VerificationTokenCountOrderByAggregateInput = {
|
|
identifier?: SortOrder
|
|
token?: SortOrder
|
|
expires?: SortOrder
|
|
}
|
|
|
|
export type VerificationTokenMaxOrderByAggregateInput = {
|
|
identifier?: SortOrder
|
|
token?: SortOrder
|
|
expires?: SortOrder
|
|
}
|
|
|
|
export type VerificationTokenMinOrderByAggregateInput = {
|
|
identifier?: SortOrder
|
|
token?: SortOrder
|
|
expires?: SortOrder
|
|
}
|
|
|
|
export type IntFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type NotebookCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrder
|
|
color?: SortOrder
|
|
order?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type NotebookAvgOrderByAggregateInput = {
|
|
order?: SortOrder
|
|
}
|
|
|
|
export type NotebookMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrder
|
|
color?: SortOrder
|
|
order?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type NotebookMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
icon?: SortOrder
|
|
color?: SortOrder
|
|
order?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type NotebookSumOrderByAggregateInput = {
|
|
order?: SortOrder
|
|
}
|
|
|
|
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedIntFilter<$PrismaModel>
|
|
_max?: NestedIntFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NotebookNullableRelationFilter = {
|
|
is?: NotebookWhereInput | null
|
|
isNot?: NotebookWhereInput | null
|
|
}
|
|
|
|
export type UserNullableRelationFilter = {
|
|
is?: UserWhereInput | null
|
|
isNot?: UserWhereInput | null
|
|
}
|
|
|
|
export type LabelNotebookIdNameCompoundUniqueInput = {
|
|
notebookId: string
|
|
name: string
|
|
}
|
|
|
|
export type LabelCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
color?: SortOrder
|
|
notebookId?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type LabelMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
color?: SortOrder
|
|
notebookId?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type LabelMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
name?: SortOrder
|
|
color?: SortOrder
|
|
notebookId?: SortOrder
|
|
userId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type BoolFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
}
|
|
|
|
export type BoolNullableFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
|
}
|
|
|
|
export type FloatNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type NoteCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
title?: SortOrder
|
|
content?: SortOrder
|
|
color?: SortOrder
|
|
isPinned?: SortOrder
|
|
isArchived?: SortOrder
|
|
type?: SortOrder
|
|
checkItems?: SortOrder
|
|
labels?: SortOrder
|
|
images?: SortOrder
|
|
links?: SortOrder
|
|
reminder?: SortOrder
|
|
isReminderDone?: SortOrder
|
|
reminderRecurrence?: SortOrder
|
|
reminderLocation?: SortOrder
|
|
isMarkdown?: SortOrder
|
|
size?: SortOrder
|
|
embedding?: SortOrder
|
|
sharedWith?: SortOrder
|
|
userId?: SortOrder
|
|
order?: SortOrder
|
|
notebookId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
autoGenerated?: SortOrder
|
|
aiProvider?: SortOrder
|
|
aiConfidence?: SortOrder
|
|
language?: SortOrder
|
|
languageConfidence?: SortOrder
|
|
lastAiAnalysis?: SortOrder
|
|
}
|
|
|
|
export type NoteAvgOrderByAggregateInput = {
|
|
order?: SortOrder
|
|
aiConfidence?: SortOrder
|
|
languageConfidence?: SortOrder
|
|
}
|
|
|
|
export type NoteMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
title?: SortOrder
|
|
content?: SortOrder
|
|
color?: SortOrder
|
|
isPinned?: SortOrder
|
|
isArchived?: SortOrder
|
|
type?: SortOrder
|
|
checkItems?: SortOrder
|
|
labels?: SortOrder
|
|
images?: SortOrder
|
|
links?: SortOrder
|
|
reminder?: SortOrder
|
|
isReminderDone?: SortOrder
|
|
reminderRecurrence?: SortOrder
|
|
reminderLocation?: SortOrder
|
|
isMarkdown?: SortOrder
|
|
size?: SortOrder
|
|
embedding?: SortOrder
|
|
sharedWith?: SortOrder
|
|
userId?: SortOrder
|
|
order?: SortOrder
|
|
notebookId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
autoGenerated?: SortOrder
|
|
aiProvider?: SortOrder
|
|
aiConfidence?: SortOrder
|
|
language?: SortOrder
|
|
languageConfidence?: SortOrder
|
|
lastAiAnalysis?: SortOrder
|
|
}
|
|
|
|
export type NoteMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
title?: SortOrder
|
|
content?: SortOrder
|
|
color?: SortOrder
|
|
isPinned?: SortOrder
|
|
isArchived?: SortOrder
|
|
type?: SortOrder
|
|
checkItems?: SortOrder
|
|
labels?: SortOrder
|
|
images?: SortOrder
|
|
links?: SortOrder
|
|
reminder?: SortOrder
|
|
isReminderDone?: SortOrder
|
|
reminderRecurrence?: SortOrder
|
|
reminderLocation?: SortOrder
|
|
isMarkdown?: SortOrder
|
|
size?: SortOrder
|
|
embedding?: SortOrder
|
|
sharedWith?: SortOrder
|
|
userId?: SortOrder
|
|
order?: SortOrder
|
|
notebookId?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
autoGenerated?: SortOrder
|
|
aiProvider?: SortOrder
|
|
aiConfidence?: SortOrder
|
|
language?: SortOrder
|
|
languageConfidence?: SortOrder
|
|
lastAiAnalysis?: SortOrder
|
|
}
|
|
|
|
export type NoteSumOrderByAggregateInput = {
|
|
order?: SortOrder
|
|
aiConfidence?: SortOrder
|
|
languageConfidence?: 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 BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedBoolNullableFilter<$PrismaModel>
|
|
_max?: NestedBoolNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedFloatNullableFilter<$PrismaModel>
|
|
_min?: NestedFloatNullableFilter<$PrismaModel>
|
|
_max?: NestedFloatNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NoteRelationFilter = {
|
|
is?: NoteWhereInput
|
|
isNot?: NoteWhereInput
|
|
}
|
|
|
|
export type NoteShareNoteIdUserIdCompoundUniqueInput = {
|
|
noteId: string
|
|
userId: string
|
|
}
|
|
|
|
export type NoteShareCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrder
|
|
sharedBy?: SortOrder
|
|
status?: SortOrder
|
|
permission?: SortOrder
|
|
notifiedAt?: SortOrder
|
|
respondedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type NoteShareMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrder
|
|
sharedBy?: SortOrder
|
|
status?: SortOrder
|
|
permission?: SortOrder
|
|
notifiedAt?: SortOrder
|
|
respondedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type NoteShareMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrder
|
|
sharedBy?: SortOrder
|
|
status?: SortOrder
|
|
permission?: SortOrder
|
|
notifiedAt?: SortOrder
|
|
respondedAt?: SortOrder
|
|
createdAt?: SortOrder
|
|
updatedAt?: SortOrder
|
|
}
|
|
|
|
export type SystemConfigCountOrderByAggregateInput = {
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
}
|
|
|
|
export type SystemConfigMaxOrderByAggregateInput = {
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
}
|
|
|
|
export type SystemConfigMinOrderByAggregateInput = {
|
|
key?: SortOrder
|
|
value?: SortOrder
|
|
}
|
|
|
|
export type AiFeedbackCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrder
|
|
feedbackType?: SortOrder
|
|
feature?: SortOrder
|
|
originalContent?: SortOrder
|
|
correctedContent?: SortOrder
|
|
metadata?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type AiFeedbackMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrder
|
|
feedbackType?: SortOrder
|
|
feature?: SortOrder
|
|
originalContent?: SortOrder
|
|
correctedContent?: SortOrder
|
|
metadata?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type AiFeedbackMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
noteId?: SortOrder
|
|
userId?: SortOrder
|
|
feedbackType?: SortOrder
|
|
feature?: SortOrder
|
|
originalContent?: SortOrder
|
|
correctedContent?: SortOrder
|
|
metadata?: SortOrder
|
|
createdAt?: SortOrder
|
|
}
|
|
|
|
export type FloatFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type MemoryEchoInsightUserIdInsightDateCompoundUniqueInput = {
|
|
userId: string
|
|
insightDate: Date | string
|
|
}
|
|
|
|
export type MemoryEchoInsightCountOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
note1Id?: SortOrder
|
|
note2Id?: SortOrder
|
|
similarityScore?: SortOrder
|
|
insight?: SortOrder
|
|
insightDate?: SortOrder
|
|
viewed?: SortOrder
|
|
feedback?: SortOrder
|
|
dismissed?: SortOrder
|
|
}
|
|
|
|
export type MemoryEchoInsightAvgOrderByAggregateInput = {
|
|
similarityScore?: SortOrder
|
|
}
|
|
|
|
export type MemoryEchoInsightMaxOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
note1Id?: SortOrder
|
|
note2Id?: SortOrder
|
|
similarityScore?: SortOrder
|
|
insight?: SortOrder
|
|
insightDate?: SortOrder
|
|
viewed?: SortOrder
|
|
feedback?: SortOrder
|
|
dismissed?: SortOrder
|
|
}
|
|
|
|
export type MemoryEchoInsightMinOrderByAggregateInput = {
|
|
id?: SortOrder
|
|
userId?: SortOrder
|
|
note1Id?: SortOrder
|
|
note2Id?: SortOrder
|
|
similarityScore?: SortOrder
|
|
insight?: SortOrder
|
|
insightDate?: SortOrder
|
|
viewed?: SortOrder
|
|
feedback?: SortOrder
|
|
dismissed?: SortOrder
|
|
}
|
|
|
|
export type MemoryEchoInsightSumOrderByAggregateInput = {
|
|
similarityScore?: SortOrder
|
|
}
|
|
|
|
export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedFloatFilter<$PrismaModel>
|
|
_min?: NestedFloatFilter<$PrismaModel>
|
|
_max?: NestedFloatFilter<$PrismaModel>
|
|
}
|
|
|
|
export type UserAISettingsCountOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
titleSuggestions?: SortOrder
|
|
semanticSearch?: SortOrder
|
|
paragraphRefactor?: SortOrder
|
|
memoryEcho?: SortOrder
|
|
memoryEchoFrequency?: SortOrder
|
|
aiProvider?: SortOrder
|
|
preferredLanguage?: SortOrder
|
|
fontSize?: SortOrder
|
|
demoMode?: SortOrder
|
|
}
|
|
|
|
export type UserAISettingsMaxOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
titleSuggestions?: SortOrder
|
|
semanticSearch?: SortOrder
|
|
paragraphRefactor?: SortOrder
|
|
memoryEcho?: SortOrder
|
|
memoryEchoFrequency?: SortOrder
|
|
aiProvider?: SortOrder
|
|
preferredLanguage?: SortOrder
|
|
fontSize?: SortOrder
|
|
demoMode?: SortOrder
|
|
}
|
|
|
|
export type UserAISettingsMinOrderByAggregateInput = {
|
|
userId?: SortOrder
|
|
titleSuggestions?: SortOrder
|
|
semanticSearch?: SortOrder
|
|
paragraphRefactor?: SortOrder
|
|
memoryEcho?: SortOrder
|
|
memoryEchoFrequency?: SortOrder
|
|
aiProvider?: SortOrder
|
|
preferredLanguage?: SortOrder
|
|
fontSize?: SortOrder
|
|
demoMode?: SortOrder
|
|
}
|
|
|
|
export type AccountCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
|
|
createMany?: AccountCreateManyUserInputEnvelope
|
|
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
}
|
|
|
|
export type SessionCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type NoteCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput> | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[]
|
|
createMany?: NoteCreateManyUserInputEnvelope
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type LabelCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput> | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[]
|
|
createMany?: LabelCreateManyUserInputEnvelope
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
}
|
|
|
|
export type NotebookCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<NotebookCreateWithoutUserInput, NotebookUncheckedCreateWithoutUserInput> | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[]
|
|
createMany?: NotebookCreateManyUserInputEnvelope
|
|
connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
}
|
|
|
|
export type NoteShareCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput> | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[]
|
|
createMany?: NoteShareCreateManyUserInputEnvelope
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type NoteShareCreateNestedManyWithoutSharerInput = {
|
|
create?: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput> | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[]
|
|
createMany?: NoteShareCreateManySharerInputEnvelope
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type AiFeedbackCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<AiFeedbackCreateWithoutUserInput, AiFeedbackUncheckedCreateWithoutUserInput> | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[]
|
|
createMany?: AiFeedbackCreateManyUserInputEnvelope
|
|
connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserAISettingsCreateNestedOneWithoutUserInput = {
|
|
create?: XOR<UserAISettingsCreateWithoutUserInput, UserAISettingsUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: UserAISettingsCreateOrConnectWithoutUserInput
|
|
connect?: UserAISettingsWhereUniqueInput
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutUserInput, MemoryEchoInsightUncheckedCreateWithoutUserInput> | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[]
|
|
createMany?: MemoryEchoInsightCreateManyUserInputEnvelope
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
}
|
|
|
|
export type AccountUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
|
|
createMany?: AccountCreateManyUserInputEnvelope
|
|
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
}
|
|
|
|
export type SessionUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type NoteUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput> | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[]
|
|
createMany?: NoteCreateManyUserInputEnvelope
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type LabelUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput> | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[]
|
|
createMany?: LabelCreateManyUserInputEnvelope
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
}
|
|
|
|
export type NotebookUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<NotebookCreateWithoutUserInput, NotebookUncheckedCreateWithoutUserInput> | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[]
|
|
createMany?: NotebookCreateManyUserInputEnvelope
|
|
connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
}
|
|
|
|
export type NoteShareUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput> | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[]
|
|
createMany?: NoteShareCreateManyUserInputEnvelope
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type NoteShareUncheckedCreateNestedManyWithoutSharerInput = {
|
|
create?: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput> | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[]
|
|
createMany?: NoteShareCreateManySharerInputEnvelope
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type AiFeedbackUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<AiFeedbackCreateWithoutUserInput, AiFeedbackUncheckedCreateWithoutUserInput> | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[]
|
|
createMany?: AiFeedbackCreateManyUserInputEnvelope
|
|
connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserAISettingsUncheckedCreateNestedOneWithoutUserInput = {
|
|
create?: XOR<UserAISettingsCreateWithoutUserInput, UserAISettingsUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: UserAISettingsCreateOrConnectWithoutUserInput
|
|
connect?: UserAISettingsWhereUniqueInput
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutUserInput, MemoryEchoInsightUncheckedCreateWithoutUserInput> | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[]
|
|
createMany?: MemoryEchoInsightCreateManyUserInputEnvelope
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
}
|
|
|
|
export type StringFieldUpdateOperationsInput = {
|
|
set?: string
|
|
}
|
|
|
|
export type NullableStringFieldUpdateOperationsInput = {
|
|
set?: string | null
|
|
}
|
|
|
|
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string | null
|
|
}
|
|
|
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string
|
|
}
|
|
|
|
export type AccountUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
|
|
upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: AccountCreateManyUserInputEnvelope
|
|
set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
|
|
}
|
|
|
|
export type SessionUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
}
|
|
|
|
export type NoteUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput> | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[]
|
|
upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: NoteCreateManyUserInputEnvelope
|
|
set?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[]
|
|
}
|
|
|
|
export type LabelUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput> | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[]
|
|
upsert?: LabelUpsertWithWhereUniqueWithoutUserInput | LabelUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: LabelCreateManyUserInputEnvelope
|
|
set?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
update?: LabelUpdateWithWhereUniqueWithoutUserInput | LabelUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: LabelUpdateManyWithWhereWithoutUserInput | LabelUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[]
|
|
}
|
|
|
|
export type NotebookUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<NotebookCreateWithoutUserInput, NotebookUncheckedCreateWithoutUserInput> | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[]
|
|
upsert?: NotebookUpsertWithWhereUniqueWithoutUserInput | NotebookUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: NotebookCreateManyUserInputEnvelope
|
|
set?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
disconnect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
delete?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
update?: NotebookUpdateWithWhereUniqueWithoutUserInput | NotebookUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: NotebookUpdateManyWithWhereWithoutUserInput | NotebookUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: NotebookScalarWhereInput | NotebookScalarWhereInput[]
|
|
}
|
|
|
|
export type NoteShareUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput> | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[]
|
|
upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: NoteShareCreateManyUserInputEnvelope
|
|
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
|
|
}
|
|
|
|
export type NoteShareUpdateManyWithoutSharerNestedInput = {
|
|
create?: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput> | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[]
|
|
upsert?: NoteShareUpsertWithWhereUniqueWithoutSharerInput | NoteShareUpsertWithWhereUniqueWithoutSharerInput[]
|
|
createMany?: NoteShareCreateManySharerInputEnvelope
|
|
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
update?: NoteShareUpdateWithWhereUniqueWithoutSharerInput | NoteShareUpdateWithWhereUniqueWithoutSharerInput[]
|
|
updateMany?: NoteShareUpdateManyWithWhereWithoutSharerInput | NoteShareUpdateManyWithWhereWithoutSharerInput[]
|
|
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
|
|
}
|
|
|
|
export type AiFeedbackUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<AiFeedbackCreateWithoutUserInput, AiFeedbackUncheckedCreateWithoutUserInput> | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[]
|
|
upsert?: AiFeedbackUpsertWithWhereUniqueWithoutUserInput | AiFeedbackUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: AiFeedbackCreateManyUserInputEnvelope
|
|
set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
update?: AiFeedbackUpdateWithWhereUniqueWithoutUserInput | AiFeedbackUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: AiFeedbackUpdateManyWithWhereWithoutUserInput | AiFeedbackUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[]
|
|
}
|
|
|
|
export type UserAISettingsUpdateOneWithoutUserNestedInput = {
|
|
create?: XOR<UserAISettingsCreateWithoutUserInput, UserAISettingsUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: UserAISettingsCreateOrConnectWithoutUserInput
|
|
upsert?: UserAISettingsUpsertWithoutUserInput
|
|
disconnect?: UserAISettingsWhereInput | boolean
|
|
delete?: UserAISettingsWhereInput | boolean
|
|
connect?: UserAISettingsWhereUniqueInput
|
|
update?: XOR<XOR<UserAISettingsUpdateToOneWithWhereWithoutUserInput, UserAISettingsUpdateWithoutUserInput>, UserAISettingsUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutUserInput, MemoryEchoInsightUncheckedCreateWithoutUserInput> | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[]
|
|
upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: MemoryEchoInsightCreateManyUserInputEnvelope
|
|
set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutUserInput | MemoryEchoInsightUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[]
|
|
}
|
|
|
|
export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
|
|
upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: AccountCreateManyUserInputEnvelope
|
|
set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
|
|
update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
|
|
}
|
|
|
|
export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
|
|
upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: SessionCreateManyUserInputEnvelope
|
|
set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
|
|
update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
}
|
|
|
|
export type NoteUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput> | NoteCreateWithoutUserInput[] | NoteUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutUserInput | NoteCreateOrConnectWithoutUserInput[]
|
|
upsert?: NoteUpsertWithWhereUniqueWithoutUserInput | NoteUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: NoteCreateManyUserInputEnvelope
|
|
set?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
update?: NoteUpdateWithWhereUniqueWithoutUserInput | NoteUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: NoteUpdateManyWithWhereWithoutUserInput | NoteUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[]
|
|
}
|
|
|
|
export type LabelUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput> | LabelCreateWithoutUserInput[] | LabelUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutUserInput | LabelCreateOrConnectWithoutUserInput[]
|
|
upsert?: LabelUpsertWithWhereUniqueWithoutUserInput | LabelUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: LabelCreateManyUserInputEnvelope
|
|
set?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
update?: LabelUpdateWithWhereUniqueWithoutUserInput | LabelUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: LabelUpdateManyWithWhereWithoutUserInput | LabelUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[]
|
|
}
|
|
|
|
export type NotebookUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<NotebookCreateWithoutUserInput, NotebookUncheckedCreateWithoutUserInput> | NotebookCreateWithoutUserInput[] | NotebookUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NotebookCreateOrConnectWithoutUserInput | NotebookCreateOrConnectWithoutUserInput[]
|
|
upsert?: NotebookUpsertWithWhereUniqueWithoutUserInput | NotebookUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: NotebookCreateManyUserInputEnvelope
|
|
set?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
disconnect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
delete?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
connect?: NotebookWhereUniqueInput | NotebookWhereUniqueInput[]
|
|
update?: NotebookUpdateWithWhereUniqueWithoutUserInput | NotebookUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: NotebookUpdateManyWithWhereWithoutUserInput | NotebookUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: NotebookScalarWhereInput | NotebookScalarWhereInput[]
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput> | NoteShareCreateWithoutUserInput[] | NoteShareUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutUserInput | NoteShareCreateOrConnectWithoutUserInput[]
|
|
upsert?: NoteShareUpsertWithWhereUniqueWithoutUserInput | NoteShareUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: NoteShareCreateManyUserInputEnvelope
|
|
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
update?: NoteShareUpdateWithWhereUniqueWithoutUserInput | NoteShareUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: NoteShareUpdateManyWithWhereWithoutUserInput | NoteShareUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateManyWithoutSharerNestedInput = {
|
|
create?: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput> | NoteShareCreateWithoutSharerInput[] | NoteShareUncheckedCreateWithoutSharerInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutSharerInput | NoteShareCreateOrConnectWithoutSharerInput[]
|
|
upsert?: NoteShareUpsertWithWhereUniqueWithoutSharerInput | NoteShareUpsertWithWhereUniqueWithoutSharerInput[]
|
|
createMany?: NoteShareCreateManySharerInputEnvelope
|
|
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
update?: NoteShareUpdateWithWhereUniqueWithoutSharerInput | NoteShareUpdateWithWhereUniqueWithoutSharerInput[]
|
|
updateMany?: NoteShareUpdateManyWithWhereWithoutSharerInput | NoteShareUpdateManyWithWhereWithoutSharerInput[]
|
|
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
|
|
}
|
|
|
|
export type AiFeedbackUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<AiFeedbackCreateWithoutUserInput, AiFeedbackUncheckedCreateWithoutUserInput> | AiFeedbackCreateWithoutUserInput[] | AiFeedbackUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: AiFeedbackCreateOrConnectWithoutUserInput | AiFeedbackCreateOrConnectWithoutUserInput[]
|
|
upsert?: AiFeedbackUpsertWithWhereUniqueWithoutUserInput | AiFeedbackUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: AiFeedbackCreateManyUserInputEnvelope
|
|
set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
update?: AiFeedbackUpdateWithWhereUniqueWithoutUserInput | AiFeedbackUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: AiFeedbackUpdateManyWithWhereWithoutUserInput | AiFeedbackUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[]
|
|
}
|
|
|
|
export type UserAISettingsUncheckedUpdateOneWithoutUserNestedInput = {
|
|
create?: XOR<UserAISettingsCreateWithoutUserInput, UserAISettingsUncheckedCreateWithoutUserInput>
|
|
connectOrCreate?: UserAISettingsCreateOrConnectWithoutUserInput
|
|
upsert?: UserAISettingsUpsertWithoutUserInput
|
|
disconnect?: UserAISettingsWhereInput | boolean
|
|
delete?: UserAISettingsWhereInput | boolean
|
|
connect?: UserAISettingsWhereUniqueInput
|
|
update?: XOR<XOR<UserAISettingsUpdateToOneWithWhereWithoutUserInput, UserAISettingsUpdateWithoutUserInput>, UserAISettingsUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutUserInput, MemoryEchoInsightUncheckedCreateWithoutUserInput> | MemoryEchoInsightCreateWithoutUserInput[] | MemoryEchoInsightUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutUserInput | MemoryEchoInsightCreateOrConnectWithoutUserInput[]
|
|
upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: MemoryEchoInsightCreateManyUserInputEnvelope
|
|
set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput | MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutUserInput | MemoryEchoInsightUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[]
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutAccountsInput = {
|
|
create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type NullableIntFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
|
|
create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
|
|
upsert?: UserUpsertWithoutAccountsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAccountsInput, UserUpdateWithoutAccountsInput>, UserUncheckedUpdateWithoutAccountsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutSessionsInput = {
|
|
create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
|
|
create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
|
|
upsert?: UserUpsertWithoutSessionsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSessionsInput, UserUpdateWithoutSessionsInput>, UserUncheckedUpdateWithoutSessionsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutNotebooksInput = {
|
|
create?: XOR<UserCreateWithoutNotebooksInput, UserUncheckedCreateWithoutNotebooksInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutNotebooksInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type NoteCreateNestedManyWithoutNotebookInput = {
|
|
create?: XOR<NoteCreateWithoutNotebookInput, NoteUncheckedCreateWithoutNotebookInput> | NoteCreateWithoutNotebookInput[] | NoteUncheckedCreateWithoutNotebookInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutNotebookInput | NoteCreateOrConnectWithoutNotebookInput[]
|
|
createMany?: NoteCreateManyNotebookInputEnvelope
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type LabelCreateNestedManyWithoutNotebookInput = {
|
|
create?: XOR<LabelCreateWithoutNotebookInput, LabelUncheckedCreateWithoutNotebookInput> | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[]
|
|
createMany?: LabelCreateManyNotebookInputEnvelope
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
}
|
|
|
|
export type NoteUncheckedCreateNestedManyWithoutNotebookInput = {
|
|
create?: XOR<NoteCreateWithoutNotebookInput, NoteUncheckedCreateWithoutNotebookInput> | NoteCreateWithoutNotebookInput[] | NoteUncheckedCreateWithoutNotebookInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutNotebookInput | NoteCreateOrConnectWithoutNotebookInput[]
|
|
createMany?: NoteCreateManyNotebookInputEnvelope
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type LabelUncheckedCreateNestedManyWithoutNotebookInput = {
|
|
create?: XOR<LabelCreateWithoutNotebookInput, LabelUncheckedCreateWithoutNotebookInput> | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[]
|
|
createMany?: LabelCreateManyNotebookInputEnvelope
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
}
|
|
|
|
export type IntFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutNotebooksNestedInput = {
|
|
create?: XOR<UserCreateWithoutNotebooksInput, UserUncheckedCreateWithoutNotebooksInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutNotebooksInput
|
|
upsert?: UserUpsertWithoutNotebooksInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutNotebooksInput, UserUpdateWithoutNotebooksInput>, UserUncheckedUpdateWithoutNotebooksInput>
|
|
}
|
|
|
|
export type NoteUpdateManyWithoutNotebookNestedInput = {
|
|
create?: XOR<NoteCreateWithoutNotebookInput, NoteUncheckedCreateWithoutNotebookInput> | NoteCreateWithoutNotebookInput[] | NoteUncheckedCreateWithoutNotebookInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutNotebookInput | NoteCreateOrConnectWithoutNotebookInput[]
|
|
upsert?: NoteUpsertWithWhereUniqueWithoutNotebookInput | NoteUpsertWithWhereUniqueWithoutNotebookInput[]
|
|
createMany?: NoteCreateManyNotebookInputEnvelope
|
|
set?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
update?: NoteUpdateWithWhereUniqueWithoutNotebookInput | NoteUpdateWithWhereUniqueWithoutNotebookInput[]
|
|
updateMany?: NoteUpdateManyWithWhereWithoutNotebookInput | NoteUpdateManyWithWhereWithoutNotebookInput[]
|
|
deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[]
|
|
}
|
|
|
|
export type LabelUpdateManyWithoutNotebookNestedInput = {
|
|
create?: XOR<LabelCreateWithoutNotebookInput, LabelUncheckedCreateWithoutNotebookInput> | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[]
|
|
upsert?: LabelUpsertWithWhereUniqueWithoutNotebookInput | LabelUpsertWithWhereUniqueWithoutNotebookInput[]
|
|
createMany?: LabelCreateManyNotebookInputEnvelope
|
|
set?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
update?: LabelUpdateWithWhereUniqueWithoutNotebookInput | LabelUpdateWithWhereUniqueWithoutNotebookInput[]
|
|
updateMany?: LabelUpdateManyWithWhereWithoutNotebookInput | LabelUpdateManyWithWhereWithoutNotebookInput[]
|
|
deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[]
|
|
}
|
|
|
|
export type NoteUncheckedUpdateManyWithoutNotebookNestedInput = {
|
|
create?: XOR<NoteCreateWithoutNotebookInput, NoteUncheckedCreateWithoutNotebookInput> | NoteCreateWithoutNotebookInput[] | NoteUncheckedCreateWithoutNotebookInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutNotebookInput | NoteCreateOrConnectWithoutNotebookInput[]
|
|
upsert?: NoteUpsertWithWhereUniqueWithoutNotebookInput | NoteUpsertWithWhereUniqueWithoutNotebookInput[]
|
|
createMany?: NoteCreateManyNotebookInputEnvelope
|
|
set?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
update?: NoteUpdateWithWhereUniqueWithoutNotebookInput | NoteUpdateWithWhereUniqueWithoutNotebookInput[]
|
|
updateMany?: NoteUpdateManyWithWhereWithoutNotebookInput | NoteUpdateManyWithWhereWithoutNotebookInput[]
|
|
deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[]
|
|
}
|
|
|
|
export type LabelUncheckedUpdateManyWithoutNotebookNestedInput = {
|
|
create?: XOR<LabelCreateWithoutNotebookInput, LabelUncheckedCreateWithoutNotebookInput> | LabelCreateWithoutNotebookInput[] | LabelUncheckedCreateWithoutNotebookInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutNotebookInput | LabelCreateOrConnectWithoutNotebookInput[]
|
|
upsert?: LabelUpsertWithWhereUniqueWithoutNotebookInput | LabelUpsertWithWhereUniqueWithoutNotebookInput[]
|
|
createMany?: LabelCreateManyNotebookInputEnvelope
|
|
set?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
update?: LabelUpdateWithWhereUniqueWithoutNotebookInput | LabelUpdateWithWhereUniqueWithoutNotebookInput[]
|
|
updateMany?: LabelUpdateManyWithWhereWithoutNotebookInput | LabelUpdateManyWithWhereWithoutNotebookInput[]
|
|
deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[]
|
|
}
|
|
|
|
export type NotebookCreateNestedOneWithoutLabelsInput = {
|
|
create?: XOR<NotebookCreateWithoutLabelsInput, NotebookUncheckedCreateWithoutLabelsInput>
|
|
connectOrCreate?: NotebookCreateOrConnectWithoutLabelsInput
|
|
connect?: NotebookWhereUniqueInput
|
|
}
|
|
|
|
export type NoteCreateNestedManyWithoutLabelRelationsInput = {
|
|
create?: XOR<NoteCreateWithoutLabelRelationsInput, NoteUncheckedCreateWithoutLabelRelationsInput> | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[]
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutLabelsInput = {
|
|
create?: XOR<UserCreateWithoutLabelsInput, UserUncheckedCreateWithoutLabelsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutLabelsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type NoteUncheckedCreateNestedManyWithoutLabelRelationsInput = {
|
|
create?: XOR<NoteCreateWithoutLabelRelationsInput, NoteUncheckedCreateWithoutLabelRelationsInput> | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[]
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type NotebookUpdateOneWithoutLabelsNestedInput = {
|
|
create?: XOR<NotebookCreateWithoutLabelsInput, NotebookUncheckedCreateWithoutLabelsInput>
|
|
connectOrCreate?: NotebookCreateOrConnectWithoutLabelsInput
|
|
upsert?: NotebookUpsertWithoutLabelsInput
|
|
disconnect?: NotebookWhereInput | boolean
|
|
delete?: NotebookWhereInput | boolean
|
|
connect?: NotebookWhereUniqueInput
|
|
update?: XOR<XOR<NotebookUpdateToOneWithWhereWithoutLabelsInput, NotebookUpdateWithoutLabelsInput>, NotebookUncheckedUpdateWithoutLabelsInput>
|
|
}
|
|
|
|
export type NoteUpdateManyWithoutLabelRelationsNestedInput = {
|
|
create?: XOR<NoteCreateWithoutLabelRelationsInput, NoteUncheckedCreateWithoutLabelRelationsInput> | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[]
|
|
upsert?: NoteUpsertWithWhereUniqueWithoutLabelRelationsInput | NoteUpsertWithWhereUniqueWithoutLabelRelationsInput[]
|
|
set?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
update?: NoteUpdateWithWhereUniqueWithoutLabelRelationsInput | NoteUpdateWithWhereUniqueWithoutLabelRelationsInput[]
|
|
updateMany?: NoteUpdateManyWithWhereWithoutLabelRelationsInput | NoteUpdateManyWithWhereWithoutLabelRelationsInput[]
|
|
deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[]
|
|
}
|
|
|
|
export type UserUpdateOneWithoutLabelsNestedInput = {
|
|
create?: XOR<UserCreateWithoutLabelsInput, UserUncheckedCreateWithoutLabelsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutLabelsInput
|
|
upsert?: UserUpsertWithoutLabelsInput
|
|
disconnect?: UserWhereInput | boolean
|
|
delete?: UserWhereInput | boolean
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutLabelsInput, UserUpdateWithoutLabelsInput>, UserUncheckedUpdateWithoutLabelsInput>
|
|
}
|
|
|
|
export type NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput = {
|
|
create?: XOR<NoteCreateWithoutLabelRelationsInput, NoteUncheckedCreateWithoutLabelRelationsInput> | NoteCreateWithoutLabelRelationsInput[] | NoteUncheckedCreateWithoutLabelRelationsInput[]
|
|
connectOrCreate?: NoteCreateOrConnectWithoutLabelRelationsInput | NoteCreateOrConnectWithoutLabelRelationsInput[]
|
|
upsert?: NoteUpsertWithWhereUniqueWithoutLabelRelationsInput | NoteUpsertWithWhereUniqueWithoutLabelRelationsInput[]
|
|
set?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
disconnect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
delete?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
connect?: NoteWhereUniqueInput | NoteWhereUniqueInput[]
|
|
update?: NoteUpdateWithWhereUniqueWithoutLabelRelationsInput | NoteUpdateWithWhereUniqueWithoutLabelRelationsInput[]
|
|
updateMany?: NoteUpdateManyWithWhereWithoutLabelRelationsInput | NoteUpdateManyWithWhereWithoutLabelRelationsInput[]
|
|
deleteMany?: NoteScalarWhereInput | NoteScalarWhereInput[]
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutNotesInput = {
|
|
create?: XOR<UserCreateWithoutNotesInput, UserUncheckedCreateWithoutNotesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutNotesInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type NoteShareCreateNestedManyWithoutNoteInput = {
|
|
create?: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput> | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[]
|
|
createMany?: NoteShareCreateManyNoteInputEnvelope
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type NotebookCreateNestedOneWithoutNotesInput = {
|
|
create?: XOR<NotebookCreateWithoutNotesInput, NotebookUncheckedCreateWithoutNotesInput>
|
|
connectOrCreate?: NotebookCreateOrConnectWithoutNotesInput
|
|
connect?: NotebookWhereUniqueInput
|
|
}
|
|
|
|
export type LabelCreateNestedManyWithoutNotesInput = {
|
|
create?: XOR<LabelCreateWithoutNotesInput, LabelUncheckedCreateWithoutNotesInput> | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[]
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
}
|
|
|
|
export type AiFeedbackCreateNestedManyWithoutNoteInput = {
|
|
create?: XOR<AiFeedbackCreateWithoutNoteInput, AiFeedbackUncheckedCreateWithoutNoteInput> | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[]
|
|
connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[]
|
|
createMany?: AiFeedbackCreateManyNoteInputEnvelope
|
|
connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateNestedManyWithoutNote1Input = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutNote1Input, MemoryEchoInsightUncheckedCreateWithoutNote1Input> | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[]
|
|
createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateNestedManyWithoutNote2Input = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutNote2Input, MemoryEchoInsightUncheckedCreateWithoutNote2Input> | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[]
|
|
createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
}
|
|
|
|
export type NoteShareUncheckedCreateNestedManyWithoutNoteInput = {
|
|
create?: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput> | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[]
|
|
createMany?: NoteShareCreateManyNoteInputEnvelope
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type LabelUncheckedCreateNestedManyWithoutNotesInput = {
|
|
create?: XOR<LabelCreateWithoutNotesInput, LabelUncheckedCreateWithoutNotesInput> | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[]
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
}
|
|
|
|
export type AiFeedbackUncheckedCreateNestedManyWithoutNoteInput = {
|
|
create?: XOR<AiFeedbackCreateWithoutNoteInput, AiFeedbackUncheckedCreateWithoutNoteInput> | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[]
|
|
connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[]
|
|
createMany?: AiFeedbackCreateManyNoteInputEnvelope
|
|
connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutNote1Input, MemoryEchoInsightUncheckedCreateWithoutNote1Input> | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[]
|
|
createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutNote2Input, MemoryEchoInsightUncheckedCreateWithoutNote2Input> | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[]
|
|
createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
}
|
|
|
|
export type BoolFieldUpdateOperationsInput = {
|
|
set?: boolean
|
|
}
|
|
|
|
export type NullableBoolFieldUpdateOperationsInput = {
|
|
set?: boolean | null
|
|
}
|
|
|
|
export type NullableFloatFieldUpdateOperationsInput = {
|
|
set?: number | null
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type UserUpdateOneWithoutNotesNestedInput = {
|
|
create?: XOR<UserCreateWithoutNotesInput, UserUncheckedCreateWithoutNotesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutNotesInput
|
|
upsert?: UserUpsertWithoutNotesInput
|
|
disconnect?: UserWhereInput | boolean
|
|
delete?: UserWhereInput | boolean
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutNotesInput, UserUpdateWithoutNotesInput>, UserUncheckedUpdateWithoutNotesInput>
|
|
}
|
|
|
|
export type NoteShareUpdateManyWithoutNoteNestedInput = {
|
|
create?: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput> | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[]
|
|
upsert?: NoteShareUpsertWithWhereUniqueWithoutNoteInput | NoteShareUpsertWithWhereUniqueWithoutNoteInput[]
|
|
createMany?: NoteShareCreateManyNoteInputEnvelope
|
|
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
update?: NoteShareUpdateWithWhereUniqueWithoutNoteInput | NoteShareUpdateWithWhereUniqueWithoutNoteInput[]
|
|
updateMany?: NoteShareUpdateManyWithWhereWithoutNoteInput | NoteShareUpdateManyWithWhereWithoutNoteInput[]
|
|
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
|
|
}
|
|
|
|
export type NotebookUpdateOneWithoutNotesNestedInput = {
|
|
create?: XOR<NotebookCreateWithoutNotesInput, NotebookUncheckedCreateWithoutNotesInput>
|
|
connectOrCreate?: NotebookCreateOrConnectWithoutNotesInput
|
|
upsert?: NotebookUpsertWithoutNotesInput
|
|
disconnect?: NotebookWhereInput | boolean
|
|
delete?: NotebookWhereInput | boolean
|
|
connect?: NotebookWhereUniqueInput
|
|
update?: XOR<XOR<NotebookUpdateToOneWithWhereWithoutNotesInput, NotebookUpdateWithoutNotesInput>, NotebookUncheckedUpdateWithoutNotesInput>
|
|
}
|
|
|
|
export type LabelUpdateManyWithoutNotesNestedInput = {
|
|
create?: XOR<LabelCreateWithoutNotesInput, LabelUncheckedCreateWithoutNotesInput> | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[]
|
|
upsert?: LabelUpsertWithWhereUniqueWithoutNotesInput | LabelUpsertWithWhereUniqueWithoutNotesInput[]
|
|
set?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
update?: LabelUpdateWithWhereUniqueWithoutNotesInput | LabelUpdateWithWhereUniqueWithoutNotesInput[]
|
|
updateMany?: LabelUpdateManyWithWhereWithoutNotesInput | LabelUpdateManyWithWhereWithoutNotesInput[]
|
|
deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[]
|
|
}
|
|
|
|
export type AiFeedbackUpdateManyWithoutNoteNestedInput = {
|
|
create?: XOR<AiFeedbackCreateWithoutNoteInput, AiFeedbackUncheckedCreateWithoutNoteInput> | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[]
|
|
connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[]
|
|
upsert?: AiFeedbackUpsertWithWhereUniqueWithoutNoteInput | AiFeedbackUpsertWithWhereUniqueWithoutNoteInput[]
|
|
createMany?: AiFeedbackCreateManyNoteInputEnvelope
|
|
set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
update?: AiFeedbackUpdateWithWhereUniqueWithoutNoteInput | AiFeedbackUpdateWithWhereUniqueWithoutNoteInput[]
|
|
updateMany?: AiFeedbackUpdateManyWithWhereWithoutNoteInput | AiFeedbackUpdateManyWithWhereWithoutNoteInput[]
|
|
deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[]
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateManyWithoutNote1NestedInput = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutNote1Input, MemoryEchoInsightUncheckedCreateWithoutNote1Input> | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[]
|
|
upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input[]
|
|
createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope
|
|
set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input[]
|
|
updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input[]
|
|
deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[]
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateManyWithoutNote2NestedInput = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutNote2Input, MemoryEchoInsightUncheckedCreateWithoutNote2Input> | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[]
|
|
upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input[]
|
|
createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope
|
|
set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input[]
|
|
updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input[]
|
|
deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[]
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateManyWithoutNoteNestedInput = {
|
|
create?: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput> | NoteShareCreateWithoutNoteInput[] | NoteShareUncheckedCreateWithoutNoteInput[]
|
|
connectOrCreate?: NoteShareCreateOrConnectWithoutNoteInput | NoteShareCreateOrConnectWithoutNoteInput[]
|
|
upsert?: NoteShareUpsertWithWhereUniqueWithoutNoteInput | NoteShareUpsertWithWhereUniqueWithoutNoteInput[]
|
|
createMany?: NoteShareCreateManyNoteInputEnvelope
|
|
set?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
disconnect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
delete?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
connect?: NoteShareWhereUniqueInput | NoteShareWhereUniqueInput[]
|
|
update?: NoteShareUpdateWithWhereUniqueWithoutNoteInput | NoteShareUpdateWithWhereUniqueWithoutNoteInput[]
|
|
updateMany?: NoteShareUpdateManyWithWhereWithoutNoteInput | NoteShareUpdateManyWithWhereWithoutNoteInput[]
|
|
deleteMany?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
|
|
}
|
|
|
|
export type LabelUncheckedUpdateManyWithoutNotesNestedInput = {
|
|
create?: XOR<LabelCreateWithoutNotesInput, LabelUncheckedCreateWithoutNotesInput> | LabelCreateWithoutNotesInput[] | LabelUncheckedCreateWithoutNotesInput[]
|
|
connectOrCreate?: LabelCreateOrConnectWithoutNotesInput | LabelCreateOrConnectWithoutNotesInput[]
|
|
upsert?: LabelUpsertWithWhereUniqueWithoutNotesInput | LabelUpsertWithWhereUniqueWithoutNotesInput[]
|
|
set?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
disconnect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
delete?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
connect?: LabelWhereUniqueInput | LabelWhereUniqueInput[]
|
|
update?: LabelUpdateWithWhereUniqueWithoutNotesInput | LabelUpdateWithWhereUniqueWithoutNotesInput[]
|
|
updateMany?: LabelUpdateManyWithWhereWithoutNotesInput | LabelUpdateManyWithWhereWithoutNotesInput[]
|
|
deleteMany?: LabelScalarWhereInput | LabelScalarWhereInput[]
|
|
}
|
|
|
|
export type AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput = {
|
|
create?: XOR<AiFeedbackCreateWithoutNoteInput, AiFeedbackUncheckedCreateWithoutNoteInput> | AiFeedbackCreateWithoutNoteInput[] | AiFeedbackUncheckedCreateWithoutNoteInput[]
|
|
connectOrCreate?: AiFeedbackCreateOrConnectWithoutNoteInput | AiFeedbackCreateOrConnectWithoutNoteInput[]
|
|
upsert?: AiFeedbackUpsertWithWhereUniqueWithoutNoteInput | AiFeedbackUpsertWithWhereUniqueWithoutNoteInput[]
|
|
createMany?: AiFeedbackCreateManyNoteInputEnvelope
|
|
set?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
disconnect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
delete?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
connect?: AiFeedbackWhereUniqueInput | AiFeedbackWhereUniqueInput[]
|
|
update?: AiFeedbackUpdateWithWhereUniqueWithoutNoteInput | AiFeedbackUpdateWithWhereUniqueWithoutNoteInput[]
|
|
updateMany?: AiFeedbackUpdateManyWithWhereWithoutNoteInput | AiFeedbackUpdateManyWithWhereWithoutNoteInput[]
|
|
deleteMany?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[]
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutNote1Input, MemoryEchoInsightUncheckedCreateWithoutNote1Input> | MemoryEchoInsightCreateWithoutNote1Input[] | MemoryEchoInsightUncheckedCreateWithoutNote1Input[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote1Input | MemoryEchoInsightCreateOrConnectWithoutNote1Input[]
|
|
upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input[]
|
|
createMany?: MemoryEchoInsightCreateManyNote1InputEnvelope
|
|
set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input[]
|
|
updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input[]
|
|
deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[]
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput = {
|
|
create?: XOR<MemoryEchoInsightCreateWithoutNote2Input, MemoryEchoInsightUncheckedCreateWithoutNote2Input> | MemoryEchoInsightCreateWithoutNote2Input[] | MemoryEchoInsightUncheckedCreateWithoutNote2Input[]
|
|
connectOrCreate?: MemoryEchoInsightCreateOrConnectWithoutNote2Input | MemoryEchoInsightCreateOrConnectWithoutNote2Input[]
|
|
upsert?: MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input[]
|
|
createMany?: MemoryEchoInsightCreateManyNote2InputEnvelope
|
|
set?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
disconnect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
delete?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
connect?: MemoryEchoInsightWhereUniqueInput | MemoryEchoInsightWhereUniqueInput[]
|
|
update?: MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input | MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input[]
|
|
updateMany?: MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input | MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input[]
|
|
deleteMany?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[]
|
|
}
|
|
|
|
export type NoteCreateNestedOneWithoutSharesInput = {
|
|
create?: XOR<NoteCreateWithoutSharesInput, NoteUncheckedCreateWithoutSharesInput>
|
|
connectOrCreate?: NoteCreateOrConnectWithoutSharesInput
|
|
connect?: NoteWhereUniqueInput
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutReceivedSharesInput = {
|
|
create?: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutSentSharesInput = {
|
|
create?: XOR<UserCreateWithoutSentSharesInput, UserUncheckedCreateWithoutSentSharesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutSentSharesInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type NoteUpdateOneRequiredWithoutSharesNestedInput = {
|
|
create?: XOR<NoteCreateWithoutSharesInput, NoteUncheckedCreateWithoutSharesInput>
|
|
connectOrCreate?: NoteCreateOrConnectWithoutSharesInput
|
|
upsert?: NoteUpsertWithoutSharesInput
|
|
connect?: NoteWhereUniqueInput
|
|
update?: XOR<XOR<NoteUpdateToOneWithWhereWithoutSharesInput, NoteUpdateWithoutSharesInput>, NoteUncheckedUpdateWithoutSharesInput>
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutReceivedSharesNestedInput = {
|
|
create?: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput
|
|
upsert?: UserUpsertWithoutReceivedSharesInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutReceivedSharesInput, UserUpdateWithoutReceivedSharesInput>, UserUncheckedUpdateWithoutReceivedSharesInput>
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutSentSharesNestedInput = {
|
|
create?: XOR<UserCreateWithoutSentSharesInput, UserUncheckedCreateWithoutSentSharesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutSentSharesInput
|
|
upsert?: UserUpsertWithoutSentSharesInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSentSharesInput, UserUpdateWithoutSentSharesInput>, UserUncheckedUpdateWithoutSentSharesInput>
|
|
}
|
|
|
|
export type NoteCreateNestedOneWithoutAiFeedbackInput = {
|
|
create?: XOR<NoteCreateWithoutAiFeedbackInput, NoteUncheckedCreateWithoutAiFeedbackInput>
|
|
connectOrCreate?: NoteCreateOrConnectWithoutAiFeedbackInput
|
|
connect?: NoteWhereUniqueInput
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutAiFeedbackInput = {
|
|
create?: XOR<UserCreateWithoutAiFeedbackInput, UserUncheckedCreateWithoutAiFeedbackInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutAiFeedbackInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type NoteUpdateOneRequiredWithoutAiFeedbackNestedInput = {
|
|
create?: XOR<NoteCreateWithoutAiFeedbackInput, NoteUncheckedCreateWithoutAiFeedbackInput>
|
|
connectOrCreate?: NoteCreateOrConnectWithoutAiFeedbackInput
|
|
upsert?: NoteUpsertWithoutAiFeedbackInput
|
|
connect?: NoteWhereUniqueInput
|
|
update?: XOR<XOR<NoteUpdateToOneWithWhereWithoutAiFeedbackInput, NoteUpdateWithoutAiFeedbackInput>, NoteUncheckedUpdateWithoutAiFeedbackInput>
|
|
}
|
|
|
|
export type UserUpdateOneWithoutAiFeedbackNestedInput = {
|
|
create?: XOR<UserCreateWithoutAiFeedbackInput, UserUncheckedCreateWithoutAiFeedbackInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutAiFeedbackInput
|
|
upsert?: UserUpsertWithoutAiFeedbackInput
|
|
disconnect?: UserWhereInput | boolean
|
|
delete?: UserWhereInput | boolean
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAiFeedbackInput, UserUpdateWithoutAiFeedbackInput>, UserUncheckedUpdateWithoutAiFeedbackInput>
|
|
}
|
|
|
|
export type NoteCreateNestedOneWithoutMemoryEchoAsNote1Input = {
|
|
create?: XOR<NoteCreateWithoutMemoryEchoAsNote1Input, NoteUncheckedCreateWithoutMemoryEchoAsNote1Input>
|
|
connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote1Input
|
|
connect?: NoteWhereUniqueInput
|
|
}
|
|
|
|
export type NoteCreateNestedOneWithoutMemoryEchoAsNote2Input = {
|
|
create?: XOR<NoteCreateWithoutMemoryEchoAsNote2Input, NoteUncheckedCreateWithoutMemoryEchoAsNote2Input>
|
|
connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote2Input
|
|
connect?: NoteWhereUniqueInput
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutMemoryEchoInsightsInput = {
|
|
create?: XOR<UserCreateWithoutMemoryEchoInsightsInput, UserUncheckedCreateWithoutMemoryEchoInsightsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutMemoryEchoInsightsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type FloatFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput = {
|
|
create?: XOR<NoteCreateWithoutMemoryEchoAsNote1Input, NoteUncheckedCreateWithoutMemoryEchoAsNote1Input>
|
|
connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote1Input
|
|
upsert?: NoteUpsertWithoutMemoryEchoAsNote1Input
|
|
connect?: NoteWhereUniqueInput
|
|
update?: XOR<XOR<NoteUpdateToOneWithWhereWithoutMemoryEchoAsNote1Input, NoteUpdateWithoutMemoryEchoAsNote1Input>, NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input>
|
|
}
|
|
|
|
export type NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput = {
|
|
create?: XOR<NoteCreateWithoutMemoryEchoAsNote2Input, NoteUncheckedCreateWithoutMemoryEchoAsNote2Input>
|
|
connectOrCreate?: NoteCreateOrConnectWithoutMemoryEchoAsNote2Input
|
|
upsert?: NoteUpsertWithoutMemoryEchoAsNote2Input
|
|
connect?: NoteWhereUniqueInput
|
|
update?: XOR<XOR<NoteUpdateToOneWithWhereWithoutMemoryEchoAsNote2Input, NoteUpdateWithoutMemoryEchoAsNote2Input>, NoteUncheckedUpdateWithoutMemoryEchoAsNote2Input>
|
|
}
|
|
|
|
export type UserUpdateOneWithoutMemoryEchoInsightsNestedInput = {
|
|
create?: XOR<UserCreateWithoutMemoryEchoInsightsInput, UserUncheckedCreateWithoutMemoryEchoInsightsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutMemoryEchoInsightsInput
|
|
upsert?: UserUpsertWithoutMemoryEchoInsightsInput
|
|
disconnect?: UserWhereInput | boolean
|
|
delete?: UserWhereInput | boolean
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutMemoryEchoInsightsInput, UserUpdateWithoutMemoryEchoInsightsInput>, UserUncheckedUpdateWithoutMemoryEchoInsightsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutAiSettingsInput = {
|
|
create?: XOR<UserCreateWithoutAiSettingsInput, UserUncheckedCreateWithoutAiSettingsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutAiSettingsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutAiSettingsNestedInput = {
|
|
create?: XOR<UserCreateWithoutAiSettingsInput, UserUncheckedCreateWithoutAiSettingsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutAiSettingsInput
|
|
upsert?: UserUpsertWithoutAiSettingsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAiSettingsInput, UserUpdateWithoutAiSettingsInput>, UserUncheckedUpdateWithoutAiSettingsInput>
|
|
}
|
|
|
|
export type NestedStringFilter<$PrismaModel = never> = {
|
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
in?: string[]
|
|
notIn?: string[]
|
|
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[] | null
|
|
notIn?: string[] | 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 NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
|
}
|
|
|
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
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[]
|
|
notIn?: string[]
|
|
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[]
|
|
notIn?: number[]
|
|
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[] | null
|
|
notIn?: string[] | 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[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
in?: Date[] | string[] | null
|
|
notIn?: Date[] | string[] | null
|
|
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
_max?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
in?: Date[] | string[]
|
|
notIn?: Date[] | string[]
|
|
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 NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedIntNullableFilter<$PrismaModel>
|
|
_max?: NestedIntNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatNullableFilter<$PrismaModel> | number | null
|
|
}
|
|
|
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | IntFieldRefInput<$PrismaModel>
|
|
lte?: number | IntFieldRefInput<$PrismaModel>
|
|
gt?: number | IntFieldRefInput<$PrismaModel>
|
|
gte?: number | IntFieldRefInput<$PrismaModel>
|
|
not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedIntFilter<$PrismaModel>
|
|
_max?: NestedIntFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatFilter<$PrismaModel> | number
|
|
}
|
|
|
|
export type NestedBoolFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolFilter<$PrismaModel> | boolean
|
|
}
|
|
|
|
export type NestedBoolNullableFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null
|
|
}
|
|
|
|
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel>
|
|
not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_min?: NestedBoolFilter<$PrismaModel>
|
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null
|
|
not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_min?: NestedBoolNullableFilter<$PrismaModel>
|
|
_max?: NestedBoolNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel> | null
|
|
in?: number[] | null
|
|
notIn?: number[] | null
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatNullableWithAggregatesFilter<$PrismaModel> | number | null
|
|
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
_avg?: NestedFloatNullableFilter<$PrismaModel>
|
|
_sum?: NestedFloatNullableFilter<$PrismaModel>
|
|
_min?: NestedFloatNullableFilter<$PrismaModel>
|
|
_max?: NestedFloatNullableFilter<$PrismaModel>
|
|
}
|
|
|
|
export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
|
equals?: number | FloatFieldRefInput<$PrismaModel>
|
|
in?: number[]
|
|
notIn?: number[]
|
|
lt?: number | FloatFieldRefInput<$PrismaModel>
|
|
lte?: number | FloatFieldRefInput<$PrismaModel>
|
|
gt?: number | FloatFieldRefInput<$PrismaModel>
|
|
gte?: number | FloatFieldRefInput<$PrismaModel>
|
|
not?: NestedFloatWithAggregatesFilter<$PrismaModel> | number
|
|
_count?: NestedIntFilter<$PrismaModel>
|
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
_sum?: NestedFloatFilter<$PrismaModel>
|
|
_min?: NestedFloatFilter<$PrismaModel>
|
|
_max?: NestedFloatFilter<$PrismaModel>
|
|
}
|
|
|
|
export type AccountCreateWithoutUserInput = {
|
|
type: string
|
|
provider: string
|
|
providerAccountId: string
|
|
refresh_token?: string | null
|
|
access_token?: string | null
|
|
expires_at?: number | null
|
|
token_type?: string | null
|
|
scope?: string | null
|
|
id_token?: string | null
|
|
session_state?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AccountUncheckedCreateWithoutUserInput = {
|
|
type: string
|
|
provider: string
|
|
providerAccountId: string
|
|
refresh_token?: string | null
|
|
access_token?: string | null
|
|
expires_at?: number | null
|
|
token_type?: string | null
|
|
scope?: string | null
|
|
id_token?: string | null
|
|
session_state?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AccountCreateOrConnectWithoutUserInput = {
|
|
where: AccountWhereUniqueInput
|
|
create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type AccountCreateManyUserInputEnvelope = {
|
|
data: AccountCreateManyUserInput | AccountCreateManyUserInput[]
|
|
}
|
|
|
|
export type SessionCreateWithoutUserInput = {
|
|
sessionToken: string
|
|
expires: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SessionUncheckedCreateWithoutUserInput = {
|
|
sessionToken: string
|
|
expires: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SessionCreateOrConnectWithoutUserInput = {
|
|
where: SessionWhereUniqueInput
|
|
create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type SessionCreateManyUserInputEnvelope = {
|
|
data: SessionCreateManyUserInput | SessionCreateManyUserInput[]
|
|
}
|
|
|
|
export type NoteCreateWithoutUserInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
shares?: NoteShareCreateNestedManyWithoutNoteInput
|
|
notebook?: NotebookCreateNestedOneWithoutNotesInput
|
|
labelRelations?: LabelCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput
|
|
labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteCreateOrConnectWithoutUserInput = {
|
|
where: NoteWhereUniqueInput
|
|
create: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type NoteCreateManyUserInputEnvelope = {
|
|
data: NoteCreateManyUserInput | NoteCreateManyUserInput[]
|
|
}
|
|
|
|
export type LabelCreateWithoutUserInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notebook?: NotebookCreateNestedOneWithoutLabelsInput
|
|
notes?: NoteCreateNestedManyWithoutLabelRelationsInput
|
|
}
|
|
|
|
export type LabelUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput
|
|
}
|
|
|
|
export type LabelCreateOrConnectWithoutUserInput = {
|
|
where: LabelWhereUniqueInput
|
|
create: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type LabelCreateManyUserInputEnvelope = {
|
|
data: LabelCreateManyUserInput | LabelCreateManyUserInput[]
|
|
}
|
|
|
|
export type NotebookCreateWithoutUserInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notes?: NoteCreateNestedManyWithoutNotebookInput
|
|
labels?: LabelCreateNestedManyWithoutNotebookInput
|
|
}
|
|
|
|
export type NotebookUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput
|
|
}
|
|
|
|
export type NotebookCreateOrConnectWithoutUserInput = {
|
|
where: NotebookWhereUniqueInput
|
|
create: XOR<NotebookCreateWithoutUserInput, NotebookUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type NotebookCreateManyUserInputEnvelope = {
|
|
data: NotebookCreateManyUserInput | NotebookCreateManyUserInput[]
|
|
}
|
|
|
|
export type NoteShareCreateWithoutUserInput = {
|
|
id?: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
note: NoteCreateNestedOneWithoutSharesInput
|
|
sharer: UserCreateNestedOneWithoutSentSharesInput
|
|
}
|
|
|
|
export type NoteShareUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
noteId: string
|
|
sharedBy: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoteShareCreateOrConnectWithoutUserInput = {
|
|
where: NoteShareWhereUniqueInput
|
|
create: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type NoteShareCreateManyUserInputEnvelope = {
|
|
data: NoteShareCreateManyUserInput | NoteShareCreateManyUserInput[]
|
|
}
|
|
|
|
export type NoteShareCreateWithoutSharerInput = {
|
|
id?: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
note: NoteCreateNestedOneWithoutSharesInput
|
|
user: UserCreateNestedOneWithoutReceivedSharesInput
|
|
}
|
|
|
|
export type NoteShareUncheckedCreateWithoutSharerInput = {
|
|
id?: string
|
|
noteId: string
|
|
userId: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoteShareCreateOrConnectWithoutSharerInput = {
|
|
where: NoteShareWhereUniqueInput
|
|
create: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput>
|
|
}
|
|
|
|
export type NoteShareCreateManySharerInputEnvelope = {
|
|
data: NoteShareCreateManySharerInput | NoteShareCreateManySharerInput[]
|
|
}
|
|
|
|
export type AiFeedbackCreateWithoutUserInput = {
|
|
id?: string
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent?: string | null
|
|
metadata?: string | null
|
|
createdAt?: Date | string
|
|
note: NoteCreateNestedOneWithoutAiFeedbackInput
|
|
}
|
|
|
|
export type AiFeedbackUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
noteId: string
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent?: string | null
|
|
metadata?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type AiFeedbackCreateOrConnectWithoutUserInput = {
|
|
where: AiFeedbackWhereUniqueInput
|
|
create: XOR<AiFeedbackCreateWithoutUserInput, AiFeedbackUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type AiFeedbackCreateManyUserInputEnvelope = {
|
|
data: AiFeedbackCreateManyUserInput | AiFeedbackCreateManyUserInput[]
|
|
}
|
|
|
|
export type UserAISettingsCreateWithoutUserInput = {
|
|
titleSuggestions?: boolean
|
|
semanticSearch?: boolean
|
|
paragraphRefactor?: boolean
|
|
memoryEcho?: boolean
|
|
memoryEchoFrequency?: string
|
|
aiProvider?: string
|
|
preferredLanguage?: string
|
|
fontSize?: string
|
|
demoMode?: boolean
|
|
}
|
|
|
|
export type UserAISettingsUncheckedCreateWithoutUserInput = {
|
|
titleSuggestions?: boolean
|
|
semanticSearch?: boolean
|
|
paragraphRefactor?: boolean
|
|
memoryEcho?: boolean
|
|
memoryEchoFrequency?: string
|
|
aiProvider?: string
|
|
preferredLanguage?: string
|
|
fontSize?: string
|
|
demoMode?: boolean
|
|
}
|
|
|
|
export type UserAISettingsCreateOrConnectWithoutUserInput = {
|
|
where: UserAISettingsWhereUniqueInput
|
|
create: XOR<UserAISettingsCreateWithoutUserInput, UserAISettingsUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateWithoutUserInput = {
|
|
id?: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input
|
|
note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
note1Id: string
|
|
note2Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateOrConnectWithoutUserInput = {
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
create: XOR<MemoryEchoInsightCreateWithoutUserInput, MemoryEchoInsightUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateManyUserInputEnvelope = {
|
|
data: MemoryEchoInsightCreateManyUserInput | MemoryEchoInsightCreateManyUserInput[]
|
|
}
|
|
|
|
export type AccountUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: AccountWhereUniqueInput
|
|
update: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
|
|
create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type AccountUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: AccountWhereUniqueInput
|
|
data: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type AccountUpdateManyWithWhereWithoutUserInput = {
|
|
where: AccountScalarWhereInput
|
|
data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type AccountScalarWhereInput = {
|
|
AND?: AccountScalarWhereInput | AccountScalarWhereInput[]
|
|
OR?: AccountScalarWhereInput[]
|
|
NOT?: AccountScalarWhereInput | AccountScalarWhereInput[]
|
|
userId?: StringFilter<"Account"> | string
|
|
type?: StringFilter<"Account"> | string
|
|
provider?: StringFilter<"Account"> | string
|
|
providerAccountId?: StringFilter<"Account"> | string
|
|
refresh_token?: StringNullableFilter<"Account"> | string | null
|
|
access_token?: StringNullableFilter<"Account"> | string | null
|
|
expires_at?: IntNullableFilter<"Account"> | number | null
|
|
token_type?: StringNullableFilter<"Account"> | string | null
|
|
scope?: StringNullableFilter<"Account"> | string | null
|
|
id_token?: StringNullableFilter<"Account"> | string | null
|
|
session_state?: StringNullableFilter<"Account"> | string | null
|
|
createdAt?: DateTimeFilter<"Account"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Account"> | Date | string
|
|
}
|
|
|
|
export type SessionUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: SessionWhereUniqueInput
|
|
update: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
|
|
create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type SessionUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: SessionWhereUniqueInput
|
|
data: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type SessionUpdateManyWithWhereWithoutUserInput = {
|
|
where: SessionScalarWhereInput
|
|
data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type SessionScalarWhereInput = {
|
|
AND?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
OR?: SessionScalarWhereInput[]
|
|
NOT?: SessionScalarWhereInput | SessionScalarWhereInput[]
|
|
sessionToken?: StringFilter<"Session"> | string
|
|
userId?: StringFilter<"Session"> | string
|
|
expires?: DateTimeFilter<"Session"> | Date | string
|
|
createdAt?: DateTimeFilter<"Session"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Session"> | Date | string
|
|
}
|
|
|
|
export type NoteUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: NoteWhereUniqueInput
|
|
update: XOR<NoteUpdateWithoutUserInput, NoteUncheckedUpdateWithoutUserInput>
|
|
create: XOR<NoteCreateWithoutUserInput, NoteUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type NoteUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: NoteWhereUniqueInput
|
|
data: XOR<NoteUpdateWithoutUserInput, NoteUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type NoteUpdateManyWithWhereWithoutUserInput = {
|
|
where: NoteScalarWhereInput
|
|
data: XOR<NoteUpdateManyMutationInput, NoteUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type NoteScalarWhereInput = {
|
|
AND?: NoteScalarWhereInput | NoteScalarWhereInput[]
|
|
OR?: NoteScalarWhereInput[]
|
|
NOT?: NoteScalarWhereInput | NoteScalarWhereInput[]
|
|
id?: StringFilter<"Note"> | string
|
|
title?: StringNullableFilter<"Note"> | string | null
|
|
content?: StringFilter<"Note"> | string
|
|
color?: StringFilter<"Note"> | string
|
|
isPinned?: BoolFilter<"Note"> | boolean
|
|
isArchived?: BoolFilter<"Note"> | boolean
|
|
type?: StringFilter<"Note"> | string
|
|
checkItems?: StringNullableFilter<"Note"> | string | null
|
|
labels?: StringNullableFilter<"Note"> | string | null
|
|
images?: StringNullableFilter<"Note"> | string | null
|
|
links?: StringNullableFilter<"Note"> | string | null
|
|
reminder?: DateTimeNullableFilter<"Note"> | Date | string | null
|
|
isReminderDone?: BoolFilter<"Note"> | boolean
|
|
reminderRecurrence?: StringNullableFilter<"Note"> | string | null
|
|
reminderLocation?: StringNullableFilter<"Note"> | string | null
|
|
isMarkdown?: BoolFilter<"Note"> | boolean
|
|
size?: StringFilter<"Note"> | string
|
|
embedding?: StringNullableFilter<"Note"> | string | null
|
|
sharedWith?: StringNullableFilter<"Note"> | string | null
|
|
userId?: StringNullableFilter<"Note"> | string | null
|
|
order?: IntFilter<"Note"> | number
|
|
notebookId?: StringNullableFilter<"Note"> | string | null
|
|
createdAt?: DateTimeFilter<"Note"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Note"> | Date | string
|
|
autoGenerated?: BoolNullableFilter<"Note"> | boolean | null
|
|
aiProvider?: StringNullableFilter<"Note"> | string | null
|
|
aiConfidence?: IntNullableFilter<"Note"> | number | null
|
|
language?: StringNullableFilter<"Note"> | string | null
|
|
languageConfidence?: FloatNullableFilter<"Note"> | number | null
|
|
lastAiAnalysis?: DateTimeNullableFilter<"Note"> | Date | string | null
|
|
}
|
|
|
|
export type LabelUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: LabelWhereUniqueInput
|
|
update: XOR<LabelUpdateWithoutUserInput, LabelUncheckedUpdateWithoutUserInput>
|
|
create: XOR<LabelCreateWithoutUserInput, LabelUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type LabelUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: LabelWhereUniqueInput
|
|
data: XOR<LabelUpdateWithoutUserInput, LabelUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type LabelUpdateManyWithWhereWithoutUserInput = {
|
|
where: LabelScalarWhereInput
|
|
data: XOR<LabelUpdateManyMutationInput, LabelUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type LabelScalarWhereInput = {
|
|
AND?: LabelScalarWhereInput | LabelScalarWhereInput[]
|
|
OR?: LabelScalarWhereInput[]
|
|
NOT?: LabelScalarWhereInput | LabelScalarWhereInput[]
|
|
id?: StringFilter<"Label"> | string
|
|
name?: StringFilter<"Label"> | string
|
|
color?: StringFilter<"Label"> | string
|
|
notebookId?: StringNullableFilter<"Label"> | string | null
|
|
userId?: StringNullableFilter<"Label"> | string | null
|
|
createdAt?: DateTimeFilter<"Label"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Label"> | Date | string
|
|
}
|
|
|
|
export type NotebookUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: NotebookWhereUniqueInput
|
|
update: XOR<NotebookUpdateWithoutUserInput, NotebookUncheckedUpdateWithoutUserInput>
|
|
create: XOR<NotebookCreateWithoutUserInput, NotebookUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type NotebookUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: NotebookWhereUniqueInput
|
|
data: XOR<NotebookUpdateWithoutUserInput, NotebookUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type NotebookUpdateManyWithWhereWithoutUserInput = {
|
|
where: NotebookScalarWhereInput
|
|
data: XOR<NotebookUpdateManyMutationInput, NotebookUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type NotebookScalarWhereInput = {
|
|
AND?: NotebookScalarWhereInput | NotebookScalarWhereInput[]
|
|
OR?: NotebookScalarWhereInput[]
|
|
NOT?: NotebookScalarWhereInput | NotebookScalarWhereInput[]
|
|
id?: StringFilter<"Notebook"> | string
|
|
name?: StringFilter<"Notebook"> | string
|
|
icon?: StringNullableFilter<"Notebook"> | string | null
|
|
color?: StringNullableFilter<"Notebook"> | string | null
|
|
order?: IntFilter<"Notebook"> | number
|
|
userId?: StringFilter<"Notebook"> | string
|
|
createdAt?: DateTimeFilter<"Notebook"> | Date | string
|
|
updatedAt?: DateTimeFilter<"Notebook"> | Date | string
|
|
}
|
|
|
|
export type NoteShareUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: NoteShareWhereUniqueInput
|
|
update: XOR<NoteShareUpdateWithoutUserInput, NoteShareUncheckedUpdateWithoutUserInput>
|
|
create: XOR<NoteShareCreateWithoutUserInput, NoteShareUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type NoteShareUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: NoteShareWhereUniqueInput
|
|
data: XOR<NoteShareUpdateWithoutUserInput, NoteShareUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type NoteShareUpdateManyWithWhereWithoutUserInput = {
|
|
where: NoteShareScalarWhereInput
|
|
data: XOR<NoteShareUpdateManyMutationInput, NoteShareUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type NoteShareScalarWhereInput = {
|
|
AND?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
|
|
OR?: NoteShareScalarWhereInput[]
|
|
NOT?: NoteShareScalarWhereInput | NoteShareScalarWhereInput[]
|
|
id?: StringFilter<"NoteShare"> | string
|
|
noteId?: StringFilter<"NoteShare"> | string
|
|
userId?: StringFilter<"NoteShare"> | string
|
|
sharedBy?: StringFilter<"NoteShare"> | string
|
|
status?: StringFilter<"NoteShare"> | string
|
|
permission?: StringFilter<"NoteShare"> | string
|
|
notifiedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
|
|
respondedAt?: DateTimeNullableFilter<"NoteShare"> | Date | string | null
|
|
createdAt?: DateTimeFilter<"NoteShare"> | Date | string
|
|
updatedAt?: DateTimeFilter<"NoteShare"> | Date | string
|
|
}
|
|
|
|
export type NoteShareUpsertWithWhereUniqueWithoutSharerInput = {
|
|
where: NoteShareWhereUniqueInput
|
|
update: XOR<NoteShareUpdateWithoutSharerInput, NoteShareUncheckedUpdateWithoutSharerInput>
|
|
create: XOR<NoteShareCreateWithoutSharerInput, NoteShareUncheckedCreateWithoutSharerInput>
|
|
}
|
|
|
|
export type NoteShareUpdateWithWhereUniqueWithoutSharerInput = {
|
|
where: NoteShareWhereUniqueInput
|
|
data: XOR<NoteShareUpdateWithoutSharerInput, NoteShareUncheckedUpdateWithoutSharerInput>
|
|
}
|
|
|
|
export type NoteShareUpdateManyWithWhereWithoutSharerInput = {
|
|
where: NoteShareScalarWhereInput
|
|
data: XOR<NoteShareUpdateManyMutationInput, NoteShareUncheckedUpdateManyWithoutSharerInput>
|
|
}
|
|
|
|
export type AiFeedbackUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: AiFeedbackWhereUniqueInput
|
|
update: XOR<AiFeedbackUpdateWithoutUserInput, AiFeedbackUncheckedUpdateWithoutUserInput>
|
|
create: XOR<AiFeedbackCreateWithoutUserInput, AiFeedbackUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type AiFeedbackUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: AiFeedbackWhereUniqueInput
|
|
data: XOR<AiFeedbackUpdateWithoutUserInput, AiFeedbackUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type AiFeedbackUpdateManyWithWhereWithoutUserInput = {
|
|
where: AiFeedbackScalarWhereInput
|
|
data: XOR<AiFeedbackUpdateManyMutationInput, AiFeedbackUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type AiFeedbackScalarWhereInput = {
|
|
AND?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[]
|
|
OR?: AiFeedbackScalarWhereInput[]
|
|
NOT?: AiFeedbackScalarWhereInput | AiFeedbackScalarWhereInput[]
|
|
id?: StringFilter<"AiFeedback"> | string
|
|
noteId?: StringFilter<"AiFeedback"> | string
|
|
userId?: StringNullableFilter<"AiFeedback"> | string | null
|
|
feedbackType?: StringFilter<"AiFeedback"> | string
|
|
feature?: StringFilter<"AiFeedback"> | string
|
|
originalContent?: StringFilter<"AiFeedback"> | string
|
|
correctedContent?: StringNullableFilter<"AiFeedback"> | string | null
|
|
metadata?: StringNullableFilter<"AiFeedback"> | string | null
|
|
createdAt?: DateTimeFilter<"AiFeedback"> | Date | string
|
|
}
|
|
|
|
export type UserAISettingsUpsertWithoutUserInput = {
|
|
update: XOR<UserAISettingsUpdateWithoutUserInput, UserAISettingsUncheckedUpdateWithoutUserInput>
|
|
create: XOR<UserAISettingsCreateWithoutUserInput, UserAISettingsUncheckedCreateWithoutUserInput>
|
|
where?: UserAISettingsWhereInput
|
|
}
|
|
|
|
export type UserAISettingsUpdateToOneWithWhereWithoutUserInput = {
|
|
where?: UserAISettingsWhereInput
|
|
data: XOR<UserAISettingsUpdateWithoutUserInput, UserAISettingsUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type UserAISettingsUpdateWithoutUserInput = {
|
|
titleSuggestions?: BoolFieldUpdateOperationsInput | boolean
|
|
semanticSearch?: BoolFieldUpdateOperationsInput | boolean
|
|
paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEcho?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEchoFrequency?: StringFieldUpdateOperationsInput | string
|
|
aiProvider?: StringFieldUpdateOperationsInput | string
|
|
preferredLanguage?: StringFieldUpdateOperationsInput | string
|
|
fontSize?: StringFieldUpdateOperationsInput | string
|
|
demoMode?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type UserAISettingsUncheckedUpdateWithoutUserInput = {
|
|
titleSuggestions?: BoolFieldUpdateOperationsInput | boolean
|
|
semanticSearch?: BoolFieldUpdateOperationsInput | boolean
|
|
paragraphRefactor?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEcho?: BoolFieldUpdateOperationsInput | boolean
|
|
memoryEchoFrequency?: StringFieldUpdateOperationsInput | string
|
|
aiProvider?: StringFieldUpdateOperationsInput | string
|
|
preferredLanguage?: StringFieldUpdateOperationsInput | string
|
|
fontSize?: StringFieldUpdateOperationsInput | string
|
|
demoMode?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
update: XOR<MemoryEchoInsightUpdateWithoutUserInput, MemoryEchoInsightUncheckedUpdateWithoutUserInput>
|
|
create: XOR<MemoryEchoInsightCreateWithoutUserInput, MemoryEchoInsightUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
data: XOR<MemoryEchoInsightUpdateWithoutUserInput, MemoryEchoInsightUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateManyWithWhereWithoutUserInput = {
|
|
where: MemoryEchoInsightScalarWhereInput
|
|
data: XOR<MemoryEchoInsightUpdateManyMutationInput, MemoryEchoInsightUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type MemoryEchoInsightScalarWhereInput = {
|
|
AND?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[]
|
|
OR?: MemoryEchoInsightScalarWhereInput[]
|
|
NOT?: MemoryEchoInsightScalarWhereInput | MemoryEchoInsightScalarWhereInput[]
|
|
id?: StringFilter<"MemoryEchoInsight"> | string
|
|
userId?: StringNullableFilter<"MemoryEchoInsight"> | string | null
|
|
note1Id?: StringFilter<"MemoryEchoInsight"> | string
|
|
note2Id?: StringFilter<"MemoryEchoInsight"> | string
|
|
similarityScore?: FloatFilter<"MemoryEchoInsight"> | number
|
|
insight?: StringFilter<"MemoryEchoInsight"> | string
|
|
insightDate?: DateTimeFilter<"MemoryEchoInsight"> | Date | string
|
|
viewed?: BoolFilter<"MemoryEchoInsight"> | boolean
|
|
feedback?: StringNullableFilter<"MemoryEchoInsight"> | string | null
|
|
dismissed?: BoolFilter<"MemoryEchoInsight"> | boolean
|
|
}
|
|
|
|
export type UserCreateWithoutAccountsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutAccountsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutAccountsInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutAccountsInput = {
|
|
update: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
|
|
create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutAccountsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutAccountsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutAccountsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutSessionsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutSessionsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutSessionsInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutSessionsInput = {
|
|
update: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
|
|
create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutSessionsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutSessionsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutSessionsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutNotebooksInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutNotebooksInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutNotebooksInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutNotebooksInput, UserUncheckedCreateWithoutNotebooksInput>
|
|
}
|
|
|
|
export type NoteCreateWithoutNotebookInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
user?: UserCreateNestedOneWithoutNotesInput
|
|
shares?: NoteShareCreateNestedManyWithoutNoteInput
|
|
labelRelations?: LabelCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteUncheckedCreateWithoutNotebookInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
userId?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput
|
|
labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteCreateOrConnectWithoutNotebookInput = {
|
|
where: NoteWhereUniqueInput
|
|
create: XOR<NoteCreateWithoutNotebookInput, NoteUncheckedCreateWithoutNotebookInput>
|
|
}
|
|
|
|
export type NoteCreateManyNotebookInputEnvelope = {
|
|
data: NoteCreateManyNotebookInput | NoteCreateManyNotebookInput[]
|
|
}
|
|
|
|
export type LabelCreateWithoutNotebookInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notes?: NoteCreateNestedManyWithoutLabelRelationsInput
|
|
user?: UserCreateNestedOneWithoutLabelsInput
|
|
}
|
|
|
|
export type LabelUncheckedCreateWithoutNotebookInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
userId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notes?: NoteUncheckedCreateNestedManyWithoutLabelRelationsInput
|
|
}
|
|
|
|
export type LabelCreateOrConnectWithoutNotebookInput = {
|
|
where: LabelWhereUniqueInput
|
|
create: XOR<LabelCreateWithoutNotebookInput, LabelUncheckedCreateWithoutNotebookInput>
|
|
}
|
|
|
|
export type LabelCreateManyNotebookInputEnvelope = {
|
|
data: LabelCreateManyNotebookInput | LabelCreateManyNotebookInput[]
|
|
}
|
|
|
|
export type UserUpsertWithoutNotebooksInput = {
|
|
update: XOR<UserUpdateWithoutNotebooksInput, UserUncheckedUpdateWithoutNotebooksInput>
|
|
create: XOR<UserCreateWithoutNotebooksInput, UserUncheckedCreateWithoutNotebooksInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutNotebooksInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutNotebooksInput, UserUncheckedUpdateWithoutNotebooksInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutNotebooksInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutNotebooksInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type NoteUpsertWithWhereUniqueWithoutNotebookInput = {
|
|
where: NoteWhereUniqueInput
|
|
update: XOR<NoteUpdateWithoutNotebookInput, NoteUncheckedUpdateWithoutNotebookInput>
|
|
create: XOR<NoteCreateWithoutNotebookInput, NoteUncheckedCreateWithoutNotebookInput>
|
|
}
|
|
|
|
export type NoteUpdateWithWhereUniqueWithoutNotebookInput = {
|
|
where: NoteWhereUniqueInput
|
|
data: XOR<NoteUpdateWithoutNotebookInput, NoteUncheckedUpdateWithoutNotebookInput>
|
|
}
|
|
|
|
export type NoteUpdateManyWithWhereWithoutNotebookInput = {
|
|
where: NoteScalarWhereInput
|
|
data: XOR<NoteUpdateManyMutationInput, NoteUncheckedUpdateManyWithoutNotebookInput>
|
|
}
|
|
|
|
export type LabelUpsertWithWhereUniqueWithoutNotebookInput = {
|
|
where: LabelWhereUniqueInput
|
|
update: XOR<LabelUpdateWithoutNotebookInput, LabelUncheckedUpdateWithoutNotebookInput>
|
|
create: XOR<LabelCreateWithoutNotebookInput, LabelUncheckedCreateWithoutNotebookInput>
|
|
}
|
|
|
|
export type LabelUpdateWithWhereUniqueWithoutNotebookInput = {
|
|
where: LabelWhereUniqueInput
|
|
data: XOR<LabelUpdateWithoutNotebookInput, LabelUncheckedUpdateWithoutNotebookInput>
|
|
}
|
|
|
|
export type LabelUpdateManyWithWhereWithoutNotebookInput = {
|
|
where: LabelScalarWhereInput
|
|
data: XOR<LabelUpdateManyMutationInput, LabelUncheckedUpdateManyWithoutNotebookInput>
|
|
}
|
|
|
|
export type NotebookCreateWithoutLabelsInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: UserCreateNestedOneWithoutNotebooksInput
|
|
notes?: NoteCreateNestedManyWithoutNotebookInput
|
|
}
|
|
|
|
export type NotebookUncheckedCreateWithoutLabelsInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
userId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notes?: NoteUncheckedCreateNestedManyWithoutNotebookInput
|
|
}
|
|
|
|
export type NotebookCreateOrConnectWithoutLabelsInput = {
|
|
where: NotebookWhereUniqueInput
|
|
create: XOR<NotebookCreateWithoutLabelsInput, NotebookUncheckedCreateWithoutLabelsInput>
|
|
}
|
|
|
|
export type NoteCreateWithoutLabelRelationsInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
user?: UserCreateNestedOneWithoutNotesInput
|
|
shares?: NoteShareCreateNestedManyWithoutNoteInput
|
|
notebook?: NotebookCreateNestedOneWithoutNotesInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteUncheckedCreateWithoutLabelRelationsInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
userId?: string | null
|
|
order?: number
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteCreateOrConnectWithoutLabelRelationsInput = {
|
|
where: NoteWhereUniqueInput
|
|
create: XOR<NoteCreateWithoutLabelRelationsInput, NoteUncheckedCreateWithoutLabelRelationsInput>
|
|
}
|
|
|
|
export type UserCreateWithoutLabelsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutLabelsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutLabelsInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutLabelsInput, UserUncheckedCreateWithoutLabelsInput>
|
|
}
|
|
|
|
export type NotebookUpsertWithoutLabelsInput = {
|
|
update: XOR<NotebookUpdateWithoutLabelsInput, NotebookUncheckedUpdateWithoutLabelsInput>
|
|
create: XOR<NotebookCreateWithoutLabelsInput, NotebookUncheckedCreateWithoutLabelsInput>
|
|
where?: NotebookWhereInput
|
|
}
|
|
|
|
export type NotebookUpdateToOneWithWhereWithoutLabelsInput = {
|
|
where?: NotebookWhereInput
|
|
data: XOR<NotebookUpdateWithoutLabelsInput, NotebookUncheckedUpdateWithoutLabelsInput>
|
|
}
|
|
|
|
export type NotebookUpdateWithoutLabelsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutNotebooksNestedInput
|
|
notes?: NoteUpdateManyWithoutNotebookNestedInput
|
|
}
|
|
|
|
export type NotebookUncheckedUpdateWithoutLabelsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput
|
|
}
|
|
|
|
export type NoteUpsertWithWhereUniqueWithoutLabelRelationsInput = {
|
|
where: NoteWhereUniqueInput
|
|
update: XOR<NoteUpdateWithoutLabelRelationsInput, NoteUncheckedUpdateWithoutLabelRelationsInput>
|
|
create: XOR<NoteCreateWithoutLabelRelationsInput, NoteUncheckedCreateWithoutLabelRelationsInput>
|
|
}
|
|
|
|
export type NoteUpdateWithWhereUniqueWithoutLabelRelationsInput = {
|
|
where: NoteWhereUniqueInput
|
|
data: XOR<NoteUpdateWithoutLabelRelationsInput, NoteUncheckedUpdateWithoutLabelRelationsInput>
|
|
}
|
|
|
|
export type NoteUpdateManyWithWhereWithoutLabelRelationsInput = {
|
|
where: NoteScalarWhereInput
|
|
data: XOR<NoteUpdateManyMutationInput, NoteUncheckedUpdateManyWithoutLabelRelationsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutLabelsInput = {
|
|
update: XOR<UserUpdateWithoutLabelsInput, UserUncheckedUpdateWithoutLabelsInput>
|
|
create: XOR<UserCreateWithoutLabelsInput, UserUncheckedCreateWithoutLabelsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutLabelsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutLabelsInput, UserUncheckedUpdateWithoutLabelsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutLabelsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutLabelsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutNotesInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutNotesInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutNotesInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutNotesInput, UserUncheckedCreateWithoutNotesInput>
|
|
}
|
|
|
|
export type NoteShareCreateWithoutNoteInput = {
|
|
id?: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: UserCreateNestedOneWithoutReceivedSharesInput
|
|
sharer: UserCreateNestedOneWithoutSentSharesInput
|
|
}
|
|
|
|
export type NoteShareUncheckedCreateWithoutNoteInput = {
|
|
id?: string
|
|
userId: string
|
|
sharedBy: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoteShareCreateOrConnectWithoutNoteInput = {
|
|
where: NoteShareWhereUniqueInput
|
|
create: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput>
|
|
}
|
|
|
|
export type NoteShareCreateManyNoteInputEnvelope = {
|
|
data: NoteShareCreateManyNoteInput | NoteShareCreateManyNoteInput[]
|
|
}
|
|
|
|
export type NotebookCreateWithoutNotesInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: UserCreateNestedOneWithoutNotebooksInput
|
|
labels?: LabelCreateNestedManyWithoutNotebookInput
|
|
}
|
|
|
|
export type NotebookUncheckedCreateWithoutNotesInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
userId: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
labels?: LabelUncheckedCreateNestedManyWithoutNotebookInput
|
|
}
|
|
|
|
export type NotebookCreateOrConnectWithoutNotesInput = {
|
|
where: NotebookWhereUniqueInput
|
|
create: XOR<NotebookCreateWithoutNotesInput, NotebookUncheckedCreateWithoutNotesInput>
|
|
}
|
|
|
|
export type LabelCreateWithoutNotesInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
notebook?: NotebookCreateNestedOneWithoutLabelsInput
|
|
user?: UserCreateNestedOneWithoutLabelsInput
|
|
}
|
|
|
|
export type LabelUncheckedCreateWithoutNotesInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
notebookId?: string | null
|
|
userId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type LabelCreateOrConnectWithoutNotesInput = {
|
|
where: LabelWhereUniqueInput
|
|
create: XOR<LabelCreateWithoutNotesInput, LabelUncheckedCreateWithoutNotesInput>
|
|
}
|
|
|
|
export type AiFeedbackCreateWithoutNoteInput = {
|
|
id?: string
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent?: string | null
|
|
metadata?: string | null
|
|
createdAt?: Date | string
|
|
user?: UserCreateNestedOneWithoutAiFeedbackInput
|
|
}
|
|
|
|
export type AiFeedbackUncheckedCreateWithoutNoteInput = {
|
|
id?: string
|
|
userId?: string | null
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent?: string | null
|
|
metadata?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type AiFeedbackCreateOrConnectWithoutNoteInput = {
|
|
where: AiFeedbackWhereUniqueInput
|
|
create: XOR<AiFeedbackCreateWithoutNoteInput, AiFeedbackUncheckedCreateWithoutNoteInput>
|
|
}
|
|
|
|
export type AiFeedbackCreateManyNoteInputEnvelope = {
|
|
data: AiFeedbackCreateManyNoteInput | AiFeedbackCreateManyNoteInput[]
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateWithoutNote1Input = {
|
|
id?: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
note2: NoteCreateNestedOneWithoutMemoryEchoAsNote2Input
|
|
user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedCreateWithoutNote1Input = {
|
|
id?: string
|
|
userId?: string | null
|
|
note2Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateOrConnectWithoutNote1Input = {
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
create: XOR<MemoryEchoInsightCreateWithoutNote1Input, MemoryEchoInsightUncheckedCreateWithoutNote1Input>
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateManyNote1InputEnvelope = {
|
|
data: MemoryEchoInsightCreateManyNote1Input | MemoryEchoInsightCreateManyNote1Input[]
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateWithoutNote2Input = {
|
|
id?: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
note1: NoteCreateNestedOneWithoutMemoryEchoAsNote1Input
|
|
user?: UserCreateNestedOneWithoutMemoryEchoInsightsInput
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedCreateWithoutNote2Input = {
|
|
id?: string
|
|
userId?: string | null
|
|
note1Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateOrConnectWithoutNote2Input = {
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
create: XOR<MemoryEchoInsightCreateWithoutNote2Input, MemoryEchoInsightUncheckedCreateWithoutNote2Input>
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateManyNote2InputEnvelope = {
|
|
data: MemoryEchoInsightCreateManyNote2Input | MemoryEchoInsightCreateManyNote2Input[]
|
|
}
|
|
|
|
export type UserUpsertWithoutNotesInput = {
|
|
update: XOR<UserUpdateWithoutNotesInput, UserUncheckedUpdateWithoutNotesInput>
|
|
create: XOR<UserCreateWithoutNotesInput, UserUncheckedCreateWithoutNotesInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutNotesInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutNotesInput, UserUncheckedUpdateWithoutNotesInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutNotesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutNotesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type NoteShareUpsertWithWhereUniqueWithoutNoteInput = {
|
|
where: NoteShareWhereUniqueInput
|
|
update: XOR<NoteShareUpdateWithoutNoteInput, NoteShareUncheckedUpdateWithoutNoteInput>
|
|
create: XOR<NoteShareCreateWithoutNoteInput, NoteShareUncheckedCreateWithoutNoteInput>
|
|
}
|
|
|
|
export type NoteShareUpdateWithWhereUniqueWithoutNoteInput = {
|
|
where: NoteShareWhereUniqueInput
|
|
data: XOR<NoteShareUpdateWithoutNoteInput, NoteShareUncheckedUpdateWithoutNoteInput>
|
|
}
|
|
|
|
export type NoteShareUpdateManyWithWhereWithoutNoteInput = {
|
|
where: NoteShareScalarWhereInput
|
|
data: XOR<NoteShareUpdateManyMutationInput, NoteShareUncheckedUpdateManyWithoutNoteInput>
|
|
}
|
|
|
|
export type NotebookUpsertWithoutNotesInput = {
|
|
update: XOR<NotebookUpdateWithoutNotesInput, NotebookUncheckedUpdateWithoutNotesInput>
|
|
create: XOR<NotebookCreateWithoutNotesInput, NotebookUncheckedCreateWithoutNotesInput>
|
|
where?: NotebookWhereInput
|
|
}
|
|
|
|
export type NotebookUpdateToOneWithWhereWithoutNotesInput = {
|
|
where?: NotebookWhereInput
|
|
data: XOR<NotebookUpdateWithoutNotesInput, NotebookUncheckedUpdateWithoutNotesInput>
|
|
}
|
|
|
|
export type NotebookUpdateWithoutNotesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutNotebooksNestedInput
|
|
labels?: LabelUpdateManyWithoutNotebookNestedInput
|
|
}
|
|
|
|
export type NotebookUncheckedUpdateWithoutNotesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput
|
|
}
|
|
|
|
export type LabelUpsertWithWhereUniqueWithoutNotesInput = {
|
|
where: LabelWhereUniqueInput
|
|
update: XOR<LabelUpdateWithoutNotesInput, LabelUncheckedUpdateWithoutNotesInput>
|
|
create: XOR<LabelCreateWithoutNotesInput, LabelUncheckedCreateWithoutNotesInput>
|
|
}
|
|
|
|
export type LabelUpdateWithWhereUniqueWithoutNotesInput = {
|
|
where: LabelWhereUniqueInput
|
|
data: XOR<LabelUpdateWithoutNotesInput, LabelUncheckedUpdateWithoutNotesInput>
|
|
}
|
|
|
|
export type LabelUpdateManyWithWhereWithoutNotesInput = {
|
|
where: LabelScalarWhereInput
|
|
data: XOR<LabelUpdateManyMutationInput, LabelUncheckedUpdateManyWithoutNotesInput>
|
|
}
|
|
|
|
export type AiFeedbackUpsertWithWhereUniqueWithoutNoteInput = {
|
|
where: AiFeedbackWhereUniqueInput
|
|
update: XOR<AiFeedbackUpdateWithoutNoteInput, AiFeedbackUncheckedUpdateWithoutNoteInput>
|
|
create: XOR<AiFeedbackCreateWithoutNoteInput, AiFeedbackUncheckedCreateWithoutNoteInput>
|
|
}
|
|
|
|
export type AiFeedbackUpdateWithWhereUniqueWithoutNoteInput = {
|
|
where: AiFeedbackWhereUniqueInput
|
|
data: XOR<AiFeedbackUpdateWithoutNoteInput, AiFeedbackUncheckedUpdateWithoutNoteInput>
|
|
}
|
|
|
|
export type AiFeedbackUpdateManyWithWhereWithoutNoteInput = {
|
|
where: AiFeedbackScalarWhereInput
|
|
data: XOR<AiFeedbackUpdateManyMutationInput, AiFeedbackUncheckedUpdateManyWithoutNoteInput>
|
|
}
|
|
|
|
export type MemoryEchoInsightUpsertWithWhereUniqueWithoutNote1Input = {
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
update: XOR<MemoryEchoInsightUpdateWithoutNote1Input, MemoryEchoInsightUncheckedUpdateWithoutNote1Input>
|
|
create: XOR<MemoryEchoInsightCreateWithoutNote1Input, MemoryEchoInsightUncheckedCreateWithoutNote1Input>
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateWithWhereUniqueWithoutNote1Input = {
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
data: XOR<MemoryEchoInsightUpdateWithoutNote1Input, MemoryEchoInsightUncheckedUpdateWithoutNote1Input>
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateManyWithWhereWithoutNote1Input = {
|
|
where: MemoryEchoInsightScalarWhereInput
|
|
data: XOR<MemoryEchoInsightUpdateManyMutationInput, MemoryEchoInsightUncheckedUpdateManyWithoutNote1Input>
|
|
}
|
|
|
|
export type MemoryEchoInsightUpsertWithWhereUniqueWithoutNote2Input = {
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
update: XOR<MemoryEchoInsightUpdateWithoutNote2Input, MemoryEchoInsightUncheckedUpdateWithoutNote2Input>
|
|
create: XOR<MemoryEchoInsightCreateWithoutNote2Input, MemoryEchoInsightUncheckedCreateWithoutNote2Input>
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateWithWhereUniqueWithoutNote2Input = {
|
|
where: MemoryEchoInsightWhereUniqueInput
|
|
data: XOR<MemoryEchoInsightUpdateWithoutNote2Input, MemoryEchoInsightUncheckedUpdateWithoutNote2Input>
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateManyWithWhereWithoutNote2Input = {
|
|
where: MemoryEchoInsightScalarWhereInput
|
|
data: XOR<MemoryEchoInsightUpdateManyMutationInput, MemoryEchoInsightUncheckedUpdateManyWithoutNote2Input>
|
|
}
|
|
|
|
export type NoteCreateWithoutSharesInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
user?: UserCreateNestedOneWithoutNotesInput
|
|
notebook?: NotebookCreateNestedOneWithoutNotesInput
|
|
labelRelations?: LabelCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteUncheckedCreateWithoutSharesInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
userId?: string | null
|
|
order?: number
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteCreateOrConnectWithoutSharesInput = {
|
|
where: NoteWhereUniqueInput
|
|
create: XOR<NoteCreateWithoutSharesInput, NoteUncheckedCreateWithoutSharesInput>
|
|
}
|
|
|
|
export type UserCreateWithoutReceivedSharesInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutReceivedSharesInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutReceivedSharesInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
|
|
}
|
|
|
|
export type UserCreateWithoutSentSharesInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutSentSharesInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutSentSharesInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutSentSharesInput, UserUncheckedCreateWithoutSentSharesInput>
|
|
}
|
|
|
|
export type NoteUpsertWithoutSharesInput = {
|
|
update: XOR<NoteUpdateWithoutSharesInput, NoteUncheckedUpdateWithoutSharesInput>
|
|
create: XOR<NoteCreateWithoutSharesInput, NoteUncheckedCreateWithoutSharesInput>
|
|
where?: NoteWhereInput
|
|
}
|
|
|
|
export type NoteUpdateToOneWithWhereWithoutSharesInput = {
|
|
where?: NoteWhereInput
|
|
data: XOR<NoteUpdateWithoutSharesInput, NoteUncheckedUpdateWithoutSharesInput>
|
|
}
|
|
|
|
export type NoteUpdateWithoutSharesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
user?: UserUpdateOneWithoutNotesNestedInput
|
|
notebook?: NotebookUpdateOneWithoutNotesNestedInput
|
|
labelRelations?: LabelUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateWithoutSharesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type UserUpsertWithoutReceivedSharesInput = {
|
|
update: XOR<UserUpdateWithoutReceivedSharesInput, UserUncheckedUpdateWithoutReceivedSharesInput>
|
|
create: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutReceivedSharesInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutReceivedSharesInput, UserUncheckedUpdateWithoutReceivedSharesInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutReceivedSharesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutReceivedSharesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUpsertWithoutSentSharesInput = {
|
|
update: XOR<UserUpdateWithoutSentSharesInput, UserUncheckedUpdateWithoutSentSharesInput>
|
|
create: XOR<UserCreateWithoutSentSharesInput, UserUncheckedCreateWithoutSentSharesInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutSentSharesInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutSentSharesInput, UserUncheckedUpdateWithoutSentSharesInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutSentSharesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutSentSharesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type NoteCreateWithoutAiFeedbackInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
user?: UserCreateNestedOneWithoutNotesInput
|
|
shares?: NoteShareCreateNestedManyWithoutNoteInput
|
|
notebook?: NotebookCreateNestedOneWithoutNotesInput
|
|
labelRelations?: LabelCreateNestedManyWithoutNotesInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteUncheckedCreateWithoutAiFeedbackInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
userId?: string | null
|
|
order?: number
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput
|
|
labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteCreateOrConnectWithoutAiFeedbackInput = {
|
|
where: NoteWhereUniqueInput
|
|
create: XOR<NoteCreateWithoutAiFeedbackInput, NoteUncheckedCreateWithoutAiFeedbackInput>
|
|
}
|
|
|
|
export type UserCreateWithoutAiFeedbackInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutAiFeedbackInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutAiFeedbackInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutAiFeedbackInput, UserUncheckedCreateWithoutAiFeedbackInput>
|
|
}
|
|
|
|
export type NoteUpsertWithoutAiFeedbackInput = {
|
|
update: XOR<NoteUpdateWithoutAiFeedbackInput, NoteUncheckedUpdateWithoutAiFeedbackInput>
|
|
create: XOR<NoteCreateWithoutAiFeedbackInput, NoteUncheckedCreateWithoutAiFeedbackInput>
|
|
where?: NoteWhereInput
|
|
}
|
|
|
|
export type NoteUpdateToOneWithWhereWithoutAiFeedbackInput = {
|
|
where?: NoteWhereInput
|
|
data: XOR<NoteUpdateWithoutAiFeedbackInput, NoteUncheckedUpdateWithoutAiFeedbackInput>
|
|
}
|
|
|
|
export type NoteUpdateWithoutAiFeedbackInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
user?: UserUpdateOneWithoutNotesNestedInput
|
|
shares?: NoteShareUpdateManyWithoutNoteNestedInput
|
|
notebook?: NotebookUpdateOneWithoutNotesNestedInput
|
|
labelRelations?: LabelUpdateManyWithoutNotesNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateWithoutAiFeedbackInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput
|
|
labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type UserUpsertWithoutAiFeedbackInput = {
|
|
update: XOR<UserUpdateWithoutAiFeedbackInput, UserUncheckedUpdateWithoutAiFeedbackInput>
|
|
create: XOR<UserCreateWithoutAiFeedbackInput, UserUncheckedCreateWithoutAiFeedbackInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutAiFeedbackInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutAiFeedbackInput, UserUncheckedUpdateWithoutAiFeedbackInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutAiFeedbackInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutAiFeedbackInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type NoteCreateWithoutMemoryEchoAsNote1Input = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
user?: UserCreateNestedOneWithoutNotesInput
|
|
shares?: NoteShareCreateNestedManyWithoutNoteInput
|
|
notebook?: NotebookCreateNestedOneWithoutNotesInput
|
|
labelRelations?: LabelCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteUncheckedCreateWithoutMemoryEchoAsNote1Input = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
userId?: string | null
|
|
order?: number
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput
|
|
labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote2Input
|
|
}
|
|
|
|
export type NoteCreateOrConnectWithoutMemoryEchoAsNote1Input = {
|
|
where: NoteWhereUniqueInput
|
|
create: XOR<NoteCreateWithoutMemoryEchoAsNote1Input, NoteUncheckedCreateWithoutMemoryEchoAsNote1Input>
|
|
}
|
|
|
|
export type NoteCreateWithoutMemoryEchoAsNote2Input = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
user?: UserCreateNestedOneWithoutNotesInput
|
|
shares?: NoteShareCreateNestedManyWithoutNoteInput
|
|
notebook?: NotebookCreateNestedOneWithoutNotesInput
|
|
labelRelations?: LabelCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightCreateNestedManyWithoutNote1Input
|
|
}
|
|
|
|
export type NoteUncheckedCreateWithoutMemoryEchoAsNote2Input = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
userId?: string | null
|
|
order?: number
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
shares?: NoteShareUncheckedCreateNestedManyWithoutNoteInput
|
|
labelRelations?: LabelUncheckedCreateNestedManyWithoutNotesInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutNoteInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedCreateNestedManyWithoutNote1Input
|
|
}
|
|
|
|
export type NoteCreateOrConnectWithoutMemoryEchoAsNote2Input = {
|
|
where: NoteWhereUniqueInput
|
|
create: XOR<NoteCreateWithoutMemoryEchoAsNote2Input, NoteUncheckedCreateWithoutMemoryEchoAsNote2Input>
|
|
}
|
|
|
|
export type UserCreateWithoutMemoryEchoInsightsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutMemoryEchoInsightsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
aiSettings?: UserAISettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutMemoryEchoInsightsInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutMemoryEchoInsightsInput, UserUncheckedCreateWithoutMemoryEchoInsightsInput>
|
|
}
|
|
|
|
export type NoteUpsertWithoutMemoryEchoAsNote1Input = {
|
|
update: XOR<NoteUpdateWithoutMemoryEchoAsNote1Input, NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input>
|
|
create: XOR<NoteCreateWithoutMemoryEchoAsNote1Input, NoteUncheckedCreateWithoutMemoryEchoAsNote1Input>
|
|
where?: NoteWhereInput
|
|
}
|
|
|
|
export type NoteUpdateToOneWithWhereWithoutMemoryEchoAsNote1Input = {
|
|
where?: NoteWhereInput
|
|
data: XOR<NoteUpdateWithoutMemoryEchoAsNote1Input, NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input>
|
|
}
|
|
|
|
export type NoteUpdateWithoutMemoryEchoAsNote1Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
user?: UserUpdateOneWithoutNotesNestedInput
|
|
shares?: NoteShareUpdateManyWithoutNoteNestedInput
|
|
notebook?: NotebookUpdateOneWithoutNotesNestedInput
|
|
labelRelations?: LabelUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateWithoutMemoryEchoAsNote1Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput
|
|
labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUpsertWithoutMemoryEchoAsNote2Input = {
|
|
update: XOR<NoteUpdateWithoutMemoryEchoAsNote2Input, NoteUncheckedUpdateWithoutMemoryEchoAsNote2Input>
|
|
create: XOR<NoteCreateWithoutMemoryEchoAsNote2Input, NoteUncheckedCreateWithoutMemoryEchoAsNote2Input>
|
|
where?: NoteWhereInput
|
|
}
|
|
|
|
export type NoteUpdateToOneWithWhereWithoutMemoryEchoAsNote2Input = {
|
|
where?: NoteWhereInput
|
|
data: XOR<NoteUpdateWithoutMemoryEchoAsNote2Input, NoteUncheckedUpdateWithoutMemoryEchoAsNote2Input>
|
|
}
|
|
|
|
export type NoteUpdateWithoutMemoryEchoAsNote2Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
user?: UserUpdateOneWithoutNotesNestedInput
|
|
shares?: NoteShareUpdateManyWithoutNoteNestedInput
|
|
notebook?: NotebookUpdateOneWithoutNotesNestedInput
|
|
labelRelations?: LabelUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateWithoutMemoryEchoAsNote2Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput
|
|
labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput
|
|
}
|
|
|
|
export type UserUpsertWithoutMemoryEchoInsightsInput = {
|
|
update: XOR<UserUpdateWithoutMemoryEchoInsightsInput, UserUncheckedUpdateWithoutMemoryEchoInsightsInput>
|
|
create: XOR<UserCreateWithoutMemoryEchoInsightsInput, UserUncheckedCreateWithoutMemoryEchoInsightsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutMemoryEchoInsightsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutMemoryEchoInsightsInput, UserUncheckedUpdateWithoutMemoryEchoInsightsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutMemoryEchoInsightsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutMemoryEchoInsightsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
aiSettings?: UserAISettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutAiSettingsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountCreateNestedManyWithoutUserInput
|
|
sessions?: SessionCreateNestedManyWithoutUserInput
|
|
notes?: NoteCreateNestedManyWithoutUserInput
|
|
labels?: LabelCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackCreateNestedManyWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutAiSettingsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email: string
|
|
emailVerified?: Date | string | null
|
|
password?: string | null
|
|
role?: string
|
|
image?: string | null
|
|
theme?: string
|
|
resetToken?: string | null
|
|
resetTokenExpiry?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
|
|
notes?: NoteUncheckedCreateNestedManyWithoutUserInput
|
|
labels?: LabelUncheckedCreateNestedManyWithoutUserInput
|
|
notebooks?: NotebookUncheckedCreateNestedManyWithoutUserInput
|
|
receivedShares?: NoteShareUncheckedCreateNestedManyWithoutUserInput
|
|
sentShares?: NoteShareUncheckedCreateNestedManyWithoutSharerInput
|
|
aiFeedback?: AiFeedbackUncheckedCreateNestedManyWithoutUserInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutAiSettingsInput = {
|
|
where: UserWhereUniqueInput
|
|
create: XOR<UserCreateWithoutAiSettingsInput, UserUncheckedCreateWithoutAiSettingsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutAiSettingsInput = {
|
|
update: XOR<UserUpdateWithoutAiSettingsInput, UserUncheckedUpdateWithoutAiSettingsInput>
|
|
create: XOR<UserCreateWithoutAiSettingsInput, UserUncheckedCreateWithoutAiSettingsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutAiSettingsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutAiSettingsInput, UserUncheckedUpdateWithoutAiSettingsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutAiSettingsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutAiSettingsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: StringFieldUpdateOperationsInput | string
|
|
emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
password?: NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: StringFieldUpdateOperationsInput | string
|
|
image?: NullableStringFieldUpdateOperationsInput | string | null
|
|
theme?: StringFieldUpdateOperationsInput | string
|
|
resetToken?: NullableStringFieldUpdateOperationsInput | string | null
|
|
resetTokenExpiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
notes?: NoteUncheckedUpdateManyWithoutUserNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutUserNestedInput
|
|
notebooks?: NotebookUncheckedUpdateManyWithoutUserNestedInput
|
|
receivedShares?: NoteShareUncheckedUpdateManyWithoutUserNestedInput
|
|
sentShares?: NoteShareUncheckedUpdateManyWithoutSharerNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutUserNestedInput
|
|
memoryEchoInsights?: MemoryEchoInsightUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type AccountCreateManyUserInput = {
|
|
type: string
|
|
provider: string
|
|
providerAccountId: string
|
|
refresh_token?: string | null
|
|
access_token?: string | null
|
|
expires_at?: number | null
|
|
token_type?: string | null
|
|
scope?: string | null
|
|
id_token?: string | null
|
|
session_state?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SessionCreateManyUserInput = {
|
|
sessionToken: string
|
|
expires: Date | string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoteCreateManyUserInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
order?: number
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
}
|
|
|
|
export type LabelCreateManyUserInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
notebookId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NotebookCreateManyUserInput = {
|
|
id?: string
|
|
name: string
|
|
icon?: string | null
|
|
color?: string | null
|
|
order: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoteShareCreateManyUserInput = {
|
|
id?: string
|
|
noteId: string
|
|
sharedBy: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoteShareCreateManySharerInput = {
|
|
id?: string
|
|
noteId: string
|
|
userId: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AiFeedbackCreateManyUserInput = {
|
|
id?: string
|
|
noteId: string
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent?: string | null
|
|
metadata?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateManyUserInput = {
|
|
id?: string
|
|
note1Id: string
|
|
note2Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
}
|
|
|
|
export type AccountUpdateWithoutUserInput = {
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
provider?: StringFieldUpdateOperationsInput | string
|
|
providerAccountId?: StringFieldUpdateOperationsInput | string
|
|
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
access_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
|
|
token_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
scope?: NullableStringFieldUpdateOperationsInput | string | null
|
|
id_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
session_state?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AccountUncheckedUpdateWithoutUserInput = {
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
provider?: StringFieldUpdateOperationsInput | string
|
|
providerAccountId?: StringFieldUpdateOperationsInput | string
|
|
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
access_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
|
|
token_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
scope?: NullableStringFieldUpdateOperationsInput | string | null
|
|
id_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
session_state?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AccountUncheckedUpdateManyWithoutUserInput = {
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
provider?: StringFieldUpdateOperationsInput | string
|
|
providerAccountId?: StringFieldUpdateOperationsInput | string
|
|
refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
access_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
expires_at?: NullableIntFieldUpdateOperationsInput | number | null
|
|
token_type?: NullableStringFieldUpdateOperationsInput | string | null
|
|
scope?: NullableStringFieldUpdateOperationsInput | string | null
|
|
id_token?: NullableStringFieldUpdateOperationsInput | string | null
|
|
session_state?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionUpdateWithoutUserInput = {
|
|
sessionToken?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionUncheckedUpdateWithoutUserInput = {
|
|
sessionToken?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionUncheckedUpdateManyWithoutUserInput = {
|
|
sessionToken?: StringFieldUpdateOperationsInput | string
|
|
expires?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shares?: NoteShareUpdateManyWithoutNoteNestedInput
|
|
notebook?: NotebookUpdateOneWithoutNotesNestedInput
|
|
labelRelations?: LabelUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput
|
|
labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateManyWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type LabelUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notebook?: NotebookUpdateOneWithoutLabelsNestedInput
|
|
notes?: NoteUpdateManyWithoutLabelRelationsNestedInput
|
|
}
|
|
|
|
export type LabelUncheckedUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput
|
|
}
|
|
|
|
export type LabelUncheckedUpdateManyWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NotebookUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notes?: NoteUpdateManyWithoutNotebookNestedInput
|
|
labels?: LabelUpdateManyWithoutNotebookNestedInput
|
|
}
|
|
|
|
export type NotebookUncheckedUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notes?: NoteUncheckedUpdateManyWithoutNotebookNestedInput
|
|
labels?: LabelUncheckedUpdateManyWithoutNotebookNestedInput
|
|
}
|
|
|
|
export type NotebookUncheckedUpdateManyWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
icon?: NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteShareUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
note?: NoteUpdateOneRequiredWithoutSharesNestedInput
|
|
sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
sharedBy?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateManyWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
sharedBy?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteShareUpdateWithoutSharerInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
note?: NoteUpdateOneRequiredWithoutSharesNestedInput
|
|
user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateWithoutSharerInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateManyWithoutSharerInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AiFeedbackUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
note?: NoteUpdateOneRequiredWithoutAiFeedbackNestedInput
|
|
}
|
|
|
|
export type AiFeedbackUncheckedUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AiFeedbackUncheckedUpdateManyWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
noteId?: StringFieldUpdateOperationsInput | string
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput
|
|
note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
note1Id?: StringFieldUpdateOperationsInput | string
|
|
note2Id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateManyWithoutUserInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
note1Id?: StringFieldUpdateOperationsInput | string
|
|
note2Id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type NoteCreateManyNotebookInput = {
|
|
id?: string
|
|
title?: string | null
|
|
content: string
|
|
color?: string
|
|
isPinned?: boolean
|
|
isArchived?: boolean
|
|
type?: string
|
|
checkItems?: string | null
|
|
labels?: string | null
|
|
images?: string | null
|
|
links?: string | null
|
|
reminder?: Date | string | null
|
|
isReminderDone?: boolean
|
|
reminderRecurrence?: string | null
|
|
reminderLocation?: string | null
|
|
isMarkdown?: boolean
|
|
size?: string
|
|
embedding?: string | null
|
|
sharedWith?: string | null
|
|
userId?: string | null
|
|
order?: number
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
autoGenerated?: boolean | null
|
|
aiProvider?: string | null
|
|
aiConfidence?: number | null
|
|
language?: string | null
|
|
languageConfidence?: number | null
|
|
lastAiAnalysis?: Date | string | null
|
|
}
|
|
|
|
export type LabelCreateManyNotebookInput = {
|
|
id?: string
|
|
name: string
|
|
color?: string
|
|
userId?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type NoteUpdateWithoutNotebookInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
user?: UserUpdateOneWithoutNotesNestedInput
|
|
shares?: NoteShareUpdateManyWithoutNoteNestedInput
|
|
labelRelations?: LabelUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateWithoutNotebookInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput
|
|
labelRelations?: LabelUncheckedUpdateManyWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateManyWithoutNotebookInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type LabelUpdateWithoutNotebookInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notes?: NoteUpdateManyWithoutLabelRelationsNestedInput
|
|
user?: UserUpdateOneWithoutLabelsNestedInput
|
|
}
|
|
|
|
export type LabelUncheckedUpdateWithoutNotebookInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notes?: NoteUncheckedUpdateManyWithoutLabelRelationsNestedInput
|
|
}
|
|
|
|
export type LabelUncheckedUpdateManyWithoutNotebookInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteUpdateWithoutLabelRelationsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
user?: UserUpdateOneWithoutNotesNestedInput
|
|
shares?: NoteShareUpdateManyWithoutNoteNestedInput
|
|
notebook?: NotebookUpdateOneWithoutNotesNestedInput
|
|
aiFeedback?: AiFeedbackUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateWithoutLabelRelationsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
shares?: NoteShareUncheckedUpdateManyWithoutNoteNestedInput
|
|
aiFeedback?: AiFeedbackUncheckedUpdateManyWithoutNoteNestedInput
|
|
memoryEchoAsNote1?: MemoryEchoInsightUncheckedUpdateManyWithoutNote1NestedInput
|
|
memoryEchoAsNote2?: MemoryEchoInsightUncheckedUpdateManyWithoutNote2NestedInput
|
|
}
|
|
|
|
export type NoteUncheckedUpdateManyWithoutLabelRelationsInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
title?: NullableStringFieldUpdateOperationsInput | string | null
|
|
content?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
isPinned?: BoolFieldUpdateOperationsInput | boolean
|
|
isArchived?: BoolFieldUpdateOperationsInput | boolean
|
|
type?: StringFieldUpdateOperationsInput | string
|
|
checkItems?: NullableStringFieldUpdateOperationsInput | string | null
|
|
labels?: NullableStringFieldUpdateOperationsInput | string | null
|
|
images?: NullableStringFieldUpdateOperationsInput | string | null
|
|
links?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminder?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isReminderDone?: BoolFieldUpdateOperationsInput | boolean
|
|
reminderRecurrence?: NullableStringFieldUpdateOperationsInput | string | null
|
|
reminderLocation?: NullableStringFieldUpdateOperationsInput | string | null
|
|
isMarkdown?: BoolFieldUpdateOperationsInput | boolean
|
|
size?: StringFieldUpdateOperationsInput | string
|
|
embedding?: NullableStringFieldUpdateOperationsInput | string | null
|
|
sharedWith?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
order?: IntFieldUpdateOperationsInput | number
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
autoGenerated?: NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
aiProvider?: NullableStringFieldUpdateOperationsInput | string | null
|
|
aiConfidence?: NullableIntFieldUpdateOperationsInput | number | null
|
|
language?: NullableStringFieldUpdateOperationsInput | string | null
|
|
languageConfidence?: NullableFloatFieldUpdateOperationsInput | number | null
|
|
lastAiAnalysis?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type NoteShareCreateManyNoteInput = {
|
|
id?: string
|
|
userId: string
|
|
sharedBy: string
|
|
status?: string
|
|
permission?: string
|
|
notifiedAt?: Date | string | null
|
|
respondedAt?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type AiFeedbackCreateManyNoteInput = {
|
|
id?: string
|
|
userId?: string | null
|
|
feedbackType: string
|
|
feature: string
|
|
originalContent: string
|
|
correctedContent?: string | null
|
|
metadata?: string | null
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateManyNote1Input = {
|
|
id?: string
|
|
userId?: string | null
|
|
note2Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightCreateManyNote2Input = {
|
|
id?: string
|
|
userId?: string | null
|
|
note1Id: string
|
|
similarityScore: number
|
|
insight: string
|
|
insightDate?: Date | string
|
|
viewed?: boolean
|
|
feedback?: string | null
|
|
dismissed?: boolean
|
|
}
|
|
|
|
export type NoteShareUpdateWithoutNoteInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput
|
|
sharer?: UserUpdateOneRequiredWithoutSentSharesNestedInput
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateWithoutNoteInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
sharedBy?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type NoteShareUncheckedUpdateManyWithoutNoteInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: StringFieldUpdateOperationsInput | string
|
|
sharedBy?: StringFieldUpdateOperationsInput | string
|
|
status?: StringFieldUpdateOperationsInput | string
|
|
permission?: StringFieldUpdateOperationsInput | string
|
|
notifiedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
respondedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type LabelUpdateWithoutNotesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
notebook?: NotebookUpdateOneWithoutLabelsNestedInput
|
|
user?: UserUpdateOneWithoutLabelsNestedInput
|
|
}
|
|
|
|
export type LabelUncheckedUpdateWithoutNotesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type LabelUncheckedUpdateManyWithoutNotesInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
name?: StringFieldUpdateOperationsInput | string
|
|
color?: StringFieldUpdateOperationsInput | string
|
|
notebookId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AiFeedbackUpdateWithoutNoteInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: UserUpdateOneWithoutAiFeedbackNestedInput
|
|
}
|
|
|
|
export type AiFeedbackUncheckedUpdateWithoutNoteInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type AiFeedbackUncheckedUpdateManyWithoutNoteInput = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
feedbackType?: StringFieldUpdateOperationsInput | string
|
|
feature?: StringFieldUpdateOperationsInput | string
|
|
originalContent?: StringFieldUpdateOperationsInput | string
|
|
correctedContent?: NullableStringFieldUpdateOperationsInput | string | null
|
|
metadata?: NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateWithoutNote1Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
note2?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote2NestedInput
|
|
user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateWithoutNote1Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
note2Id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateManyWithoutNote1Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
note2Id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightUpdateWithoutNote2Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
note1?: NoteUpdateOneRequiredWithoutMemoryEchoAsNote1NestedInput
|
|
user?: UserUpdateOneWithoutMemoryEchoInsightsNestedInput
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateWithoutNote2Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
note1Id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type MemoryEchoInsightUncheckedUpdateManyWithoutNote2Input = {
|
|
id?: StringFieldUpdateOperationsInput | string
|
|
userId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
note1Id?: StringFieldUpdateOperationsInput | string
|
|
similarityScore?: FloatFieldUpdateOperationsInput | number
|
|
insight?: StringFieldUpdateOperationsInput | string
|
|
insightDate?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
viewed?: BoolFieldUpdateOperationsInput | boolean
|
|
feedback?: NullableStringFieldUpdateOperationsInput | string | null
|
|
dismissed?: BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Aliases for legacy arg types
|
|
*/
|
|
/**
|
|
* @deprecated Use UserCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type UserCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use NotebookCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type NotebookCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = NotebookCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use LabelCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type LabelCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = LabelCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use NoteCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type NoteCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = NoteCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use UserDefaultArgs instead
|
|
*/
|
|
export type UserArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use AccountDefaultArgs instead
|
|
*/
|
|
export type AccountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = AccountDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use SessionDefaultArgs instead
|
|
*/
|
|
export type SessionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SessionDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use VerificationTokenDefaultArgs instead
|
|
*/
|
|
export type VerificationTokenArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = VerificationTokenDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use NotebookDefaultArgs instead
|
|
*/
|
|
export type NotebookArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = NotebookDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use LabelDefaultArgs instead
|
|
*/
|
|
export type LabelArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = LabelDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use NoteDefaultArgs instead
|
|
*/
|
|
export type NoteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = NoteDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use NoteShareDefaultArgs instead
|
|
*/
|
|
export type NoteShareArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = NoteShareDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use SystemConfigDefaultArgs instead
|
|
*/
|
|
export type SystemConfigArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SystemConfigDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use AiFeedbackDefaultArgs instead
|
|
*/
|
|
export type AiFeedbackArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = AiFeedbackDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use MemoryEchoInsightDefaultArgs instead
|
|
*/
|
|
export type MemoryEchoInsightArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MemoryEchoInsightDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use UserAISettingsDefaultArgs instead
|
|
*/
|
|
export type UserAISettingsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserAISettingsDefaultArgs<ExtArgs>
|
|
|
|
/**
|
|
* Batch Payload for updateMany & deleteMany & createMany
|
|
*/
|
|
|
|
export type BatchPayload = {
|
|
count: number
|
|
}
|
|
|
|
/**
|
|
* DMMF
|
|
*/
|
|
export const dmmf: runtime.BaseDMMF
|
|
} |