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

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs> /** * `prisma.priceBook`: Exposes CRUD operations for the **PriceBook** model. * Example usage: * ```ts * // Fetch zero or more PriceBooks * const priceBooks = await prisma.priceBook.findMany() * ``` */ get priceBook(): Prisma.PriceBookDelegate; /** * `prisma.priceTable`: Exposes CRUD operations for the **PriceTable** model. * Example usage: * ```ts * // Fetch zero or more PriceTables * const priceTables = await prisma.priceTable.findMany() * ``` */ get priceTable(): Prisma.PriceTableDelegate; /** * `prisma.priceItem`: Exposes CRUD operations for the **PriceItem** model. * Example usage: * ```ts * // Fetch zero or more PriceItems * const priceItems = await prisma.priceItem.findMany() * ``` */ get priceItem(): Prisma.PriceItemDelegate; /** * `prisma.coefficient`: Exposes CRUD operations for the **Coefficient** model. * Example usage: * ```ts * // Fetch zero or more Coefficients * const coefficients = await prisma.coefficient.findMany() * ``` */ get coefficient(): Prisma.CoefficientDelegate; /** * `prisma.inflationIndex`: Exposes CRUD operations for the **InflationIndex** model. * Example usage: * ```ts * // Fetch zero or more InflationIndices * const inflationIndices = await prisma.inflationIndex.findMany() * ``` */ get inflationIndex(): Prisma.InflationIndexDelegate; /** * `prisma.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate; /** * `prisma.surveyDirection`: Exposes CRUD operations for the **SurveyDirection** model. * Example usage: * ```ts * // Fetch zero or more SurveyDirections * const surveyDirections = await prisma.surveyDirection.findMany() * ``` */ get surveyDirection(): Prisma.SurveyDirectionDelegate; /** * `prisma.estimate`: Exposes CRUD operations for the **Estimate** model. * Example usage: * ```ts * // Fetch zero or more Estimates * const estimates = await prisma.estimate.findMany() * ``` */ get estimate(): Prisma.EstimateDelegate; /** * `prisma.estimateVersion`: Exposes CRUD operations for the **EstimateVersion** model. * Example usage: * ```ts * // Fetch zero or more EstimateVersions * const estimateVersions = await prisma.estimateVersion.findMany() * ``` */ get estimateVersion(): Prisma.EstimateVersionDelegate; /** * `prisma.estimateShare`: Exposes CRUD operations for the **EstimateShare** model. * Example usage: * ```ts * // Fetch zero or more EstimateShares * const estimateShares = await prisma.estimateShare.findMany() * ``` */ get estimateShare(): Prisma.EstimateShareDelegate; /** * `prisma.estimateShareNote`: Exposes CRUD operations for the **EstimateShareNote** model. * Example usage: * ```ts * // Fetch zero or more EstimateShareNotes * const estimateShareNotes = await prisma.estimateShareNote.findMany() * ``` */ get estimateShareNote(): Prisma.EstimateShareNoteDelegate; /** * `prisma.estimateItem`: Exposes CRUD operations for the **EstimateItem** model. * Example usage: * ```ts * // Fetch zero or more EstimateItems * const estimateItems = await prisma.estimateItem.findMany() * ``` */ get estimateItem(): Prisma.EstimateItemDelegate; /** * `prisma.estimateTotal`: Exposes CRUD operations for the **EstimateTotal** model. * Example usage: * ```ts * // Fetch zero or more EstimateTotals * const estimateTotals = await prisma.estimateTotal.findMany() * ``` */ get estimateTotal(): Prisma.EstimateTotalDelegate; /** * `prisma.setting`: Exposes CRUD operations for the **Setting** model. * Example usage: * ```ts * // Fetch zero or more Settings * const settings = await prisma.setting.findMany() * ``` */ get setting(): Prisma.SettingDelegate; /** * `prisma.chatSession`: Exposes CRUD operations for the **ChatSession** model. * Example usage: * ```ts * // Fetch zero or more ChatSessions * const chatSessions = await prisma.chatSession.findMany() * ``` */ get chatSession(): Prisma.ChatSessionDelegate; /** * `prisma.chatMessage`: Exposes CRUD operations for the **ChatMessage** model. * Example usage: * ```ts * // Fetch zero or more ChatMessages * const chatMessages = await prisma.chatMessage.findMany() * ``` */ get chatMessage(): Prisma.ChatMessageDelegate; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise = $Public.PrismaPromise /** * Validator */ export import validator = runtime.Public.validator /** * Prisma Errors */ export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError export import PrismaClientInitializationError = runtime.PrismaClientInitializationError export import PrismaClientValidationError = runtime.PrismaClientValidationError 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 = runtime.Metric export type MetricHistogram = runtime.MetricHistogram export type MetricHistogramBucket = runtime.MetricHistogramBucket /** * Extensions */ export import Extension = $Extensions.UserArgs export import getExtensionContext = runtime.Extensions.getExtensionContext export import Args = $Public.Args export import Payload = $Public.Payload export import Result = $Public.Result export import Exact = $Public.Exact /** * Prisma Client JS version: 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 ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [key in keyof T]: key extends keyof U ? T[key] : never; }; /** * SelectSubset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. * Additionally, it validates, if both select and include are present. If the case, it errors. */ export type SelectSubset = { [key in keyof T]: key extends keyof U ? T[key] : never } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {}) /** * Subset + Intersection * @desc From `T` pick properties that exist in `U` and intersect `K` */ export type SubsetIntersection = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: never }; /** * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ type XOR = T extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False /** * If it's T[], return T */ export type UnEnumerate = T extends Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = NoExpand< O extends unknown ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) | {[P in keyof O as P extends K ? K : never]-?: O[P]} & O : never>; type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ export type False = 0 export type Not = { 0: 1 1: 0 }[B] export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 ? 1 : 0 export type Has = Not< Extends, U1> > export type Or = { 0: { 0: 0 1: 1 } 1: { 0: 1 1: 1 } }[B1][B2] export type Keys = U extends unknown ? keyof U : never type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never } : never type FieldPaths< T, U = Omit > = IsObject extends True ? U : T type GetHavingFields = { [K in keyof T]: Or< Or, Extends<'AND', K>>, Extends<'NOT', K> > extends True ? // infer is only needed to not hit TS limit // based on the brilliant idea of Pierre-Antoine Mills // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 T[K] extends infer TK ? GetHavingFields extends object ? Merge> : never> : never : {} extends FieldPaths ? never : K }[keyof T] /** * Convert tuple to union */ type _TupleToUnion = T extends (infer E)[] ? E : never type TupleToUnion = _TupleToUnion type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef export const ModelName: { PriceBook: 'PriceBook', PriceTable: 'PriceTable', PriceItem: 'PriceItem', Coefficient: 'Coefficient', InflationIndex: 'InflationIndex', User: 'User', SurveyDirection: 'SurveyDirection', Estimate: 'Estimate', EstimateVersion: 'EstimateVersion', EstimateShare: 'EstimateShare', EstimateShareNote: 'EstimateShareNote', EstimateItem: 'EstimateItem', EstimateTotal: 'EstimateTotal', Setting: 'Setting', ChatSession: 'ChatSession', ChatMessage: 'ChatMessage' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { meta: { modelProps: "priceBook" | "priceTable" | "priceItem" | "coefficient" | "inflationIndex" | "user" | "surveyDirection" | "estimate" | "estimateVersion" | "estimateShare" | "estimateShareNote" | "estimateItem" | "estimateTotal" | "setting" | "chatSession" | "chatMessage" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { PriceBook: { payload: Prisma.$PriceBookPayload fields: Prisma.PriceBookFieldRefs operations: { findUnique: { args: Prisma.PriceBookFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PriceBookFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PriceBookFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PriceBookFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PriceBookFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PriceBookCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PriceBookCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PriceBookCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PriceBookDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PriceBookUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PriceBookDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PriceBookUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.PriceBookUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PriceBookAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PriceBookGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PriceBookCountArgs result: $Utils.Optional | number } } } PriceTable: { payload: Prisma.$PriceTablePayload fields: Prisma.PriceTableFieldRefs operations: { findUnique: { args: Prisma.PriceTableFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PriceTableFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PriceTableFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PriceTableFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PriceTableFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PriceTableCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PriceTableCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PriceTableCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PriceTableDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PriceTableUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PriceTableDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PriceTableUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.PriceTableUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PriceTableAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PriceTableGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PriceTableCountArgs result: $Utils.Optional | number } } } PriceItem: { payload: Prisma.$PriceItemPayload fields: Prisma.PriceItemFieldRefs operations: { findUnique: { args: Prisma.PriceItemFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.PriceItemFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.PriceItemFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.PriceItemFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.PriceItemFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.PriceItemCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.PriceItemCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.PriceItemCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.PriceItemDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.PriceItemUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.PriceItemDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.PriceItemUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.PriceItemUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.PriceItemAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.PriceItemGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.PriceItemCountArgs result: $Utils.Optional | number } } } Coefficient: { payload: Prisma.$CoefficientPayload fields: Prisma.CoefficientFieldRefs operations: { findUnique: { args: Prisma.CoefficientFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.CoefficientFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.CoefficientFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.CoefficientFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.CoefficientFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.CoefficientCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.CoefficientCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.CoefficientCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.CoefficientDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.CoefficientUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.CoefficientDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.CoefficientUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.CoefficientUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.CoefficientAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.CoefficientGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.CoefficientCountArgs result: $Utils.Optional | number } } } InflationIndex: { payload: Prisma.$InflationIndexPayload fields: Prisma.InflationIndexFieldRefs operations: { findUnique: { args: Prisma.InflationIndexFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.InflationIndexFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.InflationIndexFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.InflationIndexFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.InflationIndexFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.InflationIndexCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.InflationIndexCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.InflationIndexCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.InflationIndexDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.InflationIndexUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.InflationIndexDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.InflationIndexUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.InflationIndexUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.InflationIndexAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.InflationIndexGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.InflationIndexCountArgs result: $Utils.Optional | number } } } User: { payload: Prisma.$UserPayload fields: Prisma.UserFieldRefs operations: { findUnique: { args: Prisma.UserFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } SurveyDirection: { payload: Prisma.$SurveyDirectionPayload fields: Prisma.SurveyDirectionFieldRefs operations: { findUnique: { args: Prisma.SurveyDirectionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SurveyDirectionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SurveyDirectionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SurveyDirectionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SurveyDirectionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SurveyDirectionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SurveyDirectionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SurveyDirectionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SurveyDirectionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SurveyDirectionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SurveyDirectionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SurveyDirectionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.SurveyDirectionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SurveyDirectionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SurveyDirectionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SurveyDirectionCountArgs result: $Utils.Optional | number } } } Estimate: { payload: Prisma.$EstimatePayload fields: Prisma.EstimateFieldRefs operations: { findUnique: { args: Prisma.EstimateFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EstimateFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EstimateFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EstimateFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EstimateFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EstimateCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EstimateCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EstimateCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EstimateDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EstimateUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EstimateDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EstimateUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EstimateUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EstimateAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EstimateGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EstimateCountArgs result: $Utils.Optional | number } } } EstimateVersion: { payload: Prisma.$EstimateVersionPayload fields: Prisma.EstimateVersionFieldRefs operations: { findUnique: { args: Prisma.EstimateVersionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EstimateVersionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EstimateVersionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EstimateVersionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EstimateVersionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EstimateVersionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EstimateVersionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EstimateVersionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EstimateVersionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EstimateVersionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EstimateVersionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EstimateVersionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EstimateVersionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EstimateVersionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EstimateVersionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EstimateVersionCountArgs result: $Utils.Optional | number } } } EstimateShare: { payload: Prisma.$EstimateSharePayload fields: Prisma.EstimateShareFieldRefs operations: { findUnique: { args: Prisma.EstimateShareFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EstimateShareFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EstimateShareFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EstimateShareFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EstimateShareFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EstimateShareCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EstimateShareCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EstimateShareCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EstimateShareDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EstimateShareUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EstimateShareDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EstimateShareUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EstimateShareUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EstimateShareAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EstimateShareGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EstimateShareCountArgs result: $Utils.Optional | number } } } EstimateShareNote: { payload: Prisma.$EstimateShareNotePayload fields: Prisma.EstimateShareNoteFieldRefs operations: { findUnique: { args: Prisma.EstimateShareNoteFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EstimateShareNoteFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EstimateShareNoteFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EstimateShareNoteFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EstimateShareNoteFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EstimateShareNoteCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EstimateShareNoteCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EstimateShareNoteCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EstimateShareNoteDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EstimateShareNoteUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EstimateShareNoteDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EstimateShareNoteUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EstimateShareNoteUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EstimateShareNoteAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EstimateShareNoteGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EstimateShareNoteCountArgs result: $Utils.Optional | number } } } EstimateItem: { payload: Prisma.$EstimateItemPayload fields: Prisma.EstimateItemFieldRefs operations: { findUnique: { args: Prisma.EstimateItemFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EstimateItemFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EstimateItemFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EstimateItemFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EstimateItemFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EstimateItemCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EstimateItemCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EstimateItemCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EstimateItemDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EstimateItemUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EstimateItemDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EstimateItemUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EstimateItemUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EstimateItemAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EstimateItemGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EstimateItemCountArgs result: $Utils.Optional | number } } } EstimateTotal: { payload: Prisma.$EstimateTotalPayload fields: Prisma.EstimateTotalFieldRefs operations: { findUnique: { args: Prisma.EstimateTotalFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EstimateTotalFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EstimateTotalFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EstimateTotalFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EstimateTotalFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EstimateTotalCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EstimateTotalCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EstimateTotalCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EstimateTotalDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EstimateTotalUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EstimateTotalDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EstimateTotalUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.EstimateTotalUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EstimateTotalAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EstimateTotalGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EstimateTotalCountArgs result: $Utils.Optional | number } } } Setting: { payload: Prisma.$SettingPayload fields: Prisma.SettingFieldRefs operations: { findUnique: { args: Prisma.SettingFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SettingFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SettingFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SettingFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SettingFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SettingCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SettingCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SettingCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SettingDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SettingUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SettingDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SettingUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.SettingUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SettingAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SettingGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SettingCountArgs result: $Utils.Optional | number } } } ChatSession: { payload: Prisma.$ChatSessionPayload fields: Prisma.ChatSessionFieldRefs operations: { findUnique: { args: Prisma.ChatSessionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ChatSessionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ChatSessionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ChatSessionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ChatSessionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ChatSessionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ChatSessionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ChatSessionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ChatSessionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ChatSessionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ChatSessionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ChatSessionUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ChatSessionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ChatSessionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ChatSessionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ChatSessionCountArgs result: $Utils.Optional | number } } } ChatMessage: { payload: Prisma.$ChatMessagePayload fields: Prisma.ChatMessageFieldRefs operations: { findUnique: { args: Prisma.ChatMessageFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ChatMessageFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ChatMessageFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ChatMessageFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ChatMessageFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ChatMessageCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ChatMessageCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ChatMessageCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ChatMessageDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ChatMessageUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ChatMessageDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ChatMessageUpdateManyArgs result: BatchPayload } upsert: { args: Prisma.ChatMessageUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ChatMessageAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ChatMessageGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ChatMessageCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Defaults to stdout * log: ['query', 'info', 'warn', 'error'] * * // Emit as events * log: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } * ] * ``` * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type GetLogType = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never export type GetEvents = T extends Array ? GetLogType | GetLogType | GetLogType | GetLogType : never export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' /** * These options are being passed into the middleware as "params" */ export type MiddlewareParams = { model?: ModelName action: PrismaAction args: any dataPath: string[] runInTransaction: boolean } /** * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation */ export type Middleware = ( params: MiddlewareParams, next: (params: MiddlewareParams) => $Utils.JsPromise, ) => $Utils.JsPromise // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type PriceBookCountOutputType */ export type PriceBookCountOutputType = { tables: number items: number } export type PriceBookCountOutputTypeSelect = { tables?: boolean | PriceBookCountOutputTypeCountTablesArgs items?: boolean | PriceBookCountOutputTypeCountItemsArgs } // Custom InputTypes /** * PriceBookCountOutputType without action */ export type PriceBookCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PriceBookCountOutputType */ select?: PriceBookCountOutputTypeSelect | null } /** * PriceBookCountOutputType without action */ export type PriceBookCountOutputTypeCountTablesArgs = { where?: PriceTableWhereInput } /** * PriceBookCountOutputType without action */ export type PriceBookCountOutputTypeCountItemsArgs = { where?: PriceItemWhereInput } /** * Count Type PriceTableCountOutputType */ export type PriceTableCountOutputType = { items: number } export type PriceTableCountOutputTypeSelect = { items?: boolean | PriceTableCountOutputTypeCountItemsArgs } // Custom InputTypes /** * PriceTableCountOutputType without action */ export type PriceTableCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PriceTableCountOutputType */ select?: PriceTableCountOutputTypeSelect | null } /** * PriceTableCountOutputType without action */ export type PriceTableCountOutputTypeCountItemsArgs = { where?: PriceItemWhereInput } /** * Count Type PriceItemCountOutputType */ export type PriceItemCountOutputType = { estimateItems: number } export type PriceItemCountOutputTypeSelect = { estimateItems?: boolean | PriceItemCountOutputTypeCountEstimateItemsArgs } // Custom InputTypes /** * PriceItemCountOutputType without action */ export type PriceItemCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PriceItemCountOutputType */ select?: PriceItemCountOutputTypeSelect | null } /** * PriceItemCountOutputType without action */ export type PriceItemCountOutputTypeCountEstimateItemsArgs = { where?: EstimateItemWhereInput } /** * Count Type UserCountOutputType */ export type UserCountOutputType = { estimates: number chatSessions: number ownedShares: number receivedShares: number shareNotes: number } export type UserCountOutputTypeSelect = { estimates?: boolean | UserCountOutputTypeCountEstimatesArgs chatSessions?: boolean | UserCountOutputTypeCountChatSessionsArgs ownedShares?: boolean | UserCountOutputTypeCountOwnedSharesArgs receivedShares?: boolean | UserCountOutputTypeCountReceivedSharesArgs shareNotes?: boolean | UserCountOutputTypeCountShareNotesArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountEstimatesArgs = { where?: EstimateWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountChatSessionsArgs = { where?: ChatSessionWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountOwnedSharesArgs = { where?: EstimateShareWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountReceivedSharesArgs = { where?: EstimateShareWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountShareNotesArgs = { where?: EstimateShareNoteWhereInput } /** * Count Type SurveyDirectionCountOutputType */ export type SurveyDirectionCountOutputType = { estimates: number } export type SurveyDirectionCountOutputTypeSelect = { estimates?: boolean | SurveyDirectionCountOutputTypeCountEstimatesArgs } // Custom InputTypes /** * SurveyDirectionCountOutputType without action */ export type SurveyDirectionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SurveyDirectionCountOutputType */ select?: SurveyDirectionCountOutputTypeSelect | null } /** * SurveyDirectionCountOutputType without action */ export type SurveyDirectionCountOutputTypeCountEstimatesArgs = { where?: EstimateWhereInput } /** * Count Type EstimateCountOutputType */ export type EstimateCountOutputType = { items: number totals: number shares: number versions: number } export type EstimateCountOutputTypeSelect = { items?: boolean | EstimateCountOutputTypeCountItemsArgs totals?: boolean | EstimateCountOutputTypeCountTotalsArgs shares?: boolean | EstimateCountOutputTypeCountSharesArgs versions?: boolean | EstimateCountOutputTypeCountVersionsArgs } // Custom InputTypes /** * EstimateCountOutputType without action */ export type EstimateCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the EstimateCountOutputType */ select?: EstimateCountOutputTypeSelect | null } /** * EstimateCountOutputType without action */ export type EstimateCountOutputTypeCountItemsArgs = { where?: EstimateItemWhereInput } /** * EstimateCountOutputType without action */ export type EstimateCountOutputTypeCountTotalsArgs = { where?: EstimateTotalWhereInput } /** * EstimateCountOutputType without action */ export type EstimateCountOutputTypeCountSharesArgs = { where?: EstimateShareWhereInput } /** * EstimateCountOutputType without action */ export type EstimateCountOutputTypeCountVersionsArgs = { where?: EstimateVersionWhereInput } /** * Count Type EstimateShareCountOutputType */ export type EstimateShareCountOutputType = { notes: number } export type EstimateShareCountOutputTypeSelect = { notes?: boolean | EstimateShareCountOutputTypeCountNotesArgs } // Custom InputTypes /** * EstimateShareCountOutputType without action */ export type EstimateShareCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the EstimateShareCountOutputType */ select?: EstimateShareCountOutputTypeSelect | null } /** * EstimateShareCountOutputType without action */ export type EstimateShareCountOutputTypeCountNotesArgs = { where?: EstimateShareNoteWhereInput } /** * Count Type ChatSessionCountOutputType */ export type ChatSessionCountOutputType = { messages: number } export type ChatSessionCountOutputTypeSelect = { messages?: boolean | ChatSessionCountOutputTypeCountMessagesArgs } // Custom InputTypes /** * ChatSessionCountOutputType without action */ export type ChatSessionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ChatSessionCountOutputType */ select?: ChatSessionCountOutputTypeSelect | null } /** * ChatSessionCountOutputType without action */ export type ChatSessionCountOutputTypeCountMessagesArgs = { where?: ChatMessageWhereInput } /** * Models */ /** * Model PriceBook */ export type AggregatePriceBook = { _count: PriceBookCountAggregateOutputType | null _min: PriceBookMinAggregateOutputType | null _max: PriceBookMaxAggregateOutputType | null } export type PriceBookMinAggregateOutputType = { id: string | null code: string | null name: string | null baseDate: Date | null approvedBy: string | null effectiveDate: Date | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type PriceBookMaxAggregateOutputType = { id: string | null code: string | null name: string | null baseDate: Date | null approvedBy: string | null effectiveDate: Date | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type PriceBookCountAggregateOutputType = { id: number code: number name: number baseDate: number approvedBy: number effectiveDate: number isActive: number createdAt: number updatedAt: number _all: number } export type PriceBookMinAggregateInputType = { id?: true code?: true name?: true baseDate?: true approvedBy?: true effectiveDate?: true isActive?: true createdAt?: true updatedAt?: true } export type PriceBookMaxAggregateInputType = { id?: true code?: true name?: true baseDate?: true approvedBy?: true effectiveDate?: true isActive?: true createdAt?: true updatedAt?: true } export type PriceBookCountAggregateInputType = { id?: true code?: true name?: true baseDate?: true approvedBy?: true effectiveDate?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type PriceBookAggregateArgs = { /** * Filter which PriceBook to aggregate. */ where?: PriceBookWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceBooks to fetch. */ orderBy?: PriceBookOrderByWithRelationInput | PriceBookOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PriceBookWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceBooks 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` PriceBooks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PriceBooks **/ _count?: true | PriceBookCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PriceBookMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PriceBookMaxAggregateInputType } export type GetPriceBookAggregateType = { [P in keyof T & keyof AggregatePriceBook]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PriceBookGroupByArgs = { where?: PriceBookWhereInput orderBy?: PriceBookOrderByWithAggregationInput | PriceBookOrderByWithAggregationInput[] by: PriceBookScalarFieldEnum[] | PriceBookScalarFieldEnum having?: PriceBookScalarWhereWithAggregatesInput take?: number skip?: number _count?: PriceBookCountAggregateInputType | true _min?: PriceBookMinAggregateInputType _max?: PriceBookMaxAggregateInputType } export type PriceBookGroupByOutputType = { id: string code: string name: string baseDate: Date approvedBy: string | null effectiveDate: Date | null isActive: boolean createdAt: Date updatedAt: Date _count: PriceBookCountAggregateOutputType | null _min: PriceBookMinAggregateOutputType | null _max: PriceBookMaxAggregateOutputType | null } type GetPriceBookGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PriceBookGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PriceBookSelect = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean baseDate?: boolean approvedBy?: boolean effectiveDate?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean tables?: boolean | PriceBook$tablesArgs items?: boolean | PriceBook$itemsArgs _count?: boolean | PriceBookCountOutputTypeDefaultArgs }, ExtArgs["result"]["priceBook"]> export type PriceBookSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean baseDate?: boolean approvedBy?: boolean effectiveDate?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["priceBook"]> export type PriceBookSelectScalar = { id?: boolean code?: boolean name?: boolean baseDate?: boolean approvedBy?: boolean effectiveDate?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type PriceBookInclude = { tables?: boolean | PriceBook$tablesArgs items?: boolean | PriceBook$itemsArgs _count?: boolean | PriceBookCountOutputTypeDefaultArgs } export type PriceBookIncludeCreateManyAndReturn = {} export type $PriceBookPayload = { name: "PriceBook" objects: { tables: Prisma.$PriceTablePayload[] items: Prisma.$PriceItemPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string code: string name: string baseDate: Date approvedBy: string | null effectiveDate: Date | null isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["priceBook"]> composites: {} } type PriceBookGetPayload = $Result.GetResult type PriceBookCountArgs = Omit & { select?: PriceBookCountAggregateInputType | true } export interface PriceBookDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PriceBook'], meta: { name: 'PriceBook' } } /** * Find zero or one PriceBook that matches the filter. * @param {PriceBookFindUniqueArgs} args - Arguments to find a PriceBook * @example * // Get one PriceBook * const priceBook = await prisma.priceBook.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PriceBookClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one PriceBook that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PriceBookFindUniqueOrThrowArgs} args - Arguments to find a PriceBook * @example * // Get one PriceBook * const priceBook = await prisma.priceBook.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PriceBookClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first PriceBook 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 {PriceBookFindFirstArgs} args - Arguments to find a PriceBook * @example * // Get one PriceBook * const priceBook = await prisma.priceBook.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PriceBookClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first PriceBook 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 {PriceBookFindFirstOrThrowArgs} args - Arguments to find a PriceBook * @example * // Get one PriceBook * const priceBook = await prisma.priceBook.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PriceBookClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more PriceBooks 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 {PriceBookFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PriceBooks * const priceBooks = await prisma.priceBook.findMany() * * // Get first 10 PriceBooks * const priceBooks = await prisma.priceBook.findMany({ take: 10 }) * * // Only select the `id` * const priceBookWithIdOnly = await prisma.priceBook.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a PriceBook. * @param {PriceBookCreateArgs} args - Arguments to create a PriceBook. * @example * // Create one PriceBook * const PriceBook = await prisma.priceBook.create({ * data: { * // ... data to create a PriceBook * } * }) * */ create(args: SelectSubset>): Prisma__PriceBookClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many PriceBooks. * @param {PriceBookCreateManyArgs} args - Arguments to create many PriceBooks. * @example * // Create many PriceBooks * const priceBook = await prisma.priceBook.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PriceBooks and returns the data saved in the database. * @param {PriceBookCreateManyAndReturnArgs} args - Arguments to create many PriceBooks. * @example * // Create many PriceBooks * const priceBook = await prisma.priceBook.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PriceBooks and only return the `id` * const priceBookWithIdOnly = await prisma.priceBook.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a PriceBook. * @param {PriceBookDeleteArgs} args - Arguments to delete one PriceBook. * @example * // Delete one PriceBook * const PriceBook = await prisma.priceBook.delete({ * where: { * // ... filter to delete one PriceBook * } * }) * */ delete(args: SelectSubset>): Prisma__PriceBookClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one PriceBook. * @param {PriceBookUpdateArgs} args - Arguments to update one PriceBook. * @example * // Update one PriceBook * const priceBook = await prisma.priceBook.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PriceBookClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more PriceBooks. * @param {PriceBookDeleteManyArgs} args - Arguments to filter PriceBooks to delete. * @example * // Delete a few PriceBooks * const { count } = await prisma.priceBook.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PriceBooks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceBookUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PriceBooks * const priceBook = await prisma.priceBook.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one PriceBook. * @param {PriceBookUpsertArgs} args - Arguments to update or create a PriceBook. * @example * // Update or create a PriceBook * const priceBook = await prisma.priceBook.upsert({ * create: { * // ... data to create a PriceBook * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PriceBook we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PriceBookClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of PriceBooks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceBookCountArgs} args - Arguments to filter PriceBooks to count. * @example * // Count the number of PriceBooks * const count = await prisma.priceBook.count({ * where: { * // ... the filter for the PriceBooks we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a PriceBook. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceBookAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by PriceBook. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceBookGroupByArgs} 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 PriceBookGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PriceBookGroupByArgs['orderBy'] } : { orderBy?: PriceBookGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetPriceBookGroupByPayload : Prisma.PrismaPromise /** * Fields of the PriceBook model */ readonly fields: PriceBookFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PriceBook. * 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__PriceBookClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tables = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> items = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the PriceBook model */ interface PriceBookFieldRefs { readonly id: FieldRef<"PriceBook", 'String'> readonly code: FieldRef<"PriceBook", 'String'> readonly name: FieldRef<"PriceBook", 'String'> readonly baseDate: FieldRef<"PriceBook", 'DateTime'> readonly approvedBy: FieldRef<"PriceBook", 'String'> readonly effectiveDate: FieldRef<"PriceBook", 'DateTime'> readonly isActive: FieldRef<"PriceBook", 'Boolean'> readonly createdAt: FieldRef<"PriceBook", 'DateTime'> readonly updatedAt: FieldRef<"PriceBook", 'DateTime'> } // Custom InputTypes /** * PriceBook findUnique */ export type PriceBookFindUniqueArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null /** * Filter, which PriceBook to fetch. */ where: PriceBookWhereUniqueInput } /** * PriceBook findUniqueOrThrow */ export type PriceBookFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null /** * Filter, which PriceBook to fetch. */ where: PriceBookWhereUniqueInput } /** * PriceBook findFirst */ export type PriceBookFindFirstArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null /** * Filter, which PriceBook to fetch. */ where?: PriceBookWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceBooks to fetch. */ orderBy?: PriceBookOrderByWithRelationInput | PriceBookOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PriceBooks. */ cursor?: PriceBookWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceBooks 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` PriceBooks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PriceBooks. */ distinct?: PriceBookScalarFieldEnum | PriceBookScalarFieldEnum[] } /** * PriceBook findFirstOrThrow */ export type PriceBookFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null /** * Filter, which PriceBook to fetch. */ where?: PriceBookWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceBooks to fetch. */ orderBy?: PriceBookOrderByWithRelationInput | PriceBookOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PriceBooks. */ cursor?: PriceBookWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceBooks 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` PriceBooks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PriceBooks. */ distinct?: PriceBookScalarFieldEnum | PriceBookScalarFieldEnum[] } /** * PriceBook findMany */ export type PriceBookFindManyArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null /** * Filter, which PriceBooks to fetch. */ where?: PriceBookWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceBooks to fetch. */ orderBy?: PriceBookOrderByWithRelationInput | PriceBookOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PriceBooks. */ cursor?: PriceBookWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceBooks 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` PriceBooks. */ skip?: number distinct?: PriceBookScalarFieldEnum | PriceBookScalarFieldEnum[] } /** * PriceBook create */ export type PriceBookCreateArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null /** * The data needed to create a PriceBook. */ data: XOR } /** * PriceBook createMany */ export type PriceBookCreateManyArgs = { /** * The data used to create many PriceBooks. */ data: PriceBookCreateManyInput | PriceBookCreateManyInput[] skipDuplicates?: boolean } /** * PriceBook createManyAndReturn */ export type PriceBookCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelectCreateManyAndReturn | null /** * The data used to create many PriceBooks. */ data: PriceBookCreateManyInput | PriceBookCreateManyInput[] skipDuplicates?: boolean } /** * PriceBook update */ export type PriceBookUpdateArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null /** * The data needed to update a PriceBook. */ data: XOR /** * Choose, which PriceBook to update. */ where: PriceBookWhereUniqueInput } /** * PriceBook updateMany */ export type PriceBookUpdateManyArgs = { /** * The data used to update PriceBooks. */ data: XOR /** * Filter which PriceBooks to update */ where?: PriceBookWhereInput } /** * PriceBook upsert */ export type PriceBookUpsertArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null /** * The filter to search for the PriceBook to update in case it exists. */ where: PriceBookWhereUniqueInput /** * In case the PriceBook found by the `where` argument doesn't exist, create a new PriceBook with this data. */ create: XOR /** * In case the PriceBook was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PriceBook delete */ export type PriceBookDeleteArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null /** * Filter which PriceBook to delete. */ where: PriceBookWhereUniqueInput } /** * PriceBook deleteMany */ export type PriceBookDeleteManyArgs = { /** * Filter which PriceBooks to delete */ where?: PriceBookWhereInput } /** * PriceBook.tables */ export type PriceBook$tablesArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null where?: PriceTableWhereInput orderBy?: PriceTableOrderByWithRelationInput | PriceTableOrderByWithRelationInput[] cursor?: PriceTableWhereUniqueInput take?: number skip?: number distinct?: PriceTableScalarFieldEnum | PriceTableScalarFieldEnum[] } /** * PriceBook.items */ export type PriceBook$itemsArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null where?: PriceItemWhereInput orderBy?: PriceItemOrderByWithRelationInput | PriceItemOrderByWithRelationInput[] cursor?: PriceItemWhereUniqueInput take?: number skip?: number distinct?: PriceItemScalarFieldEnum | PriceItemScalarFieldEnum[] } /** * PriceBook without action */ export type PriceBookDefaultArgs = { /** * Select specific fields to fetch from the PriceBook */ select?: PriceBookSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceBookInclude | null } /** * Model PriceTable */ export type AggregatePriceTable = { _count: PriceTableCountAggregateOutputType | null _avg: PriceTableAvgAggregateOutputType | null _sum: PriceTableSumAggregateOutputType | null _min: PriceTableMinAggregateOutputType | null _max: PriceTableMaxAggregateOutputType | null } export type PriceTableAvgAggregateOutputType = { tableNumber: number | null } export type PriceTableSumAggregateOutputType = { tableNumber: number | null } export type PriceTableMinAggregateOutputType = { id: string | null priceBookId: string | null tableNumber: number | null name: string | null unit: string | null createdAt: Date | null updatedAt: Date | null } export type PriceTableMaxAggregateOutputType = { id: string | null priceBookId: string | null tableNumber: number | null name: string | null unit: string | null createdAt: Date | null updatedAt: Date | null } export type PriceTableCountAggregateOutputType = { id: number priceBookId: number tableNumber: number name: number unit: number notes: number createdAt: number updatedAt: number _all: number } export type PriceTableAvgAggregateInputType = { tableNumber?: true } export type PriceTableSumAggregateInputType = { tableNumber?: true } export type PriceTableMinAggregateInputType = { id?: true priceBookId?: true tableNumber?: true name?: true unit?: true createdAt?: true updatedAt?: true } export type PriceTableMaxAggregateInputType = { id?: true priceBookId?: true tableNumber?: true name?: true unit?: true createdAt?: true updatedAt?: true } export type PriceTableCountAggregateInputType = { id?: true priceBookId?: true tableNumber?: true name?: true unit?: true notes?: true createdAt?: true updatedAt?: true _all?: true } export type PriceTableAggregateArgs = { /** * Filter which PriceTable to aggregate. */ where?: PriceTableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceTables to fetch. */ orderBy?: PriceTableOrderByWithRelationInput | PriceTableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PriceTableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceTables 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` PriceTables. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PriceTables **/ _count?: true | PriceTableCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PriceTableAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PriceTableSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PriceTableMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PriceTableMaxAggregateInputType } export type GetPriceTableAggregateType = { [P in keyof T & keyof AggregatePriceTable]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PriceTableGroupByArgs = { where?: PriceTableWhereInput orderBy?: PriceTableOrderByWithAggregationInput | PriceTableOrderByWithAggregationInput[] by: PriceTableScalarFieldEnum[] | PriceTableScalarFieldEnum having?: PriceTableScalarWhereWithAggregatesInput take?: number skip?: number _count?: PriceTableCountAggregateInputType | true _avg?: PriceTableAvgAggregateInputType _sum?: PriceTableSumAggregateInputType _min?: PriceTableMinAggregateInputType _max?: PriceTableMaxAggregateInputType } export type PriceTableGroupByOutputType = { id: string priceBookId: string tableNumber: number name: string unit: string notes: JsonValue | null createdAt: Date updatedAt: Date _count: PriceTableCountAggregateOutputType | null _avg: PriceTableAvgAggregateOutputType | null _sum: PriceTableSumAggregateOutputType | null _min: PriceTableMinAggregateOutputType | null _max: PriceTableMaxAggregateOutputType | null } type GetPriceTableGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PriceTableGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PriceTableSelect = $Extensions.GetSelect<{ id?: boolean priceBookId?: boolean tableNumber?: boolean name?: boolean unit?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean priceBook?: boolean | PriceBookDefaultArgs items?: boolean | PriceTable$itemsArgs _count?: boolean | PriceTableCountOutputTypeDefaultArgs }, ExtArgs["result"]["priceTable"]> export type PriceTableSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean priceBookId?: boolean tableNumber?: boolean name?: boolean unit?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean priceBook?: boolean | PriceBookDefaultArgs }, ExtArgs["result"]["priceTable"]> export type PriceTableSelectScalar = { id?: boolean priceBookId?: boolean tableNumber?: boolean name?: boolean unit?: boolean notes?: boolean createdAt?: boolean updatedAt?: boolean } export type PriceTableInclude = { priceBook?: boolean | PriceBookDefaultArgs items?: boolean | PriceTable$itemsArgs _count?: boolean | PriceTableCountOutputTypeDefaultArgs } export type PriceTableIncludeCreateManyAndReturn = { priceBook?: boolean | PriceBookDefaultArgs } export type $PriceTablePayload = { name: "PriceTable" objects: { priceBook: Prisma.$PriceBookPayload items: Prisma.$PriceItemPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string priceBookId: string tableNumber: number name: string unit: string notes: Prisma.JsonValue | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["priceTable"]> composites: {} } type PriceTableGetPayload = $Result.GetResult type PriceTableCountArgs = Omit & { select?: PriceTableCountAggregateInputType | true } export interface PriceTableDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PriceTable'], meta: { name: 'PriceTable' } } /** * Find zero or one PriceTable that matches the filter. * @param {PriceTableFindUniqueArgs} args - Arguments to find a PriceTable * @example * // Get one PriceTable * const priceTable = await prisma.priceTable.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PriceTableClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one PriceTable that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PriceTableFindUniqueOrThrowArgs} args - Arguments to find a PriceTable * @example * // Get one PriceTable * const priceTable = await prisma.priceTable.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PriceTableClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first PriceTable 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 {PriceTableFindFirstArgs} args - Arguments to find a PriceTable * @example * // Get one PriceTable * const priceTable = await prisma.priceTable.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PriceTableClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first PriceTable 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 {PriceTableFindFirstOrThrowArgs} args - Arguments to find a PriceTable * @example * // Get one PriceTable * const priceTable = await prisma.priceTable.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PriceTableClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more PriceTables 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 {PriceTableFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PriceTables * const priceTables = await prisma.priceTable.findMany() * * // Get first 10 PriceTables * const priceTables = await prisma.priceTable.findMany({ take: 10 }) * * // Only select the `id` * const priceTableWithIdOnly = await prisma.priceTable.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a PriceTable. * @param {PriceTableCreateArgs} args - Arguments to create a PriceTable. * @example * // Create one PriceTable * const PriceTable = await prisma.priceTable.create({ * data: { * // ... data to create a PriceTable * } * }) * */ create(args: SelectSubset>): Prisma__PriceTableClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many PriceTables. * @param {PriceTableCreateManyArgs} args - Arguments to create many PriceTables. * @example * // Create many PriceTables * const priceTable = await prisma.priceTable.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PriceTables and returns the data saved in the database. * @param {PriceTableCreateManyAndReturnArgs} args - Arguments to create many PriceTables. * @example * // Create many PriceTables * const priceTable = await prisma.priceTable.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PriceTables and only return the `id` * const priceTableWithIdOnly = await prisma.priceTable.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a PriceTable. * @param {PriceTableDeleteArgs} args - Arguments to delete one PriceTable. * @example * // Delete one PriceTable * const PriceTable = await prisma.priceTable.delete({ * where: { * // ... filter to delete one PriceTable * } * }) * */ delete(args: SelectSubset>): Prisma__PriceTableClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one PriceTable. * @param {PriceTableUpdateArgs} args - Arguments to update one PriceTable. * @example * // Update one PriceTable * const priceTable = await prisma.priceTable.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PriceTableClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more PriceTables. * @param {PriceTableDeleteManyArgs} args - Arguments to filter PriceTables to delete. * @example * // Delete a few PriceTables * const { count } = await prisma.priceTable.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PriceTables. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceTableUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PriceTables * const priceTable = await prisma.priceTable.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one PriceTable. * @param {PriceTableUpsertArgs} args - Arguments to update or create a PriceTable. * @example * // Update or create a PriceTable * const priceTable = await prisma.priceTable.upsert({ * create: { * // ... data to create a PriceTable * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PriceTable we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PriceTableClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of PriceTables. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceTableCountArgs} args - Arguments to filter PriceTables to count. * @example * // Count the number of PriceTables * const count = await prisma.priceTable.count({ * where: { * // ... the filter for the PriceTables we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a PriceTable. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceTableAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by PriceTable. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceTableGroupByArgs} 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 PriceTableGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PriceTableGroupByArgs['orderBy'] } : { orderBy?: PriceTableGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetPriceTableGroupByPayload : Prisma.PrismaPromise /** * Fields of the PriceTable model */ readonly fields: PriceTableFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PriceTable. * 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__PriceTableClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" priceBook = {}>(args?: Subset>): Prisma__PriceBookClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> items = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the PriceTable model */ interface PriceTableFieldRefs { readonly id: FieldRef<"PriceTable", 'String'> readonly priceBookId: FieldRef<"PriceTable", 'String'> readonly tableNumber: FieldRef<"PriceTable", 'Int'> readonly name: FieldRef<"PriceTable", 'String'> readonly unit: FieldRef<"PriceTable", 'String'> readonly notes: FieldRef<"PriceTable", 'Json'> readonly createdAt: FieldRef<"PriceTable", 'DateTime'> readonly updatedAt: FieldRef<"PriceTable", 'DateTime'> } // Custom InputTypes /** * PriceTable findUnique */ export type PriceTableFindUniqueArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null /** * Filter, which PriceTable to fetch. */ where: PriceTableWhereUniqueInput } /** * PriceTable findUniqueOrThrow */ export type PriceTableFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null /** * Filter, which PriceTable to fetch. */ where: PriceTableWhereUniqueInput } /** * PriceTable findFirst */ export type PriceTableFindFirstArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null /** * Filter, which PriceTable to fetch. */ where?: PriceTableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceTables to fetch. */ orderBy?: PriceTableOrderByWithRelationInput | PriceTableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PriceTables. */ cursor?: PriceTableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceTables 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` PriceTables. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PriceTables. */ distinct?: PriceTableScalarFieldEnum | PriceTableScalarFieldEnum[] } /** * PriceTable findFirstOrThrow */ export type PriceTableFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null /** * Filter, which PriceTable to fetch. */ where?: PriceTableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceTables to fetch. */ orderBy?: PriceTableOrderByWithRelationInput | PriceTableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PriceTables. */ cursor?: PriceTableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceTables 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` PriceTables. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PriceTables. */ distinct?: PriceTableScalarFieldEnum | PriceTableScalarFieldEnum[] } /** * PriceTable findMany */ export type PriceTableFindManyArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null /** * Filter, which PriceTables to fetch. */ where?: PriceTableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceTables to fetch. */ orderBy?: PriceTableOrderByWithRelationInput | PriceTableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PriceTables. */ cursor?: PriceTableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceTables 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` PriceTables. */ skip?: number distinct?: PriceTableScalarFieldEnum | PriceTableScalarFieldEnum[] } /** * PriceTable create */ export type PriceTableCreateArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null /** * The data needed to create a PriceTable. */ data: XOR } /** * PriceTable createMany */ export type PriceTableCreateManyArgs = { /** * The data used to create many PriceTables. */ data: PriceTableCreateManyInput | PriceTableCreateManyInput[] skipDuplicates?: boolean } /** * PriceTable createManyAndReturn */ export type PriceTableCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelectCreateManyAndReturn | null /** * The data used to create many PriceTables. */ data: PriceTableCreateManyInput | PriceTableCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PriceTableIncludeCreateManyAndReturn | null } /** * PriceTable update */ export type PriceTableUpdateArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null /** * The data needed to update a PriceTable. */ data: XOR /** * Choose, which PriceTable to update. */ where: PriceTableWhereUniqueInput } /** * PriceTable updateMany */ export type PriceTableUpdateManyArgs = { /** * The data used to update PriceTables. */ data: XOR /** * Filter which PriceTables to update */ where?: PriceTableWhereInput } /** * PriceTable upsert */ export type PriceTableUpsertArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null /** * The filter to search for the PriceTable to update in case it exists. */ where: PriceTableWhereUniqueInput /** * In case the PriceTable found by the `where` argument doesn't exist, create a new PriceTable with this data. */ create: XOR /** * In case the PriceTable was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PriceTable delete */ export type PriceTableDeleteArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null /** * Filter which PriceTable to delete. */ where: PriceTableWhereUniqueInput } /** * PriceTable deleteMany */ export type PriceTableDeleteManyArgs = { /** * Filter which PriceTables to delete */ where?: PriceTableWhereInput } /** * PriceTable.items */ export type PriceTable$itemsArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null where?: PriceItemWhereInput orderBy?: PriceItemOrderByWithRelationInput | PriceItemOrderByWithRelationInput[] cursor?: PriceItemWhereUniqueInput take?: number skip?: number distinct?: PriceItemScalarFieldEnum | PriceItemScalarFieldEnum[] } /** * PriceTable without action */ export type PriceTableDefaultArgs = { /** * Select specific fields to fetch from the PriceTable */ select?: PriceTableSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceTableInclude | null } /** * Model PriceItem */ export type AggregatePriceItem = { _count: PriceItemCountAggregateOutputType | null _avg: PriceItemAvgAggregateOutputType | null _sum: PriceItemSumAggregateOutputType | null _min: PriceItemMinAggregateOutputType | null _max: PriceItemMaxAggregateOutputType | null } export type PriceItemAvgAggregateOutputType = { priceField1: Decimal | null priceOffice1: Decimal | null priceField2: Decimal | null priceOffice2: Decimal | null priceField3: Decimal | null priceOffice3: Decimal | null priceSimple: Decimal | null } export type PriceItemSumAggregateOutputType = { priceField1: Decimal | null priceOffice1: Decimal | null priceField2: Decimal | null priceOffice2: Decimal | null priceField3: Decimal | null priceOffice3: Decimal | null priceSimple: Decimal | null } export type PriceItemMinAggregateOutputType = { id: string | null priceBookId: string | null priceTableId: string | null paragraph: string | null workType: string | null description: string | null priceField1: Decimal | null priceOffice1: Decimal | null priceField2: Decimal | null priceOffice2: Decimal | null priceField3: Decimal | null priceOffice3: Decimal | null priceSimple: Decimal | null createdAt: Date | null updatedAt: Date | null } export type PriceItemMaxAggregateOutputType = { id: string | null priceBookId: string | null priceTableId: string | null paragraph: string | null workType: string | null description: string | null priceField1: Decimal | null priceOffice1: Decimal | null priceField2: Decimal | null priceOffice2: Decimal | null priceField3: Decimal | null priceOffice3: Decimal | null priceSimple: Decimal | null createdAt: Date | null updatedAt: Date | null } export type PriceItemCountAggregateOutputType = { id: number priceBookId: number priceTableId: number paragraph: number workType: number description: number priceField1: number priceOffice1: number priceField2: number priceOffice2: number priceField3: number priceOffice3: number priceSimple: number attributes: number createdAt: number updatedAt: number _all: number } export type PriceItemAvgAggregateInputType = { priceField1?: true priceOffice1?: true priceField2?: true priceOffice2?: true priceField3?: true priceOffice3?: true priceSimple?: true } export type PriceItemSumAggregateInputType = { priceField1?: true priceOffice1?: true priceField2?: true priceOffice2?: true priceField3?: true priceOffice3?: true priceSimple?: true } export type PriceItemMinAggregateInputType = { id?: true priceBookId?: true priceTableId?: true paragraph?: true workType?: true description?: true priceField1?: true priceOffice1?: true priceField2?: true priceOffice2?: true priceField3?: true priceOffice3?: true priceSimple?: true createdAt?: true updatedAt?: true } export type PriceItemMaxAggregateInputType = { id?: true priceBookId?: true priceTableId?: true paragraph?: true workType?: true description?: true priceField1?: true priceOffice1?: true priceField2?: true priceOffice2?: true priceField3?: true priceOffice3?: true priceSimple?: true createdAt?: true updatedAt?: true } export type PriceItemCountAggregateInputType = { id?: true priceBookId?: true priceTableId?: true paragraph?: true workType?: true description?: true priceField1?: true priceOffice1?: true priceField2?: true priceOffice2?: true priceField3?: true priceOffice3?: true priceSimple?: true attributes?: true createdAt?: true updatedAt?: true _all?: true } export type PriceItemAggregateArgs = { /** * Filter which PriceItem to aggregate. */ where?: PriceItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceItems to fetch. */ orderBy?: PriceItemOrderByWithRelationInput | PriceItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: PriceItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceItems 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` PriceItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PriceItems **/ _count?: true | PriceItemCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PriceItemAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PriceItemSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PriceItemMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PriceItemMaxAggregateInputType } export type GetPriceItemAggregateType = { [P in keyof T & keyof AggregatePriceItem]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type PriceItemGroupByArgs = { where?: PriceItemWhereInput orderBy?: PriceItemOrderByWithAggregationInput | PriceItemOrderByWithAggregationInput[] by: PriceItemScalarFieldEnum[] | PriceItemScalarFieldEnum having?: PriceItemScalarWhereWithAggregatesInput take?: number skip?: number _count?: PriceItemCountAggregateInputType | true _avg?: PriceItemAvgAggregateInputType _sum?: PriceItemSumAggregateInputType _min?: PriceItemMinAggregateInputType _max?: PriceItemMaxAggregateInputType } export type PriceItemGroupByOutputType = { id: string priceBookId: string priceTableId: string paragraph: string workType: string description: string | null priceField1: Decimal | null priceOffice1: Decimal | null priceField2: Decimal | null priceOffice2: Decimal | null priceField3: Decimal | null priceOffice3: Decimal | null priceSimple: Decimal | null attributes: JsonValue | null createdAt: Date updatedAt: Date _count: PriceItemCountAggregateOutputType | null _avg: PriceItemAvgAggregateOutputType | null _sum: PriceItemSumAggregateOutputType | null _min: PriceItemMinAggregateOutputType | null _max: PriceItemMaxAggregateOutputType | null } type GetPriceItemGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof PriceItemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type PriceItemSelect = $Extensions.GetSelect<{ id?: boolean priceBookId?: boolean priceTableId?: boolean paragraph?: boolean workType?: boolean description?: boolean priceField1?: boolean priceOffice1?: boolean priceField2?: boolean priceOffice2?: boolean priceField3?: boolean priceOffice3?: boolean priceSimple?: boolean attributes?: boolean createdAt?: boolean updatedAt?: boolean priceBook?: boolean | PriceBookDefaultArgs priceTable?: boolean | PriceTableDefaultArgs estimateItems?: boolean | PriceItem$estimateItemsArgs _count?: boolean | PriceItemCountOutputTypeDefaultArgs }, ExtArgs["result"]["priceItem"]> export type PriceItemSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean priceBookId?: boolean priceTableId?: boolean paragraph?: boolean workType?: boolean description?: boolean priceField1?: boolean priceOffice1?: boolean priceField2?: boolean priceOffice2?: boolean priceField3?: boolean priceOffice3?: boolean priceSimple?: boolean attributes?: boolean createdAt?: boolean updatedAt?: boolean priceBook?: boolean | PriceBookDefaultArgs priceTable?: boolean | PriceTableDefaultArgs }, ExtArgs["result"]["priceItem"]> export type PriceItemSelectScalar = { id?: boolean priceBookId?: boolean priceTableId?: boolean paragraph?: boolean workType?: boolean description?: boolean priceField1?: boolean priceOffice1?: boolean priceField2?: boolean priceOffice2?: boolean priceField3?: boolean priceOffice3?: boolean priceSimple?: boolean attributes?: boolean createdAt?: boolean updatedAt?: boolean } export type PriceItemInclude = { priceBook?: boolean | PriceBookDefaultArgs priceTable?: boolean | PriceTableDefaultArgs estimateItems?: boolean | PriceItem$estimateItemsArgs _count?: boolean | PriceItemCountOutputTypeDefaultArgs } export type PriceItemIncludeCreateManyAndReturn = { priceBook?: boolean | PriceBookDefaultArgs priceTable?: boolean | PriceTableDefaultArgs } export type $PriceItemPayload = { name: "PriceItem" objects: { priceBook: Prisma.$PriceBookPayload priceTable: Prisma.$PriceTablePayload estimateItems: Prisma.$EstimateItemPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string priceBookId: string priceTableId: string paragraph: string workType: string description: string | null priceField1: Prisma.Decimal | null priceOffice1: Prisma.Decimal | null priceField2: Prisma.Decimal | null priceOffice2: Prisma.Decimal | null priceField3: Prisma.Decimal | null priceOffice3: Prisma.Decimal | null priceSimple: Prisma.Decimal | null attributes: Prisma.JsonValue | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["priceItem"]> composites: {} } type PriceItemGetPayload = $Result.GetResult type PriceItemCountArgs = Omit & { select?: PriceItemCountAggregateInputType | true } export interface PriceItemDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PriceItem'], meta: { name: 'PriceItem' } } /** * Find zero or one PriceItem that matches the filter. * @param {PriceItemFindUniqueArgs} args - Arguments to find a PriceItem * @example * // Get one PriceItem * const priceItem = await prisma.priceItem.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__PriceItemClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one PriceItem that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PriceItemFindUniqueOrThrowArgs} args - Arguments to find a PriceItem * @example * // Get one PriceItem * const priceItem = await prisma.priceItem.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__PriceItemClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first PriceItem 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 {PriceItemFindFirstArgs} args - Arguments to find a PriceItem * @example * // Get one PriceItem * const priceItem = await prisma.priceItem.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__PriceItemClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first PriceItem 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 {PriceItemFindFirstOrThrowArgs} args - Arguments to find a PriceItem * @example * // Get one PriceItem * const priceItem = await prisma.priceItem.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__PriceItemClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more PriceItems 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 {PriceItemFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PriceItems * const priceItems = await prisma.priceItem.findMany() * * // Get first 10 PriceItems * const priceItems = await prisma.priceItem.findMany({ take: 10 }) * * // Only select the `id` * const priceItemWithIdOnly = await prisma.priceItem.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a PriceItem. * @param {PriceItemCreateArgs} args - Arguments to create a PriceItem. * @example * // Create one PriceItem * const PriceItem = await prisma.priceItem.create({ * data: { * // ... data to create a PriceItem * } * }) * */ create(args: SelectSubset>): Prisma__PriceItemClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many PriceItems. * @param {PriceItemCreateManyArgs} args - Arguments to create many PriceItems. * @example * // Create many PriceItems * const priceItem = await prisma.priceItem.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many PriceItems and returns the data saved in the database. * @param {PriceItemCreateManyAndReturnArgs} args - Arguments to create many PriceItems. * @example * // Create many PriceItems * const priceItem = await prisma.priceItem.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PriceItems and only return the `id` * const priceItemWithIdOnly = await prisma.priceItem.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a PriceItem. * @param {PriceItemDeleteArgs} args - Arguments to delete one PriceItem. * @example * // Delete one PriceItem * const PriceItem = await prisma.priceItem.delete({ * where: { * // ... filter to delete one PriceItem * } * }) * */ delete(args: SelectSubset>): Prisma__PriceItemClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one PriceItem. * @param {PriceItemUpdateArgs} args - Arguments to update one PriceItem. * @example * // Update one PriceItem * const priceItem = await prisma.priceItem.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__PriceItemClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more PriceItems. * @param {PriceItemDeleteManyArgs} args - Arguments to filter PriceItems to delete. * @example * // Delete a few PriceItems * const { count } = await prisma.priceItem.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PriceItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceItemUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PriceItems * const priceItem = await prisma.priceItem.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one PriceItem. * @param {PriceItemUpsertArgs} args - Arguments to update or create a PriceItem. * @example * // Update or create a PriceItem * const priceItem = await prisma.priceItem.upsert({ * create: { * // ... data to create a PriceItem * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PriceItem we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__PriceItemClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of PriceItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceItemCountArgs} args - Arguments to filter PriceItems to count. * @example * // Count the number of PriceItems * const count = await prisma.priceItem.count({ * where: { * // ... the filter for the PriceItems we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a PriceItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceItemAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by PriceItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PriceItemGroupByArgs} 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 PriceItemGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: PriceItemGroupByArgs['orderBy'] } : { orderBy?: PriceItemGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetPriceItemGroupByPayload : Prisma.PrismaPromise /** * Fields of the PriceItem model */ readonly fields: PriceItemFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PriceItem. * 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__PriceItemClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" priceBook = {}>(args?: Subset>): Prisma__PriceBookClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> priceTable = {}>(args?: Subset>): Prisma__PriceTableClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> estimateItems = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the PriceItem model */ interface PriceItemFieldRefs { readonly id: FieldRef<"PriceItem", 'String'> readonly priceBookId: FieldRef<"PriceItem", 'String'> readonly priceTableId: FieldRef<"PriceItem", 'String'> readonly paragraph: FieldRef<"PriceItem", 'String'> readonly workType: FieldRef<"PriceItem", 'String'> readonly description: FieldRef<"PriceItem", 'String'> readonly priceField1: FieldRef<"PriceItem", 'Decimal'> readonly priceOffice1: FieldRef<"PriceItem", 'Decimal'> readonly priceField2: FieldRef<"PriceItem", 'Decimal'> readonly priceOffice2: FieldRef<"PriceItem", 'Decimal'> readonly priceField3: FieldRef<"PriceItem", 'Decimal'> readonly priceOffice3: FieldRef<"PriceItem", 'Decimal'> readonly priceSimple: FieldRef<"PriceItem", 'Decimal'> readonly attributes: FieldRef<"PriceItem", 'Json'> readonly createdAt: FieldRef<"PriceItem", 'DateTime'> readonly updatedAt: FieldRef<"PriceItem", 'DateTime'> } // Custom InputTypes /** * PriceItem findUnique */ export type PriceItemFindUniqueArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null /** * Filter, which PriceItem to fetch. */ where: PriceItemWhereUniqueInput } /** * PriceItem findUniqueOrThrow */ export type PriceItemFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null /** * Filter, which PriceItem to fetch. */ where: PriceItemWhereUniqueInput } /** * PriceItem findFirst */ export type PriceItemFindFirstArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null /** * Filter, which PriceItem to fetch. */ where?: PriceItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceItems to fetch. */ orderBy?: PriceItemOrderByWithRelationInput | PriceItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PriceItems. */ cursor?: PriceItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceItems 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` PriceItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PriceItems. */ distinct?: PriceItemScalarFieldEnum | PriceItemScalarFieldEnum[] } /** * PriceItem findFirstOrThrow */ export type PriceItemFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null /** * Filter, which PriceItem to fetch. */ where?: PriceItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceItems to fetch. */ orderBy?: PriceItemOrderByWithRelationInput | PriceItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PriceItems. */ cursor?: PriceItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceItems 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` PriceItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PriceItems. */ distinct?: PriceItemScalarFieldEnum | PriceItemScalarFieldEnum[] } /** * PriceItem findMany */ export type PriceItemFindManyArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null /** * Filter, which PriceItems to fetch. */ where?: PriceItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PriceItems to fetch. */ orderBy?: PriceItemOrderByWithRelationInput | PriceItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PriceItems. */ cursor?: PriceItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PriceItems 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` PriceItems. */ skip?: number distinct?: PriceItemScalarFieldEnum | PriceItemScalarFieldEnum[] } /** * PriceItem create */ export type PriceItemCreateArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null /** * The data needed to create a PriceItem. */ data: XOR } /** * PriceItem createMany */ export type PriceItemCreateManyArgs = { /** * The data used to create many PriceItems. */ data: PriceItemCreateManyInput | PriceItemCreateManyInput[] skipDuplicates?: boolean } /** * PriceItem createManyAndReturn */ export type PriceItemCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelectCreateManyAndReturn | null /** * The data used to create many PriceItems. */ data: PriceItemCreateManyInput | PriceItemCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: PriceItemIncludeCreateManyAndReturn | null } /** * PriceItem update */ export type PriceItemUpdateArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null /** * The data needed to update a PriceItem. */ data: XOR /** * Choose, which PriceItem to update. */ where: PriceItemWhereUniqueInput } /** * PriceItem updateMany */ export type PriceItemUpdateManyArgs = { /** * The data used to update PriceItems. */ data: XOR /** * Filter which PriceItems to update */ where?: PriceItemWhereInput } /** * PriceItem upsert */ export type PriceItemUpsertArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null /** * The filter to search for the PriceItem to update in case it exists. */ where: PriceItemWhereUniqueInput /** * In case the PriceItem found by the `where` argument doesn't exist, create a new PriceItem with this data. */ create: XOR /** * In case the PriceItem was found with the provided `where` argument, update it with this data. */ update: XOR } /** * PriceItem delete */ export type PriceItemDeleteArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null /** * Filter which PriceItem to delete. */ where: PriceItemWhereUniqueInput } /** * PriceItem deleteMany */ export type PriceItemDeleteManyArgs = { /** * Filter which PriceItems to delete */ where?: PriceItemWhereInput } /** * PriceItem.estimateItems */ export type PriceItem$estimateItemsArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null where?: EstimateItemWhereInput orderBy?: EstimateItemOrderByWithRelationInput | EstimateItemOrderByWithRelationInput[] cursor?: EstimateItemWhereUniqueInput take?: number skip?: number distinct?: EstimateItemScalarFieldEnum | EstimateItemScalarFieldEnum[] } /** * PriceItem without action */ export type PriceItemDefaultArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null } /** * Model Coefficient */ export type AggregateCoefficient = { _count: CoefficientCountAggregateOutputType | null _avg: CoefficientAvgAggregateOutputType | null _sum: CoefficientSumAggregateOutputType | null _min: CoefficientMinAggregateOutputType | null _max: CoefficientMaxAggregateOutputType | null } export type CoefficientAvgAggregateOutputType = { value: Decimal | null } export type CoefficientSumAggregateOutputType = { value: Decimal | null } export type CoefficientMinAggregateOutputType = { id: string | null type: string | null code: string | null name: string | null value: Decimal | null description: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type CoefficientMaxAggregateOutputType = { id: string | null type: string | null code: string | null name: string | null value: Decimal | null description: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type CoefficientCountAggregateOutputType = { id: number type: number code: number name: number value: number description: number conditions: number isActive: number createdAt: number updatedAt: number _all: number } export type CoefficientAvgAggregateInputType = { value?: true } export type CoefficientSumAggregateInputType = { value?: true } export type CoefficientMinAggregateInputType = { id?: true type?: true code?: true name?: true value?: true description?: true isActive?: true createdAt?: true updatedAt?: true } export type CoefficientMaxAggregateInputType = { id?: true type?: true code?: true name?: true value?: true description?: true isActive?: true createdAt?: true updatedAt?: true } export type CoefficientCountAggregateInputType = { id?: true type?: true code?: true name?: true value?: true description?: true conditions?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type CoefficientAggregateArgs = { /** * Filter which Coefficient to aggregate. */ where?: CoefficientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Coefficients to fetch. */ orderBy?: CoefficientOrderByWithRelationInput | CoefficientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: CoefficientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Coefficients 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` Coefficients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Coefficients **/ _count?: true | CoefficientCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CoefficientAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CoefficientSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CoefficientMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CoefficientMaxAggregateInputType } export type GetCoefficientAggregateType = { [P in keyof T & keyof AggregateCoefficient]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type CoefficientGroupByArgs = { where?: CoefficientWhereInput orderBy?: CoefficientOrderByWithAggregationInput | CoefficientOrderByWithAggregationInput[] by: CoefficientScalarFieldEnum[] | CoefficientScalarFieldEnum having?: CoefficientScalarWhereWithAggregatesInput take?: number skip?: number _count?: CoefficientCountAggregateInputType | true _avg?: CoefficientAvgAggregateInputType _sum?: CoefficientSumAggregateInputType _min?: CoefficientMinAggregateInputType _max?: CoefficientMaxAggregateInputType } export type CoefficientGroupByOutputType = { id: string type: string code: string name: string value: Decimal description: string | null conditions: JsonValue | null isActive: boolean createdAt: Date updatedAt: Date _count: CoefficientCountAggregateOutputType | null _avg: CoefficientAvgAggregateOutputType | null _sum: CoefficientSumAggregateOutputType | null _min: CoefficientMinAggregateOutputType | null _max: CoefficientMaxAggregateOutputType | null } type GetCoefficientGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof CoefficientGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type CoefficientSelect = $Extensions.GetSelect<{ id?: boolean type?: boolean code?: boolean name?: boolean value?: boolean description?: boolean conditions?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["coefficient"]> export type CoefficientSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean type?: boolean code?: boolean name?: boolean value?: boolean description?: boolean conditions?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["coefficient"]> export type CoefficientSelectScalar = { id?: boolean type?: boolean code?: boolean name?: boolean value?: boolean description?: boolean conditions?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type $CoefficientPayload = { name: "Coefficient" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string type: string code: string name: string value: Prisma.Decimal description: string | null conditions: Prisma.JsonValue | null isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["coefficient"]> composites: {} } type CoefficientGetPayload = $Result.GetResult type CoefficientCountArgs = Omit & { select?: CoefficientCountAggregateInputType | true } export interface CoefficientDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Coefficient'], meta: { name: 'Coefficient' } } /** * Find zero or one Coefficient that matches the filter. * @param {CoefficientFindUniqueArgs} args - Arguments to find a Coefficient * @example * // Get one Coefficient * const coefficient = await prisma.coefficient.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__CoefficientClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Coefficient that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CoefficientFindUniqueOrThrowArgs} args - Arguments to find a Coefficient * @example * // Get one Coefficient * const coefficient = await prisma.coefficient.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__CoefficientClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Coefficient 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 {CoefficientFindFirstArgs} args - Arguments to find a Coefficient * @example * // Get one Coefficient * const coefficient = await prisma.coefficient.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__CoefficientClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Coefficient 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 {CoefficientFindFirstOrThrowArgs} args - Arguments to find a Coefficient * @example * // Get one Coefficient * const coefficient = await prisma.coefficient.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__CoefficientClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Coefficients 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 {CoefficientFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Coefficients * const coefficients = await prisma.coefficient.findMany() * * // Get first 10 Coefficients * const coefficients = await prisma.coefficient.findMany({ take: 10 }) * * // Only select the `id` * const coefficientWithIdOnly = await prisma.coefficient.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Coefficient. * @param {CoefficientCreateArgs} args - Arguments to create a Coefficient. * @example * // Create one Coefficient * const Coefficient = await prisma.coefficient.create({ * data: { * // ... data to create a Coefficient * } * }) * */ create(args: SelectSubset>): Prisma__CoefficientClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Coefficients. * @param {CoefficientCreateManyArgs} args - Arguments to create many Coefficients. * @example * // Create many Coefficients * const coefficient = await prisma.coefficient.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Coefficients and returns the data saved in the database. * @param {CoefficientCreateManyAndReturnArgs} args - Arguments to create many Coefficients. * @example * // Create many Coefficients * const coefficient = await prisma.coefficient.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Coefficients and only return the `id` * const coefficientWithIdOnly = await prisma.coefficient.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a Coefficient. * @param {CoefficientDeleteArgs} args - Arguments to delete one Coefficient. * @example * // Delete one Coefficient * const Coefficient = await prisma.coefficient.delete({ * where: { * // ... filter to delete one Coefficient * } * }) * */ delete(args: SelectSubset>): Prisma__CoefficientClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Coefficient. * @param {CoefficientUpdateArgs} args - Arguments to update one Coefficient. * @example * // Update one Coefficient * const coefficient = await prisma.coefficient.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__CoefficientClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Coefficients. * @param {CoefficientDeleteManyArgs} args - Arguments to filter Coefficients to delete. * @example * // Delete a few Coefficients * const { count } = await prisma.coefficient.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Coefficients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CoefficientUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Coefficients * const coefficient = await prisma.coefficient.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Coefficient. * @param {CoefficientUpsertArgs} args - Arguments to update or create a Coefficient. * @example * // Update or create a Coefficient * const coefficient = await prisma.coefficient.upsert({ * create: { * // ... data to create a Coefficient * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Coefficient we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__CoefficientClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Coefficients. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CoefficientCountArgs} args - Arguments to filter Coefficients to count. * @example * // Count the number of Coefficients * const count = await prisma.coefficient.count({ * where: { * // ... the filter for the Coefficients we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Coefficient. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CoefficientAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Coefficient. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CoefficientGroupByArgs} 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 CoefficientGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: CoefficientGroupByArgs['orderBy'] } : { orderBy?: CoefficientGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetCoefficientGroupByPayload : Prisma.PrismaPromise /** * Fields of the Coefficient model */ readonly fields: CoefficientFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Coefficient. * 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__CoefficientClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Coefficient model */ interface CoefficientFieldRefs { readonly id: FieldRef<"Coefficient", 'String'> readonly type: FieldRef<"Coefficient", 'String'> readonly code: FieldRef<"Coefficient", 'String'> readonly name: FieldRef<"Coefficient", 'String'> readonly value: FieldRef<"Coefficient", 'Decimal'> readonly description: FieldRef<"Coefficient", 'String'> readonly conditions: FieldRef<"Coefficient", 'Json'> readonly isActive: FieldRef<"Coefficient", 'Boolean'> readonly createdAt: FieldRef<"Coefficient", 'DateTime'> readonly updatedAt: FieldRef<"Coefficient", 'DateTime'> } // Custom InputTypes /** * Coefficient findUnique */ export type CoefficientFindUniqueArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null /** * Filter, which Coefficient to fetch. */ where: CoefficientWhereUniqueInput } /** * Coefficient findUniqueOrThrow */ export type CoefficientFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null /** * Filter, which Coefficient to fetch. */ where: CoefficientWhereUniqueInput } /** * Coefficient findFirst */ export type CoefficientFindFirstArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null /** * Filter, which Coefficient to fetch. */ where?: CoefficientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Coefficients to fetch. */ orderBy?: CoefficientOrderByWithRelationInput | CoefficientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Coefficients. */ cursor?: CoefficientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Coefficients 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` Coefficients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Coefficients. */ distinct?: CoefficientScalarFieldEnum | CoefficientScalarFieldEnum[] } /** * Coefficient findFirstOrThrow */ export type CoefficientFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null /** * Filter, which Coefficient to fetch. */ where?: CoefficientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Coefficients to fetch. */ orderBy?: CoefficientOrderByWithRelationInput | CoefficientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Coefficients. */ cursor?: CoefficientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Coefficients 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` Coefficients. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Coefficients. */ distinct?: CoefficientScalarFieldEnum | CoefficientScalarFieldEnum[] } /** * Coefficient findMany */ export type CoefficientFindManyArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null /** * Filter, which Coefficients to fetch. */ where?: CoefficientWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Coefficients to fetch. */ orderBy?: CoefficientOrderByWithRelationInput | CoefficientOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Coefficients. */ cursor?: CoefficientWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Coefficients 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` Coefficients. */ skip?: number distinct?: CoefficientScalarFieldEnum | CoefficientScalarFieldEnum[] } /** * Coefficient create */ export type CoefficientCreateArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null /** * The data needed to create a Coefficient. */ data: XOR } /** * Coefficient createMany */ export type CoefficientCreateManyArgs = { /** * The data used to create many Coefficients. */ data: CoefficientCreateManyInput | CoefficientCreateManyInput[] skipDuplicates?: boolean } /** * Coefficient createManyAndReturn */ export type CoefficientCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelectCreateManyAndReturn | null /** * The data used to create many Coefficients. */ data: CoefficientCreateManyInput | CoefficientCreateManyInput[] skipDuplicates?: boolean } /** * Coefficient update */ export type CoefficientUpdateArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null /** * The data needed to update a Coefficient. */ data: XOR /** * Choose, which Coefficient to update. */ where: CoefficientWhereUniqueInput } /** * Coefficient updateMany */ export type CoefficientUpdateManyArgs = { /** * The data used to update Coefficients. */ data: XOR /** * Filter which Coefficients to update */ where?: CoefficientWhereInput } /** * Coefficient upsert */ export type CoefficientUpsertArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null /** * The filter to search for the Coefficient to update in case it exists. */ where: CoefficientWhereUniqueInput /** * In case the Coefficient found by the `where` argument doesn't exist, create a new Coefficient with this data. */ create: XOR /** * In case the Coefficient was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Coefficient delete */ export type CoefficientDeleteArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null /** * Filter which Coefficient to delete. */ where: CoefficientWhereUniqueInput } /** * Coefficient deleteMany */ export type CoefficientDeleteManyArgs = { /** * Filter which Coefficients to delete */ where?: CoefficientWhereInput } /** * Coefficient without action */ export type CoefficientDefaultArgs = { /** * Select specific fields to fetch from the Coefficient */ select?: CoefficientSelect | null } /** * Model InflationIndex */ export type AggregateInflationIndex = { _count: InflationIndexCountAggregateOutputType | null _avg: InflationIndexAvgAggregateOutputType | null _sum: InflationIndexSumAggregateOutputType | null _min: InflationIndexMinAggregateOutputType | null _max: InflationIndexMaxAggregateOutputType | null } export type InflationIndexAvgAggregateOutputType = { indexValue: Decimal | null } export type InflationIndexSumAggregateOutputType = { indexValue: Decimal | null } export type InflationIndexMinAggregateOutputType = { id: string | null baseDate: Date | null effectiveFrom: Date | null effectiveTo: Date | null indexValue: Decimal | null documentRef: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type InflationIndexMaxAggregateOutputType = { id: string | null baseDate: Date | null effectiveFrom: Date | null effectiveTo: Date | null indexValue: Decimal | null documentRef: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type InflationIndexCountAggregateOutputType = { id: number baseDate: number effectiveFrom: number effectiveTo: number indexValue: number documentRef: number isActive: number createdAt: number updatedAt: number _all: number } export type InflationIndexAvgAggregateInputType = { indexValue?: true } export type InflationIndexSumAggregateInputType = { indexValue?: true } export type InflationIndexMinAggregateInputType = { id?: true baseDate?: true effectiveFrom?: true effectiveTo?: true indexValue?: true documentRef?: true isActive?: true createdAt?: true updatedAt?: true } export type InflationIndexMaxAggregateInputType = { id?: true baseDate?: true effectiveFrom?: true effectiveTo?: true indexValue?: true documentRef?: true isActive?: true createdAt?: true updatedAt?: true } export type InflationIndexCountAggregateInputType = { id?: true baseDate?: true effectiveFrom?: true effectiveTo?: true indexValue?: true documentRef?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type InflationIndexAggregateArgs = { /** * Filter which InflationIndex to aggregate. */ where?: InflationIndexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InflationIndices to fetch. */ orderBy?: InflationIndexOrderByWithRelationInput | InflationIndexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: InflationIndexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InflationIndices 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` InflationIndices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned InflationIndices **/ _count?: true | InflationIndexCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: InflationIndexAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: InflationIndexSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: InflationIndexMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: InflationIndexMaxAggregateInputType } export type GetInflationIndexAggregateType = { [P in keyof T & keyof AggregateInflationIndex]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type InflationIndexGroupByArgs = { where?: InflationIndexWhereInput orderBy?: InflationIndexOrderByWithAggregationInput | InflationIndexOrderByWithAggregationInput[] by: InflationIndexScalarFieldEnum[] | InflationIndexScalarFieldEnum having?: InflationIndexScalarWhereWithAggregatesInput take?: number skip?: number _count?: InflationIndexCountAggregateInputType | true _avg?: InflationIndexAvgAggregateInputType _sum?: InflationIndexSumAggregateInputType _min?: InflationIndexMinAggregateInputType _max?: InflationIndexMaxAggregateInputType } export type InflationIndexGroupByOutputType = { id: string baseDate: Date effectiveFrom: Date effectiveTo: Date | null indexValue: Decimal documentRef: string | null isActive: boolean createdAt: Date updatedAt: Date _count: InflationIndexCountAggregateOutputType | null _avg: InflationIndexAvgAggregateOutputType | null _sum: InflationIndexSumAggregateOutputType | null _min: InflationIndexMinAggregateOutputType | null _max: InflationIndexMaxAggregateOutputType | null } type GetInflationIndexGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof InflationIndexGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type InflationIndexSelect = $Extensions.GetSelect<{ id?: boolean baseDate?: boolean effectiveFrom?: boolean effectiveTo?: boolean indexValue?: boolean documentRef?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["inflationIndex"]> export type InflationIndexSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean baseDate?: boolean effectiveFrom?: boolean effectiveTo?: boolean indexValue?: boolean documentRef?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["inflationIndex"]> export type InflationIndexSelectScalar = { id?: boolean baseDate?: boolean effectiveFrom?: boolean effectiveTo?: boolean indexValue?: boolean documentRef?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type $InflationIndexPayload = { name: "InflationIndex" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string baseDate: Date effectiveFrom: Date effectiveTo: Date | null indexValue: Prisma.Decimal documentRef: string | null isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["inflationIndex"]> composites: {} } type InflationIndexGetPayload = $Result.GetResult type InflationIndexCountArgs = Omit & { select?: InflationIndexCountAggregateInputType | true } export interface InflationIndexDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['InflationIndex'], meta: { name: 'InflationIndex' } } /** * Find zero or one InflationIndex that matches the filter. * @param {InflationIndexFindUniqueArgs} args - Arguments to find a InflationIndex * @example * // Get one InflationIndex * const inflationIndex = await prisma.inflationIndex.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__InflationIndexClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one InflationIndex that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {InflationIndexFindUniqueOrThrowArgs} args - Arguments to find a InflationIndex * @example * // Get one InflationIndex * const inflationIndex = await prisma.inflationIndex.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__InflationIndexClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first InflationIndex 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 {InflationIndexFindFirstArgs} args - Arguments to find a InflationIndex * @example * // Get one InflationIndex * const inflationIndex = await prisma.inflationIndex.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__InflationIndexClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first InflationIndex 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 {InflationIndexFindFirstOrThrowArgs} args - Arguments to find a InflationIndex * @example * // Get one InflationIndex * const inflationIndex = await prisma.inflationIndex.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__InflationIndexClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more InflationIndices 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 {InflationIndexFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all InflationIndices * const inflationIndices = await prisma.inflationIndex.findMany() * * // Get first 10 InflationIndices * const inflationIndices = await prisma.inflationIndex.findMany({ take: 10 }) * * // Only select the `id` * const inflationIndexWithIdOnly = await prisma.inflationIndex.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a InflationIndex. * @param {InflationIndexCreateArgs} args - Arguments to create a InflationIndex. * @example * // Create one InflationIndex * const InflationIndex = await prisma.inflationIndex.create({ * data: { * // ... data to create a InflationIndex * } * }) * */ create(args: SelectSubset>): Prisma__InflationIndexClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many InflationIndices. * @param {InflationIndexCreateManyArgs} args - Arguments to create many InflationIndices. * @example * // Create many InflationIndices * const inflationIndex = await prisma.inflationIndex.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many InflationIndices and returns the data saved in the database. * @param {InflationIndexCreateManyAndReturnArgs} args - Arguments to create many InflationIndices. * @example * // Create many InflationIndices * const inflationIndex = await prisma.inflationIndex.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many InflationIndices and only return the `id` * const inflationIndexWithIdOnly = await prisma.inflationIndex.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a InflationIndex. * @param {InflationIndexDeleteArgs} args - Arguments to delete one InflationIndex. * @example * // Delete one InflationIndex * const InflationIndex = await prisma.inflationIndex.delete({ * where: { * // ... filter to delete one InflationIndex * } * }) * */ delete(args: SelectSubset>): Prisma__InflationIndexClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one InflationIndex. * @param {InflationIndexUpdateArgs} args - Arguments to update one InflationIndex. * @example * // Update one InflationIndex * const inflationIndex = await prisma.inflationIndex.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__InflationIndexClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more InflationIndices. * @param {InflationIndexDeleteManyArgs} args - Arguments to filter InflationIndices to delete. * @example * // Delete a few InflationIndices * const { count } = await prisma.inflationIndex.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more InflationIndices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InflationIndexUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many InflationIndices * const inflationIndex = await prisma.inflationIndex.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one InflationIndex. * @param {InflationIndexUpsertArgs} args - Arguments to update or create a InflationIndex. * @example * // Update or create a InflationIndex * const inflationIndex = await prisma.inflationIndex.upsert({ * create: { * // ... data to create a InflationIndex * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the InflationIndex we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__InflationIndexClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of InflationIndices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InflationIndexCountArgs} args - Arguments to filter InflationIndices to count. * @example * // Count the number of InflationIndices * const count = await prisma.inflationIndex.count({ * where: { * // ... the filter for the InflationIndices we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a InflationIndex. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InflationIndexAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by InflationIndex. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {InflationIndexGroupByArgs} 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 InflationIndexGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: InflationIndexGroupByArgs['orderBy'] } : { orderBy?: InflationIndexGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetInflationIndexGroupByPayload : Prisma.PrismaPromise /** * Fields of the InflationIndex model */ readonly fields: InflationIndexFieldRefs; } /** * The delegate class that acts as a "Promise-like" for InflationIndex. * 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__InflationIndexClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the InflationIndex model */ interface InflationIndexFieldRefs { readonly id: FieldRef<"InflationIndex", 'String'> readonly baseDate: FieldRef<"InflationIndex", 'DateTime'> readonly effectiveFrom: FieldRef<"InflationIndex", 'DateTime'> readonly effectiveTo: FieldRef<"InflationIndex", 'DateTime'> readonly indexValue: FieldRef<"InflationIndex", 'Decimal'> readonly documentRef: FieldRef<"InflationIndex", 'String'> readonly isActive: FieldRef<"InflationIndex", 'Boolean'> readonly createdAt: FieldRef<"InflationIndex", 'DateTime'> readonly updatedAt: FieldRef<"InflationIndex", 'DateTime'> } // Custom InputTypes /** * InflationIndex findUnique */ export type InflationIndexFindUniqueArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null /** * Filter, which InflationIndex to fetch. */ where: InflationIndexWhereUniqueInput } /** * InflationIndex findUniqueOrThrow */ export type InflationIndexFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null /** * Filter, which InflationIndex to fetch. */ where: InflationIndexWhereUniqueInput } /** * InflationIndex findFirst */ export type InflationIndexFindFirstArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null /** * Filter, which InflationIndex to fetch. */ where?: InflationIndexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InflationIndices to fetch. */ orderBy?: InflationIndexOrderByWithRelationInput | InflationIndexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InflationIndices. */ cursor?: InflationIndexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InflationIndices 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` InflationIndices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InflationIndices. */ distinct?: InflationIndexScalarFieldEnum | InflationIndexScalarFieldEnum[] } /** * InflationIndex findFirstOrThrow */ export type InflationIndexFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null /** * Filter, which InflationIndex to fetch. */ where?: InflationIndexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InflationIndices to fetch. */ orderBy?: InflationIndexOrderByWithRelationInput | InflationIndexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for InflationIndices. */ cursor?: InflationIndexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InflationIndices 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` InflationIndices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of InflationIndices. */ distinct?: InflationIndexScalarFieldEnum | InflationIndexScalarFieldEnum[] } /** * InflationIndex findMany */ export type InflationIndexFindManyArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null /** * Filter, which InflationIndices to fetch. */ where?: InflationIndexWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of InflationIndices to fetch. */ orderBy?: InflationIndexOrderByWithRelationInput | InflationIndexOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing InflationIndices. */ cursor?: InflationIndexWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` InflationIndices 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` InflationIndices. */ skip?: number distinct?: InflationIndexScalarFieldEnum | InflationIndexScalarFieldEnum[] } /** * InflationIndex create */ export type InflationIndexCreateArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null /** * The data needed to create a InflationIndex. */ data: XOR } /** * InflationIndex createMany */ export type InflationIndexCreateManyArgs = { /** * The data used to create many InflationIndices. */ data: InflationIndexCreateManyInput | InflationIndexCreateManyInput[] skipDuplicates?: boolean } /** * InflationIndex createManyAndReturn */ export type InflationIndexCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelectCreateManyAndReturn | null /** * The data used to create many InflationIndices. */ data: InflationIndexCreateManyInput | InflationIndexCreateManyInput[] skipDuplicates?: boolean } /** * InflationIndex update */ export type InflationIndexUpdateArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null /** * The data needed to update a InflationIndex. */ data: XOR /** * Choose, which InflationIndex to update. */ where: InflationIndexWhereUniqueInput } /** * InflationIndex updateMany */ export type InflationIndexUpdateManyArgs = { /** * The data used to update InflationIndices. */ data: XOR /** * Filter which InflationIndices to update */ where?: InflationIndexWhereInput } /** * InflationIndex upsert */ export type InflationIndexUpsertArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null /** * The filter to search for the InflationIndex to update in case it exists. */ where: InflationIndexWhereUniqueInput /** * In case the InflationIndex found by the `where` argument doesn't exist, create a new InflationIndex with this data. */ create: XOR /** * In case the InflationIndex was found with the provided `where` argument, update it with this data. */ update: XOR } /** * InflationIndex delete */ export type InflationIndexDeleteArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null /** * Filter which InflationIndex to delete. */ where: InflationIndexWhereUniqueInput } /** * InflationIndex deleteMany */ export type InflationIndexDeleteManyArgs = { /** * Filter which InflationIndices to delete */ where?: InflationIndexWhereInput } /** * InflationIndex without action */ export type InflationIndexDefaultArgs = { /** * Select specific fields to fetch from the InflationIndex */ select?: InflationIndexSelect | null } /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserMinAggregateOutputType = { id: string | null email: string | null passwordHash: string | null name: string | null createdAt: Date | null updatedAt: Date | null } export type UserMaxAggregateOutputType = { id: string | null email: string | null passwordHash: string | null name: string | null createdAt: Date | null updatedAt: Date | null } export type UserCountAggregateOutputType = { id: number email: number passwordHash: number name: number createdAt: number updatedAt: number _all: number } export type UserMinAggregateInputType = { id?: true email?: true passwordHash?: true name?: true createdAt?: true updatedAt?: true } export type UserMaxAggregateInputType = { id?: true email?: true passwordHash?: true name?: true createdAt?: true updatedAt?: true } export type UserCountAggregateInputType = { id?: true email?: true passwordHash?: true name?: true createdAt?: true updatedAt?: true _all?: true } export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Users **/ _count?: true | UserCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserMaxAggregateInputType } export type GetUserAggregateType = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: string email: string passwordHash: string name: string | null createdAt: Date updatedAt: Date _count: UserCountAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean email?: boolean passwordHash?: boolean name?: boolean createdAt?: boolean updatedAt?: boolean estimates?: boolean | User$estimatesArgs chatSessions?: boolean | User$chatSessionsArgs ownedShares?: boolean | User$ownedSharesArgs receivedShares?: boolean | User$receivedSharesArgs shareNotes?: boolean | User$shareNotesArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean email?: boolean passwordHash?: boolean name?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean email?: boolean passwordHash?: boolean name?: boolean createdAt?: boolean updatedAt?: boolean } export type UserInclude = { estimates?: boolean | User$estimatesArgs chatSessions?: boolean | User$chatSessionsArgs ownedShares?: boolean | User$ownedSharesArgs receivedShares?: boolean | User$receivedSharesArgs shareNotes?: boolean | User$shareNotesArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} export type $UserPayload = { name: "User" objects: { estimates: Prisma.$EstimatePayload[] chatSessions: Prisma.$ChatSessionPayload[] ownedShares: Prisma.$EstimateSharePayload[] receivedShares: Prisma.$EstimateSharePayload[] shareNotes: Prisma.$EstimateShareNotePayload[] } scalars: $Extensions.GetPayloadResult<{ id: string email: string passwordHash: string name: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique"> | 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(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, 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(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Users and returns the data saved in the database. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const userWithIdOnly = await prisma.user.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prisma.user.delete({ * where: { * // ... filter to delete one User * } * }) * */ delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete">, 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(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, 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(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User * const user = await prisma.user.upsert({ * create: { * // ... data to create a User * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the User we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert">, 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( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends UserGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise /** * Fields of the User model */ readonly fields: UserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for User. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" estimates = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> chatSessions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> ownedShares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> receivedShares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> shareNotes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the User model */ interface UserFieldRefs { readonly id: FieldRef<"User", 'String'> readonly email: FieldRef<"User", 'String'> readonly passwordHash: FieldRef<"User", 'String'> readonly name: FieldRef<"User", 'String'> readonly createdAt: FieldRef<"User", 'DateTime'> readonly updatedAt: FieldRef<"User", 'DateTime'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput } /** * User.estimates */ export type User$estimatesArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null where?: EstimateWhereInput orderBy?: EstimateOrderByWithRelationInput | EstimateOrderByWithRelationInput[] cursor?: EstimateWhereUniqueInput take?: number skip?: number distinct?: EstimateScalarFieldEnum | EstimateScalarFieldEnum[] } /** * User.chatSessions */ export type User$chatSessionsArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null where?: ChatSessionWhereInput orderBy?: ChatSessionOrderByWithRelationInput | ChatSessionOrderByWithRelationInput[] cursor?: ChatSessionWhereUniqueInput take?: number skip?: number distinct?: ChatSessionScalarFieldEnum | ChatSessionScalarFieldEnum[] } /** * User.ownedShares */ export type User$ownedSharesArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null where?: EstimateShareWhereInput orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[] cursor?: EstimateShareWhereUniqueInput take?: number skip?: number distinct?: EstimateShareScalarFieldEnum | EstimateShareScalarFieldEnum[] } /** * User.receivedShares */ export type User$receivedSharesArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null where?: EstimateShareWhereInput orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[] cursor?: EstimateShareWhereUniqueInput take?: number skip?: number distinct?: EstimateShareScalarFieldEnum | EstimateShareScalarFieldEnum[] } /** * User.shareNotes */ export type User$shareNotesArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null where?: EstimateShareNoteWhereInput orderBy?: EstimateShareNoteOrderByWithRelationInput | EstimateShareNoteOrderByWithRelationInput[] cursor?: EstimateShareNoteWhereUniqueInput take?: number skip?: number distinct?: EstimateShareNoteScalarFieldEnum | EstimateShareNoteScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model SurveyDirection */ export type AggregateSurveyDirection = { _count: SurveyDirectionCountAggregateOutputType | null _min: SurveyDirectionMinAggregateOutputType | null _max: SurveyDirectionMaxAggregateOutputType | null } export type SurveyDirectionMinAggregateOutputType = { id: string | null code: string | null name: string | null shortName: string | null isActive: boolean | null } export type SurveyDirectionMaxAggregateOutputType = { id: string | null code: string | null name: string | null shortName: string | null isActive: boolean | null } export type SurveyDirectionCountAggregateOutputType = { id: number code: number name: number shortName: number isActive: number _all: number } export type SurveyDirectionMinAggregateInputType = { id?: true code?: true name?: true shortName?: true isActive?: true } export type SurveyDirectionMaxAggregateInputType = { id?: true code?: true name?: true shortName?: true isActive?: true } export type SurveyDirectionCountAggregateInputType = { id?: true code?: true name?: true shortName?: true isActive?: true _all?: true } export type SurveyDirectionAggregateArgs = { /** * Filter which SurveyDirection to aggregate. */ where?: SurveyDirectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SurveyDirections to fetch. */ orderBy?: SurveyDirectionOrderByWithRelationInput | SurveyDirectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SurveyDirectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SurveyDirections 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` SurveyDirections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SurveyDirections **/ _count?: true | SurveyDirectionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SurveyDirectionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SurveyDirectionMaxAggregateInputType } export type GetSurveyDirectionAggregateType = { [P in keyof T & keyof AggregateSurveyDirection]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SurveyDirectionGroupByArgs = { where?: SurveyDirectionWhereInput orderBy?: SurveyDirectionOrderByWithAggregationInput | SurveyDirectionOrderByWithAggregationInput[] by: SurveyDirectionScalarFieldEnum[] | SurveyDirectionScalarFieldEnum having?: SurveyDirectionScalarWhereWithAggregatesInput take?: number skip?: number _count?: SurveyDirectionCountAggregateInputType | true _min?: SurveyDirectionMinAggregateInputType _max?: SurveyDirectionMaxAggregateInputType } export type SurveyDirectionGroupByOutputType = { id: string code: string name: string shortName: string isActive: boolean _count: SurveyDirectionCountAggregateOutputType | null _min: SurveyDirectionMinAggregateOutputType | null _max: SurveyDirectionMaxAggregateOutputType | null } type GetSurveyDirectionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SurveyDirectionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SurveyDirectionSelect = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean shortName?: boolean isActive?: boolean estimates?: boolean | SurveyDirection$estimatesArgs _count?: boolean | SurveyDirectionCountOutputTypeDefaultArgs }, ExtArgs["result"]["surveyDirection"]> export type SurveyDirectionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean code?: boolean name?: boolean shortName?: boolean isActive?: boolean }, ExtArgs["result"]["surveyDirection"]> export type SurveyDirectionSelectScalar = { id?: boolean code?: boolean name?: boolean shortName?: boolean isActive?: boolean } export type SurveyDirectionInclude = { estimates?: boolean | SurveyDirection$estimatesArgs _count?: boolean | SurveyDirectionCountOutputTypeDefaultArgs } export type SurveyDirectionIncludeCreateManyAndReturn = {} export type $SurveyDirectionPayload = { name: "SurveyDirection" objects: { estimates: Prisma.$EstimatePayload[] } scalars: $Extensions.GetPayloadResult<{ id: string code: string name: string shortName: string isActive: boolean }, ExtArgs["result"]["surveyDirection"]> composites: {} } type SurveyDirectionGetPayload = $Result.GetResult type SurveyDirectionCountArgs = Omit & { select?: SurveyDirectionCountAggregateInputType | true } export interface SurveyDirectionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SurveyDirection'], meta: { name: 'SurveyDirection' } } /** * Find zero or one SurveyDirection that matches the filter. * @param {SurveyDirectionFindUniqueArgs} args - Arguments to find a SurveyDirection * @example * // Get one SurveyDirection * const surveyDirection = await prisma.surveyDirection.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SurveyDirectionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one SurveyDirection that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SurveyDirectionFindUniqueOrThrowArgs} args - Arguments to find a SurveyDirection * @example * // Get one SurveyDirection * const surveyDirection = await prisma.surveyDirection.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SurveyDirectionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first SurveyDirection 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 {SurveyDirectionFindFirstArgs} args - Arguments to find a SurveyDirection * @example * // Get one SurveyDirection * const surveyDirection = await prisma.surveyDirection.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SurveyDirectionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first SurveyDirection 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 {SurveyDirectionFindFirstOrThrowArgs} args - Arguments to find a SurveyDirection * @example * // Get one SurveyDirection * const surveyDirection = await prisma.surveyDirection.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SurveyDirectionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more SurveyDirections 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 {SurveyDirectionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SurveyDirections * const surveyDirections = await prisma.surveyDirection.findMany() * * // Get first 10 SurveyDirections * const surveyDirections = await prisma.surveyDirection.findMany({ take: 10 }) * * // Only select the `id` * const surveyDirectionWithIdOnly = await prisma.surveyDirection.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a SurveyDirection. * @param {SurveyDirectionCreateArgs} args - Arguments to create a SurveyDirection. * @example * // Create one SurveyDirection * const SurveyDirection = await prisma.surveyDirection.create({ * data: { * // ... data to create a SurveyDirection * } * }) * */ create(args: SelectSubset>): Prisma__SurveyDirectionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many SurveyDirections. * @param {SurveyDirectionCreateManyArgs} args - Arguments to create many SurveyDirections. * @example * // Create many SurveyDirections * const surveyDirection = await prisma.surveyDirection.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many SurveyDirections and returns the data saved in the database. * @param {SurveyDirectionCreateManyAndReturnArgs} args - Arguments to create many SurveyDirections. * @example * // Create many SurveyDirections * const surveyDirection = await prisma.surveyDirection.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SurveyDirections and only return the `id` * const surveyDirectionWithIdOnly = await prisma.surveyDirection.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a SurveyDirection. * @param {SurveyDirectionDeleteArgs} args - Arguments to delete one SurveyDirection. * @example * // Delete one SurveyDirection * const SurveyDirection = await prisma.surveyDirection.delete({ * where: { * // ... filter to delete one SurveyDirection * } * }) * */ delete(args: SelectSubset>): Prisma__SurveyDirectionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one SurveyDirection. * @param {SurveyDirectionUpdateArgs} args - Arguments to update one SurveyDirection. * @example * // Update one SurveyDirection * const surveyDirection = await prisma.surveyDirection.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SurveyDirectionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more SurveyDirections. * @param {SurveyDirectionDeleteManyArgs} args - Arguments to filter SurveyDirections to delete. * @example * // Delete a few SurveyDirections * const { count } = await prisma.surveyDirection.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SurveyDirections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SurveyDirectionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SurveyDirections * const surveyDirection = await prisma.surveyDirection.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one SurveyDirection. * @param {SurveyDirectionUpsertArgs} args - Arguments to update or create a SurveyDirection. * @example * // Update or create a SurveyDirection * const surveyDirection = await prisma.surveyDirection.upsert({ * create: { * // ... data to create a SurveyDirection * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SurveyDirection we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SurveyDirectionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of SurveyDirections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SurveyDirectionCountArgs} args - Arguments to filter SurveyDirections to count. * @example * // Count the number of SurveyDirections * const count = await prisma.surveyDirection.count({ * where: { * // ... the filter for the SurveyDirections we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a SurveyDirection. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SurveyDirectionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by SurveyDirection. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SurveyDirectionGroupByArgs} 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 SurveyDirectionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SurveyDirectionGroupByArgs['orderBy'] } : { orderBy?: SurveyDirectionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSurveyDirectionGroupByPayload : Prisma.PrismaPromise /** * Fields of the SurveyDirection model */ readonly fields: SurveyDirectionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SurveyDirection. * 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__SurveyDirectionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" estimates = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the SurveyDirection model */ interface SurveyDirectionFieldRefs { readonly id: FieldRef<"SurveyDirection", 'String'> readonly code: FieldRef<"SurveyDirection", 'String'> readonly name: FieldRef<"SurveyDirection", 'String'> readonly shortName: FieldRef<"SurveyDirection", 'String'> readonly isActive: FieldRef<"SurveyDirection", 'Boolean'> } // Custom InputTypes /** * SurveyDirection findUnique */ export type SurveyDirectionFindUniqueArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null /** * Filter, which SurveyDirection to fetch. */ where: SurveyDirectionWhereUniqueInput } /** * SurveyDirection findUniqueOrThrow */ export type SurveyDirectionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null /** * Filter, which SurveyDirection to fetch. */ where: SurveyDirectionWhereUniqueInput } /** * SurveyDirection findFirst */ export type SurveyDirectionFindFirstArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null /** * Filter, which SurveyDirection to fetch. */ where?: SurveyDirectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SurveyDirections to fetch. */ orderBy?: SurveyDirectionOrderByWithRelationInput | SurveyDirectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SurveyDirections. */ cursor?: SurveyDirectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SurveyDirections 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` SurveyDirections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SurveyDirections. */ distinct?: SurveyDirectionScalarFieldEnum | SurveyDirectionScalarFieldEnum[] } /** * SurveyDirection findFirstOrThrow */ export type SurveyDirectionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null /** * Filter, which SurveyDirection to fetch. */ where?: SurveyDirectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SurveyDirections to fetch. */ orderBy?: SurveyDirectionOrderByWithRelationInput | SurveyDirectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SurveyDirections. */ cursor?: SurveyDirectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SurveyDirections 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` SurveyDirections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SurveyDirections. */ distinct?: SurveyDirectionScalarFieldEnum | SurveyDirectionScalarFieldEnum[] } /** * SurveyDirection findMany */ export type SurveyDirectionFindManyArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null /** * Filter, which SurveyDirections to fetch. */ where?: SurveyDirectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SurveyDirections to fetch. */ orderBy?: SurveyDirectionOrderByWithRelationInput | SurveyDirectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SurveyDirections. */ cursor?: SurveyDirectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SurveyDirections 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` SurveyDirections. */ skip?: number distinct?: SurveyDirectionScalarFieldEnum | SurveyDirectionScalarFieldEnum[] } /** * SurveyDirection create */ export type SurveyDirectionCreateArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null /** * The data needed to create a SurveyDirection. */ data: XOR } /** * SurveyDirection createMany */ export type SurveyDirectionCreateManyArgs = { /** * The data used to create many SurveyDirections. */ data: SurveyDirectionCreateManyInput | SurveyDirectionCreateManyInput[] skipDuplicates?: boolean } /** * SurveyDirection createManyAndReturn */ export type SurveyDirectionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelectCreateManyAndReturn | null /** * The data used to create many SurveyDirections. */ data: SurveyDirectionCreateManyInput | SurveyDirectionCreateManyInput[] skipDuplicates?: boolean } /** * SurveyDirection update */ export type SurveyDirectionUpdateArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null /** * The data needed to update a SurveyDirection. */ data: XOR /** * Choose, which SurveyDirection to update. */ where: SurveyDirectionWhereUniqueInput } /** * SurveyDirection updateMany */ export type SurveyDirectionUpdateManyArgs = { /** * The data used to update SurveyDirections. */ data: XOR /** * Filter which SurveyDirections to update */ where?: SurveyDirectionWhereInput } /** * SurveyDirection upsert */ export type SurveyDirectionUpsertArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null /** * The filter to search for the SurveyDirection to update in case it exists. */ where: SurveyDirectionWhereUniqueInput /** * In case the SurveyDirection found by the `where` argument doesn't exist, create a new SurveyDirection with this data. */ create: XOR /** * In case the SurveyDirection was found with the provided `where` argument, update it with this data. */ update: XOR } /** * SurveyDirection delete */ export type SurveyDirectionDeleteArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null /** * Filter which SurveyDirection to delete. */ where: SurveyDirectionWhereUniqueInput } /** * SurveyDirection deleteMany */ export type SurveyDirectionDeleteManyArgs = { /** * Filter which SurveyDirections to delete */ where?: SurveyDirectionWhereInput } /** * SurveyDirection.estimates */ export type SurveyDirection$estimatesArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null where?: EstimateWhereInput orderBy?: EstimateOrderByWithRelationInput | EstimateOrderByWithRelationInput[] cursor?: EstimateWhereUniqueInput take?: number skip?: number distinct?: EstimateScalarFieldEnum | EstimateScalarFieldEnum[] } /** * SurveyDirection without action */ export type SurveyDirectionDefaultArgs = { /** * Select specific fields to fetch from the SurveyDirection */ select?: SurveyDirectionSelect | null /** * Choose, which related nodes to fetch as well */ include?: SurveyDirectionInclude | null } /** * Model Estimate */ export type AggregateEstimate = { _count: EstimateCountAggregateOutputType | null _avg: EstimateAvgAggregateOutputType | null _sum: EstimateSumAggregateOutputType | null _min: EstimateMinAggregateOutputType | null _max: EstimateMaxAggregateOutputType | null } export type EstimateAvgAggregateOutputType = { totalFieldWorks: Decimal | null totalOfficeWorks: Decimal | null totalLaboratory: Decimal | null subtotal: Decimal | null regionalCoef: Decimal | null inflationIndex: Decimal | null companyCoef: Decimal | null executorCoef: Decimal | null totalWithoutVat: Decimal | null vatRate: Decimal | null vatAmount: Decimal | null totalWithVat: Decimal | null } export type EstimateSumAggregateOutputType = { totalFieldWorks: Decimal | null totalOfficeWorks: Decimal | null totalLaboratory: Decimal | null subtotal: Decimal | null regionalCoef: Decimal | null inflationIndex: Decimal | null companyCoef: Decimal | null executorCoef: Decimal | null totalWithoutVat: Decimal | null vatRate: Decimal | null vatAmount: Decimal | null totalWithVat: Decimal | null } export type EstimateMinAggregateOutputType = { id: string | null number: string | null directionId: string | null ownerId: string | null objectName: string | null customer: string | null executor: string | null totalFieldWorks: Decimal | null totalOfficeWorks: Decimal | null totalLaboratory: Decimal | null subtotal: Decimal | null regionalCoef: Decimal | null regionalCoefDocRef: string | null inflationIndex: Decimal | null inflationDocRef: string | null companyCoef: Decimal | null companyCoefDocRef: string | null executorCoef: Decimal | null executorCoefDocRef: string | null withVat: boolean | null totalWithoutVat: Decimal | null vatRate: Decimal | null vatAmount: Decimal | null totalWithVat: Decimal | null status: string | null createdAt: Date | null updatedAt: Date | null } export type EstimateMaxAggregateOutputType = { id: string | null number: string | null directionId: string | null ownerId: string | null objectName: string | null customer: string | null executor: string | null totalFieldWorks: Decimal | null totalOfficeWorks: Decimal | null totalLaboratory: Decimal | null subtotal: Decimal | null regionalCoef: Decimal | null regionalCoefDocRef: string | null inflationIndex: Decimal | null inflationDocRef: string | null companyCoef: Decimal | null companyCoefDocRef: string | null executorCoef: Decimal | null executorCoefDocRef: string | null withVat: boolean | null totalWithoutVat: Decimal | null vatRate: Decimal | null vatAmount: Decimal | null totalWithVat: Decimal | null status: string | null createdAt: Date | null updatedAt: Date | null } export type EstimateCountAggregateOutputType = { id: number number: number directionId: number ownerId: number objectName: number customer: number executor: number totalFieldWorks: number totalOfficeWorks: number totalLaboratory: number subtotal: number regionalCoef: number regionalCoefDocRef: number inflationIndex: number inflationDocRef: number companyCoef: number companyCoefDocRef: number executorCoef: number executorCoefDocRef: number withVat: number totalWithoutVat: number vatRate: number vatAmount: number totalWithVat: number status: number createdAt: number updatedAt: number _all: number } export type EstimateAvgAggregateInputType = { totalFieldWorks?: true totalOfficeWorks?: true totalLaboratory?: true subtotal?: true regionalCoef?: true inflationIndex?: true companyCoef?: true executorCoef?: true totalWithoutVat?: true vatRate?: true vatAmount?: true totalWithVat?: true } export type EstimateSumAggregateInputType = { totalFieldWorks?: true totalOfficeWorks?: true totalLaboratory?: true subtotal?: true regionalCoef?: true inflationIndex?: true companyCoef?: true executorCoef?: true totalWithoutVat?: true vatRate?: true vatAmount?: true totalWithVat?: true } export type EstimateMinAggregateInputType = { id?: true number?: true directionId?: true ownerId?: true objectName?: true customer?: true executor?: true totalFieldWorks?: true totalOfficeWorks?: true totalLaboratory?: true subtotal?: true regionalCoef?: true regionalCoefDocRef?: true inflationIndex?: true inflationDocRef?: true companyCoef?: true companyCoefDocRef?: true executorCoef?: true executorCoefDocRef?: true withVat?: true totalWithoutVat?: true vatRate?: true vatAmount?: true totalWithVat?: true status?: true createdAt?: true updatedAt?: true } export type EstimateMaxAggregateInputType = { id?: true number?: true directionId?: true ownerId?: true objectName?: true customer?: true executor?: true totalFieldWorks?: true totalOfficeWorks?: true totalLaboratory?: true subtotal?: true regionalCoef?: true regionalCoefDocRef?: true inflationIndex?: true inflationDocRef?: true companyCoef?: true companyCoefDocRef?: true executorCoef?: true executorCoefDocRef?: true withVat?: true totalWithoutVat?: true vatRate?: true vatAmount?: true totalWithVat?: true status?: true createdAt?: true updatedAt?: true } export type EstimateCountAggregateInputType = { id?: true number?: true directionId?: true ownerId?: true objectName?: true customer?: true executor?: true totalFieldWorks?: true totalOfficeWorks?: true totalLaboratory?: true subtotal?: true regionalCoef?: true regionalCoefDocRef?: true inflationIndex?: true inflationDocRef?: true companyCoef?: true companyCoefDocRef?: true executorCoef?: true executorCoefDocRef?: true withVat?: true totalWithoutVat?: true vatRate?: true vatAmount?: true totalWithVat?: true status?: true createdAt?: true updatedAt?: true _all?: true } export type EstimateAggregateArgs = { /** * Filter which Estimate to aggregate. */ where?: EstimateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Estimates to fetch. */ orderBy?: EstimateOrderByWithRelationInput | EstimateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EstimateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Estimates 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` Estimates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Estimates **/ _count?: true | EstimateCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EstimateAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EstimateSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EstimateMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EstimateMaxAggregateInputType } export type GetEstimateAggregateType = { [P in keyof T & keyof AggregateEstimate]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EstimateGroupByArgs = { where?: EstimateWhereInput orderBy?: EstimateOrderByWithAggregationInput | EstimateOrderByWithAggregationInput[] by: EstimateScalarFieldEnum[] | EstimateScalarFieldEnum having?: EstimateScalarWhereWithAggregatesInput take?: number skip?: number _count?: EstimateCountAggregateInputType | true _avg?: EstimateAvgAggregateInputType _sum?: EstimateSumAggregateInputType _min?: EstimateMinAggregateInputType _max?: EstimateMaxAggregateInputType } export type EstimateGroupByOutputType = { id: string number: string directionId: string ownerId: string objectName: string customer: string executor: string totalFieldWorks: Decimal | null totalOfficeWorks: Decimal | null totalLaboratory: Decimal | null subtotal: Decimal | null regionalCoef: Decimal | null regionalCoefDocRef: string | null inflationIndex: Decimal | null inflationDocRef: string | null companyCoef: Decimal | null companyCoefDocRef: string | null executorCoef: Decimal | null executorCoefDocRef: string | null withVat: boolean totalWithoutVat: Decimal | null vatRate: Decimal | null vatAmount: Decimal | null totalWithVat: Decimal | null status: string createdAt: Date updatedAt: Date _count: EstimateCountAggregateOutputType | null _avg: EstimateAvgAggregateOutputType | null _sum: EstimateSumAggregateOutputType | null _min: EstimateMinAggregateOutputType | null _max: EstimateMaxAggregateOutputType | null } type GetEstimateGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EstimateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EstimateSelect = $Extensions.GetSelect<{ id?: boolean number?: boolean directionId?: boolean ownerId?: boolean objectName?: boolean customer?: boolean executor?: boolean totalFieldWorks?: boolean totalOfficeWorks?: boolean totalLaboratory?: boolean subtotal?: boolean regionalCoef?: boolean regionalCoefDocRef?: boolean inflationIndex?: boolean inflationDocRef?: boolean companyCoef?: boolean companyCoefDocRef?: boolean executorCoef?: boolean executorCoefDocRef?: boolean withVat?: boolean totalWithoutVat?: boolean vatRate?: boolean vatAmount?: boolean totalWithVat?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean owner?: boolean | UserDefaultArgs direction?: boolean | SurveyDirectionDefaultArgs items?: boolean | Estimate$itemsArgs totals?: boolean | Estimate$totalsArgs shares?: boolean | Estimate$sharesArgs versions?: boolean | Estimate$versionsArgs _count?: boolean | EstimateCountOutputTypeDefaultArgs }, ExtArgs["result"]["estimate"]> export type EstimateSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean number?: boolean directionId?: boolean ownerId?: boolean objectName?: boolean customer?: boolean executor?: boolean totalFieldWorks?: boolean totalOfficeWorks?: boolean totalLaboratory?: boolean subtotal?: boolean regionalCoef?: boolean regionalCoefDocRef?: boolean inflationIndex?: boolean inflationDocRef?: boolean companyCoef?: boolean companyCoefDocRef?: boolean executorCoef?: boolean executorCoefDocRef?: boolean withVat?: boolean totalWithoutVat?: boolean vatRate?: boolean vatAmount?: boolean totalWithVat?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean owner?: boolean | UserDefaultArgs direction?: boolean | SurveyDirectionDefaultArgs }, ExtArgs["result"]["estimate"]> export type EstimateSelectScalar = { id?: boolean number?: boolean directionId?: boolean ownerId?: boolean objectName?: boolean customer?: boolean executor?: boolean totalFieldWorks?: boolean totalOfficeWorks?: boolean totalLaboratory?: boolean subtotal?: boolean regionalCoef?: boolean regionalCoefDocRef?: boolean inflationIndex?: boolean inflationDocRef?: boolean companyCoef?: boolean companyCoefDocRef?: boolean executorCoef?: boolean executorCoefDocRef?: boolean withVat?: boolean totalWithoutVat?: boolean vatRate?: boolean vatAmount?: boolean totalWithVat?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean } export type EstimateInclude = { owner?: boolean | UserDefaultArgs direction?: boolean | SurveyDirectionDefaultArgs items?: boolean | Estimate$itemsArgs totals?: boolean | Estimate$totalsArgs shares?: boolean | Estimate$sharesArgs versions?: boolean | Estimate$versionsArgs _count?: boolean | EstimateCountOutputTypeDefaultArgs } export type EstimateIncludeCreateManyAndReturn = { owner?: boolean | UserDefaultArgs direction?: boolean | SurveyDirectionDefaultArgs } export type $EstimatePayload = { name: "Estimate" objects: { owner: Prisma.$UserPayload direction: Prisma.$SurveyDirectionPayload items: Prisma.$EstimateItemPayload[] totals: Prisma.$EstimateTotalPayload[] shares: Prisma.$EstimateSharePayload[] versions: Prisma.$EstimateVersionPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string number: string directionId: string ownerId: string objectName: string customer: string executor: string totalFieldWorks: Prisma.Decimal | null totalOfficeWorks: Prisma.Decimal | null totalLaboratory: Prisma.Decimal | null subtotal: Prisma.Decimal | null regionalCoef: Prisma.Decimal | null regionalCoefDocRef: string | null inflationIndex: Prisma.Decimal | null inflationDocRef: string | null companyCoef: Prisma.Decimal | null companyCoefDocRef: string | null executorCoef: Prisma.Decimal | null executorCoefDocRef: string | null withVat: boolean totalWithoutVat: Prisma.Decimal | null vatRate: Prisma.Decimal | null vatAmount: Prisma.Decimal | null totalWithVat: Prisma.Decimal | null status: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["estimate"]> composites: {} } type EstimateGetPayload = $Result.GetResult type EstimateCountArgs = Omit & { select?: EstimateCountAggregateInputType | true } export interface EstimateDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Estimate'], meta: { name: 'Estimate' } } /** * Find zero or one Estimate that matches the filter. * @param {EstimateFindUniqueArgs} args - Arguments to find a Estimate * @example * // Get one Estimate * const estimate = await prisma.estimate.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EstimateClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Estimate that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EstimateFindUniqueOrThrowArgs} args - Arguments to find a Estimate * @example * // Get one Estimate * const estimate = await prisma.estimate.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EstimateClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Estimate 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 {EstimateFindFirstArgs} args - Arguments to find a Estimate * @example * // Get one Estimate * const estimate = await prisma.estimate.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EstimateClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Estimate 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 {EstimateFindFirstOrThrowArgs} args - Arguments to find a Estimate * @example * // Get one Estimate * const estimate = await prisma.estimate.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EstimateClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Estimates 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 {EstimateFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Estimates * const estimates = await prisma.estimate.findMany() * * // Get first 10 Estimates * const estimates = await prisma.estimate.findMany({ take: 10 }) * * // Only select the `id` * const estimateWithIdOnly = await prisma.estimate.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Estimate. * @param {EstimateCreateArgs} args - Arguments to create a Estimate. * @example * // Create one Estimate * const Estimate = await prisma.estimate.create({ * data: { * // ... data to create a Estimate * } * }) * */ create(args: SelectSubset>): Prisma__EstimateClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Estimates. * @param {EstimateCreateManyArgs} args - Arguments to create many Estimates. * @example * // Create many Estimates * const estimate = await prisma.estimate.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Estimates and returns the data saved in the database. * @param {EstimateCreateManyAndReturnArgs} args - Arguments to create many Estimates. * @example * // Create many Estimates * const estimate = await prisma.estimate.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Estimates and only return the `id` * const estimateWithIdOnly = await prisma.estimate.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a Estimate. * @param {EstimateDeleteArgs} args - Arguments to delete one Estimate. * @example * // Delete one Estimate * const Estimate = await prisma.estimate.delete({ * where: { * // ... filter to delete one Estimate * } * }) * */ delete(args: SelectSubset>): Prisma__EstimateClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Estimate. * @param {EstimateUpdateArgs} args - Arguments to update one Estimate. * @example * // Update one Estimate * const estimate = await prisma.estimate.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EstimateClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Estimates. * @param {EstimateDeleteManyArgs} args - Arguments to filter Estimates to delete. * @example * // Delete a few Estimates * const { count } = await prisma.estimate.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Estimates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Estimates * const estimate = await prisma.estimate.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Estimate. * @param {EstimateUpsertArgs} args - Arguments to update or create a Estimate. * @example * // Update or create a Estimate * const estimate = await prisma.estimate.upsert({ * create: { * // ... data to create a Estimate * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Estimate we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EstimateClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Estimates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateCountArgs} args - Arguments to filter Estimates to count. * @example * // Count the number of Estimates * const count = await prisma.estimate.count({ * where: { * // ... the filter for the Estimates we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Estimate. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Estimate. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateGroupByArgs} 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 EstimateGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EstimateGroupByArgs['orderBy'] } : { orderBy?: EstimateGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEstimateGroupByPayload : Prisma.PrismaPromise /** * Fields of the Estimate model */ readonly fields: EstimateFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Estimate. * 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__EstimateClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" owner = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> direction = {}>(args?: Subset>): Prisma__SurveyDirectionClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> items = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> totals = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> shares = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany"> | Null> versions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Estimate model */ interface EstimateFieldRefs { readonly id: FieldRef<"Estimate", 'String'> readonly number: FieldRef<"Estimate", 'String'> readonly directionId: FieldRef<"Estimate", 'String'> readonly ownerId: FieldRef<"Estimate", 'String'> readonly objectName: FieldRef<"Estimate", 'String'> readonly customer: FieldRef<"Estimate", 'String'> readonly executor: FieldRef<"Estimate", 'String'> readonly totalFieldWorks: FieldRef<"Estimate", 'Decimal'> readonly totalOfficeWorks: FieldRef<"Estimate", 'Decimal'> readonly totalLaboratory: FieldRef<"Estimate", 'Decimal'> readonly subtotal: FieldRef<"Estimate", 'Decimal'> readonly regionalCoef: FieldRef<"Estimate", 'Decimal'> readonly regionalCoefDocRef: FieldRef<"Estimate", 'String'> readonly inflationIndex: FieldRef<"Estimate", 'Decimal'> readonly inflationDocRef: FieldRef<"Estimate", 'String'> readonly companyCoef: FieldRef<"Estimate", 'Decimal'> readonly companyCoefDocRef: FieldRef<"Estimate", 'String'> readonly executorCoef: FieldRef<"Estimate", 'Decimal'> readonly executorCoefDocRef: FieldRef<"Estimate", 'String'> readonly withVat: FieldRef<"Estimate", 'Boolean'> readonly totalWithoutVat: FieldRef<"Estimate", 'Decimal'> readonly vatRate: FieldRef<"Estimate", 'Decimal'> readonly vatAmount: FieldRef<"Estimate", 'Decimal'> readonly totalWithVat: FieldRef<"Estimate", 'Decimal'> readonly status: FieldRef<"Estimate", 'String'> readonly createdAt: FieldRef<"Estimate", 'DateTime'> readonly updatedAt: FieldRef<"Estimate", 'DateTime'> } // Custom InputTypes /** * Estimate findUnique */ export type EstimateFindUniqueArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null /** * Filter, which Estimate to fetch. */ where: EstimateWhereUniqueInput } /** * Estimate findUniqueOrThrow */ export type EstimateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null /** * Filter, which Estimate to fetch. */ where: EstimateWhereUniqueInput } /** * Estimate findFirst */ export type EstimateFindFirstArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null /** * Filter, which Estimate to fetch. */ where?: EstimateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Estimates to fetch. */ orderBy?: EstimateOrderByWithRelationInput | EstimateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Estimates. */ cursor?: EstimateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Estimates 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` Estimates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Estimates. */ distinct?: EstimateScalarFieldEnum | EstimateScalarFieldEnum[] } /** * Estimate findFirstOrThrow */ export type EstimateFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null /** * Filter, which Estimate to fetch. */ where?: EstimateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Estimates to fetch. */ orderBy?: EstimateOrderByWithRelationInput | EstimateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Estimates. */ cursor?: EstimateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Estimates 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` Estimates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Estimates. */ distinct?: EstimateScalarFieldEnum | EstimateScalarFieldEnum[] } /** * Estimate findMany */ export type EstimateFindManyArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null /** * Filter, which Estimates to fetch. */ where?: EstimateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Estimates to fetch. */ orderBy?: EstimateOrderByWithRelationInput | EstimateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Estimates. */ cursor?: EstimateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Estimates 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` Estimates. */ skip?: number distinct?: EstimateScalarFieldEnum | EstimateScalarFieldEnum[] } /** * Estimate create */ export type EstimateCreateArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null /** * The data needed to create a Estimate. */ data: XOR } /** * Estimate createMany */ export type EstimateCreateManyArgs = { /** * The data used to create many Estimates. */ data: EstimateCreateManyInput | EstimateCreateManyInput[] skipDuplicates?: boolean } /** * Estimate createManyAndReturn */ export type EstimateCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelectCreateManyAndReturn | null /** * The data used to create many Estimates. */ data: EstimateCreateManyInput | EstimateCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: EstimateIncludeCreateManyAndReturn | null } /** * Estimate update */ export type EstimateUpdateArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null /** * The data needed to update a Estimate. */ data: XOR /** * Choose, which Estimate to update. */ where: EstimateWhereUniqueInput } /** * Estimate updateMany */ export type EstimateUpdateManyArgs = { /** * The data used to update Estimates. */ data: XOR /** * Filter which Estimates to update */ where?: EstimateWhereInput } /** * Estimate upsert */ export type EstimateUpsertArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null /** * The filter to search for the Estimate to update in case it exists. */ where: EstimateWhereUniqueInput /** * In case the Estimate found by the `where` argument doesn't exist, create a new Estimate with this data. */ create: XOR /** * In case the Estimate was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Estimate delete */ export type EstimateDeleteArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null /** * Filter which Estimate to delete. */ where: EstimateWhereUniqueInput } /** * Estimate deleteMany */ export type EstimateDeleteManyArgs = { /** * Filter which Estimates to delete */ where?: EstimateWhereInput } /** * Estimate.items */ export type Estimate$itemsArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null where?: EstimateItemWhereInput orderBy?: EstimateItemOrderByWithRelationInput | EstimateItemOrderByWithRelationInput[] cursor?: EstimateItemWhereUniqueInput take?: number skip?: number distinct?: EstimateItemScalarFieldEnum | EstimateItemScalarFieldEnum[] } /** * Estimate.totals */ export type Estimate$totalsArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null where?: EstimateTotalWhereInput orderBy?: EstimateTotalOrderByWithRelationInput | EstimateTotalOrderByWithRelationInput[] cursor?: EstimateTotalWhereUniqueInput take?: number skip?: number distinct?: EstimateTotalScalarFieldEnum | EstimateTotalScalarFieldEnum[] } /** * Estimate.shares */ export type Estimate$sharesArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null where?: EstimateShareWhereInput orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[] cursor?: EstimateShareWhereUniqueInput take?: number skip?: number distinct?: EstimateShareScalarFieldEnum | EstimateShareScalarFieldEnum[] } /** * Estimate.versions */ export type Estimate$versionsArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null where?: EstimateVersionWhereInput orderBy?: EstimateVersionOrderByWithRelationInput | EstimateVersionOrderByWithRelationInput[] cursor?: EstimateVersionWhereUniqueInput take?: number skip?: number distinct?: EstimateVersionScalarFieldEnum | EstimateVersionScalarFieldEnum[] } /** * Estimate without action */ export type EstimateDefaultArgs = { /** * Select specific fields to fetch from the Estimate */ select?: EstimateSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateInclude | null } /** * Model EstimateVersion */ export type AggregateEstimateVersion = { _count: EstimateVersionCountAggregateOutputType | null _avg: EstimateVersionAvgAggregateOutputType | null _sum: EstimateVersionSumAggregateOutputType | null _min: EstimateVersionMinAggregateOutputType | null _max: EstimateVersionMaxAggregateOutputType | null } export type EstimateVersionAvgAggregateOutputType = { versionNumber: number | null } export type EstimateVersionSumAggregateOutputType = { versionNumber: number | null } export type EstimateVersionMinAggregateOutputType = { id: string | null estimateId: string | null versionNumber: number | null createdAt: Date | null } export type EstimateVersionMaxAggregateOutputType = { id: string | null estimateId: string | null versionNumber: number | null createdAt: Date | null } export type EstimateVersionCountAggregateOutputType = { id: number estimateId: number versionNumber: number snapshot: number createdAt: number _all: number } export type EstimateVersionAvgAggregateInputType = { versionNumber?: true } export type EstimateVersionSumAggregateInputType = { versionNumber?: true } export type EstimateVersionMinAggregateInputType = { id?: true estimateId?: true versionNumber?: true createdAt?: true } export type EstimateVersionMaxAggregateInputType = { id?: true estimateId?: true versionNumber?: true createdAt?: true } export type EstimateVersionCountAggregateInputType = { id?: true estimateId?: true versionNumber?: true snapshot?: true createdAt?: true _all?: true } export type EstimateVersionAggregateArgs = { /** * Filter which EstimateVersion to aggregate. */ where?: EstimateVersionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateVersions to fetch. */ orderBy?: EstimateVersionOrderByWithRelationInput | EstimateVersionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EstimateVersionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateVersions 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` EstimateVersions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EstimateVersions **/ _count?: true | EstimateVersionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EstimateVersionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EstimateVersionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EstimateVersionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EstimateVersionMaxAggregateInputType } export type GetEstimateVersionAggregateType = { [P in keyof T & keyof AggregateEstimateVersion]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EstimateVersionGroupByArgs = { where?: EstimateVersionWhereInput orderBy?: EstimateVersionOrderByWithAggregationInput | EstimateVersionOrderByWithAggregationInput[] by: EstimateVersionScalarFieldEnum[] | EstimateVersionScalarFieldEnum having?: EstimateVersionScalarWhereWithAggregatesInput take?: number skip?: number _count?: EstimateVersionCountAggregateInputType | true _avg?: EstimateVersionAvgAggregateInputType _sum?: EstimateVersionSumAggregateInputType _min?: EstimateVersionMinAggregateInputType _max?: EstimateVersionMaxAggregateInputType } export type EstimateVersionGroupByOutputType = { id: string estimateId: string versionNumber: number snapshot: JsonValue createdAt: Date _count: EstimateVersionCountAggregateOutputType | null _avg: EstimateVersionAvgAggregateOutputType | null _sum: EstimateVersionSumAggregateOutputType | null _min: EstimateVersionMinAggregateOutputType | null _max: EstimateVersionMaxAggregateOutputType | null } type GetEstimateVersionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EstimateVersionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EstimateVersionSelect = $Extensions.GetSelect<{ id?: boolean estimateId?: boolean versionNumber?: boolean snapshot?: boolean createdAt?: boolean estimate?: boolean | EstimateDefaultArgs }, ExtArgs["result"]["estimateVersion"]> export type EstimateVersionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean estimateId?: boolean versionNumber?: boolean snapshot?: boolean createdAt?: boolean estimate?: boolean | EstimateDefaultArgs }, ExtArgs["result"]["estimateVersion"]> export type EstimateVersionSelectScalar = { id?: boolean estimateId?: boolean versionNumber?: boolean snapshot?: boolean createdAt?: boolean } export type EstimateVersionInclude = { estimate?: boolean | EstimateDefaultArgs } export type EstimateVersionIncludeCreateManyAndReturn = { estimate?: boolean | EstimateDefaultArgs } export type $EstimateVersionPayload = { name: "EstimateVersion" objects: { estimate: Prisma.$EstimatePayload } scalars: $Extensions.GetPayloadResult<{ id: string estimateId: string versionNumber: number snapshot: Prisma.JsonValue createdAt: Date }, ExtArgs["result"]["estimateVersion"]> composites: {} } type EstimateVersionGetPayload = $Result.GetResult type EstimateVersionCountArgs = Omit & { select?: EstimateVersionCountAggregateInputType | true } export interface EstimateVersionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EstimateVersion'], meta: { name: 'EstimateVersion' } } /** * Find zero or one EstimateVersion that matches the filter. * @param {EstimateVersionFindUniqueArgs} args - Arguments to find a EstimateVersion * @example * // Get one EstimateVersion * const estimateVersion = await prisma.estimateVersion.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EstimateVersionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one EstimateVersion that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EstimateVersionFindUniqueOrThrowArgs} args - Arguments to find a EstimateVersion * @example * // Get one EstimateVersion * const estimateVersion = await prisma.estimateVersion.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EstimateVersionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first EstimateVersion 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 {EstimateVersionFindFirstArgs} args - Arguments to find a EstimateVersion * @example * // Get one EstimateVersion * const estimateVersion = await prisma.estimateVersion.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EstimateVersionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first EstimateVersion 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 {EstimateVersionFindFirstOrThrowArgs} args - Arguments to find a EstimateVersion * @example * // Get one EstimateVersion * const estimateVersion = await prisma.estimateVersion.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EstimateVersionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more EstimateVersions 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 {EstimateVersionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EstimateVersions * const estimateVersions = await prisma.estimateVersion.findMany() * * // Get first 10 EstimateVersions * const estimateVersions = await prisma.estimateVersion.findMany({ take: 10 }) * * // Only select the `id` * const estimateVersionWithIdOnly = await prisma.estimateVersion.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a EstimateVersion. * @param {EstimateVersionCreateArgs} args - Arguments to create a EstimateVersion. * @example * // Create one EstimateVersion * const EstimateVersion = await prisma.estimateVersion.create({ * data: { * // ... data to create a EstimateVersion * } * }) * */ create(args: SelectSubset>): Prisma__EstimateVersionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many EstimateVersions. * @param {EstimateVersionCreateManyArgs} args - Arguments to create many EstimateVersions. * @example * // Create many EstimateVersions * const estimateVersion = await prisma.estimateVersion.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many EstimateVersions and returns the data saved in the database. * @param {EstimateVersionCreateManyAndReturnArgs} args - Arguments to create many EstimateVersions. * @example * // Create many EstimateVersions * const estimateVersion = await prisma.estimateVersion.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EstimateVersions and only return the `id` * const estimateVersionWithIdOnly = await prisma.estimateVersion.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a EstimateVersion. * @param {EstimateVersionDeleteArgs} args - Arguments to delete one EstimateVersion. * @example * // Delete one EstimateVersion * const EstimateVersion = await prisma.estimateVersion.delete({ * where: { * // ... filter to delete one EstimateVersion * } * }) * */ delete(args: SelectSubset>): Prisma__EstimateVersionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one EstimateVersion. * @param {EstimateVersionUpdateArgs} args - Arguments to update one EstimateVersion. * @example * // Update one EstimateVersion * const estimateVersion = await prisma.estimateVersion.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EstimateVersionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more EstimateVersions. * @param {EstimateVersionDeleteManyArgs} args - Arguments to filter EstimateVersions to delete. * @example * // Delete a few EstimateVersions * const { count } = await prisma.estimateVersion.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EstimateVersions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateVersionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EstimateVersions * const estimateVersion = await prisma.estimateVersion.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one EstimateVersion. * @param {EstimateVersionUpsertArgs} args - Arguments to update or create a EstimateVersion. * @example * // Update or create a EstimateVersion * const estimateVersion = await prisma.estimateVersion.upsert({ * create: { * // ... data to create a EstimateVersion * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EstimateVersion we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EstimateVersionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of EstimateVersions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateVersionCountArgs} args - Arguments to filter EstimateVersions to count. * @example * // Count the number of EstimateVersions * const count = await prisma.estimateVersion.count({ * where: { * // ... the filter for the EstimateVersions we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a EstimateVersion. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by EstimateVersion. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateVersionGroupByArgs} 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 EstimateVersionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EstimateVersionGroupByArgs['orderBy'] } : { orderBy?: EstimateVersionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEstimateVersionGroupByPayload : Prisma.PrismaPromise /** * Fields of the EstimateVersion model */ readonly fields: EstimateVersionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EstimateVersion. * 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__EstimateVersionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" estimate = {}>(args?: Subset>): Prisma__EstimateClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the EstimateVersion model */ interface EstimateVersionFieldRefs { readonly id: FieldRef<"EstimateVersion", 'String'> readonly estimateId: FieldRef<"EstimateVersion", 'String'> readonly versionNumber: FieldRef<"EstimateVersion", 'Int'> readonly snapshot: FieldRef<"EstimateVersion", 'Json'> readonly createdAt: FieldRef<"EstimateVersion", 'DateTime'> } // Custom InputTypes /** * EstimateVersion findUnique */ export type EstimateVersionFindUniqueArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null /** * Filter, which EstimateVersion to fetch. */ where: EstimateVersionWhereUniqueInput } /** * EstimateVersion findUniqueOrThrow */ export type EstimateVersionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null /** * Filter, which EstimateVersion to fetch. */ where: EstimateVersionWhereUniqueInput } /** * EstimateVersion findFirst */ export type EstimateVersionFindFirstArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null /** * Filter, which EstimateVersion to fetch. */ where?: EstimateVersionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateVersions to fetch. */ orderBy?: EstimateVersionOrderByWithRelationInput | EstimateVersionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateVersions. */ cursor?: EstimateVersionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateVersions 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` EstimateVersions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateVersions. */ distinct?: EstimateVersionScalarFieldEnum | EstimateVersionScalarFieldEnum[] } /** * EstimateVersion findFirstOrThrow */ export type EstimateVersionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null /** * Filter, which EstimateVersion to fetch. */ where?: EstimateVersionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateVersions to fetch. */ orderBy?: EstimateVersionOrderByWithRelationInput | EstimateVersionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateVersions. */ cursor?: EstimateVersionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateVersions 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` EstimateVersions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateVersions. */ distinct?: EstimateVersionScalarFieldEnum | EstimateVersionScalarFieldEnum[] } /** * EstimateVersion findMany */ export type EstimateVersionFindManyArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null /** * Filter, which EstimateVersions to fetch. */ where?: EstimateVersionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateVersions to fetch. */ orderBy?: EstimateVersionOrderByWithRelationInput | EstimateVersionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EstimateVersions. */ cursor?: EstimateVersionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateVersions 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` EstimateVersions. */ skip?: number distinct?: EstimateVersionScalarFieldEnum | EstimateVersionScalarFieldEnum[] } /** * EstimateVersion create */ export type EstimateVersionCreateArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null /** * The data needed to create a EstimateVersion. */ data: XOR } /** * EstimateVersion createMany */ export type EstimateVersionCreateManyArgs = { /** * The data used to create many EstimateVersions. */ data: EstimateVersionCreateManyInput | EstimateVersionCreateManyInput[] skipDuplicates?: boolean } /** * EstimateVersion createManyAndReturn */ export type EstimateVersionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelectCreateManyAndReturn | null /** * The data used to create many EstimateVersions. */ data: EstimateVersionCreateManyInput | EstimateVersionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionIncludeCreateManyAndReturn | null } /** * EstimateVersion update */ export type EstimateVersionUpdateArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null /** * The data needed to update a EstimateVersion. */ data: XOR /** * Choose, which EstimateVersion to update. */ where: EstimateVersionWhereUniqueInput } /** * EstimateVersion updateMany */ export type EstimateVersionUpdateManyArgs = { /** * The data used to update EstimateVersions. */ data: XOR /** * Filter which EstimateVersions to update */ where?: EstimateVersionWhereInput } /** * EstimateVersion upsert */ export type EstimateVersionUpsertArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null /** * The filter to search for the EstimateVersion to update in case it exists. */ where: EstimateVersionWhereUniqueInput /** * In case the EstimateVersion found by the `where` argument doesn't exist, create a new EstimateVersion with this data. */ create: XOR /** * In case the EstimateVersion was found with the provided `where` argument, update it with this data. */ update: XOR } /** * EstimateVersion delete */ export type EstimateVersionDeleteArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null /** * Filter which EstimateVersion to delete. */ where: EstimateVersionWhereUniqueInput } /** * EstimateVersion deleteMany */ export type EstimateVersionDeleteManyArgs = { /** * Filter which EstimateVersions to delete */ where?: EstimateVersionWhereInput } /** * EstimateVersion without action */ export type EstimateVersionDefaultArgs = { /** * Select specific fields to fetch from the EstimateVersion */ select?: EstimateVersionSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateVersionInclude | null } /** * Model EstimateShare */ export type AggregateEstimateShare = { _count: EstimateShareCountAggregateOutputType | null _min: EstimateShareMinAggregateOutputType | null _max: EstimateShareMaxAggregateOutputType | null } export type EstimateShareMinAggregateOutputType = { id: string | null estimateId: string | null ownerId: string | null sharedWithId: string | null createdAt: Date | null } export type EstimateShareMaxAggregateOutputType = { id: string | null estimateId: string | null ownerId: string | null sharedWithId: string | null createdAt: Date | null } export type EstimateShareCountAggregateOutputType = { id: number estimateId: number ownerId: number sharedWithId: number createdAt: number _all: number } export type EstimateShareMinAggregateInputType = { id?: true estimateId?: true ownerId?: true sharedWithId?: true createdAt?: true } export type EstimateShareMaxAggregateInputType = { id?: true estimateId?: true ownerId?: true sharedWithId?: true createdAt?: true } export type EstimateShareCountAggregateInputType = { id?: true estimateId?: true ownerId?: true sharedWithId?: true createdAt?: true _all?: true } export type EstimateShareAggregateArgs = { /** * Filter which EstimateShare to aggregate. */ where?: EstimateShareWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateShares to fetch. */ orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EstimateShareWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateShares 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` EstimateShares. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EstimateShares **/ _count?: true | EstimateShareCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EstimateShareMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EstimateShareMaxAggregateInputType } export type GetEstimateShareAggregateType = { [P in keyof T & keyof AggregateEstimateShare]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EstimateShareGroupByArgs = { where?: EstimateShareWhereInput orderBy?: EstimateShareOrderByWithAggregationInput | EstimateShareOrderByWithAggregationInput[] by: EstimateShareScalarFieldEnum[] | EstimateShareScalarFieldEnum having?: EstimateShareScalarWhereWithAggregatesInput take?: number skip?: number _count?: EstimateShareCountAggregateInputType | true _min?: EstimateShareMinAggregateInputType _max?: EstimateShareMaxAggregateInputType } export type EstimateShareGroupByOutputType = { id: string estimateId: string ownerId: string sharedWithId: string createdAt: Date _count: EstimateShareCountAggregateOutputType | null _min: EstimateShareMinAggregateOutputType | null _max: EstimateShareMaxAggregateOutputType | null } type GetEstimateShareGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EstimateShareGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EstimateShareSelect = $Extensions.GetSelect<{ id?: boolean estimateId?: boolean ownerId?: boolean sharedWithId?: boolean createdAt?: boolean estimate?: boolean | EstimateDefaultArgs sharedWith?: boolean | UserDefaultArgs owner?: boolean | UserDefaultArgs notes?: boolean | EstimateShare$notesArgs _count?: boolean | EstimateShareCountOutputTypeDefaultArgs }, ExtArgs["result"]["estimateShare"]> export type EstimateShareSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean estimateId?: boolean ownerId?: boolean sharedWithId?: boolean createdAt?: boolean estimate?: boolean | EstimateDefaultArgs sharedWith?: boolean | UserDefaultArgs owner?: boolean | UserDefaultArgs }, ExtArgs["result"]["estimateShare"]> export type EstimateShareSelectScalar = { id?: boolean estimateId?: boolean ownerId?: boolean sharedWithId?: boolean createdAt?: boolean } export type EstimateShareInclude = { estimate?: boolean | EstimateDefaultArgs sharedWith?: boolean | UserDefaultArgs owner?: boolean | UserDefaultArgs notes?: boolean | EstimateShare$notesArgs _count?: boolean | EstimateShareCountOutputTypeDefaultArgs } export type EstimateShareIncludeCreateManyAndReturn = { estimate?: boolean | EstimateDefaultArgs sharedWith?: boolean | UserDefaultArgs owner?: boolean | UserDefaultArgs } export type $EstimateSharePayload = { name: "EstimateShare" objects: { estimate: Prisma.$EstimatePayload sharedWith: Prisma.$UserPayload owner: Prisma.$UserPayload notes: Prisma.$EstimateShareNotePayload[] } scalars: $Extensions.GetPayloadResult<{ id: string estimateId: string ownerId: string sharedWithId: string createdAt: Date }, ExtArgs["result"]["estimateShare"]> composites: {} } type EstimateShareGetPayload = $Result.GetResult type EstimateShareCountArgs = Omit & { select?: EstimateShareCountAggregateInputType | true } export interface EstimateShareDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EstimateShare'], meta: { name: 'EstimateShare' } } /** * Find zero or one EstimateShare that matches the filter. * @param {EstimateShareFindUniqueArgs} args - Arguments to find a EstimateShare * @example * // Get one EstimateShare * const estimateShare = await prisma.estimateShare.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EstimateShareClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one EstimateShare that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EstimateShareFindUniqueOrThrowArgs} args - Arguments to find a EstimateShare * @example * // Get one EstimateShare * const estimateShare = await prisma.estimateShare.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EstimateShareClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first EstimateShare 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 {EstimateShareFindFirstArgs} args - Arguments to find a EstimateShare * @example * // Get one EstimateShare * const estimateShare = await prisma.estimateShare.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EstimateShareClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first EstimateShare 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 {EstimateShareFindFirstOrThrowArgs} args - Arguments to find a EstimateShare * @example * // Get one EstimateShare * const estimateShare = await prisma.estimateShare.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EstimateShareClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more EstimateShares 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 {EstimateShareFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EstimateShares * const estimateShares = await prisma.estimateShare.findMany() * * // Get first 10 EstimateShares * const estimateShares = await prisma.estimateShare.findMany({ take: 10 }) * * // Only select the `id` * const estimateShareWithIdOnly = await prisma.estimateShare.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a EstimateShare. * @param {EstimateShareCreateArgs} args - Arguments to create a EstimateShare. * @example * // Create one EstimateShare * const EstimateShare = await prisma.estimateShare.create({ * data: { * // ... data to create a EstimateShare * } * }) * */ create(args: SelectSubset>): Prisma__EstimateShareClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many EstimateShares. * @param {EstimateShareCreateManyArgs} args - Arguments to create many EstimateShares. * @example * // Create many EstimateShares * const estimateShare = await prisma.estimateShare.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many EstimateShares and returns the data saved in the database. * @param {EstimateShareCreateManyAndReturnArgs} args - Arguments to create many EstimateShares. * @example * // Create many EstimateShares * const estimateShare = await prisma.estimateShare.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EstimateShares and only return the `id` * const estimateShareWithIdOnly = await prisma.estimateShare.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a EstimateShare. * @param {EstimateShareDeleteArgs} args - Arguments to delete one EstimateShare. * @example * // Delete one EstimateShare * const EstimateShare = await prisma.estimateShare.delete({ * where: { * // ... filter to delete one EstimateShare * } * }) * */ delete(args: SelectSubset>): Prisma__EstimateShareClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one EstimateShare. * @param {EstimateShareUpdateArgs} args - Arguments to update one EstimateShare. * @example * // Update one EstimateShare * const estimateShare = await prisma.estimateShare.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EstimateShareClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more EstimateShares. * @param {EstimateShareDeleteManyArgs} args - Arguments to filter EstimateShares to delete. * @example * // Delete a few EstimateShares * const { count } = await prisma.estimateShare.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EstimateShares. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateShareUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EstimateShares * const estimateShare = await prisma.estimateShare.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one EstimateShare. * @param {EstimateShareUpsertArgs} args - Arguments to update or create a EstimateShare. * @example * // Update or create a EstimateShare * const estimateShare = await prisma.estimateShare.upsert({ * create: { * // ... data to create a EstimateShare * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EstimateShare we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EstimateShareClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of EstimateShares. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateShareCountArgs} args - Arguments to filter EstimateShares to count. * @example * // Count the number of EstimateShares * const count = await prisma.estimateShare.count({ * where: { * // ... the filter for the EstimateShares we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a EstimateShare. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateShareAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by EstimateShare. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateShareGroupByArgs} 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 EstimateShareGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EstimateShareGroupByArgs['orderBy'] } : { orderBy?: EstimateShareGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEstimateShareGroupByPayload : Prisma.PrismaPromise /** * Fields of the EstimateShare model */ readonly fields: EstimateShareFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EstimateShare. * 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__EstimateShareClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" estimate = {}>(args?: Subset>): Prisma__EstimateClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> sharedWith = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> owner = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> notes = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the EstimateShare model */ interface EstimateShareFieldRefs { readonly id: FieldRef<"EstimateShare", 'String'> readonly estimateId: FieldRef<"EstimateShare", 'String'> readonly ownerId: FieldRef<"EstimateShare", 'String'> readonly sharedWithId: FieldRef<"EstimateShare", 'String'> readonly createdAt: FieldRef<"EstimateShare", 'DateTime'> } // Custom InputTypes /** * EstimateShare findUnique */ export type EstimateShareFindUniqueArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null /** * Filter, which EstimateShare to fetch. */ where: EstimateShareWhereUniqueInput } /** * EstimateShare findUniqueOrThrow */ export type EstimateShareFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null /** * Filter, which EstimateShare to fetch. */ where: EstimateShareWhereUniqueInput } /** * EstimateShare findFirst */ export type EstimateShareFindFirstArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null /** * Filter, which EstimateShare to fetch. */ where?: EstimateShareWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateShares to fetch. */ orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateShares. */ cursor?: EstimateShareWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateShares 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` EstimateShares. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateShares. */ distinct?: EstimateShareScalarFieldEnum | EstimateShareScalarFieldEnum[] } /** * EstimateShare findFirstOrThrow */ export type EstimateShareFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null /** * Filter, which EstimateShare to fetch. */ where?: EstimateShareWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateShares to fetch. */ orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateShares. */ cursor?: EstimateShareWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateShares 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` EstimateShares. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateShares. */ distinct?: EstimateShareScalarFieldEnum | EstimateShareScalarFieldEnum[] } /** * EstimateShare findMany */ export type EstimateShareFindManyArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null /** * Filter, which EstimateShares to fetch. */ where?: EstimateShareWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateShares to fetch. */ orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EstimateShares. */ cursor?: EstimateShareWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateShares 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` EstimateShares. */ skip?: number distinct?: EstimateShareScalarFieldEnum | EstimateShareScalarFieldEnum[] } /** * EstimateShare create */ export type EstimateShareCreateArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null /** * The data needed to create a EstimateShare. */ data: XOR } /** * EstimateShare createMany */ export type EstimateShareCreateManyArgs = { /** * The data used to create many EstimateShares. */ data: EstimateShareCreateManyInput | EstimateShareCreateManyInput[] skipDuplicates?: boolean } /** * EstimateShare createManyAndReturn */ export type EstimateShareCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelectCreateManyAndReturn | null /** * The data used to create many EstimateShares. */ data: EstimateShareCreateManyInput | EstimateShareCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: EstimateShareIncludeCreateManyAndReturn | null } /** * EstimateShare update */ export type EstimateShareUpdateArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null /** * The data needed to update a EstimateShare. */ data: XOR /** * Choose, which EstimateShare to update. */ where: EstimateShareWhereUniqueInput } /** * EstimateShare updateMany */ export type EstimateShareUpdateManyArgs = { /** * The data used to update EstimateShares. */ data: XOR /** * Filter which EstimateShares to update */ where?: EstimateShareWhereInput } /** * EstimateShare upsert */ export type EstimateShareUpsertArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null /** * The filter to search for the EstimateShare to update in case it exists. */ where: EstimateShareWhereUniqueInput /** * In case the EstimateShare found by the `where` argument doesn't exist, create a new EstimateShare with this data. */ create: XOR /** * In case the EstimateShare was found with the provided `where` argument, update it with this data. */ update: XOR } /** * EstimateShare delete */ export type EstimateShareDeleteArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null /** * Filter which EstimateShare to delete. */ where: EstimateShareWhereUniqueInput } /** * EstimateShare deleteMany */ export type EstimateShareDeleteManyArgs = { /** * Filter which EstimateShares to delete */ where?: EstimateShareWhereInput } /** * EstimateShare.notes */ export type EstimateShare$notesArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null where?: EstimateShareNoteWhereInput orderBy?: EstimateShareNoteOrderByWithRelationInput | EstimateShareNoteOrderByWithRelationInput[] cursor?: EstimateShareNoteWhereUniqueInput take?: number skip?: number distinct?: EstimateShareNoteScalarFieldEnum | EstimateShareNoteScalarFieldEnum[] } /** * EstimateShare without action */ export type EstimateShareDefaultArgs = { /** * Select specific fields to fetch from the EstimateShare */ select?: EstimateShareSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareInclude | null } /** * Model EstimateShareNote */ export type AggregateEstimateShareNote = { _count: EstimateShareNoteCountAggregateOutputType | null _min: EstimateShareNoteMinAggregateOutputType | null _max: EstimateShareNoteMaxAggregateOutputType | null } export type EstimateShareNoteMinAggregateOutputType = { id: string | null shareId: string | null authorId: string | null content: string | null createdAt: Date | null } export type EstimateShareNoteMaxAggregateOutputType = { id: string | null shareId: string | null authorId: string | null content: string | null createdAt: Date | null } export type EstimateShareNoteCountAggregateOutputType = { id: number shareId: number authorId: number content: number createdAt: number _all: number } export type EstimateShareNoteMinAggregateInputType = { id?: true shareId?: true authorId?: true content?: true createdAt?: true } export type EstimateShareNoteMaxAggregateInputType = { id?: true shareId?: true authorId?: true content?: true createdAt?: true } export type EstimateShareNoteCountAggregateInputType = { id?: true shareId?: true authorId?: true content?: true createdAt?: true _all?: true } export type EstimateShareNoteAggregateArgs = { /** * Filter which EstimateShareNote to aggregate. */ where?: EstimateShareNoteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateShareNotes to fetch. */ orderBy?: EstimateShareNoteOrderByWithRelationInput | EstimateShareNoteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EstimateShareNoteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateShareNotes 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` EstimateShareNotes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EstimateShareNotes **/ _count?: true | EstimateShareNoteCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EstimateShareNoteMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EstimateShareNoteMaxAggregateInputType } export type GetEstimateShareNoteAggregateType = { [P in keyof T & keyof AggregateEstimateShareNote]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EstimateShareNoteGroupByArgs = { where?: EstimateShareNoteWhereInput orderBy?: EstimateShareNoteOrderByWithAggregationInput | EstimateShareNoteOrderByWithAggregationInput[] by: EstimateShareNoteScalarFieldEnum[] | EstimateShareNoteScalarFieldEnum having?: EstimateShareNoteScalarWhereWithAggregatesInput take?: number skip?: number _count?: EstimateShareNoteCountAggregateInputType | true _min?: EstimateShareNoteMinAggregateInputType _max?: EstimateShareNoteMaxAggregateInputType } export type EstimateShareNoteGroupByOutputType = { id: string shareId: string authorId: string content: string createdAt: Date _count: EstimateShareNoteCountAggregateOutputType | null _min: EstimateShareNoteMinAggregateOutputType | null _max: EstimateShareNoteMaxAggregateOutputType | null } type GetEstimateShareNoteGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EstimateShareNoteGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EstimateShareNoteSelect = $Extensions.GetSelect<{ id?: boolean shareId?: boolean authorId?: boolean content?: boolean createdAt?: boolean share?: boolean | EstimateShareDefaultArgs author?: boolean | UserDefaultArgs }, ExtArgs["result"]["estimateShareNote"]> export type EstimateShareNoteSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean shareId?: boolean authorId?: boolean content?: boolean createdAt?: boolean share?: boolean | EstimateShareDefaultArgs author?: boolean | UserDefaultArgs }, ExtArgs["result"]["estimateShareNote"]> export type EstimateShareNoteSelectScalar = { id?: boolean shareId?: boolean authorId?: boolean content?: boolean createdAt?: boolean } export type EstimateShareNoteInclude = { share?: boolean | EstimateShareDefaultArgs author?: boolean | UserDefaultArgs } export type EstimateShareNoteIncludeCreateManyAndReturn = { share?: boolean | EstimateShareDefaultArgs author?: boolean | UserDefaultArgs } export type $EstimateShareNotePayload = { name: "EstimateShareNote" objects: { share: Prisma.$EstimateSharePayload author: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string shareId: string authorId: string content: string createdAt: Date }, ExtArgs["result"]["estimateShareNote"]> composites: {} } type EstimateShareNoteGetPayload = $Result.GetResult type EstimateShareNoteCountArgs = Omit & { select?: EstimateShareNoteCountAggregateInputType | true } export interface EstimateShareNoteDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EstimateShareNote'], meta: { name: 'EstimateShareNote' } } /** * Find zero or one EstimateShareNote that matches the filter. * @param {EstimateShareNoteFindUniqueArgs} args - Arguments to find a EstimateShareNote * @example * // Get one EstimateShareNote * const estimateShareNote = await prisma.estimateShareNote.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EstimateShareNoteClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one EstimateShareNote that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EstimateShareNoteFindUniqueOrThrowArgs} args - Arguments to find a EstimateShareNote * @example * // Get one EstimateShareNote * const estimateShareNote = await prisma.estimateShareNote.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EstimateShareNoteClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first EstimateShareNote 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 {EstimateShareNoteFindFirstArgs} args - Arguments to find a EstimateShareNote * @example * // Get one EstimateShareNote * const estimateShareNote = await prisma.estimateShareNote.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EstimateShareNoteClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first EstimateShareNote 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 {EstimateShareNoteFindFirstOrThrowArgs} args - Arguments to find a EstimateShareNote * @example * // Get one EstimateShareNote * const estimateShareNote = await prisma.estimateShareNote.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EstimateShareNoteClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more EstimateShareNotes 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 {EstimateShareNoteFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EstimateShareNotes * const estimateShareNotes = await prisma.estimateShareNote.findMany() * * // Get first 10 EstimateShareNotes * const estimateShareNotes = await prisma.estimateShareNote.findMany({ take: 10 }) * * // Only select the `id` * const estimateShareNoteWithIdOnly = await prisma.estimateShareNote.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a EstimateShareNote. * @param {EstimateShareNoteCreateArgs} args - Arguments to create a EstimateShareNote. * @example * // Create one EstimateShareNote * const EstimateShareNote = await prisma.estimateShareNote.create({ * data: { * // ... data to create a EstimateShareNote * } * }) * */ create(args: SelectSubset>): Prisma__EstimateShareNoteClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many EstimateShareNotes. * @param {EstimateShareNoteCreateManyArgs} args - Arguments to create many EstimateShareNotes. * @example * // Create many EstimateShareNotes * const estimateShareNote = await prisma.estimateShareNote.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many EstimateShareNotes and returns the data saved in the database. * @param {EstimateShareNoteCreateManyAndReturnArgs} args - Arguments to create many EstimateShareNotes. * @example * // Create many EstimateShareNotes * const estimateShareNote = await prisma.estimateShareNote.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EstimateShareNotes and only return the `id` * const estimateShareNoteWithIdOnly = await prisma.estimateShareNote.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a EstimateShareNote. * @param {EstimateShareNoteDeleteArgs} args - Arguments to delete one EstimateShareNote. * @example * // Delete one EstimateShareNote * const EstimateShareNote = await prisma.estimateShareNote.delete({ * where: { * // ... filter to delete one EstimateShareNote * } * }) * */ delete(args: SelectSubset>): Prisma__EstimateShareNoteClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one EstimateShareNote. * @param {EstimateShareNoteUpdateArgs} args - Arguments to update one EstimateShareNote. * @example * // Update one EstimateShareNote * const estimateShareNote = await prisma.estimateShareNote.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EstimateShareNoteClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more EstimateShareNotes. * @param {EstimateShareNoteDeleteManyArgs} args - Arguments to filter EstimateShareNotes to delete. * @example * // Delete a few EstimateShareNotes * const { count } = await prisma.estimateShareNote.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EstimateShareNotes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateShareNoteUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EstimateShareNotes * const estimateShareNote = await prisma.estimateShareNote.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one EstimateShareNote. * @param {EstimateShareNoteUpsertArgs} args - Arguments to update or create a EstimateShareNote. * @example * // Update or create a EstimateShareNote * const estimateShareNote = await prisma.estimateShareNote.upsert({ * create: { * // ... data to create a EstimateShareNote * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EstimateShareNote we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EstimateShareNoteClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of EstimateShareNotes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateShareNoteCountArgs} args - Arguments to filter EstimateShareNotes to count. * @example * // Count the number of EstimateShareNotes * const count = await prisma.estimateShareNote.count({ * where: { * // ... the filter for the EstimateShareNotes we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a EstimateShareNote. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateShareNoteAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by EstimateShareNote. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateShareNoteGroupByArgs} 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 EstimateShareNoteGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EstimateShareNoteGroupByArgs['orderBy'] } : { orderBy?: EstimateShareNoteGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEstimateShareNoteGroupByPayload : Prisma.PrismaPromise /** * Fields of the EstimateShareNote model */ readonly fields: EstimateShareNoteFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EstimateShareNote. * 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__EstimateShareNoteClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" share = {}>(args?: Subset>): Prisma__EstimateShareClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> author = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the EstimateShareNote model */ interface EstimateShareNoteFieldRefs { readonly id: FieldRef<"EstimateShareNote", 'String'> readonly shareId: FieldRef<"EstimateShareNote", 'String'> readonly authorId: FieldRef<"EstimateShareNote", 'String'> readonly content: FieldRef<"EstimateShareNote", 'String'> readonly createdAt: FieldRef<"EstimateShareNote", 'DateTime'> } // Custom InputTypes /** * EstimateShareNote findUnique */ export type EstimateShareNoteFindUniqueArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null /** * Filter, which EstimateShareNote to fetch. */ where: EstimateShareNoteWhereUniqueInput } /** * EstimateShareNote findUniqueOrThrow */ export type EstimateShareNoteFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null /** * Filter, which EstimateShareNote to fetch. */ where: EstimateShareNoteWhereUniqueInput } /** * EstimateShareNote findFirst */ export type EstimateShareNoteFindFirstArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null /** * Filter, which EstimateShareNote to fetch. */ where?: EstimateShareNoteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateShareNotes to fetch. */ orderBy?: EstimateShareNoteOrderByWithRelationInput | EstimateShareNoteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateShareNotes. */ cursor?: EstimateShareNoteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateShareNotes 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` EstimateShareNotes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateShareNotes. */ distinct?: EstimateShareNoteScalarFieldEnum | EstimateShareNoteScalarFieldEnum[] } /** * EstimateShareNote findFirstOrThrow */ export type EstimateShareNoteFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null /** * Filter, which EstimateShareNote to fetch. */ where?: EstimateShareNoteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateShareNotes to fetch. */ orderBy?: EstimateShareNoteOrderByWithRelationInput | EstimateShareNoteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateShareNotes. */ cursor?: EstimateShareNoteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateShareNotes 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` EstimateShareNotes. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateShareNotes. */ distinct?: EstimateShareNoteScalarFieldEnum | EstimateShareNoteScalarFieldEnum[] } /** * EstimateShareNote findMany */ export type EstimateShareNoteFindManyArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null /** * Filter, which EstimateShareNotes to fetch. */ where?: EstimateShareNoteWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateShareNotes to fetch. */ orderBy?: EstimateShareNoteOrderByWithRelationInput | EstimateShareNoteOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EstimateShareNotes. */ cursor?: EstimateShareNoteWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateShareNotes 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` EstimateShareNotes. */ skip?: number distinct?: EstimateShareNoteScalarFieldEnum | EstimateShareNoteScalarFieldEnum[] } /** * EstimateShareNote create */ export type EstimateShareNoteCreateArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null /** * The data needed to create a EstimateShareNote. */ data: XOR } /** * EstimateShareNote createMany */ export type EstimateShareNoteCreateManyArgs = { /** * The data used to create many EstimateShareNotes. */ data: EstimateShareNoteCreateManyInput | EstimateShareNoteCreateManyInput[] skipDuplicates?: boolean } /** * EstimateShareNote createManyAndReturn */ export type EstimateShareNoteCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelectCreateManyAndReturn | null /** * The data used to create many EstimateShareNotes. */ data: EstimateShareNoteCreateManyInput | EstimateShareNoteCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteIncludeCreateManyAndReturn | null } /** * EstimateShareNote update */ export type EstimateShareNoteUpdateArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null /** * The data needed to update a EstimateShareNote. */ data: XOR /** * Choose, which EstimateShareNote to update. */ where: EstimateShareNoteWhereUniqueInput } /** * EstimateShareNote updateMany */ export type EstimateShareNoteUpdateManyArgs = { /** * The data used to update EstimateShareNotes. */ data: XOR /** * Filter which EstimateShareNotes to update */ where?: EstimateShareNoteWhereInput } /** * EstimateShareNote upsert */ export type EstimateShareNoteUpsertArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null /** * The filter to search for the EstimateShareNote to update in case it exists. */ where: EstimateShareNoteWhereUniqueInput /** * In case the EstimateShareNote found by the `where` argument doesn't exist, create a new EstimateShareNote with this data. */ create: XOR /** * In case the EstimateShareNote was found with the provided `where` argument, update it with this data. */ update: XOR } /** * EstimateShareNote delete */ export type EstimateShareNoteDeleteArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null /** * Filter which EstimateShareNote to delete. */ where: EstimateShareNoteWhereUniqueInput } /** * EstimateShareNote deleteMany */ export type EstimateShareNoteDeleteManyArgs = { /** * Filter which EstimateShareNotes to delete */ where?: EstimateShareNoteWhereInput } /** * EstimateShareNote without action */ export type EstimateShareNoteDefaultArgs = { /** * Select specific fields to fetch from the EstimateShareNote */ select?: EstimateShareNoteSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateShareNoteInclude | null } /** * Model EstimateItem */ export type AggregateEstimateItem = { _count: EstimateItemCountAggregateOutputType | null _avg: EstimateItemAvgAggregateOutputType | null _sum: EstimateItemSumAggregateOutputType | null _min: EstimateItemMinAggregateOutputType | null _max: EstimateItemMaxAggregateOutputType | null } export type EstimateItemAvgAggregateOutputType = { orderNumber: number | null basePrice: Decimal | null quantity: Decimal | null coef1: Decimal | null coef2: Decimal | null coef3: Decimal | null totalPrice: Decimal | null } export type EstimateItemSumAggregateOutputType = { orderNumber: number | null basePrice: Decimal | null quantity: Decimal | null coef1: Decimal | null coef2: Decimal | null coef3: Decimal | null totalPrice: Decimal | null } export type EstimateItemMinAggregateOutputType = { id: string | null estimateId: string | null orderNumber: number | null sectionType: string | null priceItemId: string | null workName: string | null justification: string | null basePrice: Decimal | null quantity: Decimal | null unit: string | null coef1: Decimal | null coef1Desc: string | null coef2: Decimal | null coef2Desc: string | null coef3: Decimal | null coef3Desc: string | null totalPrice: Decimal | null createdAt: Date | null updatedAt: Date | null } export type EstimateItemMaxAggregateOutputType = { id: string | null estimateId: string | null orderNumber: number | null sectionType: string | null priceItemId: string | null workName: string | null justification: string | null basePrice: Decimal | null quantity: Decimal | null unit: string | null coef1: Decimal | null coef1Desc: string | null coef2: Decimal | null coef2Desc: string | null coef3: Decimal | null coef3Desc: string | null totalPrice: Decimal | null createdAt: Date | null updatedAt: Date | null } export type EstimateItemCountAggregateOutputType = { id: number estimateId: number orderNumber: number sectionType: number priceItemId: number workName: number justification: number basePrice: number quantity: number unit: number coef1: number coef1Desc: number coef2: number coef2Desc: number coef3: number coef3Desc: number totalPrice: number createdAt: number updatedAt: number _all: number } export type EstimateItemAvgAggregateInputType = { orderNumber?: true basePrice?: true quantity?: true coef1?: true coef2?: true coef3?: true totalPrice?: true } export type EstimateItemSumAggregateInputType = { orderNumber?: true basePrice?: true quantity?: true coef1?: true coef2?: true coef3?: true totalPrice?: true } export type EstimateItemMinAggregateInputType = { id?: true estimateId?: true orderNumber?: true sectionType?: true priceItemId?: true workName?: true justification?: true basePrice?: true quantity?: true unit?: true coef1?: true coef1Desc?: true coef2?: true coef2Desc?: true coef3?: true coef3Desc?: true totalPrice?: true createdAt?: true updatedAt?: true } export type EstimateItemMaxAggregateInputType = { id?: true estimateId?: true orderNumber?: true sectionType?: true priceItemId?: true workName?: true justification?: true basePrice?: true quantity?: true unit?: true coef1?: true coef1Desc?: true coef2?: true coef2Desc?: true coef3?: true coef3Desc?: true totalPrice?: true createdAt?: true updatedAt?: true } export type EstimateItemCountAggregateInputType = { id?: true estimateId?: true orderNumber?: true sectionType?: true priceItemId?: true workName?: true justification?: true basePrice?: true quantity?: true unit?: true coef1?: true coef1Desc?: true coef2?: true coef2Desc?: true coef3?: true coef3Desc?: true totalPrice?: true createdAt?: true updatedAt?: true _all?: true } export type EstimateItemAggregateArgs = { /** * Filter which EstimateItem to aggregate. */ where?: EstimateItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateItems to fetch. */ orderBy?: EstimateItemOrderByWithRelationInput | EstimateItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EstimateItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateItems 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` EstimateItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EstimateItems **/ _count?: true | EstimateItemCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EstimateItemAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EstimateItemSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EstimateItemMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EstimateItemMaxAggregateInputType } export type GetEstimateItemAggregateType = { [P in keyof T & keyof AggregateEstimateItem]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EstimateItemGroupByArgs = { where?: EstimateItemWhereInput orderBy?: EstimateItemOrderByWithAggregationInput | EstimateItemOrderByWithAggregationInput[] by: EstimateItemScalarFieldEnum[] | EstimateItemScalarFieldEnum having?: EstimateItemScalarWhereWithAggregatesInput take?: number skip?: number _count?: EstimateItemCountAggregateInputType | true _avg?: EstimateItemAvgAggregateInputType _sum?: EstimateItemSumAggregateInputType _min?: EstimateItemMinAggregateInputType _max?: EstimateItemMaxAggregateInputType } export type EstimateItemGroupByOutputType = { id: string estimateId: string orderNumber: number sectionType: string priceItemId: string | null workName: string justification: string | null basePrice: Decimal quantity: Decimal unit: string | null coef1: Decimal | null coef1Desc: string | null coef2: Decimal | null coef2Desc: string | null coef3: Decimal | null coef3Desc: string | null totalPrice: Decimal createdAt: Date updatedAt: Date _count: EstimateItemCountAggregateOutputType | null _avg: EstimateItemAvgAggregateOutputType | null _sum: EstimateItemSumAggregateOutputType | null _min: EstimateItemMinAggregateOutputType | null _max: EstimateItemMaxAggregateOutputType | null } type GetEstimateItemGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EstimateItemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EstimateItemSelect = $Extensions.GetSelect<{ id?: boolean estimateId?: boolean orderNumber?: boolean sectionType?: boolean priceItemId?: boolean workName?: boolean justification?: boolean basePrice?: boolean quantity?: boolean unit?: boolean coef1?: boolean coef1Desc?: boolean coef2?: boolean coef2Desc?: boolean coef3?: boolean coef3Desc?: boolean totalPrice?: boolean createdAt?: boolean updatedAt?: boolean estimate?: boolean | EstimateDefaultArgs priceItem?: boolean | EstimateItem$priceItemArgs }, ExtArgs["result"]["estimateItem"]> export type EstimateItemSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean estimateId?: boolean orderNumber?: boolean sectionType?: boolean priceItemId?: boolean workName?: boolean justification?: boolean basePrice?: boolean quantity?: boolean unit?: boolean coef1?: boolean coef1Desc?: boolean coef2?: boolean coef2Desc?: boolean coef3?: boolean coef3Desc?: boolean totalPrice?: boolean createdAt?: boolean updatedAt?: boolean estimate?: boolean | EstimateDefaultArgs priceItem?: boolean | EstimateItem$priceItemArgs }, ExtArgs["result"]["estimateItem"]> export type EstimateItemSelectScalar = { id?: boolean estimateId?: boolean orderNumber?: boolean sectionType?: boolean priceItemId?: boolean workName?: boolean justification?: boolean basePrice?: boolean quantity?: boolean unit?: boolean coef1?: boolean coef1Desc?: boolean coef2?: boolean coef2Desc?: boolean coef3?: boolean coef3Desc?: boolean totalPrice?: boolean createdAt?: boolean updatedAt?: boolean } export type EstimateItemInclude = { estimate?: boolean | EstimateDefaultArgs priceItem?: boolean | EstimateItem$priceItemArgs } export type EstimateItemIncludeCreateManyAndReturn = { estimate?: boolean | EstimateDefaultArgs priceItem?: boolean | EstimateItem$priceItemArgs } export type $EstimateItemPayload = { name: "EstimateItem" objects: { estimate: Prisma.$EstimatePayload priceItem: Prisma.$PriceItemPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string estimateId: string orderNumber: number sectionType: string priceItemId: string | null workName: string justification: string | null basePrice: Prisma.Decimal quantity: Prisma.Decimal unit: string | null coef1: Prisma.Decimal | null coef1Desc: string | null coef2: Prisma.Decimal | null coef2Desc: string | null coef3: Prisma.Decimal | null coef3Desc: string | null totalPrice: Prisma.Decimal createdAt: Date updatedAt: Date }, ExtArgs["result"]["estimateItem"]> composites: {} } type EstimateItemGetPayload = $Result.GetResult type EstimateItemCountArgs = Omit & { select?: EstimateItemCountAggregateInputType | true } export interface EstimateItemDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EstimateItem'], meta: { name: 'EstimateItem' } } /** * Find zero or one EstimateItem that matches the filter. * @param {EstimateItemFindUniqueArgs} args - Arguments to find a EstimateItem * @example * // Get one EstimateItem * const estimateItem = await prisma.estimateItem.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EstimateItemClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one EstimateItem that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EstimateItemFindUniqueOrThrowArgs} args - Arguments to find a EstimateItem * @example * // Get one EstimateItem * const estimateItem = await prisma.estimateItem.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EstimateItemClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first EstimateItem 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 {EstimateItemFindFirstArgs} args - Arguments to find a EstimateItem * @example * // Get one EstimateItem * const estimateItem = await prisma.estimateItem.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EstimateItemClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first EstimateItem 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 {EstimateItemFindFirstOrThrowArgs} args - Arguments to find a EstimateItem * @example * // Get one EstimateItem * const estimateItem = await prisma.estimateItem.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EstimateItemClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more EstimateItems 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 {EstimateItemFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EstimateItems * const estimateItems = await prisma.estimateItem.findMany() * * // Get first 10 EstimateItems * const estimateItems = await prisma.estimateItem.findMany({ take: 10 }) * * // Only select the `id` * const estimateItemWithIdOnly = await prisma.estimateItem.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a EstimateItem. * @param {EstimateItemCreateArgs} args - Arguments to create a EstimateItem. * @example * // Create one EstimateItem * const EstimateItem = await prisma.estimateItem.create({ * data: { * // ... data to create a EstimateItem * } * }) * */ create(args: SelectSubset>): Prisma__EstimateItemClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many EstimateItems. * @param {EstimateItemCreateManyArgs} args - Arguments to create many EstimateItems. * @example * // Create many EstimateItems * const estimateItem = await prisma.estimateItem.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many EstimateItems and returns the data saved in the database. * @param {EstimateItemCreateManyAndReturnArgs} args - Arguments to create many EstimateItems. * @example * // Create many EstimateItems * const estimateItem = await prisma.estimateItem.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EstimateItems and only return the `id` * const estimateItemWithIdOnly = await prisma.estimateItem.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a EstimateItem. * @param {EstimateItemDeleteArgs} args - Arguments to delete one EstimateItem. * @example * // Delete one EstimateItem * const EstimateItem = await prisma.estimateItem.delete({ * where: { * // ... filter to delete one EstimateItem * } * }) * */ delete(args: SelectSubset>): Prisma__EstimateItemClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one EstimateItem. * @param {EstimateItemUpdateArgs} args - Arguments to update one EstimateItem. * @example * // Update one EstimateItem * const estimateItem = await prisma.estimateItem.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EstimateItemClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more EstimateItems. * @param {EstimateItemDeleteManyArgs} args - Arguments to filter EstimateItems to delete. * @example * // Delete a few EstimateItems * const { count } = await prisma.estimateItem.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EstimateItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateItemUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EstimateItems * const estimateItem = await prisma.estimateItem.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one EstimateItem. * @param {EstimateItemUpsertArgs} args - Arguments to update or create a EstimateItem. * @example * // Update or create a EstimateItem * const estimateItem = await prisma.estimateItem.upsert({ * create: { * // ... data to create a EstimateItem * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EstimateItem we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EstimateItemClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of EstimateItems. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateItemCountArgs} args - Arguments to filter EstimateItems to count. * @example * // Count the number of EstimateItems * const count = await prisma.estimateItem.count({ * where: { * // ... the filter for the EstimateItems we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a EstimateItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateItemAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by EstimateItem. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateItemGroupByArgs} 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 EstimateItemGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EstimateItemGroupByArgs['orderBy'] } : { orderBy?: EstimateItemGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEstimateItemGroupByPayload : Prisma.PrismaPromise /** * Fields of the EstimateItem model */ readonly fields: EstimateItemFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EstimateItem. * 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__EstimateItemClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" estimate = {}>(args?: Subset>): Prisma__EstimateClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> priceItem = {}>(args?: Subset>): Prisma__PriceItemClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the EstimateItem model */ interface EstimateItemFieldRefs { readonly id: FieldRef<"EstimateItem", 'String'> readonly estimateId: FieldRef<"EstimateItem", 'String'> readonly orderNumber: FieldRef<"EstimateItem", 'Int'> readonly sectionType: FieldRef<"EstimateItem", 'String'> readonly priceItemId: FieldRef<"EstimateItem", 'String'> readonly workName: FieldRef<"EstimateItem", 'String'> readonly justification: FieldRef<"EstimateItem", 'String'> readonly basePrice: FieldRef<"EstimateItem", 'Decimal'> readonly quantity: FieldRef<"EstimateItem", 'Decimal'> readonly unit: FieldRef<"EstimateItem", 'String'> readonly coef1: FieldRef<"EstimateItem", 'Decimal'> readonly coef1Desc: FieldRef<"EstimateItem", 'String'> readonly coef2: FieldRef<"EstimateItem", 'Decimal'> readonly coef2Desc: FieldRef<"EstimateItem", 'String'> readonly coef3: FieldRef<"EstimateItem", 'Decimal'> readonly coef3Desc: FieldRef<"EstimateItem", 'String'> readonly totalPrice: FieldRef<"EstimateItem", 'Decimal'> readonly createdAt: FieldRef<"EstimateItem", 'DateTime'> readonly updatedAt: FieldRef<"EstimateItem", 'DateTime'> } // Custom InputTypes /** * EstimateItem findUnique */ export type EstimateItemFindUniqueArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null /** * Filter, which EstimateItem to fetch. */ where: EstimateItemWhereUniqueInput } /** * EstimateItem findUniqueOrThrow */ export type EstimateItemFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null /** * Filter, which EstimateItem to fetch. */ where: EstimateItemWhereUniqueInput } /** * EstimateItem findFirst */ export type EstimateItemFindFirstArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null /** * Filter, which EstimateItem to fetch. */ where?: EstimateItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateItems to fetch. */ orderBy?: EstimateItemOrderByWithRelationInput | EstimateItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateItems. */ cursor?: EstimateItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateItems 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` EstimateItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateItems. */ distinct?: EstimateItemScalarFieldEnum | EstimateItemScalarFieldEnum[] } /** * EstimateItem findFirstOrThrow */ export type EstimateItemFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null /** * Filter, which EstimateItem to fetch. */ where?: EstimateItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateItems to fetch. */ orderBy?: EstimateItemOrderByWithRelationInput | EstimateItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateItems. */ cursor?: EstimateItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateItems 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` EstimateItems. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateItems. */ distinct?: EstimateItemScalarFieldEnum | EstimateItemScalarFieldEnum[] } /** * EstimateItem findMany */ export type EstimateItemFindManyArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null /** * Filter, which EstimateItems to fetch. */ where?: EstimateItemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateItems to fetch. */ orderBy?: EstimateItemOrderByWithRelationInput | EstimateItemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EstimateItems. */ cursor?: EstimateItemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateItems 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` EstimateItems. */ skip?: number distinct?: EstimateItemScalarFieldEnum | EstimateItemScalarFieldEnum[] } /** * EstimateItem create */ export type EstimateItemCreateArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null /** * The data needed to create a EstimateItem. */ data: XOR } /** * EstimateItem createMany */ export type EstimateItemCreateManyArgs = { /** * The data used to create many EstimateItems. */ data: EstimateItemCreateManyInput | EstimateItemCreateManyInput[] skipDuplicates?: boolean } /** * EstimateItem createManyAndReturn */ export type EstimateItemCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelectCreateManyAndReturn | null /** * The data used to create many EstimateItems. */ data: EstimateItemCreateManyInput | EstimateItemCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: EstimateItemIncludeCreateManyAndReturn | null } /** * EstimateItem update */ export type EstimateItemUpdateArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null /** * The data needed to update a EstimateItem. */ data: XOR /** * Choose, which EstimateItem to update. */ where: EstimateItemWhereUniqueInput } /** * EstimateItem updateMany */ export type EstimateItemUpdateManyArgs = { /** * The data used to update EstimateItems. */ data: XOR /** * Filter which EstimateItems to update */ where?: EstimateItemWhereInput } /** * EstimateItem upsert */ export type EstimateItemUpsertArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null /** * The filter to search for the EstimateItem to update in case it exists. */ where: EstimateItemWhereUniqueInput /** * In case the EstimateItem found by the `where` argument doesn't exist, create a new EstimateItem with this data. */ create: XOR /** * In case the EstimateItem was found with the provided `where` argument, update it with this data. */ update: XOR } /** * EstimateItem delete */ export type EstimateItemDeleteArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null /** * Filter which EstimateItem to delete. */ where: EstimateItemWhereUniqueInput } /** * EstimateItem deleteMany */ export type EstimateItemDeleteManyArgs = { /** * Filter which EstimateItems to delete */ where?: EstimateItemWhereInput } /** * EstimateItem.priceItem */ export type EstimateItem$priceItemArgs = { /** * Select specific fields to fetch from the PriceItem */ select?: PriceItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: PriceItemInclude | null where?: PriceItemWhereInput } /** * EstimateItem without action */ export type EstimateItemDefaultArgs = { /** * Select specific fields to fetch from the EstimateItem */ select?: EstimateItemSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateItemInclude | null } /** * Model EstimateTotal */ export type AggregateEstimateTotal = { _count: EstimateTotalCountAggregateOutputType | null _avg: EstimateTotalAvgAggregateOutputType | null _sum: EstimateTotalSumAggregateOutputType | null _min: EstimateTotalMinAggregateOutputType | null _max: EstimateTotalMaxAggregateOutputType | null } export type EstimateTotalAvgAggregateOutputType = { orderNumber: number | null baseValue: Decimal | null coefficient: Decimal | null resultValue: Decimal | null } export type EstimateTotalSumAggregateOutputType = { orderNumber: number | null baseValue: Decimal | null coefficient: Decimal | null resultValue: Decimal | null } export type EstimateTotalMinAggregateOutputType = { id: string | null estimateId: string | null orderNumber: number | null label: string | null description: string | null baseValue: Decimal | null coefficient: Decimal | null resultValue: Decimal | null createdAt: Date | null updatedAt: Date | null } export type EstimateTotalMaxAggregateOutputType = { id: string | null estimateId: string | null orderNumber: number | null label: string | null description: string | null baseValue: Decimal | null coefficient: Decimal | null resultValue: Decimal | null createdAt: Date | null updatedAt: Date | null } export type EstimateTotalCountAggregateOutputType = { id: number estimateId: number orderNumber: number label: number description: number baseValue: number coefficient: number resultValue: number createdAt: number updatedAt: number _all: number } export type EstimateTotalAvgAggregateInputType = { orderNumber?: true baseValue?: true coefficient?: true resultValue?: true } export type EstimateTotalSumAggregateInputType = { orderNumber?: true baseValue?: true coefficient?: true resultValue?: true } export type EstimateTotalMinAggregateInputType = { id?: true estimateId?: true orderNumber?: true label?: true description?: true baseValue?: true coefficient?: true resultValue?: true createdAt?: true updatedAt?: true } export type EstimateTotalMaxAggregateInputType = { id?: true estimateId?: true orderNumber?: true label?: true description?: true baseValue?: true coefficient?: true resultValue?: true createdAt?: true updatedAt?: true } export type EstimateTotalCountAggregateInputType = { id?: true estimateId?: true orderNumber?: true label?: true description?: true baseValue?: true coefficient?: true resultValue?: true createdAt?: true updatedAt?: true _all?: true } export type EstimateTotalAggregateArgs = { /** * Filter which EstimateTotal to aggregate. */ where?: EstimateTotalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateTotals to fetch. */ orderBy?: EstimateTotalOrderByWithRelationInput | EstimateTotalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EstimateTotalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateTotals 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` EstimateTotals. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EstimateTotals **/ _count?: true | EstimateTotalCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EstimateTotalAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EstimateTotalSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EstimateTotalMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EstimateTotalMaxAggregateInputType } export type GetEstimateTotalAggregateType = { [P in keyof T & keyof AggregateEstimateTotal]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EstimateTotalGroupByArgs = { where?: EstimateTotalWhereInput orderBy?: EstimateTotalOrderByWithAggregationInput | EstimateTotalOrderByWithAggregationInput[] by: EstimateTotalScalarFieldEnum[] | EstimateTotalScalarFieldEnum having?: EstimateTotalScalarWhereWithAggregatesInput take?: number skip?: number _count?: EstimateTotalCountAggregateInputType | true _avg?: EstimateTotalAvgAggregateInputType _sum?: EstimateTotalSumAggregateInputType _min?: EstimateTotalMinAggregateInputType _max?: EstimateTotalMaxAggregateInputType } export type EstimateTotalGroupByOutputType = { id: string estimateId: string orderNumber: number label: string description: string | null baseValue: Decimal | null coefficient: Decimal | null resultValue: Decimal createdAt: Date updatedAt: Date _count: EstimateTotalCountAggregateOutputType | null _avg: EstimateTotalAvgAggregateOutputType | null _sum: EstimateTotalSumAggregateOutputType | null _min: EstimateTotalMinAggregateOutputType | null _max: EstimateTotalMaxAggregateOutputType | null } type GetEstimateTotalGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EstimateTotalGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EstimateTotalSelect = $Extensions.GetSelect<{ id?: boolean estimateId?: boolean orderNumber?: boolean label?: boolean description?: boolean baseValue?: boolean coefficient?: boolean resultValue?: boolean createdAt?: boolean updatedAt?: boolean estimate?: boolean | EstimateDefaultArgs }, ExtArgs["result"]["estimateTotal"]> export type EstimateTotalSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean estimateId?: boolean orderNumber?: boolean label?: boolean description?: boolean baseValue?: boolean coefficient?: boolean resultValue?: boolean createdAt?: boolean updatedAt?: boolean estimate?: boolean | EstimateDefaultArgs }, ExtArgs["result"]["estimateTotal"]> export type EstimateTotalSelectScalar = { id?: boolean estimateId?: boolean orderNumber?: boolean label?: boolean description?: boolean baseValue?: boolean coefficient?: boolean resultValue?: boolean createdAt?: boolean updatedAt?: boolean } export type EstimateTotalInclude = { estimate?: boolean | EstimateDefaultArgs } export type EstimateTotalIncludeCreateManyAndReturn = { estimate?: boolean | EstimateDefaultArgs } export type $EstimateTotalPayload = { name: "EstimateTotal" objects: { estimate: Prisma.$EstimatePayload } scalars: $Extensions.GetPayloadResult<{ id: string estimateId: string orderNumber: number label: string description: string | null baseValue: Prisma.Decimal | null coefficient: Prisma.Decimal | null resultValue: Prisma.Decimal createdAt: Date updatedAt: Date }, ExtArgs["result"]["estimateTotal"]> composites: {} } type EstimateTotalGetPayload = $Result.GetResult type EstimateTotalCountArgs = Omit & { select?: EstimateTotalCountAggregateInputType | true } export interface EstimateTotalDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EstimateTotal'], meta: { name: 'EstimateTotal' } } /** * Find zero or one EstimateTotal that matches the filter. * @param {EstimateTotalFindUniqueArgs} args - Arguments to find a EstimateTotal * @example * // Get one EstimateTotal * const estimateTotal = await prisma.estimateTotal.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EstimateTotalClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one EstimateTotal that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EstimateTotalFindUniqueOrThrowArgs} args - Arguments to find a EstimateTotal * @example * // Get one EstimateTotal * const estimateTotal = await prisma.estimateTotal.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EstimateTotalClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first EstimateTotal 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 {EstimateTotalFindFirstArgs} args - Arguments to find a EstimateTotal * @example * // Get one EstimateTotal * const estimateTotal = await prisma.estimateTotal.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EstimateTotalClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first EstimateTotal 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 {EstimateTotalFindFirstOrThrowArgs} args - Arguments to find a EstimateTotal * @example * // Get one EstimateTotal * const estimateTotal = await prisma.estimateTotal.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EstimateTotalClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more EstimateTotals 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 {EstimateTotalFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EstimateTotals * const estimateTotals = await prisma.estimateTotal.findMany() * * // Get first 10 EstimateTotals * const estimateTotals = await prisma.estimateTotal.findMany({ take: 10 }) * * // Only select the `id` * const estimateTotalWithIdOnly = await prisma.estimateTotal.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a EstimateTotal. * @param {EstimateTotalCreateArgs} args - Arguments to create a EstimateTotal. * @example * // Create one EstimateTotal * const EstimateTotal = await prisma.estimateTotal.create({ * data: { * // ... data to create a EstimateTotal * } * }) * */ create(args: SelectSubset>): Prisma__EstimateTotalClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many EstimateTotals. * @param {EstimateTotalCreateManyArgs} args - Arguments to create many EstimateTotals. * @example * // Create many EstimateTotals * const estimateTotal = await prisma.estimateTotal.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many EstimateTotals and returns the data saved in the database. * @param {EstimateTotalCreateManyAndReturnArgs} args - Arguments to create many EstimateTotals. * @example * // Create many EstimateTotals * const estimateTotal = await prisma.estimateTotal.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EstimateTotals and only return the `id` * const estimateTotalWithIdOnly = await prisma.estimateTotal.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a EstimateTotal. * @param {EstimateTotalDeleteArgs} args - Arguments to delete one EstimateTotal. * @example * // Delete one EstimateTotal * const EstimateTotal = await prisma.estimateTotal.delete({ * where: { * // ... filter to delete one EstimateTotal * } * }) * */ delete(args: SelectSubset>): Prisma__EstimateTotalClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one EstimateTotal. * @param {EstimateTotalUpdateArgs} args - Arguments to update one EstimateTotal. * @example * // Update one EstimateTotal * const estimateTotal = await prisma.estimateTotal.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EstimateTotalClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more EstimateTotals. * @param {EstimateTotalDeleteManyArgs} args - Arguments to filter EstimateTotals to delete. * @example * // Delete a few EstimateTotals * const { count } = await prisma.estimateTotal.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EstimateTotals. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateTotalUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EstimateTotals * const estimateTotal = await prisma.estimateTotal.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one EstimateTotal. * @param {EstimateTotalUpsertArgs} args - Arguments to update or create a EstimateTotal. * @example * // Update or create a EstimateTotal * const estimateTotal = await prisma.estimateTotal.upsert({ * create: { * // ... data to create a EstimateTotal * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EstimateTotal we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EstimateTotalClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of EstimateTotals. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateTotalCountArgs} args - Arguments to filter EstimateTotals to count. * @example * // Count the number of EstimateTotals * const count = await prisma.estimateTotal.count({ * where: { * // ... the filter for the EstimateTotals we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a EstimateTotal. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateTotalAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by EstimateTotal. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EstimateTotalGroupByArgs} 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 EstimateTotalGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EstimateTotalGroupByArgs['orderBy'] } : { orderBy?: EstimateTotalGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetEstimateTotalGroupByPayload : Prisma.PrismaPromise /** * Fields of the EstimateTotal model */ readonly fields: EstimateTotalFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EstimateTotal. * 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__EstimateTotalClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" estimate = {}>(args?: Subset>): Prisma__EstimateClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the EstimateTotal model */ interface EstimateTotalFieldRefs { readonly id: FieldRef<"EstimateTotal", 'String'> readonly estimateId: FieldRef<"EstimateTotal", 'String'> readonly orderNumber: FieldRef<"EstimateTotal", 'Int'> readonly label: FieldRef<"EstimateTotal", 'String'> readonly description: FieldRef<"EstimateTotal", 'String'> readonly baseValue: FieldRef<"EstimateTotal", 'Decimal'> readonly coefficient: FieldRef<"EstimateTotal", 'Decimal'> readonly resultValue: FieldRef<"EstimateTotal", 'Decimal'> readonly createdAt: FieldRef<"EstimateTotal", 'DateTime'> readonly updatedAt: FieldRef<"EstimateTotal", 'DateTime'> } // Custom InputTypes /** * EstimateTotal findUnique */ export type EstimateTotalFindUniqueArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null /** * Filter, which EstimateTotal to fetch. */ where: EstimateTotalWhereUniqueInput } /** * EstimateTotal findUniqueOrThrow */ export type EstimateTotalFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null /** * Filter, which EstimateTotal to fetch. */ where: EstimateTotalWhereUniqueInput } /** * EstimateTotal findFirst */ export type EstimateTotalFindFirstArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null /** * Filter, which EstimateTotal to fetch. */ where?: EstimateTotalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateTotals to fetch. */ orderBy?: EstimateTotalOrderByWithRelationInput | EstimateTotalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateTotals. */ cursor?: EstimateTotalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateTotals 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` EstimateTotals. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateTotals. */ distinct?: EstimateTotalScalarFieldEnum | EstimateTotalScalarFieldEnum[] } /** * EstimateTotal findFirstOrThrow */ export type EstimateTotalFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null /** * Filter, which EstimateTotal to fetch. */ where?: EstimateTotalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateTotals to fetch. */ orderBy?: EstimateTotalOrderByWithRelationInput | EstimateTotalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EstimateTotals. */ cursor?: EstimateTotalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateTotals 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` EstimateTotals. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EstimateTotals. */ distinct?: EstimateTotalScalarFieldEnum | EstimateTotalScalarFieldEnum[] } /** * EstimateTotal findMany */ export type EstimateTotalFindManyArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null /** * Filter, which EstimateTotals to fetch. */ where?: EstimateTotalWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EstimateTotals to fetch. */ orderBy?: EstimateTotalOrderByWithRelationInput | EstimateTotalOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EstimateTotals. */ cursor?: EstimateTotalWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EstimateTotals 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` EstimateTotals. */ skip?: number distinct?: EstimateTotalScalarFieldEnum | EstimateTotalScalarFieldEnum[] } /** * EstimateTotal create */ export type EstimateTotalCreateArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null /** * The data needed to create a EstimateTotal. */ data: XOR } /** * EstimateTotal createMany */ export type EstimateTotalCreateManyArgs = { /** * The data used to create many EstimateTotals. */ data: EstimateTotalCreateManyInput | EstimateTotalCreateManyInput[] skipDuplicates?: boolean } /** * EstimateTotal createManyAndReturn */ export type EstimateTotalCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelectCreateManyAndReturn | null /** * The data used to create many EstimateTotals. */ data: EstimateTotalCreateManyInput | EstimateTotalCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalIncludeCreateManyAndReturn | null } /** * EstimateTotal update */ export type EstimateTotalUpdateArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null /** * The data needed to update a EstimateTotal. */ data: XOR /** * Choose, which EstimateTotal to update. */ where: EstimateTotalWhereUniqueInput } /** * EstimateTotal updateMany */ export type EstimateTotalUpdateManyArgs = { /** * The data used to update EstimateTotals. */ data: XOR /** * Filter which EstimateTotals to update */ where?: EstimateTotalWhereInput } /** * EstimateTotal upsert */ export type EstimateTotalUpsertArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null /** * The filter to search for the EstimateTotal to update in case it exists. */ where: EstimateTotalWhereUniqueInput /** * In case the EstimateTotal found by the `where` argument doesn't exist, create a new EstimateTotal with this data. */ create: XOR /** * In case the EstimateTotal was found with the provided `where` argument, update it with this data. */ update: XOR } /** * EstimateTotal delete */ export type EstimateTotalDeleteArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null /** * Filter which EstimateTotal to delete. */ where: EstimateTotalWhereUniqueInput } /** * EstimateTotal deleteMany */ export type EstimateTotalDeleteManyArgs = { /** * Filter which EstimateTotals to delete */ where?: EstimateTotalWhereInput } /** * EstimateTotal without action */ export type EstimateTotalDefaultArgs = { /** * Select specific fields to fetch from the EstimateTotal */ select?: EstimateTotalSelect | null /** * Choose, which related nodes to fetch as well */ include?: EstimateTotalInclude | null } /** * Model Setting */ export type AggregateSetting = { _count: SettingCountAggregateOutputType | null _min: SettingMinAggregateOutputType | null _max: SettingMaxAggregateOutputType | null } export type SettingMinAggregateOutputType = { id: string | null key: string | null value: string | null type: string | null category: string | null label: string | null createdAt: Date | null updatedAt: Date | null } export type SettingMaxAggregateOutputType = { id: string | null key: string | null value: string | null type: string | null category: string | null label: string | null createdAt: Date | null updatedAt: Date | null } export type SettingCountAggregateOutputType = { id: number key: number value: number type: number category: number label: number createdAt: number updatedAt: number _all: number } export type SettingMinAggregateInputType = { id?: true key?: true value?: true type?: true category?: true label?: true createdAt?: true updatedAt?: true } export type SettingMaxAggregateInputType = { id?: true key?: true value?: true type?: true category?: true label?: true createdAt?: true updatedAt?: true } export type SettingCountAggregateInputType = { id?: true key?: true value?: true type?: true category?: true label?: true createdAt?: true updatedAt?: true _all?: true } export type SettingAggregateArgs = { /** * Filter which Setting to aggregate. */ where?: SettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Settings to fetch. */ orderBy?: SettingOrderByWithRelationInput | SettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Settings 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` Settings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Settings **/ _count?: true | SettingCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SettingMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SettingMaxAggregateInputType } export type GetSettingAggregateType = { [P in keyof T & keyof AggregateSetting]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SettingGroupByArgs = { where?: SettingWhereInput orderBy?: SettingOrderByWithAggregationInput | SettingOrderByWithAggregationInput[] by: SettingScalarFieldEnum[] | SettingScalarFieldEnum having?: SettingScalarWhereWithAggregatesInput take?: number skip?: number _count?: SettingCountAggregateInputType | true _min?: SettingMinAggregateInputType _max?: SettingMaxAggregateInputType } export type SettingGroupByOutputType = { id: string key: string value: string type: string category: string label: string | null createdAt: Date updatedAt: Date _count: SettingCountAggregateOutputType | null _min: SettingMinAggregateOutputType | null _max: SettingMaxAggregateOutputType | null } type GetSettingGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SettingGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SettingSelect = $Extensions.GetSelect<{ id?: boolean key?: boolean value?: boolean type?: boolean category?: boolean label?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["setting"]> export type SettingSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean key?: boolean value?: boolean type?: boolean category?: boolean label?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["setting"]> export type SettingSelectScalar = { id?: boolean key?: boolean value?: boolean type?: boolean category?: boolean label?: boolean createdAt?: boolean updatedAt?: boolean } export type $SettingPayload = { name: "Setting" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string key: string value: string type: string category: string label: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["setting"]> composites: {} } type SettingGetPayload = $Result.GetResult type SettingCountArgs = Omit & { select?: SettingCountAggregateInputType | true } export interface SettingDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Setting'], meta: { name: 'Setting' } } /** * Find zero or one Setting that matches the filter. * @param {SettingFindUniqueArgs} args - Arguments to find a Setting * @example * // Get one Setting * const setting = await prisma.setting.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SettingClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one Setting that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SettingFindUniqueOrThrowArgs} args - Arguments to find a Setting * @example * // Get one Setting * const setting = await prisma.setting.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SettingClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first Setting 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 {SettingFindFirstArgs} args - Arguments to find a Setting * @example * // Get one Setting * const setting = await prisma.setting.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SettingClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first Setting 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 {SettingFindFirstOrThrowArgs} args - Arguments to find a Setting * @example * // Get one Setting * const setting = await prisma.setting.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SettingClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more Settings 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 {SettingFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Settings * const settings = await prisma.setting.findMany() * * // Get first 10 Settings * const settings = await prisma.setting.findMany({ take: 10 }) * * // Only select the `id` * const settingWithIdOnly = await prisma.setting.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a Setting. * @param {SettingCreateArgs} args - Arguments to create a Setting. * @example * // Create one Setting * const Setting = await prisma.setting.create({ * data: { * // ... data to create a Setting * } * }) * */ create(args: SelectSubset>): Prisma__SettingClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many Settings. * @param {SettingCreateManyArgs} args - Arguments to create many Settings. * @example * // Create many Settings * const setting = await prisma.setting.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Settings and returns the data saved in the database. * @param {SettingCreateManyAndReturnArgs} args - Arguments to create many Settings. * @example * // Create many Settings * const setting = await prisma.setting.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Settings and only return the `id` * const settingWithIdOnly = await prisma.setting.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a Setting. * @param {SettingDeleteArgs} args - Arguments to delete one Setting. * @example * // Delete one Setting * const Setting = await prisma.setting.delete({ * where: { * // ... filter to delete one Setting * } * }) * */ delete(args: SelectSubset>): Prisma__SettingClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one Setting. * @param {SettingUpdateArgs} args - Arguments to update one Setting. * @example * // Update one Setting * const setting = await prisma.setting.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SettingClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more Settings. * @param {SettingDeleteManyArgs} args - Arguments to filter Settings to delete. * @example * // Delete a few Settings * const { count } = await prisma.setting.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Settings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SettingUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Settings * const setting = await prisma.setting.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one Setting. * @param {SettingUpsertArgs} args - Arguments to update or create a Setting. * @example * // Update or create a Setting * const setting = await prisma.setting.upsert({ * create: { * // ... data to create a Setting * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Setting we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SettingClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of Settings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SettingCountArgs} args - Arguments to filter Settings to count. * @example * // Count the number of Settings * const count = await prisma.setting.count({ * where: { * // ... the filter for the Settings we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Setting. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SettingAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Setting. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SettingGroupByArgs} 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 SettingGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SettingGroupByArgs['orderBy'] } : { orderBy?: SettingGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSettingGroupByPayload : Prisma.PrismaPromise /** * Fields of the Setting model */ readonly fields: SettingFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Setting. * 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__SettingClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Setting model */ interface SettingFieldRefs { readonly id: FieldRef<"Setting", 'String'> readonly key: FieldRef<"Setting", 'String'> readonly value: FieldRef<"Setting", 'String'> readonly type: FieldRef<"Setting", 'String'> readonly category: FieldRef<"Setting", 'String'> readonly label: FieldRef<"Setting", 'String'> readonly createdAt: FieldRef<"Setting", 'DateTime'> readonly updatedAt: FieldRef<"Setting", 'DateTime'> } // Custom InputTypes /** * Setting findUnique */ export type SettingFindUniqueArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null /** * Filter, which Setting to fetch. */ where: SettingWhereUniqueInput } /** * Setting findUniqueOrThrow */ export type SettingFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null /** * Filter, which Setting to fetch. */ where: SettingWhereUniqueInput } /** * Setting findFirst */ export type SettingFindFirstArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null /** * Filter, which Setting to fetch. */ where?: SettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Settings to fetch. */ orderBy?: SettingOrderByWithRelationInput | SettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Settings. */ cursor?: SettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Settings 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` Settings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Settings. */ distinct?: SettingScalarFieldEnum | SettingScalarFieldEnum[] } /** * Setting findFirstOrThrow */ export type SettingFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null /** * Filter, which Setting to fetch. */ where?: SettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Settings to fetch. */ orderBy?: SettingOrderByWithRelationInput | SettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Settings. */ cursor?: SettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Settings 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` Settings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Settings. */ distinct?: SettingScalarFieldEnum | SettingScalarFieldEnum[] } /** * Setting findMany */ export type SettingFindManyArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null /** * Filter, which Settings to fetch. */ where?: SettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Settings to fetch. */ orderBy?: SettingOrderByWithRelationInput | SettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Settings. */ cursor?: SettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Settings 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` Settings. */ skip?: number distinct?: SettingScalarFieldEnum | SettingScalarFieldEnum[] } /** * Setting create */ export type SettingCreateArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null /** * The data needed to create a Setting. */ data: XOR } /** * Setting createMany */ export type SettingCreateManyArgs = { /** * The data used to create many Settings. */ data: SettingCreateManyInput | SettingCreateManyInput[] skipDuplicates?: boolean } /** * Setting createManyAndReturn */ export type SettingCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelectCreateManyAndReturn | null /** * The data used to create many Settings. */ data: SettingCreateManyInput | SettingCreateManyInput[] skipDuplicates?: boolean } /** * Setting update */ export type SettingUpdateArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null /** * The data needed to update a Setting. */ data: XOR /** * Choose, which Setting to update. */ where: SettingWhereUniqueInput } /** * Setting updateMany */ export type SettingUpdateManyArgs = { /** * The data used to update Settings. */ data: XOR /** * Filter which Settings to update */ where?: SettingWhereInput } /** * Setting upsert */ export type SettingUpsertArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null /** * The filter to search for the Setting to update in case it exists. */ where: SettingWhereUniqueInput /** * In case the Setting found by the `where` argument doesn't exist, create a new Setting with this data. */ create: XOR /** * In case the Setting was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Setting delete */ export type SettingDeleteArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null /** * Filter which Setting to delete. */ where: SettingWhereUniqueInput } /** * Setting deleteMany */ export type SettingDeleteManyArgs = { /** * Filter which Settings to delete */ where?: SettingWhereInput } /** * Setting without action */ export type SettingDefaultArgs = { /** * Select specific fields to fetch from the Setting */ select?: SettingSelect | null } /** * Model ChatSession */ export type AggregateChatSession = { _count: ChatSessionCountAggregateOutputType | null _min: ChatSessionMinAggregateOutputType | null _max: ChatSessionMaxAggregateOutputType | null } export type ChatSessionMinAggregateOutputType = { id: string | null userId: string | null estimateId: string | null status: string | null createdAt: Date | null updatedAt: Date | null } export type ChatSessionMaxAggregateOutputType = { id: string | null userId: string | null estimateId: string | null status: string | null createdAt: Date | null updatedAt: Date | null } export type ChatSessionCountAggregateOutputType = { id: number userId: number estimateId: number status: number createdAt: number updatedAt: number _all: number } export type ChatSessionMinAggregateInputType = { id?: true userId?: true estimateId?: true status?: true createdAt?: true updatedAt?: true } export type ChatSessionMaxAggregateInputType = { id?: true userId?: true estimateId?: true status?: true createdAt?: true updatedAt?: true } export type ChatSessionCountAggregateInputType = { id?: true userId?: true estimateId?: true status?: true createdAt?: true updatedAt?: true _all?: true } export type ChatSessionAggregateArgs = { /** * Filter which ChatSession to aggregate. */ where?: ChatSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ChatSessions to fetch. */ orderBy?: ChatSessionOrderByWithRelationInput | ChatSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ChatSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ChatSessions 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` ChatSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ChatSessions **/ _count?: true | ChatSessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ChatSessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ChatSessionMaxAggregateInputType } export type GetChatSessionAggregateType = { [P in keyof T & keyof AggregateChatSession]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ChatSessionGroupByArgs = { where?: ChatSessionWhereInput orderBy?: ChatSessionOrderByWithAggregationInput | ChatSessionOrderByWithAggregationInput[] by: ChatSessionScalarFieldEnum[] | ChatSessionScalarFieldEnum having?: ChatSessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: ChatSessionCountAggregateInputType | true _min?: ChatSessionMinAggregateInputType _max?: ChatSessionMaxAggregateInputType } export type ChatSessionGroupByOutputType = { id: string userId: string estimateId: string | null status: string createdAt: Date updatedAt: Date _count: ChatSessionCountAggregateOutputType | null _min: ChatSessionMinAggregateOutputType | null _max: ChatSessionMaxAggregateOutputType | null } type GetChatSessionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ChatSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ChatSessionSelect = $Extensions.GetSelect<{ id?: boolean userId?: boolean estimateId?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs messages?: boolean | ChatSession$messagesArgs _count?: boolean | ChatSessionCountOutputTypeDefaultArgs }, ExtArgs["result"]["chatSession"]> export type ChatSessionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean userId?: boolean estimateId?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["chatSession"]> export type ChatSessionSelectScalar = { id?: boolean userId?: boolean estimateId?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean } export type ChatSessionInclude = { user?: boolean | UserDefaultArgs messages?: boolean | ChatSession$messagesArgs _count?: boolean | ChatSessionCountOutputTypeDefaultArgs } export type ChatSessionIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $ChatSessionPayload = { name: "ChatSession" objects: { user: Prisma.$UserPayload messages: Prisma.$ChatMessagePayload[] } scalars: $Extensions.GetPayloadResult<{ id: string userId: string estimateId: string | null status: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["chatSession"]> composites: {} } type ChatSessionGetPayload = $Result.GetResult type ChatSessionCountArgs = Omit & { select?: ChatSessionCountAggregateInputType | true } export interface ChatSessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ChatSession'], meta: { name: 'ChatSession' } } /** * Find zero or one ChatSession that matches the filter. * @param {ChatSessionFindUniqueArgs} args - Arguments to find a ChatSession * @example * // Get one ChatSession * const chatSession = await prisma.chatSession.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ChatSessionClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ChatSession that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ChatSessionFindUniqueOrThrowArgs} args - Arguments to find a ChatSession * @example * // Get one ChatSession * const chatSession = await prisma.chatSession.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ChatSessionClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ChatSession 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 {ChatSessionFindFirstArgs} args - Arguments to find a ChatSession * @example * // Get one ChatSession * const chatSession = await prisma.chatSession.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ChatSessionClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ChatSession 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 {ChatSessionFindFirstOrThrowArgs} args - Arguments to find a ChatSession * @example * // Get one ChatSession * const chatSession = await prisma.chatSession.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ChatSessionClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ChatSessions 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 {ChatSessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ChatSessions * const chatSessions = await prisma.chatSession.findMany() * * // Get first 10 ChatSessions * const chatSessions = await prisma.chatSession.findMany({ take: 10 }) * * // Only select the `id` * const chatSessionWithIdOnly = await prisma.chatSession.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ChatSession. * @param {ChatSessionCreateArgs} args - Arguments to create a ChatSession. * @example * // Create one ChatSession * const ChatSession = await prisma.chatSession.create({ * data: { * // ... data to create a ChatSession * } * }) * */ create(args: SelectSubset>): Prisma__ChatSessionClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ChatSessions. * @param {ChatSessionCreateManyArgs} args - Arguments to create many ChatSessions. * @example * // Create many ChatSessions * const chatSession = await prisma.chatSession.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ChatSessions and returns the data saved in the database. * @param {ChatSessionCreateManyAndReturnArgs} args - Arguments to create many ChatSessions. * @example * // Create many ChatSessions * const chatSession = await prisma.chatSession.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ChatSessions and only return the `id` * const chatSessionWithIdOnly = await prisma.chatSession.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a ChatSession. * @param {ChatSessionDeleteArgs} args - Arguments to delete one ChatSession. * @example * // Delete one ChatSession * const ChatSession = await prisma.chatSession.delete({ * where: { * // ... filter to delete one ChatSession * } * }) * */ delete(args: SelectSubset>): Prisma__ChatSessionClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ChatSession. * @param {ChatSessionUpdateArgs} args - Arguments to update one ChatSession. * @example * // Update one ChatSession * const chatSession = await prisma.chatSession.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ChatSessionClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ChatSessions. * @param {ChatSessionDeleteManyArgs} args - Arguments to filter ChatSessions to delete. * @example * // Delete a few ChatSessions * const { count } = await prisma.chatSession.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ChatSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChatSessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ChatSessions * const chatSession = await prisma.chatSession.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ChatSession. * @param {ChatSessionUpsertArgs} args - Arguments to update or create a ChatSession. * @example * // Update or create a ChatSession * const chatSession = await prisma.chatSession.upsert({ * create: { * // ... data to create a ChatSession * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ChatSession we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ChatSessionClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ChatSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChatSessionCountArgs} args - Arguments to filter ChatSessions to count. * @example * // Count the number of ChatSessions * const count = await prisma.chatSession.count({ * where: { * // ... the filter for the ChatSessions we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a ChatSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChatSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by ChatSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChatSessionGroupByArgs} 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 ChatSessionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ChatSessionGroupByArgs['orderBy'] } : { orderBy?: ChatSessionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetChatSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the ChatSession model */ readonly fields: ChatSessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ChatSession. * 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__ChatSessionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow"> | Null, Null, ExtArgs> messages = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the ChatSession model */ interface ChatSessionFieldRefs { readonly id: FieldRef<"ChatSession", 'String'> readonly userId: FieldRef<"ChatSession", 'String'> readonly estimateId: FieldRef<"ChatSession", 'String'> readonly status: FieldRef<"ChatSession", 'String'> readonly createdAt: FieldRef<"ChatSession", 'DateTime'> readonly updatedAt: FieldRef<"ChatSession", 'DateTime'> } // Custom InputTypes /** * ChatSession findUnique */ export type ChatSessionFindUniqueArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null /** * Filter, which ChatSession to fetch. */ where: ChatSessionWhereUniqueInput } /** * ChatSession findUniqueOrThrow */ export type ChatSessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null /** * Filter, which ChatSession to fetch. */ where: ChatSessionWhereUniqueInput } /** * ChatSession findFirst */ export type ChatSessionFindFirstArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null /** * Filter, which ChatSession to fetch. */ where?: ChatSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ChatSessions to fetch. */ orderBy?: ChatSessionOrderByWithRelationInput | ChatSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ChatSessions. */ cursor?: ChatSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ChatSessions 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` ChatSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ChatSessions. */ distinct?: ChatSessionScalarFieldEnum | ChatSessionScalarFieldEnum[] } /** * ChatSession findFirstOrThrow */ export type ChatSessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null /** * Filter, which ChatSession to fetch. */ where?: ChatSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ChatSessions to fetch. */ orderBy?: ChatSessionOrderByWithRelationInput | ChatSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ChatSessions. */ cursor?: ChatSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ChatSessions 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` ChatSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ChatSessions. */ distinct?: ChatSessionScalarFieldEnum | ChatSessionScalarFieldEnum[] } /** * ChatSession findMany */ export type ChatSessionFindManyArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null /** * Filter, which ChatSessions to fetch. */ where?: ChatSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ChatSessions to fetch. */ orderBy?: ChatSessionOrderByWithRelationInput | ChatSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ChatSessions. */ cursor?: ChatSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ChatSessions 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` ChatSessions. */ skip?: number distinct?: ChatSessionScalarFieldEnum | ChatSessionScalarFieldEnum[] } /** * ChatSession create */ export type ChatSessionCreateArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null /** * The data needed to create a ChatSession. */ data: XOR } /** * ChatSession createMany */ export type ChatSessionCreateManyArgs = { /** * The data used to create many ChatSessions. */ data: ChatSessionCreateManyInput | ChatSessionCreateManyInput[] skipDuplicates?: boolean } /** * ChatSession createManyAndReturn */ export type ChatSessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelectCreateManyAndReturn | null /** * The data used to create many ChatSessions. */ data: ChatSessionCreateManyInput | ChatSessionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ChatSessionIncludeCreateManyAndReturn | null } /** * ChatSession update */ export type ChatSessionUpdateArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null /** * The data needed to update a ChatSession. */ data: XOR /** * Choose, which ChatSession to update. */ where: ChatSessionWhereUniqueInput } /** * ChatSession updateMany */ export type ChatSessionUpdateManyArgs = { /** * The data used to update ChatSessions. */ data: XOR /** * Filter which ChatSessions to update */ where?: ChatSessionWhereInput } /** * ChatSession upsert */ export type ChatSessionUpsertArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null /** * The filter to search for the ChatSession to update in case it exists. */ where: ChatSessionWhereUniqueInput /** * In case the ChatSession found by the `where` argument doesn't exist, create a new ChatSession with this data. */ create: XOR /** * In case the ChatSession was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ChatSession delete */ export type ChatSessionDeleteArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null /** * Filter which ChatSession to delete. */ where: ChatSessionWhereUniqueInput } /** * ChatSession deleteMany */ export type ChatSessionDeleteManyArgs = { /** * Filter which ChatSessions to delete */ where?: ChatSessionWhereInput } /** * ChatSession.messages */ export type ChatSession$messagesArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null where?: ChatMessageWhereInput orderBy?: ChatMessageOrderByWithRelationInput | ChatMessageOrderByWithRelationInput[] cursor?: ChatMessageWhereUniqueInput take?: number skip?: number distinct?: ChatMessageScalarFieldEnum | ChatMessageScalarFieldEnum[] } /** * ChatSession without action */ export type ChatSessionDefaultArgs = { /** * Select specific fields to fetch from the ChatSession */ select?: ChatSessionSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatSessionInclude | null } /** * Model ChatMessage */ export type AggregateChatMessage = { _count: ChatMessageCountAggregateOutputType | null _min: ChatMessageMinAggregateOutputType | null _max: ChatMessageMaxAggregateOutputType | null } export type ChatMessageMinAggregateOutputType = { id: string | null sessionId: string | null role: string | null content: string | null createdAt: Date | null } export type ChatMessageMaxAggregateOutputType = { id: string | null sessionId: string | null role: string | null content: string | null createdAt: Date | null } export type ChatMessageCountAggregateOutputType = { id: number sessionId: number role: number content: number metadata: number createdAt: number _all: number } export type ChatMessageMinAggregateInputType = { id?: true sessionId?: true role?: true content?: true createdAt?: true } export type ChatMessageMaxAggregateInputType = { id?: true sessionId?: true role?: true content?: true createdAt?: true } export type ChatMessageCountAggregateInputType = { id?: true sessionId?: true role?: true content?: true metadata?: true createdAt?: true _all?: true } export type ChatMessageAggregateArgs = { /** * Filter which ChatMessage to aggregate. */ where?: ChatMessageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ChatMessages to fetch. */ orderBy?: ChatMessageOrderByWithRelationInput | ChatMessageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ChatMessageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ChatMessages 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` ChatMessages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ChatMessages **/ _count?: true | ChatMessageCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ChatMessageMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ChatMessageMaxAggregateInputType } export type GetChatMessageAggregateType = { [P in keyof T & keyof AggregateChatMessage]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ChatMessageGroupByArgs = { where?: ChatMessageWhereInput orderBy?: ChatMessageOrderByWithAggregationInput | ChatMessageOrderByWithAggregationInput[] by: ChatMessageScalarFieldEnum[] | ChatMessageScalarFieldEnum having?: ChatMessageScalarWhereWithAggregatesInput take?: number skip?: number _count?: ChatMessageCountAggregateInputType | true _min?: ChatMessageMinAggregateInputType _max?: ChatMessageMaxAggregateInputType } export type ChatMessageGroupByOutputType = { id: string sessionId: string role: string content: string metadata: JsonValue | null createdAt: Date _count: ChatMessageCountAggregateOutputType | null _min: ChatMessageMinAggregateOutputType | null _max: ChatMessageMaxAggregateOutputType | null } type GetChatMessageGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ChatMessageGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ChatMessageSelect = $Extensions.GetSelect<{ id?: boolean sessionId?: boolean role?: boolean content?: boolean metadata?: boolean createdAt?: boolean session?: boolean | ChatSessionDefaultArgs }, ExtArgs["result"]["chatMessage"]> export type ChatMessageSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean sessionId?: boolean role?: boolean content?: boolean metadata?: boolean createdAt?: boolean session?: boolean | ChatSessionDefaultArgs }, ExtArgs["result"]["chatMessage"]> export type ChatMessageSelectScalar = { id?: boolean sessionId?: boolean role?: boolean content?: boolean metadata?: boolean createdAt?: boolean } export type ChatMessageInclude = { session?: boolean | ChatSessionDefaultArgs } export type ChatMessageIncludeCreateManyAndReturn = { session?: boolean | ChatSessionDefaultArgs } export type $ChatMessagePayload = { name: "ChatMessage" objects: { session: Prisma.$ChatSessionPayload } scalars: $Extensions.GetPayloadResult<{ id: string sessionId: string role: string content: string metadata: Prisma.JsonValue | null createdAt: Date }, ExtArgs["result"]["chatMessage"]> composites: {} } type ChatMessageGetPayload = $Result.GetResult type ChatMessageCountArgs = Omit & { select?: ChatMessageCountAggregateInputType | true } export interface ChatMessageDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ChatMessage'], meta: { name: 'ChatMessage' } } /** * Find zero or one ChatMessage that matches the filter. * @param {ChatMessageFindUniqueArgs} args - Arguments to find a ChatMessage * @example * // Get one ChatMessage * const chatMessage = await prisma.chatMessage.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ChatMessageClient<$Result.GetResult, T, "findUnique"> | null, null, ExtArgs> /** * Find one ChatMessage that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ChatMessageFindUniqueOrThrowArgs} args - Arguments to find a ChatMessage * @example * // Get one ChatMessage * const chatMessage = await prisma.chatMessage.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ChatMessageClient<$Result.GetResult, T, "findUniqueOrThrow">, never, ExtArgs> /** * Find the first ChatMessage 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 {ChatMessageFindFirstArgs} args - Arguments to find a ChatMessage * @example * // Get one ChatMessage * const chatMessage = await prisma.chatMessage.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ChatMessageClient<$Result.GetResult, T, "findFirst"> | null, null, ExtArgs> /** * Find the first ChatMessage 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 {ChatMessageFindFirstOrThrowArgs} args - Arguments to find a ChatMessage * @example * // Get one ChatMessage * const chatMessage = await prisma.chatMessage.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ChatMessageClient<$Result.GetResult, T, "findFirstOrThrow">, never, ExtArgs> /** * Find zero or more ChatMessages 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 {ChatMessageFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ChatMessages * const chatMessages = await prisma.chatMessage.findMany() * * // Get first 10 ChatMessages * const chatMessages = await prisma.chatMessage.findMany({ take: 10 }) * * // Only select the `id` * const chatMessageWithIdOnly = await prisma.chatMessage.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany">> /** * Create a ChatMessage. * @param {ChatMessageCreateArgs} args - Arguments to create a ChatMessage. * @example * // Create one ChatMessage * const ChatMessage = await prisma.chatMessage.create({ * data: { * // ... data to create a ChatMessage * } * }) * */ create(args: SelectSubset>): Prisma__ChatMessageClient<$Result.GetResult, T, "create">, never, ExtArgs> /** * Create many ChatMessages. * @param {ChatMessageCreateManyArgs} args - Arguments to create many ChatMessages. * @example * // Create many ChatMessages * const chatMessage = await prisma.chatMessage.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ChatMessages and returns the data saved in the database. * @param {ChatMessageCreateManyAndReturnArgs} args - Arguments to create many ChatMessages. * @example * // Create many ChatMessages * const chatMessage = await prisma.chatMessage.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ChatMessages and only return the `id` * const chatMessageWithIdOnly = await prisma.chatMessage.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn">> /** * Delete a ChatMessage. * @param {ChatMessageDeleteArgs} args - Arguments to delete one ChatMessage. * @example * // Delete one ChatMessage * const ChatMessage = await prisma.chatMessage.delete({ * where: { * // ... filter to delete one ChatMessage * } * }) * */ delete(args: SelectSubset>): Prisma__ChatMessageClient<$Result.GetResult, T, "delete">, never, ExtArgs> /** * Update one ChatMessage. * @param {ChatMessageUpdateArgs} args - Arguments to update one ChatMessage. * @example * // Update one ChatMessage * const chatMessage = await prisma.chatMessage.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ChatMessageClient<$Result.GetResult, T, "update">, never, ExtArgs> /** * Delete zero or more ChatMessages. * @param {ChatMessageDeleteManyArgs} args - Arguments to filter ChatMessages to delete. * @example * // Delete a few ChatMessages * const { count } = await prisma.chatMessage.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ChatMessages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChatMessageUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ChatMessages * const chatMessage = await prisma.chatMessage.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Create or update one ChatMessage. * @param {ChatMessageUpsertArgs} args - Arguments to update or create a ChatMessage. * @example * // Update or create a ChatMessage * const chatMessage = await prisma.chatMessage.upsert({ * create: { * // ... data to create a ChatMessage * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ChatMessage we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ChatMessageClient<$Result.GetResult, T, "upsert">, never, ExtArgs> /** * Count the number of ChatMessages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChatMessageCountArgs} args - Arguments to filter ChatMessages to count. * @example * // Count the number of ChatMessages * const count = await prisma.chatMessage.count({ * where: { * // ... the filter for the ChatMessages we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a ChatMessage. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChatMessageAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by ChatMessage. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ChatMessageGroupByArgs} 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 ChatMessageGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ChatMessageGroupByArgs['orderBy'] } : { orderBy?: ChatMessageGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetChatMessageGroupByPayload : Prisma.PrismaPromise /** * Fields of the ChatMessage model */ readonly fields: ChatMessageFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ChatMessage. * 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__ChatMessageClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" session = {}>(args?: Subset>): Prisma__ChatSessionClient<$Result.GetResult, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the ChatMessage model */ interface ChatMessageFieldRefs { readonly id: FieldRef<"ChatMessage", 'String'> readonly sessionId: FieldRef<"ChatMessage", 'String'> readonly role: FieldRef<"ChatMessage", 'String'> readonly content: FieldRef<"ChatMessage", 'String'> readonly metadata: FieldRef<"ChatMessage", 'Json'> readonly createdAt: FieldRef<"ChatMessage", 'DateTime'> } // Custom InputTypes /** * ChatMessage findUnique */ export type ChatMessageFindUniqueArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null /** * Filter, which ChatMessage to fetch. */ where: ChatMessageWhereUniqueInput } /** * ChatMessage findUniqueOrThrow */ export type ChatMessageFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null /** * Filter, which ChatMessage to fetch. */ where: ChatMessageWhereUniqueInput } /** * ChatMessage findFirst */ export type ChatMessageFindFirstArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null /** * Filter, which ChatMessage to fetch. */ where?: ChatMessageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ChatMessages to fetch. */ orderBy?: ChatMessageOrderByWithRelationInput | ChatMessageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ChatMessages. */ cursor?: ChatMessageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ChatMessages 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` ChatMessages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ChatMessages. */ distinct?: ChatMessageScalarFieldEnum | ChatMessageScalarFieldEnum[] } /** * ChatMessage findFirstOrThrow */ export type ChatMessageFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null /** * Filter, which ChatMessage to fetch. */ where?: ChatMessageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ChatMessages to fetch. */ orderBy?: ChatMessageOrderByWithRelationInput | ChatMessageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ChatMessages. */ cursor?: ChatMessageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ChatMessages 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` ChatMessages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ChatMessages. */ distinct?: ChatMessageScalarFieldEnum | ChatMessageScalarFieldEnum[] } /** * ChatMessage findMany */ export type ChatMessageFindManyArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null /** * Filter, which ChatMessages to fetch. */ where?: ChatMessageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ChatMessages to fetch. */ orderBy?: ChatMessageOrderByWithRelationInput | ChatMessageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ChatMessages. */ cursor?: ChatMessageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ChatMessages 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` ChatMessages. */ skip?: number distinct?: ChatMessageScalarFieldEnum | ChatMessageScalarFieldEnum[] } /** * ChatMessage create */ export type ChatMessageCreateArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null /** * The data needed to create a ChatMessage. */ data: XOR } /** * ChatMessage createMany */ export type ChatMessageCreateManyArgs = { /** * The data used to create many ChatMessages. */ data: ChatMessageCreateManyInput | ChatMessageCreateManyInput[] skipDuplicates?: boolean } /** * ChatMessage createManyAndReturn */ export type ChatMessageCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelectCreateManyAndReturn | null /** * The data used to create many ChatMessages. */ data: ChatMessageCreateManyInput | ChatMessageCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: ChatMessageIncludeCreateManyAndReturn | null } /** * ChatMessage update */ export type ChatMessageUpdateArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null /** * The data needed to update a ChatMessage. */ data: XOR /** * Choose, which ChatMessage to update. */ where: ChatMessageWhereUniqueInput } /** * ChatMessage updateMany */ export type ChatMessageUpdateManyArgs = { /** * The data used to update ChatMessages. */ data: XOR /** * Filter which ChatMessages to update */ where?: ChatMessageWhereInput } /** * ChatMessage upsert */ export type ChatMessageUpsertArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null /** * The filter to search for the ChatMessage to update in case it exists. */ where: ChatMessageWhereUniqueInput /** * In case the ChatMessage found by the `where` argument doesn't exist, create a new ChatMessage with this data. */ create: XOR /** * In case the ChatMessage was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ChatMessage delete */ export type ChatMessageDeleteArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null /** * Filter which ChatMessage to delete. */ where: ChatMessageWhereUniqueInput } /** * ChatMessage deleteMany */ export type ChatMessageDeleteManyArgs = { /** * Filter which ChatMessages to delete */ where?: ChatMessageWhereInput } /** * ChatMessage without action */ export type ChatMessageDefaultArgs = { /** * Select specific fields to fetch from the ChatMessage */ select?: ChatMessageSelect | null /** * Choose, which related nodes to fetch as well */ include?: ChatMessageInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const PriceBookScalarFieldEnum: { id: 'id', code: 'code', name: 'name', baseDate: 'baseDate', approvedBy: 'approvedBy', effectiveDate: 'effectiveDate', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type PriceBookScalarFieldEnum = (typeof PriceBookScalarFieldEnum)[keyof typeof PriceBookScalarFieldEnum] export const PriceTableScalarFieldEnum: { id: 'id', priceBookId: 'priceBookId', tableNumber: 'tableNumber', name: 'name', unit: 'unit', notes: 'notes', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type PriceTableScalarFieldEnum = (typeof PriceTableScalarFieldEnum)[keyof typeof PriceTableScalarFieldEnum] export const PriceItemScalarFieldEnum: { id: 'id', priceBookId: 'priceBookId', priceTableId: 'priceTableId', paragraph: 'paragraph', workType: 'workType', description: 'description', priceField1: 'priceField1', priceOffice1: 'priceOffice1', priceField2: 'priceField2', priceOffice2: 'priceOffice2', priceField3: 'priceField3', priceOffice3: 'priceOffice3', priceSimple: 'priceSimple', attributes: 'attributes', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type PriceItemScalarFieldEnum = (typeof PriceItemScalarFieldEnum)[keyof typeof PriceItemScalarFieldEnum] export const CoefficientScalarFieldEnum: { id: 'id', type: 'type', code: 'code', name: 'name', value: 'value', description: 'description', conditions: 'conditions', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type CoefficientScalarFieldEnum = (typeof CoefficientScalarFieldEnum)[keyof typeof CoefficientScalarFieldEnum] export const InflationIndexScalarFieldEnum: { id: 'id', baseDate: 'baseDate', effectiveFrom: 'effectiveFrom', effectiveTo: 'effectiveTo', indexValue: 'indexValue', documentRef: 'documentRef', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type InflationIndexScalarFieldEnum = (typeof InflationIndexScalarFieldEnum)[keyof typeof InflationIndexScalarFieldEnum] export const UserScalarFieldEnum: { id: 'id', email: 'email', passwordHash: 'passwordHash', name: 'name', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const SurveyDirectionScalarFieldEnum: { id: 'id', code: 'code', name: 'name', shortName: 'shortName', isActive: 'isActive' }; export type SurveyDirectionScalarFieldEnum = (typeof SurveyDirectionScalarFieldEnum)[keyof typeof SurveyDirectionScalarFieldEnum] export const EstimateScalarFieldEnum: { id: 'id', number: 'number', directionId: 'directionId', ownerId: 'ownerId', objectName: 'objectName', customer: 'customer', executor: 'executor', totalFieldWorks: 'totalFieldWorks', totalOfficeWorks: 'totalOfficeWorks', totalLaboratory: 'totalLaboratory', subtotal: 'subtotal', regionalCoef: 'regionalCoef', regionalCoefDocRef: 'regionalCoefDocRef', inflationIndex: 'inflationIndex', inflationDocRef: 'inflationDocRef', companyCoef: 'companyCoef', companyCoefDocRef: 'companyCoefDocRef', executorCoef: 'executorCoef', executorCoefDocRef: 'executorCoefDocRef', withVat: 'withVat', totalWithoutVat: 'totalWithoutVat', vatRate: 'vatRate', vatAmount: 'vatAmount', totalWithVat: 'totalWithVat', status: 'status', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type EstimateScalarFieldEnum = (typeof EstimateScalarFieldEnum)[keyof typeof EstimateScalarFieldEnum] export const EstimateVersionScalarFieldEnum: { id: 'id', estimateId: 'estimateId', versionNumber: 'versionNumber', snapshot: 'snapshot', createdAt: 'createdAt' }; export type EstimateVersionScalarFieldEnum = (typeof EstimateVersionScalarFieldEnum)[keyof typeof EstimateVersionScalarFieldEnum] export const EstimateShareScalarFieldEnum: { id: 'id', estimateId: 'estimateId', ownerId: 'ownerId', sharedWithId: 'sharedWithId', createdAt: 'createdAt' }; export type EstimateShareScalarFieldEnum = (typeof EstimateShareScalarFieldEnum)[keyof typeof EstimateShareScalarFieldEnum] export const EstimateShareNoteScalarFieldEnum: { id: 'id', shareId: 'shareId', authorId: 'authorId', content: 'content', createdAt: 'createdAt' }; export type EstimateShareNoteScalarFieldEnum = (typeof EstimateShareNoteScalarFieldEnum)[keyof typeof EstimateShareNoteScalarFieldEnum] export const EstimateItemScalarFieldEnum: { id: 'id', estimateId: 'estimateId', orderNumber: 'orderNumber', sectionType: 'sectionType', priceItemId: 'priceItemId', workName: 'workName', justification: 'justification', basePrice: 'basePrice', quantity: 'quantity', unit: 'unit', coef1: 'coef1', coef1Desc: 'coef1Desc', coef2: 'coef2', coef2Desc: 'coef2Desc', coef3: 'coef3', coef3Desc: 'coef3Desc', totalPrice: 'totalPrice', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type EstimateItemScalarFieldEnum = (typeof EstimateItemScalarFieldEnum)[keyof typeof EstimateItemScalarFieldEnum] export const EstimateTotalScalarFieldEnum: { id: 'id', estimateId: 'estimateId', orderNumber: 'orderNumber', label: 'label', description: 'description', baseValue: 'baseValue', coefficient: 'coefficient', resultValue: 'resultValue', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type EstimateTotalScalarFieldEnum = (typeof EstimateTotalScalarFieldEnum)[keyof typeof EstimateTotalScalarFieldEnum] export const SettingScalarFieldEnum: { id: 'id', key: 'key', value: 'value', type: 'type', category: 'category', label: 'label', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type SettingScalarFieldEnum = (typeof SettingScalarFieldEnum)[keyof typeof SettingScalarFieldEnum] export const ChatSessionScalarFieldEnum: { id: 'id', userId: 'userId', estimateId: 'estimateId', status: 'status', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ChatSessionScalarFieldEnum = (typeof ChatSessionScalarFieldEnum)[keyof typeof ChatSessionScalarFieldEnum] export const ChatMessageScalarFieldEnum: { id: 'id', sessionId: 'sessionId', role: 'role', content: 'content', metadata: 'metadata', createdAt: 'createdAt' }; export type ChatMessageScalarFieldEnum = (typeof ChatMessageScalarFieldEnum)[keyof typeof ChatMessageScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const NullableJsonNullValueInput: { DbNull: typeof DbNull, JsonNull: typeof JsonNull }; export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] export const JsonNullValueInput: { JsonNull: typeof JsonNull }; export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] export const JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'Int[]' */ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> /** * Reference to a field of type 'Json' */ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> /** * Reference to a field of type 'Decimal' */ export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'> /** * Reference to a field of type 'Decimal[]' */ export type ListDecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal[]'> /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> /** * Deep Input Types */ export type PriceBookWhereInput = { AND?: PriceBookWhereInput | PriceBookWhereInput[] OR?: PriceBookWhereInput[] NOT?: PriceBookWhereInput | PriceBookWhereInput[] id?: StringFilter<"PriceBook"> | string code?: StringFilter<"PriceBook"> | string name?: StringFilter<"PriceBook"> | string baseDate?: DateTimeFilter<"PriceBook"> | Date | string approvedBy?: StringNullableFilter<"PriceBook"> | string | null effectiveDate?: DateTimeNullableFilter<"PriceBook"> | Date | string | null isActive?: BoolFilter<"PriceBook"> | boolean createdAt?: DateTimeFilter<"PriceBook"> | Date | string updatedAt?: DateTimeFilter<"PriceBook"> | Date | string tables?: PriceTableListRelationFilter items?: PriceItemListRelationFilter } export type PriceBookOrderByWithRelationInput = { id?: SortOrder code?: SortOrder name?: SortOrder baseDate?: SortOrder approvedBy?: SortOrderInput | SortOrder effectiveDate?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder tables?: PriceTableOrderByRelationAggregateInput items?: PriceItemOrderByRelationAggregateInput } export type PriceBookWhereUniqueInput = Prisma.AtLeast<{ id?: string code?: string AND?: PriceBookWhereInput | PriceBookWhereInput[] OR?: PriceBookWhereInput[] NOT?: PriceBookWhereInput | PriceBookWhereInput[] name?: StringFilter<"PriceBook"> | string baseDate?: DateTimeFilter<"PriceBook"> | Date | string approvedBy?: StringNullableFilter<"PriceBook"> | string | null effectiveDate?: DateTimeNullableFilter<"PriceBook"> | Date | string | null isActive?: BoolFilter<"PriceBook"> | boolean createdAt?: DateTimeFilter<"PriceBook"> | Date | string updatedAt?: DateTimeFilter<"PriceBook"> | Date | string tables?: PriceTableListRelationFilter items?: PriceItemListRelationFilter }, "id" | "code"> export type PriceBookOrderByWithAggregationInput = { id?: SortOrder code?: SortOrder name?: SortOrder baseDate?: SortOrder approvedBy?: SortOrderInput | SortOrder effectiveDate?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: PriceBookCountOrderByAggregateInput _max?: PriceBookMaxOrderByAggregateInput _min?: PriceBookMinOrderByAggregateInput } export type PriceBookScalarWhereWithAggregatesInput = { AND?: PriceBookScalarWhereWithAggregatesInput | PriceBookScalarWhereWithAggregatesInput[] OR?: PriceBookScalarWhereWithAggregatesInput[] NOT?: PriceBookScalarWhereWithAggregatesInput | PriceBookScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"PriceBook"> | string code?: StringWithAggregatesFilter<"PriceBook"> | string name?: StringWithAggregatesFilter<"PriceBook"> | string baseDate?: DateTimeWithAggregatesFilter<"PriceBook"> | Date | string approvedBy?: StringNullableWithAggregatesFilter<"PriceBook"> | string | null effectiveDate?: DateTimeNullableWithAggregatesFilter<"PriceBook"> | Date | string | null isActive?: BoolWithAggregatesFilter<"PriceBook"> | boolean createdAt?: DateTimeWithAggregatesFilter<"PriceBook"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"PriceBook"> | Date | string } export type PriceTableWhereInput = { AND?: PriceTableWhereInput | PriceTableWhereInput[] OR?: PriceTableWhereInput[] NOT?: PriceTableWhereInput | PriceTableWhereInput[] id?: StringFilter<"PriceTable"> | string priceBookId?: StringFilter<"PriceTable"> | string tableNumber?: IntFilter<"PriceTable"> | number name?: StringFilter<"PriceTable"> | string unit?: StringFilter<"PriceTable"> | string notes?: JsonNullableFilter<"PriceTable"> createdAt?: DateTimeFilter<"PriceTable"> | Date | string updatedAt?: DateTimeFilter<"PriceTable"> | Date | string priceBook?: XOR items?: PriceItemListRelationFilter } export type PriceTableOrderByWithRelationInput = { id?: SortOrder priceBookId?: SortOrder tableNumber?: SortOrder name?: SortOrder unit?: SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder priceBook?: PriceBookOrderByWithRelationInput items?: PriceItemOrderByRelationAggregateInput } export type PriceTableWhereUniqueInput = Prisma.AtLeast<{ id?: string priceBookId_tableNumber?: PriceTablePriceBookIdTableNumberCompoundUniqueInput AND?: PriceTableWhereInput | PriceTableWhereInput[] OR?: PriceTableWhereInput[] NOT?: PriceTableWhereInput | PriceTableWhereInput[] priceBookId?: StringFilter<"PriceTable"> | string tableNumber?: IntFilter<"PriceTable"> | number name?: StringFilter<"PriceTable"> | string unit?: StringFilter<"PriceTable"> | string notes?: JsonNullableFilter<"PriceTable"> createdAt?: DateTimeFilter<"PriceTable"> | Date | string updatedAt?: DateTimeFilter<"PriceTable"> | Date | string priceBook?: XOR items?: PriceItemListRelationFilter }, "id" | "priceBookId_tableNumber"> export type PriceTableOrderByWithAggregationInput = { id?: SortOrder priceBookId?: SortOrder tableNumber?: SortOrder name?: SortOrder unit?: SortOrder notes?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: PriceTableCountOrderByAggregateInput _avg?: PriceTableAvgOrderByAggregateInput _max?: PriceTableMaxOrderByAggregateInput _min?: PriceTableMinOrderByAggregateInput _sum?: PriceTableSumOrderByAggregateInput } export type PriceTableScalarWhereWithAggregatesInput = { AND?: PriceTableScalarWhereWithAggregatesInput | PriceTableScalarWhereWithAggregatesInput[] OR?: PriceTableScalarWhereWithAggregatesInput[] NOT?: PriceTableScalarWhereWithAggregatesInput | PriceTableScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"PriceTable"> | string priceBookId?: StringWithAggregatesFilter<"PriceTable"> | string tableNumber?: IntWithAggregatesFilter<"PriceTable"> | number name?: StringWithAggregatesFilter<"PriceTable"> | string unit?: StringWithAggregatesFilter<"PriceTable"> | string notes?: JsonNullableWithAggregatesFilter<"PriceTable"> createdAt?: DateTimeWithAggregatesFilter<"PriceTable"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"PriceTable"> | Date | string } export type PriceItemWhereInput = { AND?: PriceItemWhereInput | PriceItemWhereInput[] OR?: PriceItemWhereInput[] NOT?: PriceItemWhereInput | PriceItemWhereInput[] id?: StringFilter<"PriceItem"> | string priceBookId?: StringFilter<"PriceItem"> | string priceTableId?: StringFilter<"PriceItem"> | string paragraph?: StringFilter<"PriceItem"> | string workType?: StringFilter<"PriceItem"> | string description?: StringNullableFilter<"PriceItem"> | string | null priceField1?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice1?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceField2?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice2?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceField3?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice3?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceSimple?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null attributes?: JsonNullableFilter<"PriceItem"> createdAt?: DateTimeFilter<"PriceItem"> | Date | string updatedAt?: DateTimeFilter<"PriceItem"> | Date | string priceBook?: XOR priceTable?: XOR estimateItems?: EstimateItemListRelationFilter } export type PriceItemOrderByWithRelationInput = { id?: SortOrder priceBookId?: SortOrder priceTableId?: SortOrder paragraph?: SortOrder workType?: SortOrder description?: SortOrderInput | SortOrder priceField1?: SortOrderInput | SortOrder priceOffice1?: SortOrderInput | SortOrder priceField2?: SortOrderInput | SortOrder priceOffice2?: SortOrderInput | SortOrder priceField3?: SortOrderInput | SortOrder priceOffice3?: SortOrderInput | SortOrder priceSimple?: SortOrderInput | SortOrder attributes?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder priceBook?: PriceBookOrderByWithRelationInput priceTable?: PriceTableOrderByWithRelationInput estimateItems?: EstimateItemOrderByRelationAggregateInput } export type PriceItemWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: PriceItemWhereInput | PriceItemWhereInput[] OR?: PriceItemWhereInput[] NOT?: PriceItemWhereInput | PriceItemWhereInput[] priceBookId?: StringFilter<"PriceItem"> | string priceTableId?: StringFilter<"PriceItem"> | string paragraph?: StringFilter<"PriceItem"> | string workType?: StringFilter<"PriceItem"> | string description?: StringNullableFilter<"PriceItem"> | string | null priceField1?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice1?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceField2?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice2?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceField3?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice3?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceSimple?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null attributes?: JsonNullableFilter<"PriceItem"> createdAt?: DateTimeFilter<"PriceItem"> | Date | string updatedAt?: DateTimeFilter<"PriceItem"> | Date | string priceBook?: XOR priceTable?: XOR estimateItems?: EstimateItemListRelationFilter }, "id"> export type PriceItemOrderByWithAggregationInput = { id?: SortOrder priceBookId?: SortOrder priceTableId?: SortOrder paragraph?: SortOrder workType?: SortOrder description?: SortOrderInput | SortOrder priceField1?: SortOrderInput | SortOrder priceOffice1?: SortOrderInput | SortOrder priceField2?: SortOrderInput | SortOrder priceOffice2?: SortOrderInput | SortOrder priceField3?: SortOrderInput | SortOrder priceOffice3?: SortOrderInput | SortOrder priceSimple?: SortOrderInput | SortOrder attributes?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: PriceItemCountOrderByAggregateInput _avg?: PriceItemAvgOrderByAggregateInput _max?: PriceItemMaxOrderByAggregateInput _min?: PriceItemMinOrderByAggregateInput _sum?: PriceItemSumOrderByAggregateInput } export type PriceItemScalarWhereWithAggregatesInput = { AND?: PriceItemScalarWhereWithAggregatesInput | PriceItemScalarWhereWithAggregatesInput[] OR?: PriceItemScalarWhereWithAggregatesInput[] NOT?: PriceItemScalarWhereWithAggregatesInput | PriceItemScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"PriceItem"> | string priceBookId?: StringWithAggregatesFilter<"PriceItem"> | string priceTableId?: StringWithAggregatesFilter<"PriceItem"> | string paragraph?: StringWithAggregatesFilter<"PriceItem"> | string workType?: StringWithAggregatesFilter<"PriceItem"> | string description?: StringNullableWithAggregatesFilter<"PriceItem"> | string | null priceField1?: DecimalNullableWithAggregatesFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice1?: DecimalNullableWithAggregatesFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceField2?: DecimalNullableWithAggregatesFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice2?: DecimalNullableWithAggregatesFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceField3?: DecimalNullableWithAggregatesFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice3?: DecimalNullableWithAggregatesFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceSimple?: DecimalNullableWithAggregatesFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null attributes?: JsonNullableWithAggregatesFilter<"PriceItem"> createdAt?: DateTimeWithAggregatesFilter<"PriceItem"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"PriceItem"> | Date | string } export type CoefficientWhereInput = { AND?: CoefficientWhereInput | CoefficientWhereInput[] OR?: CoefficientWhereInput[] NOT?: CoefficientWhereInput | CoefficientWhereInput[] id?: StringFilter<"Coefficient"> | string type?: StringFilter<"Coefficient"> | string code?: StringFilter<"Coefficient"> | string name?: StringFilter<"Coefficient"> | string value?: DecimalFilter<"Coefficient"> | Decimal | DecimalJsLike | number | string description?: StringNullableFilter<"Coefficient"> | string | null conditions?: JsonNullableFilter<"Coefficient"> isActive?: BoolFilter<"Coefficient"> | boolean createdAt?: DateTimeFilter<"Coefficient"> | Date | string updatedAt?: DateTimeFilter<"Coefficient"> | Date | string } export type CoefficientOrderByWithRelationInput = { id?: SortOrder type?: SortOrder code?: SortOrder name?: SortOrder value?: SortOrder description?: SortOrderInput | SortOrder conditions?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CoefficientWhereUniqueInput = Prisma.AtLeast<{ id?: string type_code?: CoefficientTypeCodeCompoundUniqueInput AND?: CoefficientWhereInput | CoefficientWhereInput[] OR?: CoefficientWhereInput[] NOT?: CoefficientWhereInput | CoefficientWhereInput[] type?: StringFilter<"Coefficient"> | string code?: StringFilter<"Coefficient"> | string name?: StringFilter<"Coefficient"> | string value?: DecimalFilter<"Coefficient"> | Decimal | DecimalJsLike | number | string description?: StringNullableFilter<"Coefficient"> | string | null conditions?: JsonNullableFilter<"Coefficient"> isActive?: BoolFilter<"Coefficient"> | boolean createdAt?: DateTimeFilter<"Coefficient"> | Date | string updatedAt?: DateTimeFilter<"Coefficient"> | Date | string }, "id" | "type_code"> export type CoefficientOrderByWithAggregationInput = { id?: SortOrder type?: SortOrder code?: SortOrder name?: SortOrder value?: SortOrder description?: SortOrderInput | SortOrder conditions?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: CoefficientCountOrderByAggregateInput _avg?: CoefficientAvgOrderByAggregateInput _max?: CoefficientMaxOrderByAggregateInput _min?: CoefficientMinOrderByAggregateInput _sum?: CoefficientSumOrderByAggregateInput } export type CoefficientScalarWhereWithAggregatesInput = { AND?: CoefficientScalarWhereWithAggregatesInput | CoefficientScalarWhereWithAggregatesInput[] OR?: CoefficientScalarWhereWithAggregatesInput[] NOT?: CoefficientScalarWhereWithAggregatesInput | CoefficientScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Coefficient"> | string type?: StringWithAggregatesFilter<"Coefficient"> | string code?: StringWithAggregatesFilter<"Coefficient"> | string name?: StringWithAggregatesFilter<"Coefficient"> | string value?: DecimalWithAggregatesFilter<"Coefficient"> | Decimal | DecimalJsLike | number | string description?: StringNullableWithAggregatesFilter<"Coefficient"> | string | null conditions?: JsonNullableWithAggregatesFilter<"Coefficient"> isActive?: BoolWithAggregatesFilter<"Coefficient"> | boolean createdAt?: DateTimeWithAggregatesFilter<"Coefficient"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Coefficient"> | Date | string } export type InflationIndexWhereInput = { AND?: InflationIndexWhereInput | InflationIndexWhereInput[] OR?: InflationIndexWhereInput[] NOT?: InflationIndexWhereInput | InflationIndexWhereInput[] id?: StringFilter<"InflationIndex"> | string baseDate?: DateTimeFilter<"InflationIndex"> | Date | string effectiveFrom?: DateTimeFilter<"InflationIndex"> | Date | string effectiveTo?: DateTimeNullableFilter<"InflationIndex"> | Date | string | null indexValue?: DecimalFilter<"InflationIndex"> | Decimal | DecimalJsLike | number | string documentRef?: StringNullableFilter<"InflationIndex"> | string | null isActive?: BoolFilter<"InflationIndex"> | boolean createdAt?: DateTimeFilter<"InflationIndex"> | Date | string updatedAt?: DateTimeFilter<"InflationIndex"> | Date | string } export type InflationIndexOrderByWithRelationInput = { id?: SortOrder baseDate?: SortOrder effectiveFrom?: SortOrder effectiveTo?: SortOrderInput | SortOrder indexValue?: SortOrder documentRef?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type InflationIndexWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: InflationIndexWhereInput | InflationIndexWhereInput[] OR?: InflationIndexWhereInput[] NOT?: InflationIndexWhereInput | InflationIndexWhereInput[] baseDate?: DateTimeFilter<"InflationIndex"> | Date | string effectiveFrom?: DateTimeFilter<"InflationIndex"> | Date | string effectiveTo?: DateTimeNullableFilter<"InflationIndex"> | Date | string | null indexValue?: DecimalFilter<"InflationIndex"> | Decimal | DecimalJsLike | number | string documentRef?: StringNullableFilter<"InflationIndex"> | string | null isActive?: BoolFilter<"InflationIndex"> | boolean createdAt?: DateTimeFilter<"InflationIndex"> | Date | string updatedAt?: DateTimeFilter<"InflationIndex"> | Date | string }, "id"> export type InflationIndexOrderByWithAggregationInput = { id?: SortOrder baseDate?: SortOrder effectiveFrom?: SortOrder effectiveTo?: SortOrderInput | SortOrder indexValue?: SortOrder documentRef?: SortOrderInput | SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: InflationIndexCountOrderByAggregateInput _avg?: InflationIndexAvgOrderByAggregateInput _max?: InflationIndexMaxOrderByAggregateInput _min?: InflationIndexMinOrderByAggregateInput _sum?: InflationIndexSumOrderByAggregateInput } export type InflationIndexScalarWhereWithAggregatesInput = { AND?: InflationIndexScalarWhereWithAggregatesInput | InflationIndexScalarWhereWithAggregatesInput[] OR?: InflationIndexScalarWhereWithAggregatesInput[] NOT?: InflationIndexScalarWhereWithAggregatesInput | InflationIndexScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"InflationIndex"> | string baseDate?: DateTimeWithAggregatesFilter<"InflationIndex"> | Date | string effectiveFrom?: DateTimeWithAggregatesFilter<"InflationIndex"> | Date | string effectiveTo?: DateTimeNullableWithAggregatesFilter<"InflationIndex"> | Date | string | null indexValue?: DecimalWithAggregatesFilter<"InflationIndex"> | Decimal | DecimalJsLike | number | string documentRef?: StringNullableWithAggregatesFilter<"InflationIndex"> | string | null isActive?: BoolWithAggregatesFilter<"InflationIndex"> | boolean createdAt?: DateTimeWithAggregatesFilter<"InflationIndex"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"InflationIndex"> | Date | string } export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: StringFilter<"User"> | string email?: StringFilter<"User"> | string passwordHash?: StringFilter<"User"> | string name?: StringNullableFilter<"User"> | string | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string estimates?: EstimateListRelationFilter chatSessions?: ChatSessionListRelationFilter ownedShares?: EstimateShareListRelationFilter receivedShares?: EstimateShareListRelationFilter shareNotes?: EstimateShareNoteListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder estimates?: EstimateOrderByRelationAggregateInput chatSessions?: ChatSessionOrderByRelationAggregateInput ownedShares?: EstimateShareOrderByRelationAggregateInput receivedShares?: EstimateShareOrderByRelationAggregateInput shareNotes?: EstimateShareNoteOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: string email?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] passwordHash?: StringFilter<"User"> | string name?: StringNullableFilter<"User"> | string | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string estimates?: EstimateListRelationFilter chatSessions?: ChatSessionListRelationFilter ownedShares?: EstimateShareListRelationFilter receivedShares?: EstimateShareListRelationFilter shareNotes?: EstimateShareNoteListRelationFilter }, "id" | "email"> export type UserOrderByWithAggregationInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: 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 email?: StringWithAggregatesFilter<"User"> | string passwordHash?: StringWithAggregatesFilter<"User"> | string name?: StringNullableWithAggregatesFilter<"User"> | string | null createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string } export type SurveyDirectionWhereInput = { AND?: SurveyDirectionWhereInput | SurveyDirectionWhereInput[] OR?: SurveyDirectionWhereInput[] NOT?: SurveyDirectionWhereInput | SurveyDirectionWhereInput[] id?: StringFilter<"SurveyDirection"> | string code?: StringFilter<"SurveyDirection"> | string name?: StringFilter<"SurveyDirection"> | string shortName?: StringFilter<"SurveyDirection"> | string isActive?: BoolFilter<"SurveyDirection"> | boolean estimates?: EstimateListRelationFilter } export type SurveyDirectionOrderByWithRelationInput = { id?: SortOrder code?: SortOrder name?: SortOrder shortName?: SortOrder isActive?: SortOrder estimates?: EstimateOrderByRelationAggregateInput } export type SurveyDirectionWhereUniqueInput = Prisma.AtLeast<{ id?: string code?: string AND?: SurveyDirectionWhereInput | SurveyDirectionWhereInput[] OR?: SurveyDirectionWhereInput[] NOT?: SurveyDirectionWhereInput | SurveyDirectionWhereInput[] name?: StringFilter<"SurveyDirection"> | string shortName?: StringFilter<"SurveyDirection"> | string isActive?: BoolFilter<"SurveyDirection"> | boolean estimates?: EstimateListRelationFilter }, "id" | "code"> export type SurveyDirectionOrderByWithAggregationInput = { id?: SortOrder code?: SortOrder name?: SortOrder shortName?: SortOrder isActive?: SortOrder _count?: SurveyDirectionCountOrderByAggregateInput _max?: SurveyDirectionMaxOrderByAggregateInput _min?: SurveyDirectionMinOrderByAggregateInput } export type SurveyDirectionScalarWhereWithAggregatesInput = { AND?: SurveyDirectionScalarWhereWithAggregatesInput | SurveyDirectionScalarWhereWithAggregatesInput[] OR?: SurveyDirectionScalarWhereWithAggregatesInput[] NOT?: SurveyDirectionScalarWhereWithAggregatesInput | SurveyDirectionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"SurveyDirection"> | string code?: StringWithAggregatesFilter<"SurveyDirection"> | string name?: StringWithAggregatesFilter<"SurveyDirection"> | string shortName?: StringWithAggregatesFilter<"SurveyDirection"> | string isActive?: BoolWithAggregatesFilter<"SurveyDirection"> | boolean } export type EstimateWhereInput = { AND?: EstimateWhereInput | EstimateWhereInput[] OR?: EstimateWhereInput[] NOT?: EstimateWhereInput | EstimateWhereInput[] id?: StringFilter<"Estimate"> | string number?: StringFilter<"Estimate"> | string directionId?: StringFilter<"Estimate"> | string ownerId?: StringFilter<"Estimate"> | string objectName?: StringFilter<"Estimate"> | string customer?: StringFilter<"Estimate"> | string executor?: StringFilter<"Estimate"> | string totalFieldWorks?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalLaboratory?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null subtotal?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null regionalCoef?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: StringNullableFilter<"Estimate"> | string | null inflationIndex?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null inflationDocRef?: StringNullableFilter<"Estimate"> | string | null companyCoef?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: StringNullableFilter<"Estimate"> | string | null executorCoef?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: StringNullableFilter<"Estimate"> | string | null withVat?: BoolFilter<"Estimate"> | boolean totalWithoutVat?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null vatRate?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null vatAmount?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalWithVat?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null status?: StringFilter<"Estimate"> | string createdAt?: DateTimeFilter<"Estimate"> | Date | string updatedAt?: DateTimeFilter<"Estimate"> | Date | string owner?: XOR direction?: XOR items?: EstimateItemListRelationFilter totals?: EstimateTotalListRelationFilter shares?: EstimateShareListRelationFilter versions?: EstimateVersionListRelationFilter } export type EstimateOrderByWithRelationInput = { id?: SortOrder number?: SortOrder directionId?: SortOrder ownerId?: SortOrder objectName?: SortOrder customer?: SortOrder executor?: SortOrder totalFieldWorks?: SortOrderInput | SortOrder totalOfficeWorks?: SortOrderInput | SortOrder totalLaboratory?: SortOrderInput | SortOrder subtotal?: SortOrderInput | SortOrder regionalCoef?: SortOrderInput | SortOrder regionalCoefDocRef?: SortOrderInput | SortOrder inflationIndex?: SortOrderInput | SortOrder inflationDocRef?: SortOrderInput | SortOrder companyCoef?: SortOrderInput | SortOrder companyCoefDocRef?: SortOrderInput | SortOrder executorCoef?: SortOrderInput | SortOrder executorCoefDocRef?: SortOrderInput | SortOrder withVat?: SortOrder totalWithoutVat?: SortOrderInput | SortOrder vatRate?: SortOrderInput | SortOrder vatAmount?: SortOrderInput | SortOrder totalWithVat?: SortOrderInput | SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder owner?: UserOrderByWithRelationInput direction?: SurveyDirectionOrderByWithRelationInput items?: EstimateItemOrderByRelationAggregateInput totals?: EstimateTotalOrderByRelationAggregateInput shares?: EstimateShareOrderByRelationAggregateInput versions?: EstimateVersionOrderByRelationAggregateInput } export type EstimateWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: EstimateWhereInput | EstimateWhereInput[] OR?: EstimateWhereInput[] NOT?: EstimateWhereInput | EstimateWhereInput[] number?: StringFilter<"Estimate"> | string directionId?: StringFilter<"Estimate"> | string ownerId?: StringFilter<"Estimate"> | string objectName?: StringFilter<"Estimate"> | string customer?: StringFilter<"Estimate"> | string executor?: StringFilter<"Estimate"> | string totalFieldWorks?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalLaboratory?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null subtotal?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null regionalCoef?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: StringNullableFilter<"Estimate"> | string | null inflationIndex?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null inflationDocRef?: StringNullableFilter<"Estimate"> | string | null companyCoef?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: StringNullableFilter<"Estimate"> | string | null executorCoef?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: StringNullableFilter<"Estimate"> | string | null withVat?: BoolFilter<"Estimate"> | boolean totalWithoutVat?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null vatRate?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null vatAmount?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalWithVat?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null status?: StringFilter<"Estimate"> | string createdAt?: DateTimeFilter<"Estimate"> | Date | string updatedAt?: DateTimeFilter<"Estimate"> | Date | string owner?: XOR direction?: XOR items?: EstimateItemListRelationFilter totals?: EstimateTotalListRelationFilter shares?: EstimateShareListRelationFilter versions?: EstimateVersionListRelationFilter }, "id"> export type EstimateOrderByWithAggregationInput = { id?: SortOrder number?: SortOrder directionId?: SortOrder ownerId?: SortOrder objectName?: SortOrder customer?: SortOrder executor?: SortOrder totalFieldWorks?: SortOrderInput | SortOrder totalOfficeWorks?: SortOrderInput | SortOrder totalLaboratory?: SortOrderInput | SortOrder subtotal?: SortOrderInput | SortOrder regionalCoef?: SortOrderInput | SortOrder regionalCoefDocRef?: SortOrderInput | SortOrder inflationIndex?: SortOrderInput | SortOrder inflationDocRef?: SortOrderInput | SortOrder companyCoef?: SortOrderInput | SortOrder companyCoefDocRef?: SortOrderInput | SortOrder executorCoef?: SortOrderInput | SortOrder executorCoefDocRef?: SortOrderInput | SortOrder withVat?: SortOrder totalWithoutVat?: SortOrderInput | SortOrder vatRate?: SortOrderInput | SortOrder vatAmount?: SortOrderInput | SortOrder totalWithVat?: SortOrderInput | SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: EstimateCountOrderByAggregateInput _avg?: EstimateAvgOrderByAggregateInput _max?: EstimateMaxOrderByAggregateInput _min?: EstimateMinOrderByAggregateInput _sum?: EstimateSumOrderByAggregateInput } export type EstimateScalarWhereWithAggregatesInput = { AND?: EstimateScalarWhereWithAggregatesInput | EstimateScalarWhereWithAggregatesInput[] OR?: EstimateScalarWhereWithAggregatesInput[] NOT?: EstimateScalarWhereWithAggregatesInput | EstimateScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Estimate"> | string number?: StringWithAggregatesFilter<"Estimate"> | string directionId?: StringWithAggregatesFilter<"Estimate"> | string ownerId?: StringWithAggregatesFilter<"Estimate"> | string objectName?: StringWithAggregatesFilter<"Estimate"> | string customer?: StringWithAggregatesFilter<"Estimate"> | string executor?: StringWithAggregatesFilter<"Estimate"> | string totalFieldWorks?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalLaboratory?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null subtotal?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null regionalCoef?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: StringNullableWithAggregatesFilter<"Estimate"> | string | null inflationIndex?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null inflationDocRef?: StringNullableWithAggregatesFilter<"Estimate"> | string | null companyCoef?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: StringNullableWithAggregatesFilter<"Estimate"> | string | null executorCoef?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: StringNullableWithAggregatesFilter<"Estimate"> | string | null withVat?: BoolWithAggregatesFilter<"Estimate"> | boolean totalWithoutVat?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null vatRate?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null vatAmount?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalWithVat?: DecimalNullableWithAggregatesFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null status?: StringWithAggregatesFilter<"Estimate"> | string createdAt?: DateTimeWithAggregatesFilter<"Estimate"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Estimate"> | Date | string } export type EstimateVersionWhereInput = { AND?: EstimateVersionWhereInput | EstimateVersionWhereInput[] OR?: EstimateVersionWhereInput[] NOT?: EstimateVersionWhereInput | EstimateVersionWhereInput[] id?: StringFilter<"EstimateVersion"> | string estimateId?: StringFilter<"EstimateVersion"> | string versionNumber?: IntFilter<"EstimateVersion"> | number snapshot?: JsonFilter<"EstimateVersion"> createdAt?: DateTimeFilter<"EstimateVersion"> | Date | string estimate?: XOR } export type EstimateVersionOrderByWithRelationInput = { id?: SortOrder estimateId?: SortOrder versionNumber?: SortOrder snapshot?: SortOrder createdAt?: SortOrder estimate?: EstimateOrderByWithRelationInput } export type EstimateVersionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: EstimateVersionWhereInput | EstimateVersionWhereInput[] OR?: EstimateVersionWhereInput[] NOT?: EstimateVersionWhereInput | EstimateVersionWhereInput[] estimateId?: StringFilter<"EstimateVersion"> | string versionNumber?: IntFilter<"EstimateVersion"> | number snapshot?: JsonFilter<"EstimateVersion"> createdAt?: DateTimeFilter<"EstimateVersion"> | Date | string estimate?: XOR }, "id"> export type EstimateVersionOrderByWithAggregationInput = { id?: SortOrder estimateId?: SortOrder versionNumber?: SortOrder snapshot?: SortOrder createdAt?: SortOrder _count?: EstimateVersionCountOrderByAggregateInput _avg?: EstimateVersionAvgOrderByAggregateInput _max?: EstimateVersionMaxOrderByAggregateInput _min?: EstimateVersionMinOrderByAggregateInput _sum?: EstimateVersionSumOrderByAggregateInput } export type EstimateVersionScalarWhereWithAggregatesInput = { AND?: EstimateVersionScalarWhereWithAggregatesInput | EstimateVersionScalarWhereWithAggregatesInput[] OR?: EstimateVersionScalarWhereWithAggregatesInput[] NOT?: EstimateVersionScalarWhereWithAggregatesInput | EstimateVersionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"EstimateVersion"> | string estimateId?: StringWithAggregatesFilter<"EstimateVersion"> | string versionNumber?: IntWithAggregatesFilter<"EstimateVersion"> | number snapshot?: JsonWithAggregatesFilter<"EstimateVersion"> createdAt?: DateTimeWithAggregatesFilter<"EstimateVersion"> | Date | string } export type EstimateShareWhereInput = { AND?: EstimateShareWhereInput | EstimateShareWhereInput[] OR?: EstimateShareWhereInput[] NOT?: EstimateShareWhereInput | EstimateShareWhereInput[] id?: StringFilter<"EstimateShare"> | string estimateId?: StringFilter<"EstimateShare"> | string ownerId?: StringFilter<"EstimateShare"> | string sharedWithId?: StringFilter<"EstimateShare"> | string createdAt?: DateTimeFilter<"EstimateShare"> | Date | string estimate?: XOR sharedWith?: XOR owner?: XOR notes?: EstimateShareNoteListRelationFilter } export type EstimateShareOrderByWithRelationInput = { id?: SortOrder estimateId?: SortOrder ownerId?: SortOrder sharedWithId?: SortOrder createdAt?: SortOrder estimate?: EstimateOrderByWithRelationInput sharedWith?: UserOrderByWithRelationInput owner?: UserOrderByWithRelationInput notes?: EstimateShareNoteOrderByRelationAggregateInput } export type EstimateShareWhereUniqueInput = Prisma.AtLeast<{ id?: string estimateId_sharedWithId?: EstimateShareEstimateIdSharedWithIdCompoundUniqueInput AND?: EstimateShareWhereInput | EstimateShareWhereInput[] OR?: EstimateShareWhereInput[] NOT?: EstimateShareWhereInput | EstimateShareWhereInput[] estimateId?: StringFilter<"EstimateShare"> | string ownerId?: StringFilter<"EstimateShare"> | string sharedWithId?: StringFilter<"EstimateShare"> | string createdAt?: DateTimeFilter<"EstimateShare"> | Date | string estimate?: XOR sharedWith?: XOR owner?: XOR notes?: EstimateShareNoteListRelationFilter }, "id" | "estimateId_sharedWithId"> export type EstimateShareOrderByWithAggregationInput = { id?: SortOrder estimateId?: SortOrder ownerId?: SortOrder sharedWithId?: SortOrder createdAt?: SortOrder _count?: EstimateShareCountOrderByAggregateInput _max?: EstimateShareMaxOrderByAggregateInput _min?: EstimateShareMinOrderByAggregateInput } export type EstimateShareScalarWhereWithAggregatesInput = { AND?: EstimateShareScalarWhereWithAggregatesInput | EstimateShareScalarWhereWithAggregatesInput[] OR?: EstimateShareScalarWhereWithAggregatesInput[] NOT?: EstimateShareScalarWhereWithAggregatesInput | EstimateShareScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"EstimateShare"> | string estimateId?: StringWithAggregatesFilter<"EstimateShare"> | string ownerId?: StringWithAggregatesFilter<"EstimateShare"> | string sharedWithId?: StringWithAggregatesFilter<"EstimateShare"> | string createdAt?: DateTimeWithAggregatesFilter<"EstimateShare"> | Date | string } export type EstimateShareNoteWhereInput = { AND?: EstimateShareNoteWhereInput | EstimateShareNoteWhereInput[] OR?: EstimateShareNoteWhereInput[] NOT?: EstimateShareNoteWhereInput | EstimateShareNoteWhereInput[] id?: StringFilter<"EstimateShareNote"> | string shareId?: StringFilter<"EstimateShareNote"> | string authorId?: StringFilter<"EstimateShareNote"> | string content?: StringFilter<"EstimateShareNote"> | string createdAt?: DateTimeFilter<"EstimateShareNote"> | Date | string share?: XOR author?: XOR } export type EstimateShareNoteOrderByWithRelationInput = { id?: SortOrder shareId?: SortOrder authorId?: SortOrder content?: SortOrder createdAt?: SortOrder share?: EstimateShareOrderByWithRelationInput author?: UserOrderByWithRelationInput } export type EstimateShareNoteWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: EstimateShareNoteWhereInput | EstimateShareNoteWhereInput[] OR?: EstimateShareNoteWhereInput[] NOT?: EstimateShareNoteWhereInput | EstimateShareNoteWhereInput[] shareId?: StringFilter<"EstimateShareNote"> | string authorId?: StringFilter<"EstimateShareNote"> | string content?: StringFilter<"EstimateShareNote"> | string createdAt?: DateTimeFilter<"EstimateShareNote"> | Date | string share?: XOR author?: XOR }, "id"> export type EstimateShareNoteOrderByWithAggregationInput = { id?: SortOrder shareId?: SortOrder authorId?: SortOrder content?: SortOrder createdAt?: SortOrder _count?: EstimateShareNoteCountOrderByAggregateInput _max?: EstimateShareNoteMaxOrderByAggregateInput _min?: EstimateShareNoteMinOrderByAggregateInput } export type EstimateShareNoteScalarWhereWithAggregatesInput = { AND?: EstimateShareNoteScalarWhereWithAggregatesInput | EstimateShareNoteScalarWhereWithAggregatesInput[] OR?: EstimateShareNoteScalarWhereWithAggregatesInput[] NOT?: EstimateShareNoteScalarWhereWithAggregatesInput | EstimateShareNoteScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"EstimateShareNote"> | string shareId?: StringWithAggregatesFilter<"EstimateShareNote"> | string authorId?: StringWithAggregatesFilter<"EstimateShareNote"> | string content?: StringWithAggregatesFilter<"EstimateShareNote"> | string createdAt?: DateTimeWithAggregatesFilter<"EstimateShareNote"> | Date | string } export type EstimateItemWhereInput = { AND?: EstimateItemWhereInput | EstimateItemWhereInput[] OR?: EstimateItemWhereInput[] NOT?: EstimateItemWhereInput | EstimateItemWhereInput[] id?: StringFilter<"EstimateItem"> | string estimateId?: StringFilter<"EstimateItem"> | string orderNumber?: IntFilter<"EstimateItem"> | number sectionType?: StringFilter<"EstimateItem"> | string priceItemId?: StringNullableFilter<"EstimateItem"> | string | null workName?: StringFilter<"EstimateItem"> | string justification?: StringNullableFilter<"EstimateItem"> | string | null basePrice?: DecimalFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string quantity?: DecimalFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string unit?: StringNullableFilter<"EstimateItem"> | string | null coef1?: DecimalNullableFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef1Desc?: StringNullableFilter<"EstimateItem"> | string | null coef2?: DecimalNullableFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef2Desc?: StringNullableFilter<"EstimateItem"> | string | null coef3?: DecimalNullableFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef3Desc?: StringNullableFilter<"EstimateItem"> | string | null totalPrice?: DecimalFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFilter<"EstimateItem"> | Date | string updatedAt?: DateTimeFilter<"EstimateItem"> | Date | string estimate?: XOR priceItem?: XOR | null } export type EstimateItemOrderByWithRelationInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder sectionType?: SortOrder priceItemId?: SortOrderInput | SortOrder workName?: SortOrder justification?: SortOrderInput | SortOrder basePrice?: SortOrder quantity?: SortOrder unit?: SortOrderInput | SortOrder coef1?: SortOrderInput | SortOrder coef1Desc?: SortOrderInput | SortOrder coef2?: SortOrderInput | SortOrder coef2Desc?: SortOrderInput | SortOrder coef3?: SortOrderInput | SortOrder coef3Desc?: SortOrderInput | SortOrder totalPrice?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder estimate?: EstimateOrderByWithRelationInput priceItem?: PriceItemOrderByWithRelationInput } export type EstimateItemWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: EstimateItemWhereInput | EstimateItemWhereInput[] OR?: EstimateItemWhereInput[] NOT?: EstimateItemWhereInput | EstimateItemWhereInput[] estimateId?: StringFilter<"EstimateItem"> | string orderNumber?: IntFilter<"EstimateItem"> | number sectionType?: StringFilter<"EstimateItem"> | string priceItemId?: StringNullableFilter<"EstimateItem"> | string | null workName?: StringFilter<"EstimateItem"> | string justification?: StringNullableFilter<"EstimateItem"> | string | null basePrice?: DecimalFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string quantity?: DecimalFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string unit?: StringNullableFilter<"EstimateItem"> | string | null coef1?: DecimalNullableFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef1Desc?: StringNullableFilter<"EstimateItem"> | string | null coef2?: DecimalNullableFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef2Desc?: StringNullableFilter<"EstimateItem"> | string | null coef3?: DecimalNullableFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef3Desc?: StringNullableFilter<"EstimateItem"> | string | null totalPrice?: DecimalFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFilter<"EstimateItem"> | Date | string updatedAt?: DateTimeFilter<"EstimateItem"> | Date | string estimate?: XOR priceItem?: XOR | null }, "id"> export type EstimateItemOrderByWithAggregationInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder sectionType?: SortOrder priceItemId?: SortOrderInput | SortOrder workName?: SortOrder justification?: SortOrderInput | SortOrder basePrice?: SortOrder quantity?: SortOrder unit?: SortOrderInput | SortOrder coef1?: SortOrderInput | SortOrder coef1Desc?: SortOrderInput | SortOrder coef2?: SortOrderInput | SortOrder coef2Desc?: SortOrderInput | SortOrder coef3?: SortOrderInput | SortOrder coef3Desc?: SortOrderInput | SortOrder totalPrice?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: EstimateItemCountOrderByAggregateInput _avg?: EstimateItemAvgOrderByAggregateInput _max?: EstimateItemMaxOrderByAggregateInput _min?: EstimateItemMinOrderByAggregateInput _sum?: EstimateItemSumOrderByAggregateInput } export type EstimateItemScalarWhereWithAggregatesInput = { AND?: EstimateItemScalarWhereWithAggregatesInput | EstimateItemScalarWhereWithAggregatesInput[] OR?: EstimateItemScalarWhereWithAggregatesInput[] NOT?: EstimateItemScalarWhereWithAggregatesInput | EstimateItemScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"EstimateItem"> | string estimateId?: StringWithAggregatesFilter<"EstimateItem"> | string orderNumber?: IntWithAggregatesFilter<"EstimateItem"> | number sectionType?: StringWithAggregatesFilter<"EstimateItem"> | string priceItemId?: StringNullableWithAggregatesFilter<"EstimateItem"> | string | null workName?: StringWithAggregatesFilter<"EstimateItem"> | string justification?: StringNullableWithAggregatesFilter<"EstimateItem"> | string | null basePrice?: DecimalWithAggregatesFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string quantity?: DecimalWithAggregatesFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string unit?: StringNullableWithAggregatesFilter<"EstimateItem"> | string | null coef1?: DecimalNullableWithAggregatesFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef1Desc?: StringNullableWithAggregatesFilter<"EstimateItem"> | string | null coef2?: DecimalNullableWithAggregatesFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef2Desc?: StringNullableWithAggregatesFilter<"EstimateItem"> | string | null coef3?: DecimalNullableWithAggregatesFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef3Desc?: StringNullableWithAggregatesFilter<"EstimateItem"> | string | null totalPrice?: DecimalWithAggregatesFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string createdAt?: DateTimeWithAggregatesFilter<"EstimateItem"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"EstimateItem"> | Date | string } export type EstimateTotalWhereInput = { AND?: EstimateTotalWhereInput | EstimateTotalWhereInput[] OR?: EstimateTotalWhereInput[] NOT?: EstimateTotalWhereInput | EstimateTotalWhereInput[] id?: StringFilter<"EstimateTotal"> | string estimateId?: StringFilter<"EstimateTotal"> | string orderNumber?: IntFilter<"EstimateTotal"> | number label?: StringFilter<"EstimateTotal"> | string description?: StringNullableFilter<"EstimateTotal"> | string | null baseValue?: DecimalNullableFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string | null coefficient?: DecimalNullableFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFilter<"EstimateTotal"> | Date | string updatedAt?: DateTimeFilter<"EstimateTotal"> | Date | string estimate?: XOR } export type EstimateTotalOrderByWithRelationInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder label?: SortOrder description?: SortOrderInput | SortOrder baseValue?: SortOrderInput | SortOrder coefficient?: SortOrderInput | SortOrder resultValue?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder estimate?: EstimateOrderByWithRelationInput } export type EstimateTotalWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: EstimateTotalWhereInput | EstimateTotalWhereInput[] OR?: EstimateTotalWhereInput[] NOT?: EstimateTotalWhereInput | EstimateTotalWhereInput[] estimateId?: StringFilter<"EstimateTotal"> | string orderNumber?: IntFilter<"EstimateTotal"> | number label?: StringFilter<"EstimateTotal"> | string description?: StringNullableFilter<"EstimateTotal"> | string | null baseValue?: DecimalNullableFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string | null coefficient?: DecimalNullableFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFilter<"EstimateTotal"> | Date | string updatedAt?: DateTimeFilter<"EstimateTotal"> | Date | string estimate?: XOR }, "id"> export type EstimateTotalOrderByWithAggregationInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder label?: SortOrder description?: SortOrderInput | SortOrder baseValue?: SortOrderInput | SortOrder coefficient?: SortOrderInput | SortOrder resultValue?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: EstimateTotalCountOrderByAggregateInput _avg?: EstimateTotalAvgOrderByAggregateInput _max?: EstimateTotalMaxOrderByAggregateInput _min?: EstimateTotalMinOrderByAggregateInput _sum?: EstimateTotalSumOrderByAggregateInput } export type EstimateTotalScalarWhereWithAggregatesInput = { AND?: EstimateTotalScalarWhereWithAggregatesInput | EstimateTotalScalarWhereWithAggregatesInput[] OR?: EstimateTotalScalarWhereWithAggregatesInput[] NOT?: EstimateTotalScalarWhereWithAggregatesInput | EstimateTotalScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"EstimateTotal"> | string estimateId?: StringWithAggregatesFilter<"EstimateTotal"> | string orderNumber?: IntWithAggregatesFilter<"EstimateTotal"> | number label?: StringWithAggregatesFilter<"EstimateTotal"> | string description?: StringNullableWithAggregatesFilter<"EstimateTotal"> | string | null baseValue?: DecimalNullableWithAggregatesFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string | null coefficient?: DecimalNullableWithAggregatesFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalWithAggregatesFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string createdAt?: DateTimeWithAggregatesFilter<"EstimateTotal"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"EstimateTotal"> | Date | string } export type SettingWhereInput = { AND?: SettingWhereInput | SettingWhereInput[] OR?: SettingWhereInput[] NOT?: SettingWhereInput | SettingWhereInput[] id?: StringFilter<"Setting"> | string key?: StringFilter<"Setting"> | string value?: StringFilter<"Setting"> | string type?: StringFilter<"Setting"> | string category?: StringFilter<"Setting"> | string label?: StringNullableFilter<"Setting"> | string | null createdAt?: DateTimeFilter<"Setting"> | Date | string updatedAt?: DateTimeFilter<"Setting"> | Date | string } export type SettingOrderByWithRelationInput = { id?: SortOrder key?: SortOrder value?: SortOrder type?: SortOrder category?: SortOrder label?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SettingWhereUniqueInput = Prisma.AtLeast<{ id?: string key?: string AND?: SettingWhereInput | SettingWhereInput[] OR?: SettingWhereInput[] NOT?: SettingWhereInput | SettingWhereInput[] value?: StringFilter<"Setting"> | string type?: StringFilter<"Setting"> | string category?: StringFilter<"Setting"> | string label?: StringNullableFilter<"Setting"> | string | null createdAt?: DateTimeFilter<"Setting"> | Date | string updatedAt?: DateTimeFilter<"Setting"> | Date | string }, "id" | "key"> export type SettingOrderByWithAggregationInput = { id?: SortOrder key?: SortOrder value?: SortOrder type?: SortOrder category?: SortOrder label?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: SettingCountOrderByAggregateInput _max?: SettingMaxOrderByAggregateInput _min?: SettingMinOrderByAggregateInput } export type SettingScalarWhereWithAggregatesInput = { AND?: SettingScalarWhereWithAggregatesInput | SettingScalarWhereWithAggregatesInput[] OR?: SettingScalarWhereWithAggregatesInput[] NOT?: SettingScalarWhereWithAggregatesInput | SettingScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Setting"> | string key?: StringWithAggregatesFilter<"Setting"> | string value?: StringWithAggregatesFilter<"Setting"> | string type?: StringWithAggregatesFilter<"Setting"> | string category?: StringWithAggregatesFilter<"Setting"> | string label?: StringNullableWithAggregatesFilter<"Setting"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Setting"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Setting"> | Date | string } export type ChatSessionWhereInput = { AND?: ChatSessionWhereInput | ChatSessionWhereInput[] OR?: ChatSessionWhereInput[] NOT?: ChatSessionWhereInput | ChatSessionWhereInput[] id?: StringFilter<"ChatSession"> | string userId?: StringFilter<"ChatSession"> | string estimateId?: StringNullableFilter<"ChatSession"> | string | null status?: StringFilter<"ChatSession"> | string createdAt?: DateTimeFilter<"ChatSession"> | Date | string updatedAt?: DateTimeFilter<"ChatSession"> | Date | string user?: XOR messages?: ChatMessageListRelationFilter } export type ChatSessionOrderByWithRelationInput = { id?: SortOrder userId?: SortOrder estimateId?: SortOrderInput | SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput messages?: ChatMessageOrderByRelationAggregateInput } export type ChatSessionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ChatSessionWhereInput | ChatSessionWhereInput[] OR?: ChatSessionWhereInput[] NOT?: ChatSessionWhereInput | ChatSessionWhereInput[] userId?: StringFilter<"ChatSession"> | string estimateId?: StringNullableFilter<"ChatSession"> | string | null status?: StringFilter<"ChatSession"> | string createdAt?: DateTimeFilter<"ChatSession"> | Date | string updatedAt?: DateTimeFilter<"ChatSession"> | Date | string user?: XOR messages?: ChatMessageListRelationFilter }, "id"> export type ChatSessionOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder estimateId?: SortOrderInput | SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ChatSessionCountOrderByAggregateInput _max?: ChatSessionMaxOrderByAggregateInput _min?: ChatSessionMinOrderByAggregateInput } export type ChatSessionScalarWhereWithAggregatesInput = { AND?: ChatSessionScalarWhereWithAggregatesInput | ChatSessionScalarWhereWithAggregatesInput[] OR?: ChatSessionScalarWhereWithAggregatesInput[] NOT?: ChatSessionScalarWhereWithAggregatesInput | ChatSessionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ChatSession"> | string userId?: StringWithAggregatesFilter<"ChatSession"> | string estimateId?: StringNullableWithAggregatesFilter<"ChatSession"> | string | null status?: StringWithAggregatesFilter<"ChatSession"> | string createdAt?: DateTimeWithAggregatesFilter<"ChatSession"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"ChatSession"> | Date | string } export type ChatMessageWhereInput = { AND?: ChatMessageWhereInput | ChatMessageWhereInput[] OR?: ChatMessageWhereInput[] NOT?: ChatMessageWhereInput | ChatMessageWhereInput[] id?: StringFilter<"ChatMessage"> | string sessionId?: StringFilter<"ChatMessage"> | string role?: StringFilter<"ChatMessage"> | string content?: StringFilter<"ChatMessage"> | string metadata?: JsonNullableFilter<"ChatMessage"> createdAt?: DateTimeFilter<"ChatMessage"> | Date | string session?: XOR } export type ChatMessageOrderByWithRelationInput = { id?: SortOrder sessionId?: SortOrder role?: SortOrder content?: SortOrder metadata?: SortOrderInput | SortOrder createdAt?: SortOrder session?: ChatSessionOrderByWithRelationInput } export type ChatMessageWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ChatMessageWhereInput | ChatMessageWhereInput[] OR?: ChatMessageWhereInput[] NOT?: ChatMessageWhereInput | ChatMessageWhereInput[] sessionId?: StringFilter<"ChatMessage"> | string role?: StringFilter<"ChatMessage"> | string content?: StringFilter<"ChatMessage"> | string metadata?: JsonNullableFilter<"ChatMessage"> createdAt?: DateTimeFilter<"ChatMessage"> | Date | string session?: XOR }, "id"> export type ChatMessageOrderByWithAggregationInput = { id?: SortOrder sessionId?: SortOrder role?: SortOrder content?: SortOrder metadata?: SortOrderInput | SortOrder createdAt?: SortOrder _count?: ChatMessageCountOrderByAggregateInput _max?: ChatMessageMaxOrderByAggregateInput _min?: ChatMessageMinOrderByAggregateInput } export type ChatMessageScalarWhereWithAggregatesInput = { AND?: ChatMessageScalarWhereWithAggregatesInput | ChatMessageScalarWhereWithAggregatesInput[] OR?: ChatMessageScalarWhereWithAggregatesInput[] NOT?: ChatMessageScalarWhereWithAggregatesInput | ChatMessageScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ChatMessage"> | string sessionId?: StringWithAggregatesFilter<"ChatMessage"> | string role?: StringWithAggregatesFilter<"ChatMessage"> | string content?: StringWithAggregatesFilter<"ChatMessage"> | string metadata?: JsonNullableWithAggregatesFilter<"ChatMessage"> createdAt?: DateTimeWithAggregatesFilter<"ChatMessage"> | Date | string } export type PriceBookCreateInput = { id?: string code: string name: string baseDate: Date | string approvedBy?: string | null effectiveDate?: Date | string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string tables?: PriceTableCreateNestedManyWithoutPriceBookInput items?: PriceItemCreateNestedManyWithoutPriceBookInput } export type PriceBookUncheckedCreateInput = { id?: string code: string name: string baseDate: Date | string approvedBy?: string | null effectiveDate?: Date | string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string tables?: PriceTableUncheckedCreateNestedManyWithoutPriceBookInput items?: PriceItemUncheckedCreateNestedManyWithoutPriceBookInput } export type PriceBookUpdateInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string approvedBy?: NullableStringFieldUpdateOperationsInput | string | null effectiveDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string tables?: PriceTableUpdateManyWithoutPriceBookNestedInput items?: PriceItemUpdateManyWithoutPriceBookNestedInput } export type PriceBookUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string approvedBy?: NullableStringFieldUpdateOperationsInput | string | null effectiveDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string tables?: PriceTableUncheckedUpdateManyWithoutPriceBookNestedInput items?: PriceItemUncheckedUpdateManyWithoutPriceBookNestedInput } export type PriceBookCreateManyInput = { id?: string code: string name: string baseDate: Date | string approvedBy?: string | null effectiveDate?: Date | string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type PriceBookUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string approvedBy?: NullableStringFieldUpdateOperationsInput | string | null effectiveDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PriceBookUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string approvedBy?: NullableStringFieldUpdateOperationsInput | string | null effectiveDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PriceTableCreateInput = { id?: string tableNumber: number name: string unit: string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string priceBook: PriceBookCreateNestedOneWithoutTablesInput items?: PriceItemCreateNestedManyWithoutPriceTableInput } export type PriceTableUncheckedCreateInput = { id?: string priceBookId: string tableNumber: number name: string unit: string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string items?: PriceItemUncheckedCreateNestedManyWithoutPriceTableInput } export type PriceTableUpdateInput = { id?: StringFieldUpdateOperationsInput | string tableNumber?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string priceBook?: PriceBookUpdateOneRequiredWithoutTablesNestedInput items?: PriceItemUpdateManyWithoutPriceTableNestedInput } export type PriceTableUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string priceBookId?: StringFieldUpdateOperationsInput | string tableNumber?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: PriceItemUncheckedUpdateManyWithoutPriceTableNestedInput } export type PriceTableCreateManyInput = { id?: string priceBookId: string tableNumber: number name: string unit: string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PriceTableUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string tableNumber?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PriceTableUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string priceBookId?: StringFieldUpdateOperationsInput | string tableNumber?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PriceItemCreateInput = { id?: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string priceBook: PriceBookCreateNestedOneWithoutItemsInput priceTable: PriceTableCreateNestedOneWithoutItemsInput estimateItems?: EstimateItemCreateNestedManyWithoutPriceItemInput } export type PriceItemUncheckedCreateInput = { id?: string priceBookId: string priceTableId: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string estimateItems?: EstimateItemUncheckedCreateNestedManyWithoutPriceItemInput } export type PriceItemUpdateInput = { id?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string priceBook?: PriceBookUpdateOneRequiredWithoutItemsNestedInput priceTable?: PriceTableUpdateOneRequiredWithoutItemsNestedInput estimateItems?: EstimateItemUpdateManyWithoutPriceItemNestedInput } export type PriceItemUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string priceBookId?: StringFieldUpdateOperationsInput | string priceTableId?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimateItems?: EstimateItemUncheckedUpdateManyWithoutPriceItemNestedInput } export type PriceItemCreateManyInput = { id?: string priceBookId: string priceTableId: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PriceItemUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PriceItemUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string priceBookId?: StringFieldUpdateOperationsInput | string priceTableId?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CoefficientCreateInput = { id?: string type: string code: string name: string value: Decimal | DecimalJsLike | number | string description?: string | null conditions?: NullableJsonNullValueInput | InputJsonValue isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CoefficientUncheckedCreateInput = { id?: string type: string code: string name: string value: Decimal | DecimalJsLike | number | string description?: string | null conditions?: NullableJsonNullValueInput | InputJsonValue isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CoefficientUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string value?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string description?: NullableStringFieldUpdateOperationsInput | string | null conditions?: NullableJsonNullValueInput | InputJsonValue isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CoefficientUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string value?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string description?: NullableStringFieldUpdateOperationsInput | string | null conditions?: NullableJsonNullValueInput | InputJsonValue isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CoefficientCreateManyInput = { id?: string type: string code: string name: string value: Decimal | DecimalJsLike | number | string description?: string | null conditions?: NullableJsonNullValueInput | InputJsonValue isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type CoefficientUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string value?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string description?: NullableStringFieldUpdateOperationsInput | string | null conditions?: NullableJsonNullValueInput | InputJsonValue isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type CoefficientUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string value?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string description?: NullableStringFieldUpdateOperationsInput | string | null conditions?: NullableJsonNullValueInput | InputJsonValue isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InflationIndexCreateInput = { id?: string baseDate: Date | string effectiveFrom: Date | string effectiveTo?: Date | string | null indexValue: Decimal | DecimalJsLike | number | string documentRef?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type InflationIndexUncheckedCreateInput = { id?: string baseDate: Date | string effectiveFrom: Date | string effectiveTo?: Date | string | null indexValue: Decimal | DecimalJsLike | number | string documentRef?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type InflationIndexUpdateInput = { id?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string effectiveFrom?: DateTimeFieldUpdateOperationsInput | Date | string effectiveTo?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null indexValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string documentRef?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InflationIndexUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string effectiveFrom?: DateTimeFieldUpdateOperationsInput | Date | string effectiveTo?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null indexValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string documentRef?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InflationIndexCreateManyInput = { id?: string baseDate: Date | string effectiveFrom: Date | string effectiveTo?: Date | string | null indexValue: Decimal | DecimalJsLike | number | string documentRef?: string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type InflationIndexUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string effectiveFrom?: DateTimeFieldUpdateOperationsInput | Date | string effectiveTo?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null indexValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string documentRef?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type InflationIndexUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string effectiveFrom?: DateTimeFieldUpdateOperationsInput | Date | string effectiveTo?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null indexValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string documentRef?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserCreateInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateCreateNestedManyWithoutOwnerInput chatSessions?: ChatSessionCreateNestedManyWithoutUserInput ownedShares?: EstimateShareCreateNestedManyWithoutOwnerInput receivedShares?: EstimateShareCreateNestedManyWithoutSharedWithInput shareNotes?: EstimateShareNoteCreateNestedManyWithoutAuthorInput } export type UserUncheckedCreateInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateUncheckedCreateNestedManyWithoutOwnerInput chatSessions?: ChatSessionUncheckedCreateNestedManyWithoutUserInput ownedShares?: EstimateShareUncheckedCreateNestedManyWithoutOwnerInput receivedShares?: EstimateShareUncheckedCreateNestedManyWithoutSharedWithInput shareNotes?: EstimateShareNoteUncheckedCreateNestedManyWithoutAuthorInput } export type UserUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUpdateManyWithoutOwnerNestedInput chatSessions?: ChatSessionUpdateManyWithoutUserNestedInput ownedShares?: EstimateShareUpdateManyWithoutOwnerNestedInput receivedShares?: EstimateShareUpdateManyWithoutSharedWithNestedInput shareNotes?: EstimateShareNoteUpdateManyWithoutAuthorNestedInput } export type UserUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUncheckedUpdateManyWithoutOwnerNestedInput chatSessions?: ChatSessionUncheckedUpdateManyWithoutUserNestedInput ownedShares?: EstimateShareUncheckedUpdateManyWithoutOwnerNestedInput receivedShares?: EstimateShareUncheckedUpdateManyWithoutSharedWithNestedInput shareNotes?: EstimateShareNoteUncheckedUpdateManyWithoutAuthorNestedInput } export type UserCreateManyInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string } export type UserUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SurveyDirectionCreateInput = { id?: string code: string name: string shortName: string isActive?: boolean estimates?: EstimateCreateNestedManyWithoutDirectionInput } export type SurveyDirectionUncheckedCreateInput = { id?: string code: string name: string shortName: string isActive?: boolean estimates?: EstimateUncheckedCreateNestedManyWithoutDirectionInput } export type SurveyDirectionUpdateInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string shortName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean estimates?: EstimateUpdateManyWithoutDirectionNestedInput } export type SurveyDirectionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string shortName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean estimates?: EstimateUncheckedUpdateManyWithoutDirectionNestedInput } export type SurveyDirectionCreateManyInput = { id?: string code: string name: string shortName: string isActive?: boolean } export type SurveyDirectionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string shortName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean } export type SurveyDirectionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string shortName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean } export type EstimateCreateInput = { id?: string number: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string owner: UserCreateNestedOneWithoutEstimatesInput direction: SurveyDirectionCreateNestedOneWithoutEstimatesInput items?: EstimateItemCreateNestedManyWithoutEstimateInput totals?: EstimateTotalCreateNestedManyWithoutEstimateInput shares?: EstimateShareCreateNestedManyWithoutEstimateInput versions?: EstimateVersionCreateNestedManyWithoutEstimateInput } export type EstimateUncheckedCreateInput = { id?: string number: string directionId: string ownerId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string items?: EstimateItemUncheckedCreateNestedManyWithoutEstimateInput totals?: EstimateTotalUncheckedCreateNestedManyWithoutEstimateInput shares?: EstimateShareUncheckedCreateNestedManyWithoutEstimateInput versions?: EstimateVersionUncheckedCreateNestedManyWithoutEstimateInput } export type EstimateUpdateInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string owner?: UserUpdateOneRequiredWithoutEstimatesNestedInput direction?: SurveyDirectionUpdateOneRequiredWithoutEstimatesNestedInput items?: EstimateItemUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUpdateManyWithoutEstimateNestedInput } export type EstimateUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string directionId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: EstimateItemUncheckedUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUncheckedUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUncheckedUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUncheckedUpdateManyWithoutEstimateNestedInput } export type EstimateCreateManyInput = { id?: string number: string directionId: string ownerId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string } export type EstimateUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string directionId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateVersionCreateInput = { id?: string versionNumber: number snapshot: JsonNullValueInput | InputJsonValue createdAt?: Date | string estimate: EstimateCreateNestedOneWithoutVersionsInput } export type EstimateVersionUncheckedCreateInput = { id?: string estimateId: string versionNumber: number snapshot: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type EstimateVersionUpdateInput = { id?: StringFieldUpdateOperationsInput | string versionNumber?: IntFieldUpdateOperationsInput | number snapshot?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string estimate?: EstimateUpdateOneRequiredWithoutVersionsNestedInput } export type EstimateVersionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string versionNumber?: IntFieldUpdateOperationsInput | number snapshot?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateVersionCreateManyInput = { id?: string estimateId: string versionNumber: number snapshot: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type EstimateVersionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string versionNumber?: IntFieldUpdateOperationsInput | number snapshot?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateVersionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string versionNumber?: IntFieldUpdateOperationsInput | number snapshot?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareCreateInput = { id?: string createdAt?: Date | string estimate: EstimateCreateNestedOneWithoutSharesInput sharedWith: UserCreateNestedOneWithoutReceivedSharesInput owner: UserCreateNestedOneWithoutOwnedSharesInput notes?: EstimateShareNoteCreateNestedManyWithoutShareInput } export type EstimateShareUncheckedCreateInput = { id?: string estimateId: string ownerId: string sharedWithId: string createdAt?: Date | string notes?: EstimateShareNoteUncheckedCreateNestedManyWithoutShareInput } export type EstimateShareUpdateInput = { id?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string estimate?: EstimateUpdateOneRequiredWithoutSharesNestedInput sharedWith?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput owner?: UserUpdateOneRequiredWithoutOwnedSharesNestedInput notes?: EstimateShareNoteUpdateManyWithoutShareNestedInput } export type EstimateShareUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string sharedWithId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string notes?: EstimateShareNoteUncheckedUpdateManyWithoutShareNestedInput } export type EstimateShareCreateManyInput = { id?: string estimateId: string ownerId: string sharedWithId: string createdAt?: Date | string } export type EstimateShareUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string sharedWithId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareNoteCreateInput = { id?: string content: string createdAt?: Date | string share: EstimateShareCreateNestedOneWithoutNotesInput author: UserCreateNestedOneWithoutShareNotesInput } export type EstimateShareNoteUncheckedCreateInput = { id?: string shareId: string authorId: string content: string createdAt?: Date | string } export type EstimateShareNoteUpdateInput = { id?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string share?: EstimateShareUpdateOneRequiredWithoutNotesNestedInput author?: UserUpdateOneRequiredWithoutShareNotesNestedInput } export type EstimateShareNoteUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string shareId?: StringFieldUpdateOperationsInput | string authorId?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareNoteCreateManyInput = { id?: string shareId: string authorId: string content: string createdAt?: Date | string } export type EstimateShareNoteUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareNoteUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string shareId?: StringFieldUpdateOperationsInput | string authorId?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateItemCreateInput = { id?: string orderNumber: number sectionType: string workName: string justification?: string | null basePrice: Decimal | DecimalJsLike | number | string quantity: Decimal | DecimalJsLike | number | string unit?: string | null coef1?: Decimal | DecimalJsLike | number | string | null coef1Desc?: string | null coef2?: Decimal | DecimalJsLike | number | string | null coef2Desc?: string | null coef3?: Decimal | DecimalJsLike | number | string | null coef3Desc?: string | null totalPrice: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string estimate: EstimateCreateNestedOneWithoutItemsInput priceItem?: PriceItemCreateNestedOneWithoutEstimateItemsInput } export type EstimateItemUncheckedCreateInput = { id?: string estimateId: string orderNumber: number sectionType: string priceItemId?: string | null workName: string justification?: string | null basePrice: Decimal | DecimalJsLike | number | string quantity: Decimal | DecimalJsLike | number | string unit?: string | null coef1?: Decimal | DecimalJsLike | number | string | null coef1Desc?: string | null coef2?: Decimal | DecimalJsLike | number | string | null coef2Desc?: string | null coef3?: Decimal | DecimalJsLike | number | string | null coef3Desc?: string | null totalPrice: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateItemUpdateInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimate?: EstimateUpdateOneRequiredWithoutItemsNestedInput priceItem?: PriceItemUpdateOneWithoutEstimateItemsNestedInput } export type EstimateItemUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string priceItemId?: NullableStringFieldUpdateOperationsInput | string | null workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateItemCreateManyInput = { id?: string estimateId: string orderNumber: number sectionType: string priceItemId?: string | null workName: string justification?: string | null basePrice: Decimal | DecimalJsLike | number | string quantity: Decimal | DecimalJsLike | number | string unit?: string | null coef1?: Decimal | DecimalJsLike | number | string | null coef1Desc?: string | null coef2?: Decimal | DecimalJsLike | number | string | null coef2Desc?: string | null coef3?: Decimal | DecimalJsLike | number | string | null coef3Desc?: string | null totalPrice: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateItemUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateItemUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string priceItemId?: NullableStringFieldUpdateOperationsInput | string | null workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateTotalCreateInput = { id?: string orderNumber: number label: string description?: string | null baseValue?: Decimal | DecimalJsLike | number | string | null coefficient?: Decimal | DecimalJsLike | number | string | null resultValue: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string estimate: EstimateCreateNestedOneWithoutTotalsInput } export type EstimateTotalUncheckedCreateInput = { id?: string estimateId: string orderNumber: number label: string description?: string | null baseValue?: Decimal | DecimalJsLike | number | string | null coefficient?: Decimal | DecimalJsLike | number | string | null resultValue: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateTotalUpdateInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null baseValue?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coefficient?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimate?: EstimateUpdateOneRequiredWithoutTotalsNestedInput } export type EstimateTotalUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null baseValue?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coefficient?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateTotalCreateManyInput = { id?: string estimateId: string orderNumber: number label: string description?: string | null baseValue?: Decimal | DecimalJsLike | number | string | null coefficient?: Decimal | DecimalJsLike | number | string | null resultValue: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateTotalUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null baseValue?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coefficient?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateTotalUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null baseValue?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coefficient?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SettingCreateInput = { id?: string key: string value: string type?: string category: string label?: string | null createdAt?: Date | string updatedAt?: Date | string } export type SettingUncheckedCreateInput = { id?: string key: string value: string type?: string category: string label?: string | null createdAt?: Date | string updatedAt?: Date | string } export type SettingUpdateInput = { id?: StringFieldUpdateOperationsInput | string key?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: StringFieldUpdateOperationsInput | string label?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SettingUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string key?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: StringFieldUpdateOperationsInput | string label?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SettingCreateManyInput = { id?: string key: string value: string type?: string category: string label?: string | null createdAt?: Date | string updatedAt?: Date | string } export type SettingUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string key?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: StringFieldUpdateOperationsInput | string label?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type SettingUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string key?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string category?: StringFieldUpdateOperationsInput | string label?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ChatSessionCreateInput = { id?: string estimateId?: string | null status?: string createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutChatSessionsInput messages?: ChatMessageCreateNestedManyWithoutSessionInput } export type ChatSessionUncheckedCreateInput = { id?: string userId: string estimateId?: string | null status?: string createdAt?: Date | string updatedAt?: Date | string messages?: ChatMessageUncheckedCreateNestedManyWithoutSessionInput } export type ChatSessionUpdateInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutChatSessionsNestedInput messages?: ChatMessageUpdateManyWithoutSessionNestedInput } export type ChatSessionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string estimateId?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string messages?: ChatMessageUncheckedUpdateManyWithoutSessionNestedInput } export type ChatSessionCreateManyInput = { id?: string userId: string estimateId?: string | null status?: string createdAt?: Date | string updatedAt?: Date | string } export type ChatSessionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ChatSessionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string estimateId?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ChatMessageCreateInput = { id?: string role: string content: string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string session: ChatSessionCreateNestedOneWithoutMessagesInput } export type ChatMessageUncheckedCreateInput = { id?: string sessionId: string role: string content: string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string } export type ChatMessageUpdateInput = { id?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string session?: ChatSessionUpdateOneRequiredWithoutMessagesNestedInput } export type ChatMessageUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string sessionId?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ChatMessageCreateManyInput = { id?: string sessionId: string role: string content: string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string } export type ChatMessageUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ChatMessageUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string sessionId?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringFilter<$PrismaModel> | string } export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type StringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type DateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | 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 BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type PriceTableListRelationFilter = { every?: PriceTableWhereInput some?: PriceTableWhereInput none?: PriceTableWhereInput } export type PriceItemListRelationFilter = { every?: PriceItemWhereInput some?: PriceItemWhereInput none?: PriceItemWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type PriceTableOrderByRelationAggregateInput = { _count?: SortOrder } export type PriceItemOrderByRelationAggregateInput = { _count?: SortOrder } export type PriceBookCountOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder baseDate?: SortOrder approvedBy?: SortOrder effectiveDate?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PriceBookMaxOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder baseDate?: SortOrder approvedBy?: SortOrder effectiveDate?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PriceBookMinOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder baseDate?: SortOrder approvedBy?: SortOrder effectiveDate?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | 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 BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type IntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type JsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type PriceBookRelationFilter = { is?: PriceBookWhereInput isNot?: PriceBookWhereInput } export type PriceTablePriceBookIdTableNumberCompoundUniqueInput = { priceBookId: string tableNumber: number } export type PriceTableCountOrderByAggregateInput = { id?: SortOrder priceBookId?: SortOrder tableNumber?: SortOrder name?: SortOrder unit?: SortOrder notes?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PriceTableAvgOrderByAggregateInput = { tableNumber?: SortOrder } export type PriceTableMaxOrderByAggregateInput = { id?: SortOrder priceBookId?: SortOrder tableNumber?: SortOrder name?: SortOrder unit?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PriceTableMinOrderByAggregateInput = { id?: SortOrder priceBookId?: SortOrder tableNumber?: SortOrder name?: SortOrder unit?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PriceTableSumOrderByAggregateInput = { tableNumber?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedJsonNullableFilter<$PrismaModel> _max?: NestedJsonNullableFilter<$PrismaModel> } export type DecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type PriceTableRelationFilter = { is?: PriceTableWhereInput isNot?: PriceTableWhereInput } export type EstimateItemListRelationFilter = { every?: EstimateItemWhereInput some?: EstimateItemWhereInput none?: EstimateItemWhereInput } export type EstimateItemOrderByRelationAggregateInput = { _count?: SortOrder } export type PriceItemCountOrderByAggregateInput = { id?: SortOrder priceBookId?: SortOrder priceTableId?: SortOrder paragraph?: SortOrder workType?: SortOrder description?: SortOrder priceField1?: SortOrder priceOffice1?: SortOrder priceField2?: SortOrder priceOffice2?: SortOrder priceField3?: SortOrder priceOffice3?: SortOrder priceSimple?: SortOrder attributes?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PriceItemAvgOrderByAggregateInput = { priceField1?: SortOrder priceOffice1?: SortOrder priceField2?: SortOrder priceOffice2?: SortOrder priceField3?: SortOrder priceOffice3?: SortOrder priceSimple?: SortOrder } export type PriceItemMaxOrderByAggregateInput = { id?: SortOrder priceBookId?: SortOrder priceTableId?: SortOrder paragraph?: SortOrder workType?: SortOrder description?: SortOrder priceField1?: SortOrder priceOffice1?: SortOrder priceField2?: SortOrder priceOffice2?: SortOrder priceField3?: SortOrder priceOffice3?: SortOrder priceSimple?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PriceItemMinOrderByAggregateInput = { id?: SortOrder priceBookId?: SortOrder priceTableId?: SortOrder paragraph?: SortOrder workType?: SortOrder description?: SortOrder priceField1?: SortOrder priceOffice1?: SortOrder priceField2?: SortOrder priceOffice2?: SortOrder priceField3?: SortOrder priceOffice3?: SortOrder priceSimple?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type PriceItemSumOrderByAggregateInput = { priceField1?: SortOrder priceOffice1?: SortOrder priceField2?: SortOrder priceOffice2?: SortOrder priceField3?: SortOrder priceOffice3?: SortOrder priceSimple?: SortOrder } export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type DecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } export type CoefficientTypeCodeCompoundUniqueInput = { type: string code: string } export type CoefficientCountOrderByAggregateInput = { id?: SortOrder type?: SortOrder code?: SortOrder name?: SortOrder value?: SortOrder description?: SortOrder conditions?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CoefficientAvgOrderByAggregateInput = { value?: SortOrder } export type CoefficientMaxOrderByAggregateInput = { id?: SortOrder type?: SortOrder code?: SortOrder name?: SortOrder value?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CoefficientMinOrderByAggregateInput = { id?: SortOrder type?: SortOrder code?: SortOrder name?: SortOrder value?: SortOrder description?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type CoefficientSumOrderByAggregateInput = { value?: SortOrder } export type DecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$PrismaModel> } export type InflationIndexCountOrderByAggregateInput = { id?: SortOrder baseDate?: SortOrder effectiveFrom?: SortOrder effectiveTo?: SortOrder indexValue?: SortOrder documentRef?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type InflationIndexAvgOrderByAggregateInput = { indexValue?: SortOrder } export type InflationIndexMaxOrderByAggregateInput = { id?: SortOrder baseDate?: SortOrder effectiveFrom?: SortOrder effectiveTo?: SortOrder indexValue?: SortOrder documentRef?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type InflationIndexMinOrderByAggregateInput = { id?: SortOrder baseDate?: SortOrder effectiveFrom?: SortOrder effectiveTo?: SortOrder indexValue?: SortOrder documentRef?: SortOrder isActive?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type InflationIndexSumOrderByAggregateInput = { indexValue?: SortOrder } export type EstimateListRelationFilter = { every?: EstimateWhereInput some?: EstimateWhereInput none?: EstimateWhereInput } export type ChatSessionListRelationFilter = { every?: ChatSessionWhereInput some?: ChatSessionWhereInput none?: ChatSessionWhereInput } export type EstimateShareListRelationFilter = { every?: EstimateShareWhereInput some?: EstimateShareWhereInput none?: EstimateShareWhereInput } export type EstimateShareNoteListRelationFilter = { every?: EstimateShareNoteWhereInput some?: EstimateShareNoteWhereInput none?: EstimateShareNoteWhereInput } export type EstimateOrderByRelationAggregateInput = { _count?: SortOrder } export type ChatSessionOrderByRelationAggregateInput = { _count?: SortOrder } export type EstimateShareOrderByRelationAggregateInput = { _count?: SortOrder } export type EstimateShareNoteOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder email?: SortOrder passwordHash?: SortOrder name?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SurveyDirectionCountOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder shortName?: SortOrder isActive?: SortOrder } export type SurveyDirectionMaxOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder shortName?: SortOrder isActive?: SortOrder } export type SurveyDirectionMinOrderByAggregateInput = { id?: SortOrder code?: SortOrder name?: SortOrder shortName?: SortOrder isActive?: SortOrder } export type UserRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type SurveyDirectionRelationFilter = { is?: SurveyDirectionWhereInput isNot?: SurveyDirectionWhereInput } export type EstimateTotalListRelationFilter = { every?: EstimateTotalWhereInput some?: EstimateTotalWhereInput none?: EstimateTotalWhereInput } export type EstimateVersionListRelationFilter = { every?: EstimateVersionWhereInput some?: EstimateVersionWhereInput none?: EstimateVersionWhereInput } export type EstimateTotalOrderByRelationAggregateInput = { _count?: SortOrder } export type EstimateVersionOrderByRelationAggregateInput = { _count?: SortOrder } export type EstimateCountOrderByAggregateInput = { id?: SortOrder number?: SortOrder directionId?: SortOrder ownerId?: SortOrder objectName?: SortOrder customer?: SortOrder executor?: SortOrder totalFieldWorks?: SortOrder totalOfficeWorks?: SortOrder totalLaboratory?: SortOrder subtotal?: SortOrder regionalCoef?: SortOrder regionalCoefDocRef?: SortOrder inflationIndex?: SortOrder inflationDocRef?: SortOrder companyCoef?: SortOrder companyCoefDocRef?: SortOrder executorCoef?: SortOrder executorCoefDocRef?: SortOrder withVat?: SortOrder totalWithoutVat?: SortOrder vatRate?: SortOrder vatAmount?: SortOrder totalWithVat?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EstimateAvgOrderByAggregateInput = { totalFieldWorks?: SortOrder totalOfficeWorks?: SortOrder totalLaboratory?: SortOrder subtotal?: SortOrder regionalCoef?: SortOrder inflationIndex?: SortOrder companyCoef?: SortOrder executorCoef?: SortOrder totalWithoutVat?: SortOrder vatRate?: SortOrder vatAmount?: SortOrder totalWithVat?: SortOrder } export type EstimateMaxOrderByAggregateInput = { id?: SortOrder number?: SortOrder directionId?: SortOrder ownerId?: SortOrder objectName?: SortOrder customer?: SortOrder executor?: SortOrder totalFieldWorks?: SortOrder totalOfficeWorks?: SortOrder totalLaboratory?: SortOrder subtotal?: SortOrder regionalCoef?: SortOrder regionalCoefDocRef?: SortOrder inflationIndex?: SortOrder inflationDocRef?: SortOrder companyCoef?: SortOrder companyCoefDocRef?: SortOrder executorCoef?: SortOrder executorCoefDocRef?: SortOrder withVat?: SortOrder totalWithoutVat?: SortOrder vatRate?: SortOrder vatAmount?: SortOrder totalWithVat?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EstimateMinOrderByAggregateInput = { id?: SortOrder number?: SortOrder directionId?: SortOrder ownerId?: SortOrder objectName?: SortOrder customer?: SortOrder executor?: SortOrder totalFieldWorks?: SortOrder totalOfficeWorks?: SortOrder totalLaboratory?: SortOrder subtotal?: SortOrder regionalCoef?: SortOrder regionalCoefDocRef?: SortOrder inflationIndex?: SortOrder inflationDocRef?: SortOrder companyCoef?: SortOrder companyCoefDocRef?: SortOrder executorCoef?: SortOrder executorCoefDocRef?: SortOrder withVat?: SortOrder totalWithoutVat?: SortOrder vatRate?: SortOrder vatAmount?: SortOrder totalWithVat?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EstimateSumOrderByAggregateInput = { totalFieldWorks?: SortOrder totalOfficeWorks?: SortOrder totalLaboratory?: SortOrder subtotal?: SortOrder regionalCoef?: SortOrder inflationIndex?: SortOrder companyCoef?: SortOrder executorCoef?: SortOrder totalWithoutVat?: SortOrder vatRate?: SortOrder vatAmount?: SortOrder totalWithVat?: SortOrder } export type JsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type EstimateRelationFilter = { is?: EstimateWhereInput isNot?: EstimateWhereInput } export type EstimateVersionCountOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder versionNumber?: SortOrder snapshot?: SortOrder createdAt?: SortOrder } export type EstimateVersionAvgOrderByAggregateInput = { versionNumber?: SortOrder } export type EstimateVersionMaxOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder versionNumber?: SortOrder createdAt?: SortOrder } export type EstimateVersionMinOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder versionNumber?: SortOrder createdAt?: SortOrder } export type EstimateVersionSumOrderByAggregateInput = { versionNumber?: SortOrder } export type JsonWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntFilter<$PrismaModel> _min?: NestedJsonFilter<$PrismaModel> _max?: NestedJsonFilter<$PrismaModel> } export type EstimateShareEstimateIdSharedWithIdCompoundUniqueInput = { estimateId: string sharedWithId: string } export type EstimateShareCountOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder ownerId?: SortOrder sharedWithId?: SortOrder createdAt?: SortOrder } export type EstimateShareMaxOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder ownerId?: SortOrder sharedWithId?: SortOrder createdAt?: SortOrder } export type EstimateShareMinOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder ownerId?: SortOrder sharedWithId?: SortOrder createdAt?: SortOrder } export type EstimateShareRelationFilter = { is?: EstimateShareWhereInput isNot?: EstimateShareWhereInput } export type EstimateShareNoteCountOrderByAggregateInput = { id?: SortOrder shareId?: SortOrder authorId?: SortOrder content?: SortOrder createdAt?: SortOrder } export type EstimateShareNoteMaxOrderByAggregateInput = { id?: SortOrder shareId?: SortOrder authorId?: SortOrder content?: SortOrder createdAt?: SortOrder } export type EstimateShareNoteMinOrderByAggregateInput = { id?: SortOrder shareId?: SortOrder authorId?: SortOrder content?: SortOrder createdAt?: SortOrder } export type PriceItemNullableRelationFilter = { is?: PriceItemWhereInput | null isNot?: PriceItemWhereInput | null } export type EstimateItemCountOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder sectionType?: SortOrder priceItemId?: SortOrder workName?: SortOrder justification?: SortOrder basePrice?: SortOrder quantity?: SortOrder unit?: SortOrder coef1?: SortOrder coef1Desc?: SortOrder coef2?: SortOrder coef2Desc?: SortOrder coef3?: SortOrder coef3Desc?: SortOrder totalPrice?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EstimateItemAvgOrderByAggregateInput = { orderNumber?: SortOrder basePrice?: SortOrder quantity?: SortOrder coef1?: SortOrder coef2?: SortOrder coef3?: SortOrder totalPrice?: SortOrder } export type EstimateItemMaxOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder sectionType?: SortOrder priceItemId?: SortOrder workName?: SortOrder justification?: SortOrder basePrice?: SortOrder quantity?: SortOrder unit?: SortOrder coef1?: SortOrder coef1Desc?: SortOrder coef2?: SortOrder coef2Desc?: SortOrder coef3?: SortOrder coef3Desc?: SortOrder totalPrice?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EstimateItemMinOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder sectionType?: SortOrder priceItemId?: SortOrder workName?: SortOrder justification?: SortOrder basePrice?: SortOrder quantity?: SortOrder unit?: SortOrder coef1?: SortOrder coef1Desc?: SortOrder coef2?: SortOrder coef2Desc?: SortOrder coef3?: SortOrder coef3Desc?: SortOrder totalPrice?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EstimateItemSumOrderByAggregateInput = { orderNumber?: SortOrder basePrice?: SortOrder quantity?: SortOrder coef1?: SortOrder coef2?: SortOrder coef3?: SortOrder totalPrice?: SortOrder } export type EstimateTotalCountOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder label?: SortOrder description?: SortOrder baseValue?: SortOrder coefficient?: SortOrder resultValue?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EstimateTotalAvgOrderByAggregateInput = { orderNumber?: SortOrder baseValue?: SortOrder coefficient?: SortOrder resultValue?: SortOrder } export type EstimateTotalMaxOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder label?: SortOrder description?: SortOrder baseValue?: SortOrder coefficient?: SortOrder resultValue?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EstimateTotalMinOrderByAggregateInput = { id?: SortOrder estimateId?: SortOrder orderNumber?: SortOrder label?: SortOrder description?: SortOrder baseValue?: SortOrder coefficient?: SortOrder resultValue?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type EstimateTotalSumOrderByAggregateInput = { orderNumber?: SortOrder baseValue?: SortOrder coefficient?: SortOrder resultValue?: SortOrder } export type SettingCountOrderByAggregateInput = { id?: SortOrder key?: SortOrder value?: SortOrder type?: SortOrder category?: SortOrder label?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SettingMaxOrderByAggregateInput = { id?: SortOrder key?: SortOrder value?: SortOrder type?: SortOrder category?: SortOrder label?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type SettingMinOrderByAggregateInput = { id?: SortOrder key?: SortOrder value?: SortOrder type?: SortOrder category?: SortOrder label?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ChatMessageListRelationFilter = { every?: ChatMessageWhereInput some?: ChatMessageWhereInput none?: ChatMessageWhereInput } export type ChatMessageOrderByRelationAggregateInput = { _count?: SortOrder } export type ChatSessionCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder estimateId?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ChatSessionMaxOrderByAggregateInput = { id?: SortOrder userId?: SortOrder estimateId?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ChatSessionMinOrderByAggregateInput = { id?: SortOrder userId?: SortOrder estimateId?: SortOrder status?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ChatSessionRelationFilter = { is?: ChatSessionWhereInput isNot?: ChatSessionWhereInput } export type ChatMessageCountOrderByAggregateInput = { id?: SortOrder sessionId?: SortOrder role?: SortOrder content?: SortOrder metadata?: SortOrder createdAt?: SortOrder } export type ChatMessageMaxOrderByAggregateInput = { id?: SortOrder sessionId?: SortOrder role?: SortOrder content?: SortOrder createdAt?: SortOrder } export type ChatMessageMinOrderByAggregateInput = { id?: SortOrder sessionId?: SortOrder role?: SortOrder content?: SortOrder createdAt?: SortOrder } export type PriceTableCreateNestedManyWithoutPriceBookInput = { create?: XOR | PriceTableCreateWithoutPriceBookInput[] | PriceTableUncheckedCreateWithoutPriceBookInput[] connectOrCreate?: PriceTableCreateOrConnectWithoutPriceBookInput | PriceTableCreateOrConnectWithoutPriceBookInput[] createMany?: PriceTableCreateManyPriceBookInputEnvelope connect?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] } export type PriceItemCreateNestedManyWithoutPriceBookInput = { create?: XOR | PriceItemCreateWithoutPriceBookInput[] | PriceItemUncheckedCreateWithoutPriceBookInput[] connectOrCreate?: PriceItemCreateOrConnectWithoutPriceBookInput | PriceItemCreateOrConnectWithoutPriceBookInput[] createMany?: PriceItemCreateManyPriceBookInputEnvelope connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] } export type PriceTableUncheckedCreateNestedManyWithoutPriceBookInput = { create?: XOR | PriceTableCreateWithoutPriceBookInput[] | PriceTableUncheckedCreateWithoutPriceBookInput[] connectOrCreate?: PriceTableCreateOrConnectWithoutPriceBookInput | PriceTableCreateOrConnectWithoutPriceBookInput[] createMany?: PriceTableCreateManyPriceBookInputEnvelope connect?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] } export type PriceItemUncheckedCreateNestedManyWithoutPriceBookInput = { create?: XOR | PriceItemCreateWithoutPriceBookInput[] | PriceItemUncheckedCreateWithoutPriceBookInput[] connectOrCreate?: PriceItemCreateOrConnectWithoutPriceBookInput | PriceItemCreateOrConnectWithoutPriceBookInput[] createMany?: PriceItemCreateManyPriceBookInputEnvelope connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] } export type StringFieldUpdateOperationsInput = { set?: string } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type PriceTableUpdateManyWithoutPriceBookNestedInput = { create?: XOR | PriceTableCreateWithoutPriceBookInput[] | PriceTableUncheckedCreateWithoutPriceBookInput[] connectOrCreate?: PriceTableCreateOrConnectWithoutPriceBookInput | PriceTableCreateOrConnectWithoutPriceBookInput[] upsert?: PriceTableUpsertWithWhereUniqueWithoutPriceBookInput | PriceTableUpsertWithWhereUniqueWithoutPriceBookInput[] createMany?: PriceTableCreateManyPriceBookInputEnvelope set?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] disconnect?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] delete?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] connect?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] update?: PriceTableUpdateWithWhereUniqueWithoutPriceBookInput | PriceTableUpdateWithWhereUniqueWithoutPriceBookInput[] updateMany?: PriceTableUpdateManyWithWhereWithoutPriceBookInput | PriceTableUpdateManyWithWhereWithoutPriceBookInput[] deleteMany?: PriceTableScalarWhereInput | PriceTableScalarWhereInput[] } export type PriceItemUpdateManyWithoutPriceBookNestedInput = { create?: XOR | PriceItemCreateWithoutPriceBookInput[] | PriceItemUncheckedCreateWithoutPriceBookInput[] connectOrCreate?: PriceItemCreateOrConnectWithoutPriceBookInput | PriceItemCreateOrConnectWithoutPriceBookInput[] upsert?: PriceItemUpsertWithWhereUniqueWithoutPriceBookInput | PriceItemUpsertWithWhereUniqueWithoutPriceBookInput[] createMany?: PriceItemCreateManyPriceBookInputEnvelope set?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] disconnect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] delete?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] update?: PriceItemUpdateWithWhereUniqueWithoutPriceBookInput | PriceItemUpdateWithWhereUniqueWithoutPriceBookInput[] updateMany?: PriceItemUpdateManyWithWhereWithoutPriceBookInput | PriceItemUpdateManyWithWhereWithoutPriceBookInput[] deleteMany?: PriceItemScalarWhereInput | PriceItemScalarWhereInput[] } export type PriceTableUncheckedUpdateManyWithoutPriceBookNestedInput = { create?: XOR | PriceTableCreateWithoutPriceBookInput[] | PriceTableUncheckedCreateWithoutPriceBookInput[] connectOrCreate?: PriceTableCreateOrConnectWithoutPriceBookInput | PriceTableCreateOrConnectWithoutPriceBookInput[] upsert?: PriceTableUpsertWithWhereUniqueWithoutPriceBookInput | PriceTableUpsertWithWhereUniqueWithoutPriceBookInput[] createMany?: PriceTableCreateManyPriceBookInputEnvelope set?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] disconnect?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] delete?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] connect?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[] update?: PriceTableUpdateWithWhereUniqueWithoutPriceBookInput | PriceTableUpdateWithWhereUniqueWithoutPriceBookInput[] updateMany?: PriceTableUpdateManyWithWhereWithoutPriceBookInput | PriceTableUpdateManyWithWhereWithoutPriceBookInput[] deleteMany?: PriceTableScalarWhereInput | PriceTableScalarWhereInput[] } export type PriceItemUncheckedUpdateManyWithoutPriceBookNestedInput = { create?: XOR | PriceItemCreateWithoutPriceBookInput[] | PriceItemUncheckedCreateWithoutPriceBookInput[] connectOrCreate?: PriceItemCreateOrConnectWithoutPriceBookInput | PriceItemCreateOrConnectWithoutPriceBookInput[] upsert?: PriceItemUpsertWithWhereUniqueWithoutPriceBookInput | PriceItemUpsertWithWhereUniqueWithoutPriceBookInput[] createMany?: PriceItemCreateManyPriceBookInputEnvelope set?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] disconnect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] delete?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] update?: PriceItemUpdateWithWhereUniqueWithoutPriceBookInput | PriceItemUpdateWithWhereUniqueWithoutPriceBookInput[] updateMany?: PriceItemUpdateManyWithWhereWithoutPriceBookInput | PriceItemUpdateManyWithWhereWithoutPriceBookInput[] deleteMany?: PriceItemScalarWhereInput | PriceItemScalarWhereInput[] } export type PriceBookCreateNestedOneWithoutTablesInput = { create?: XOR connectOrCreate?: PriceBookCreateOrConnectWithoutTablesInput connect?: PriceBookWhereUniqueInput } export type PriceItemCreateNestedManyWithoutPriceTableInput = { create?: XOR | PriceItemCreateWithoutPriceTableInput[] | PriceItemUncheckedCreateWithoutPriceTableInput[] connectOrCreate?: PriceItemCreateOrConnectWithoutPriceTableInput | PriceItemCreateOrConnectWithoutPriceTableInput[] createMany?: PriceItemCreateManyPriceTableInputEnvelope connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] } export type PriceItemUncheckedCreateNestedManyWithoutPriceTableInput = { create?: XOR | PriceItemCreateWithoutPriceTableInput[] | PriceItemUncheckedCreateWithoutPriceTableInput[] connectOrCreate?: PriceItemCreateOrConnectWithoutPriceTableInput | PriceItemCreateOrConnectWithoutPriceTableInput[] createMany?: PriceItemCreateManyPriceTableInputEnvelope connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type PriceBookUpdateOneRequiredWithoutTablesNestedInput = { create?: XOR connectOrCreate?: PriceBookCreateOrConnectWithoutTablesInput upsert?: PriceBookUpsertWithoutTablesInput connect?: PriceBookWhereUniqueInput update?: XOR, PriceBookUncheckedUpdateWithoutTablesInput> } export type PriceItemUpdateManyWithoutPriceTableNestedInput = { create?: XOR | PriceItemCreateWithoutPriceTableInput[] | PriceItemUncheckedCreateWithoutPriceTableInput[] connectOrCreate?: PriceItemCreateOrConnectWithoutPriceTableInput | PriceItemCreateOrConnectWithoutPriceTableInput[] upsert?: PriceItemUpsertWithWhereUniqueWithoutPriceTableInput | PriceItemUpsertWithWhereUniqueWithoutPriceTableInput[] createMany?: PriceItemCreateManyPriceTableInputEnvelope set?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] disconnect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] delete?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] update?: PriceItemUpdateWithWhereUniqueWithoutPriceTableInput | PriceItemUpdateWithWhereUniqueWithoutPriceTableInput[] updateMany?: PriceItemUpdateManyWithWhereWithoutPriceTableInput | PriceItemUpdateManyWithWhereWithoutPriceTableInput[] deleteMany?: PriceItemScalarWhereInput | PriceItemScalarWhereInput[] } export type PriceItemUncheckedUpdateManyWithoutPriceTableNestedInput = { create?: XOR | PriceItemCreateWithoutPriceTableInput[] | PriceItemUncheckedCreateWithoutPriceTableInput[] connectOrCreate?: PriceItemCreateOrConnectWithoutPriceTableInput | PriceItemCreateOrConnectWithoutPriceTableInput[] upsert?: PriceItemUpsertWithWhereUniqueWithoutPriceTableInput | PriceItemUpsertWithWhereUniqueWithoutPriceTableInput[] createMany?: PriceItemCreateManyPriceTableInputEnvelope set?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] disconnect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] delete?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[] update?: PriceItemUpdateWithWhereUniqueWithoutPriceTableInput | PriceItemUpdateWithWhereUniqueWithoutPriceTableInput[] updateMany?: PriceItemUpdateManyWithWhereWithoutPriceTableInput | PriceItemUpdateManyWithWhereWithoutPriceTableInput[] deleteMany?: PriceItemScalarWhereInput | PriceItemScalarWhereInput[] } export type PriceBookCreateNestedOneWithoutItemsInput = { create?: XOR connectOrCreate?: PriceBookCreateOrConnectWithoutItemsInput connect?: PriceBookWhereUniqueInput } export type PriceTableCreateNestedOneWithoutItemsInput = { create?: XOR connectOrCreate?: PriceTableCreateOrConnectWithoutItemsInput connect?: PriceTableWhereUniqueInput } export type EstimateItemCreateNestedManyWithoutPriceItemInput = { create?: XOR | EstimateItemCreateWithoutPriceItemInput[] | EstimateItemUncheckedCreateWithoutPriceItemInput[] connectOrCreate?: EstimateItemCreateOrConnectWithoutPriceItemInput | EstimateItemCreateOrConnectWithoutPriceItemInput[] createMany?: EstimateItemCreateManyPriceItemInputEnvelope connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] } export type EstimateItemUncheckedCreateNestedManyWithoutPriceItemInput = { create?: XOR | EstimateItemCreateWithoutPriceItemInput[] | EstimateItemUncheckedCreateWithoutPriceItemInput[] connectOrCreate?: EstimateItemCreateOrConnectWithoutPriceItemInput | EstimateItemCreateOrConnectWithoutPriceItemInput[] createMany?: EstimateItemCreateManyPriceItemInputEnvelope connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] } export type NullableDecimalFieldUpdateOperationsInput = { set?: Decimal | DecimalJsLike | number | string | null increment?: Decimal | DecimalJsLike | number | string decrement?: Decimal | DecimalJsLike | number | string multiply?: Decimal | DecimalJsLike | number | string divide?: Decimal | DecimalJsLike | number | string } export type PriceBookUpdateOneRequiredWithoutItemsNestedInput = { create?: XOR connectOrCreate?: PriceBookCreateOrConnectWithoutItemsInput upsert?: PriceBookUpsertWithoutItemsInput connect?: PriceBookWhereUniqueInput update?: XOR, PriceBookUncheckedUpdateWithoutItemsInput> } export type PriceTableUpdateOneRequiredWithoutItemsNestedInput = { create?: XOR connectOrCreate?: PriceTableCreateOrConnectWithoutItemsInput upsert?: PriceTableUpsertWithoutItemsInput connect?: PriceTableWhereUniqueInput update?: XOR, PriceTableUncheckedUpdateWithoutItemsInput> } export type EstimateItemUpdateManyWithoutPriceItemNestedInput = { create?: XOR | EstimateItemCreateWithoutPriceItemInput[] | EstimateItemUncheckedCreateWithoutPriceItemInput[] connectOrCreate?: EstimateItemCreateOrConnectWithoutPriceItemInput | EstimateItemCreateOrConnectWithoutPriceItemInput[] upsert?: EstimateItemUpsertWithWhereUniqueWithoutPriceItemInput | EstimateItemUpsertWithWhereUniqueWithoutPriceItemInput[] createMany?: EstimateItemCreateManyPriceItemInputEnvelope set?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] disconnect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] delete?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] update?: EstimateItemUpdateWithWhereUniqueWithoutPriceItemInput | EstimateItemUpdateWithWhereUniqueWithoutPriceItemInput[] updateMany?: EstimateItemUpdateManyWithWhereWithoutPriceItemInput | EstimateItemUpdateManyWithWhereWithoutPriceItemInput[] deleteMany?: EstimateItemScalarWhereInput | EstimateItemScalarWhereInput[] } export type EstimateItemUncheckedUpdateManyWithoutPriceItemNestedInput = { create?: XOR | EstimateItemCreateWithoutPriceItemInput[] | EstimateItemUncheckedCreateWithoutPriceItemInput[] connectOrCreate?: EstimateItemCreateOrConnectWithoutPriceItemInput | EstimateItemCreateOrConnectWithoutPriceItemInput[] upsert?: EstimateItemUpsertWithWhereUniqueWithoutPriceItemInput | EstimateItemUpsertWithWhereUniqueWithoutPriceItemInput[] createMany?: EstimateItemCreateManyPriceItemInputEnvelope set?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] disconnect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] delete?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] update?: EstimateItemUpdateWithWhereUniqueWithoutPriceItemInput | EstimateItemUpdateWithWhereUniqueWithoutPriceItemInput[] updateMany?: EstimateItemUpdateManyWithWhereWithoutPriceItemInput | EstimateItemUpdateManyWithWhereWithoutPriceItemInput[] deleteMany?: EstimateItemScalarWhereInput | EstimateItemScalarWhereInput[] } export type DecimalFieldUpdateOperationsInput = { set?: Decimal | DecimalJsLike | number | string increment?: Decimal | DecimalJsLike | number | string decrement?: Decimal | DecimalJsLike | number | string multiply?: Decimal | DecimalJsLike | number | string divide?: Decimal | DecimalJsLike | number | string } export type EstimateCreateNestedManyWithoutOwnerInput = { create?: XOR | EstimateCreateWithoutOwnerInput[] | EstimateUncheckedCreateWithoutOwnerInput[] connectOrCreate?: EstimateCreateOrConnectWithoutOwnerInput | EstimateCreateOrConnectWithoutOwnerInput[] createMany?: EstimateCreateManyOwnerInputEnvelope connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] } export type ChatSessionCreateNestedManyWithoutUserInput = { create?: XOR | ChatSessionCreateWithoutUserInput[] | ChatSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: ChatSessionCreateOrConnectWithoutUserInput | ChatSessionCreateOrConnectWithoutUserInput[] createMany?: ChatSessionCreateManyUserInputEnvelope connect?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] } export type EstimateShareCreateNestedManyWithoutOwnerInput = { create?: XOR | EstimateShareCreateWithoutOwnerInput[] | EstimateShareUncheckedCreateWithoutOwnerInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutOwnerInput | EstimateShareCreateOrConnectWithoutOwnerInput[] createMany?: EstimateShareCreateManyOwnerInputEnvelope connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] } export type EstimateShareCreateNestedManyWithoutSharedWithInput = { create?: XOR | EstimateShareCreateWithoutSharedWithInput[] | EstimateShareUncheckedCreateWithoutSharedWithInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutSharedWithInput | EstimateShareCreateOrConnectWithoutSharedWithInput[] createMany?: EstimateShareCreateManySharedWithInputEnvelope connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] } export type EstimateShareNoteCreateNestedManyWithoutAuthorInput = { create?: XOR | EstimateShareNoteCreateWithoutAuthorInput[] | EstimateShareNoteUncheckedCreateWithoutAuthorInput[] connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutAuthorInput | EstimateShareNoteCreateOrConnectWithoutAuthorInput[] createMany?: EstimateShareNoteCreateManyAuthorInputEnvelope connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] } export type EstimateUncheckedCreateNestedManyWithoutOwnerInput = { create?: XOR | EstimateCreateWithoutOwnerInput[] | EstimateUncheckedCreateWithoutOwnerInput[] connectOrCreate?: EstimateCreateOrConnectWithoutOwnerInput | EstimateCreateOrConnectWithoutOwnerInput[] createMany?: EstimateCreateManyOwnerInputEnvelope connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] } export type ChatSessionUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | ChatSessionCreateWithoutUserInput[] | ChatSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: ChatSessionCreateOrConnectWithoutUserInput | ChatSessionCreateOrConnectWithoutUserInput[] createMany?: ChatSessionCreateManyUserInputEnvelope connect?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] } export type EstimateShareUncheckedCreateNestedManyWithoutOwnerInput = { create?: XOR | EstimateShareCreateWithoutOwnerInput[] | EstimateShareUncheckedCreateWithoutOwnerInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutOwnerInput | EstimateShareCreateOrConnectWithoutOwnerInput[] createMany?: EstimateShareCreateManyOwnerInputEnvelope connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] } export type EstimateShareUncheckedCreateNestedManyWithoutSharedWithInput = { create?: XOR | EstimateShareCreateWithoutSharedWithInput[] | EstimateShareUncheckedCreateWithoutSharedWithInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutSharedWithInput | EstimateShareCreateOrConnectWithoutSharedWithInput[] createMany?: EstimateShareCreateManySharedWithInputEnvelope connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] } export type EstimateShareNoteUncheckedCreateNestedManyWithoutAuthorInput = { create?: XOR | EstimateShareNoteCreateWithoutAuthorInput[] | EstimateShareNoteUncheckedCreateWithoutAuthorInput[] connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutAuthorInput | EstimateShareNoteCreateOrConnectWithoutAuthorInput[] createMany?: EstimateShareNoteCreateManyAuthorInputEnvelope connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] } export type EstimateUpdateManyWithoutOwnerNestedInput = { create?: XOR | EstimateCreateWithoutOwnerInput[] | EstimateUncheckedCreateWithoutOwnerInput[] connectOrCreate?: EstimateCreateOrConnectWithoutOwnerInput | EstimateCreateOrConnectWithoutOwnerInput[] upsert?: EstimateUpsertWithWhereUniqueWithoutOwnerInput | EstimateUpsertWithWhereUniqueWithoutOwnerInput[] createMany?: EstimateCreateManyOwnerInputEnvelope set?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] disconnect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] delete?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] update?: EstimateUpdateWithWhereUniqueWithoutOwnerInput | EstimateUpdateWithWhereUniqueWithoutOwnerInput[] updateMany?: EstimateUpdateManyWithWhereWithoutOwnerInput | EstimateUpdateManyWithWhereWithoutOwnerInput[] deleteMany?: EstimateScalarWhereInput | EstimateScalarWhereInput[] } export type ChatSessionUpdateManyWithoutUserNestedInput = { create?: XOR | ChatSessionCreateWithoutUserInput[] | ChatSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: ChatSessionCreateOrConnectWithoutUserInput | ChatSessionCreateOrConnectWithoutUserInput[] upsert?: ChatSessionUpsertWithWhereUniqueWithoutUserInput | ChatSessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: ChatSessionCreateManyUserInputEnvelope set?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] disconnect?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] delete?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] connect?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] update?: ChatSessionUpdateWithWhereUniqueWithoutUserInput | ChatSessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ChatSessionUpdateManyWithWhereWithoutUserInput | ChatSessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: ChatSessionScalarWhereInput | ChatSessionScalarWhereInput[] } export type EstimateShareUpdateManyWithoutOwnerNestedInput = { create?: XOR | EstimateShareCreateWithoutOwnerInput[] | EstimateShareUncheckedCreateWithoutOwnerInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutOwnerInput | EstimateShareCreateOrConnectWithoutOwnerInput[] upsert?: EstimateShareUpsertWithWhereUniqueWithoutOwnerInput | EstimateShareUpsertWithWhereUniqueWithoutOwnerInput[] createMany?: EstimateShareCreateManyOwnerInputEnvelope set?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] disconnect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] delete?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] update?: EstimateShareUpdateWithWhereUniqueWithoutOwnerInput | EstimateShareUpdateWithWhereUniqueWithoutOwnerInput[] updateMany?: EstimateShareUpdateManyWithWhereWithoutOwnerInput | EstimateShareUpdateManyWithWhereWithoutOwnerInput[] deleteMany?: EstimateShareScalarWhereInput | EstimateShareScalarWhereInput[] } export type EstimateShareUpdateManyWithoutSharedWithNestedInput = { create?: XOR | EstimateShareCreateWithoutSharedWithInput[] | EstimateShareUncheckedCreateWithoutSharedWithInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutSharedWithInput | EstimateShareCreateOrConnectWithoutSharedWithInput[] upsert?: EstimateShareUpsertWithWhereUniqueWithoutSharedWithInput | EstimateShareUpsertWithWhereUniqueWithoutSharedWithInput[] createMany?: EstimateShareCreateManySharedWithInputEnvelope set?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] disconnect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] delete?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] update?: EstimateShareUpdateWithWhereUniqueWithoutSharedWithInput | EstimateShareUpdateWithWhereUniqueWithoutSharedWithInput[] updateMany?: EstimateShareUpdateManyWithWhereWithoutSharedWithInput | EstimateShareUpdateManyWithWhereWithoutSharedWithInput[] deleteMany?: EstimateShareScalarWhereInput | EstimateShareScalarWhereInput[] } export type EstimateShareNoteUpdateManyWithoutAuthorNestedInput = { create?: XOR | EstimateShareNoteCreateWithoutAuthorInput[] | EstimateShareNoteUncheckedCreateWithoutAuthorInput[] connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutAuthorInput | EstimateShareNoteCreateOrConnectWithoutAuthorInput[] upsert?: EstimateShareNoteUpsertWithWhereUniqueWithoutAuthorInput | EstimateShareNoteUpsertWithWhereUniqueWithoutAuthorInput[] createMany?: EstimateShareNoteCreateManyAuthorInputEnvelope set?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] disconnect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] delete?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] update?: EstimateShareNoteUpdateWithWhereUniqueWithoutAuthorInput | EstimateShareNoteUpdateWithWhereUniqueWithoutAuthorInput[] updateMany?: EstimateShareNoteUpdateManyWithWhereWithoutAuthorInput | EstimateShareNoteUpdateManyWithWhereWithoutAuthorInput[] deleteMany?: EstimateShareNoteScalarWhereInput | EstimateShareNoteScalarWhereInput[] } export type EstimateUncheckedUpdateManyWithoutOwnerNestedInput = { create?: XOR | EstimateCreateWithoutOwnerInput[] | EstimateUncheckedCreateWithoutOwnerInput[] connectOrCreate?: EstimateCreateOrConnectWithoutOwnerInput | EstimateCreateOrConnectWithoutOwnerInput[] upsert?: EstimateUpsertWithWhereUniqueWithoutOwnerInput | EstimateUpsertWithWhereUniqueWithoutOwnerInput[] createMany?: EstimateCreateManyOwnerInputEnvelope set?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] disconnect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] delete?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] update?: EstimateUpdateWithWhereUniqueWithoutOwnerInput | EstimateUpdateWithWhereUniqueWithoutOwnerInput[] updateMany?: EstimateUpdateManyWithWhereWithoutOwnerInput | EstimateUpdateManyWithWhereWithoutOwnerInput[] deleteMany?: EstimateScalarWhereInput | EstimateScalarWhereInput[] } export type ChatSessionUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | ChatSessionCreateWithoutUserInput[] | ChatSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: ChatSessionCreateOrConnectWithoutUserInput | ChatSessionCreateOrConnectWithoutUserInput[] upsert?: ChatSessionUpsertWithWhereUniqueWithoutUserInput | ChatSessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: ChatSessionCreateManyUserInputEnvelope set?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] disconnect?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] delete?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] connect?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[] update?: ChatSessionUpdateWithWhereUniqueWithoutUserInput | ChatSessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: ChatSessionUpdateManyWithWhereWithoutUserInput | ChatSessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: ChatSessionScalarWhereInput | ChatSessionScalarWhereInput[] } export type EstimateShareUncheckedUpdateManyWithoutOwnerNestedInput = { create?: XOR | EstimateShareCreateWithoutOwnerInput[] | EstimateShareUncheckedCreateWithoutOwnerInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutOwnerInput | EstimateShareCreateOrConnectWithoutOwnerInput[] upsert?: EstimateShareUpsertWithWhereUniqueWithoutOwnerInput | EstimateShareUpsertWithWhereUniqueWithoutOwnerInput[] createMany?: EstimateShareCreateManyOwnerInputEnvelope set?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] disconnect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] delete?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] update?: EstimateShareUpdateWithWhereUniqueWithoutOwnerInput | EstimateShareUpdateWithWhereUniqueWithoutOwnerInput[] updateMany?: EstimateShareUpdateManyWithWhereWithoutOwnerInput | EstimateShareUpdateManyWithWhereWithoutOwnerInput[] deleteMany?: EstimateShareScalarWhereInput | EstimateShareScalarWhereInput[] } export type EstimateShareUncheckedUpdateManyWithoutSharedWithNestedInput = { create?: XOR | EstimateShareCreateWithoutSharedWithInput[] | EstimateShareUncheckedCreateWithoutSharedWithInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutSharedWithInput | EstimateShareCreateOrConnectWithoutSharedWithInput[] upsert?: EstimateShareUpsertWithWhereUniqueWithoutSharedWithInput | EstimateShareUpsertWithWhereUniqueWithoutSharedWithInput[] createMany?: EstimateShareCreateManySharedWithInputEnvelope set?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] disconnect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] delete?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] update?: EstimateShareUpdateWithWhereUniqueWithoutSharedWithInput | EstimateShareUpdateWithWhereUniqueWithoutSharedWithInput[] updateMany?: EstimateShareUpdateManyWithWhereWithoutSharedWithInput | EstimateShareUpdateManyWithWhereWithoutSharedWithInput[] deleteMany?: EstimateShareScalarWhereInput | EstimateShareScalarWhereInput[] } export type EstimateShareNoteUncheckedUpdateManyWithoutAuthorNestedInput = { create?: XOR | EstimateShareNoteCreateWithoutAuthorInput[] | EstimateShareNoteUncheckedCreateWithoutAuthorInput[] connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutAuthorInput | EstimateShareNoteCreateOrConnectWithoutAuthorInput[] upsert?: EstimateShareNoteUpsertWithWhereUniqueWithoutAuthorInput | EstimateShareNoteUpsertWithWhereUniqueWithoutAuthorInput[] createMany?: EstimateShareNoteCreateManyAuthorInputEnvelope set?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] disconnect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] delete?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] update?: EstimateShareNoteUpdateWithWhereUniqueWithoutAuthorInput | EstimateShareNoteUpdateWithWhereUniqueWithoutAuthorInput[] updateMany?: EstimateShareNoteUpdateManyWithWhereWithoutAuthorInput | EstimateShareNoteUpdateManyWithWhereWithoutAuthorInput[] deleteMany?: EstimateShareNoteScalarWhereInput | EstimateShareNoteScalarWhereInput[] } export type EstimateCreateNestedManyWithoutDirectionInput = { create?: XOR | EstimateCreateWithoutDirectionInput[] | EstimateUncheckedCreateWithoutDirectionInput[] connectOrCreate?: EstimateCreateOrConnectWithoutDirectionInput | EstimateCreateOrConnectWithoutDirectionInput[] createMany?: EstimateCreateManyDirectionInputEnvelope connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] } export type EstimateUncheckedCreateNestedManyWithoutDirectionInput = { create?: XOR | EstimateCreateWithoutDirectionInput[] | EstimateUncheckedCreateWithoutDirectionInput[] connectOrCreate?: EstimateCreateOrConnectWithoutDirectionInput | EstimateCreateOrConnectWithoutDirectionInput[] createMany?: EstimateCreateManyDirectionInputEnvelope connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] } export type EstimateUpdateManyWithoutDirectionNestedInput = { create?: XOR | EstimateCreateWithoutDirectionInput[] | EstimateUncheckedCreateWithoutDirectionInput[] connectOrCreate?: EstimateCreateOrConnectWithoutDirectionInput | EstimateCreateOrConnectWithoutDirectionInput[] upsert?: EstimateUpsertWithWhereUniqueWithoutDirectionInput | EstimateUpsertWithWhereUniqueWithoutDirectionInput[] createMany?: EstimateCreateManyDirectionInputEnvelope set?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] disconnect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] delete?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] update?: EstimateUpdateWithWhereUniqueWithoutDirectionInput | EstimateUpdateWithWhereUniqueWithoutDirectionInput[] updateMany?: EstimateUpdateManyWithWhereWithoutDirectionInput | EstimateUpdateManyWithWhereWithoutDirectionInput[] deleteMany?: EstimateScalarWhereInput | EstimateScalarWhereInput[] } export type EstimateUncheckedUpdateManyWithoutDirectionNestedInput = { create?: XOR | EstimateCreateWithoutDirectionInput[] | EstimateUncheckedCreateWithoutDirectionInput[] connectOrCreate?: EstimateCreateOrConnectWithoutDirectionInput | EstimateCreateOrConnectWithoutDirectionInput[] upsert?: EstimateUpsertWithWhereUniqueWithoutDirectionInput | EstimateUpsertWithWhereUniqueWithoutDirectionInput[] createMany?: EstimateCreateManyDirectionInputEnvelope set?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] disconnect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] delete?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[] update?: EstimateUpdateWithWhereUniqueWithoutDirectionInput | EstimateUpdateWithWhereUniqueWithoutDirectionInput[] updateMany?: EstimateUpdateManyWithWhereWithoutDirectionInput | EstimateUpdateManyWithWhereWithoutDirectionInput[] deleteMany?: EstimateScalarWhereInput | EstimateScalarWhereInput[] } export type UserCreateNestedOneWithoutEstimatesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutEstimatesInput connect?: UserWhereUniqueInput } export type SurveyDirectionCreateNestedOneWithoutEstimatesInput = { create?: XOR connectOrCreate?: SurveyDirectionCreateOrConnectWithoutEstimatesInput connect?: SurveyDirectionWhereUniqueInput } export type EstimateItemCreateNestedManyWithoutEstimateInput = { create?: XOR | EstimateItemCreateWithoutEstimateInput[] | EstimateItemUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateItemCreateOrConnectWithoutEstimateInput | EstimateItemCreateOrConnectWithoutEstimateInput[] createMany?: EstimateItemCreateManyEstimateInputEnvelope connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] } export type EstimateTotalCreateNestedManyWithoutEstimateInput = { create?: XOR | EstimateTotalCreateWithoutEstimateInput[] | EstimateTotalUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateTotalCreateOrConnectWithoutEstimateInput | EstimateTotalCreateOrConnectWithoutEstimateInput[] createMany?: EstimateTotalCreateManyEstimateInputEnvelope connect?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] } export type EstimateShareCreateNestedManyWithoutEstimateInput = { create?: XOR | EstimateShareCreateWithoutEstimateInput[] | EstimateShareUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutEstimateInput | EstimateShareCreateOrConnectWithoutEstimateInput[] createMany?: EstimateShareCreateManyEstimateInputEnvelope connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] } export type EstimateVersionCreateNestedManyWithoutEstimateInput = { create?: XOR | EstimateVersionCreateWithoutEstimateInput[] | EstimateVersionUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateVersionCreateOrConnectWithoutEstimateInput | EstimateVersionCreateOrConnectWithoutEstimateInput[] createMany?: EstimateVersionCreateManyEstimateInputEnvelope connect?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] } export type EstimateItemUncheckedCreateNestedManyWithoutEstimateInput = { create?: XOR | EstimateItemCreateWithoutEstimateInput[] | EstimateItemUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateItemCreateOrConnectWithoutEstimateInput | EstimateItemCreateOrConnectWithoutEstimateInput[] createMany?: EstimateItemCreateManyEstimateInputEnvelope connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] } export type EstimateTotalUncheckedCreateNestedManyWithoutEstimateInput = { create?: XOR | EstimateTotalCreateWithoutEstimateInput[] | EstimateTotalUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateTotalCreateOrConnectWithoutEstimateInput | EstimateTotalCreateOrConnectWithoutEstimateInput[] createMany?: EstimateTotalCreateManyEstimateInputEnvelope connect?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] } export type EstimateShareUncheckedCreateNestedManyWithoutEstimateInput = { create?: XOR | EstimateShareCreateWithoutEstimateInput[] | EstimateShareUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutEstimateInput | EstimateShareCreateOrConnectWithoutEstimateInput[] createMany?: EstimateShareCreateManyEstimateInputEnvelope connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] } export type EstimateVersionUncheckedCreateNestedManyWithoutEstimateInput = { create?: XOR | EstimateVersionCreateWithoutEstimateInput[] | EstimateVersionUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateVersionCreateOrConnectWithoutEstimateInput | EstimateVersionCreateOrConnectWithoutEstimateInput[] createMany?: EstimateVersionCreateManyEstimateInputEnvelope connect?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] } export type UserUpdateOneRequiredWithoutEstimatesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutEstimatesInput upsert?: UserUpsertWithoutEstimatesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutEstimatesInput> } export type SurveyDirectionUpdateOneRequiredWithoutEstimatesNestedInput = { create?: XOR connectOrCreate?: SurveyDirectionCreateOrConnectWithoutEstimatesInput upsert?: SurveyDirectionUpsertWithoutEstimatesInput connect?: SurveyDirectionWhereUniqueInput update?: XOR, SurveyDirectionUncheckedUpdateWithoutEstimatesInput> } export type EstimateItemUpdateManyWithoutEstimateNestedInput = { create?: XOR | EstimateItemCreateWithoutEstimateInput[] | EstimateItemUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateItemCreateOrConnectWithoutEstimateInput | EstimateItemCreateOrConnectWithoutEstimateInput[] upsert?: EstimateItemUpsertWithWhereUniqueWithoutEstimateInput | EstimateItemUpsertWithWhereUniqueWithoutEstimateInput[] createMany?: EstimateItemCreateManyEstimateInputEnvelope set?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] disconnect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] delete?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] update?: EstimateItemUpdateWithWhereUniqueWithoutEstimateInput | EstimateItemUpdateWithWhereUniqueWithoutEstimateInput[] updateMany?: EstimateItemUpdateManyWithWhereWithoutEstimateInput | EstimateItemUpdateManyWithWhereWithoutEstimateInput[] deleteMany?: EstimateItemScalarWhereInput | EstimateItemScalarWhereInput[] } export type EstimateTotalUpdateManyWithoutEstimateNestedInput = { create?: XOR | EstimateTotalCreateWithoutEstimateInput[] | EstimateTotalUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateTotalCreateOrConnectWithoutEstimateInput | EstimateTotalCreateOrConnectWithoutEstimateInput[] upsert?: EstimateTotalUpsertWithWhereUniqueWithoutEstimateInput | EstimateTotalUpsertWithWhereUniqueWithoutEstimateInput[] createMany?: EstimateTotalCreateManyEstimateInputEnvelope set?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] disconnect?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] delete?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] connect?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] update?: EstimateTotalUpdateWithWhereUniqueWithoutEstimateInput | EstimateTotalUpdateWithWhereUniqueWithoutEstimateInput[] updateMany?: EstimateTotalUpdateManyWithWhereWithoutEstimateInput | EstimateTotalUpdateManyWithWhereWithoutEstimateInput[] deleteMany?: EstimateTotalScalarWhereInput | EstimateTotalScalarWhereInput[] } export type EstimateShareUpdateManyWithoutEstimateNestedInput = { create?: XOR | EstimateShareCreateWithoutEstimateInput[] | EstimateShareUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutEstimateInput | EstimateShareCreateOrConnectWithoutEstimateInput[] upsert?: EstimateShareUpsertWithWhereUniqueWithoutEstimateInput | EstimateShareUpsertWithWhereUniqueWithoutEstimateInput[] createMany?: EstimateShareCreateManyEstimateInputEnvelope set?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] disconnect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] delete?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] update?: EstimateShareUpdateWithWhereUniqueWithoutEstimateInput | EstimateShareUpdateWithWhereUniqueWithoutEstimateInput[] updateMany?: EstimateShareUpdateManyWithWhereWithoutEstimateInput | EstimateShareUpdateManyWithWhereWithoutEstimateInput[] deleteMany?: EstimateShareScalarWhereInput | EstimateShareScalarWhereInput[] } export type EstimateVersionUpdateManyWithoutEstimateNestedInput = { create?: XOR | EstimateVersionCreateWithoutEstimateInput[] | EstimateVersionUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateVersionCreateOrConnectWithoutEstimateInput | EstimateVersionCreateOrConnectWithoutEstimateInput[] upsert?: EstimateVersionUpsertWithWhereUniqueWithoutEstimateInput | EstimateVersionUpsertWithWhereUniqueWithoutEstimateInput[] createMany?: EstimateVersionCreateManyEstimateInputEnvelope set?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] disconnect?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] delete?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] connect?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] update?: EstimateVersionUpdateWithWhereUniqueWithoutEstimateInput | EstimateVersionUpdateWithWhereUniqueWithoutEstimateInput[] updateMany?: EstimateVersionUpdateManyWithWhereWithoutEstimateInput | EstimateVersionUpdateManyWithWhereWithoutEstimateInput[] deleteMany?: EstimateVersionScalarWhereInput | EstimateVersionScalarWhereInput[] } export type EstimateItemUncheckedUpdateManyWithoutEstimateNestedInput = { create?: XOR | EstimateItemCreateWithoutEstimateInput[] | EstimateItemUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateItemCreateOrConnectWithoutEstimateInput | EstimateItemCreateOrConnectWithoutEstimateInput[] upsert?: EstimateItemUpsertWithWhereUniqueWithoutEstimateInput | EstimateItemUpsertWithWhereUniqueWithoutEstimateInput[] createMany?: EstimateItemCreateManyEstimateInputEnvelope set?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] disconnect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] delete?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[] update?: EstimateItemUpdateWithWhereUniqueWithoutEstimateInput | EstimateItemUpdateWithWhereUniqueWithoutEstimateInput[] updateMany?: EstimateItemUpdateManyWithWhereWithoutEstimateInput | EstimateItemUpdateManyWithWhereWithoutEstimateInput[] deleteMany?: EstimateItemScalarWhereInput | EstimateItemScalarWhereInput[] } export type EstimateTotalUncheckedUpdateManyWithoutEstimateNestedInput = { create?: XOR | EstimateTotalCreateWithoutEstimateInput[] | EstimateTotalUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateTotalCreateOrConnectWithoutEstimateInput | EstimateTotalCreateOrConnectWithoutEstimateInput[] upsert?: EstimateTotalUpsertWithWhereUniqueWithoutEstimateInput | EstimateTotalUpsertWithWhereUniqueWithoutEstimateInput[] createMany?: EstimateTotalCreateManyEstimateInputEnvelope set?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] disconnect?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] delete?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] connect?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[] update?: EstimateTotalUpdateWithWhereUniqueWithoutEstimateInput | EstimateTotalUpdateWithWhereUniqueWithoutEstimateInput[] updateMany?: EstimateTotalUpdateManyWithWhereWithoutEstimateInput | EstimateTotalUpdateManyWithWhereWithoutEstimateInput[] deleteMany?: EstimateTotalScalarWhereInput | EstimateTotalScalarWhereInput[] } export type EstimateShareUncheckedUpdateManyWithoutEstimateNestedInput = { create?: XOR | EstimateShareCreateWithoutEstimateInput[] | EstimateShareUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateShareCreateOrConnectWithoutEstimateInput | EstimateShareCreateOrConnectWithoutEstimateInput[] upsert?: EstimateShareUpsertWithWhereUniqueWithoutEstimateInput | EstimateShareUpsertWithWhereUniqueWithoutEstimateInput[] createMany?: EstimateShareCreateManyEstimateInputEnvelope set?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] disconnect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] delete?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[] update?: EstimateShareUpdateWithWhereUniqueWithoutEstimateInput | EstimateShareUpdateWithWhereUniqueWithoutEstimateInput[] updateMany?: EstimateShareUpdateManyWithWhereWithoutEstimateInput | EstimateShareUpdateManyWithWhereWithoutEstimateInput[] deleteMany?: EstimateShareScalarWhereInput | EstimateShareScalarWhereInput[] } export type EstimateVersionUncheckedUpdateManyWithoutEstimateNestedInput = { create?: XOR | EstimateVersionCreateWithoutEstimateInput[] | EstimateVersionUncheckedCreateWithoutEstimateInput[] connectOrCreate?: EstimateVersionCreateOrConnectWithoutEstimateInput | EstimateVersionCreateOrConnectWithoutEstimateInput[] upsert?: EstimateVersionUpsertWithWhereUniqueWithoutEstimateInput | EstimateVersionUpsertWithWhereUniqueWithoutEstimateInput[] createMany?: EstimateVersionCreateManyEstimateInputEnvelope set?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] disconnect?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] delete?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] connect?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[] update?: EstimateVersionUpdateWithWhereUniqueWithoutEstimateInput | EstimateVersionUpdateWithWhereUniqueWithoutEstimateInput[] updateMany?: EstimateVersionUpdateManyWithWhereWithoutEstimateInput | EstimateVersionUpdateManyWithWhereWithoutEstimateInput[] deleteMany?: EstimateVersionScalarWhereInput | EstimateVersionScalarWhereInput[] } export type EstimateCreateNestedOneWithoutVersionsInput = { create?: XOR connectOrCreate?: EstimateCreateOrConnectWithoutVersionsInput connect?: EstimateWhereUniqueInput } export type EstimateUpdateOneRequiredWithoutVersionsNestedInput = { create?: XOR connectOrCreate?: EstimateCreateOrConnectWithoutVersionsInput upsert?: EstimateUpsertWithoutVersionsInput connect?: EstimateWhereUniqueInput update?: XOR, EstimateUncheckedUpdateWithoutVersionsInput> } export type EstimateCreateNestedOneWithoutSharesInput = { create?: XOR connectOrCreate?: EstimateCreateOrConnectWithoutSharesInput connect?: EstimateWhereUniqueInput } export type UserCreateNestedOneWithoutReceivedSharesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput connect?: UserWhereUniqueInput } export type UserCreateNestedOneWithoutOwnedSharesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutOwnedSharesInput connect?: UserWhereUniqueInput } export type EstimateShareNoteCreateNestedManyWithoutShareInput = { create?: XOR | EstimateShareNoteCreateWithoutShareInput[] | EstimateShareNoteUncheckedCreateWithoutShareInput[] connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutShareInput | EstimateShareNoteCreateOrConnectWithoutShareInput[] createMany?: EstimateShareNoteCreateManyShareInputEnvelope connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] } export type EstimateShareNoteUncheckedCreateNestedManyWithoutShareInput = { create?: XOR | EstimateShareNoteCreateWithoutShareInput[] | EstimateShareNoteUncheckedCreateWithoutShareInput[] connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutShareInput | EstimateShareNoteCreateOrConnectWithoutShareInput[] createMany?: EstimateShareNoteCreateManyShareInputEnvelope connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] } export type EstimateUpdateOneRequiredWithoutSharesNestedInput = { create?: XOR connectOrCreate?: EstimateCreateOrConnectWithoutSharesInput upsert?: EstimateUpsertWithoutSharesInput connect?: EstimateWhereUniqueInput update?: XOR, EstimateUncheckedUpdateWithoutSharesInput> } export type UserUpdateOneRequiredWithoutReceivedSharesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput upsert?: UserUpsertWithoutReceivedSharesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutReceivedSharesInput> } export type UserUpdateOneRequiredWithoutOwnedSharesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutOwnedSharesInput upsert?: UserUpsertWithoutOwnedSharesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutOwnedSharesInput> } export type EstimateShareNoteUpdateManyWithoutShareNestedInput = { create?: XOR | EstimateShareNoteCreateWithoutShareInput[] | EstimateShareNoteUncheckedCreateWithoutShareInput[] connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutShareInput | EstimateShareNoteCreateOrConnectWithoutShareInput[] upsert?: EstimateShareNoteUpsertWithWhereUniqueWithoutShareInput | EstimateShareNoteUpsertWithWhereUniqueWithoutShareInput[] createMany?: EstimateShareNoteCreateManyShareInputEnvelope set?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] disconnect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] delete?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] update?: EstimateShareNoteUpdateWithWhereUniqueWithoutShareInput | EstimateShareNoteUpdateWithWhereUniqueWithoutShareInput[] updateMany?: EstimateShareNoteUpdateManyWithWhereWithoutShareInput | EstimateShareNoteUpdateManyWithWhereWithoutShareInput[] deleteMany?: EstimateShareNoteScalarWhereInput | EstimateShareNoteScalarWhereInput[] } export type EstimateShareNoteUncheckedUpdateManyWithoutShareNestedInput = { create?: XOR | EstimateShareNoteCreateWithoutShareInput[] | EstimateShareNoteUncheckedCreateWithoutShareInput[] connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutShareInput | EstimateShareNoteCreateOrConnectWithoutShareInput[] upsert?: EstimateShareNoteUpsertWithWhereUniqueWithoutShareInput | EstimateShareNoteUpsertWithWhereUniqueWithoutShareInput[] createMany?: EstimateShareNoteCreateManyShareInputEnvelope set?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] disconnect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] delete?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[] update?: EstimateShareNoteUpdateWithWhereUniqueWithoutShareInput | EstimateShareNoteUpdateWithWhereUniqueWithoutShareInput[] updateMany?: EstimateShareNoteUpdateManyWithWhereWithoutShareInput | EstimateShareNoteUpdateManyWithWhereWithoutShareInput[] deleteMany?: EstimateShareNoteScalarWhereInput | EstimateShareNoteScalarWhereInput[] } export type EstimateShareCreateNestedOneWithoutNotesInput = { create?: XOR connectOrCreate?: EstimateShareCreateOrConnectWithoutNotesInput connect?: EstimateShareWhereUniqueInput } export type UserCreateNestedOneWithoutShareNotesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutShareNotesInput connect?: UserWhereUniqueInput } export type EstimateShareUpdateOneRequiredWithoutNotesNestedInput = { create?: XOR connectOrCreate?: EstimateShareCreateOrConnectWithoutNotesInput upsert?: EstimateShareUpsertWithoutNotesInput connect?: EstimateShareWhereUniqueInput update?: XOR, EstimateShareUncheckedUpdateWithoutNotesInput> } export type UserUpdateOneRequiredWithoutShareNotesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutShareNotesInput upsert?: UserUpsertWithoutShareNotesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutShareNotesInput> } export type EstimateCreateNestedOneWithoutItemsInput = { create?: XOR connectOrCreate?: EstimateCreateOrConnectWithoutItemsInput connect?: EstimateWhereUniqueInput } export type PriceItemCreateNestedOneWithoutEstimateItemsInput = { create?: XOR connectOrCreate?: PriceItemCreateOrConnectWithoutEstimateItemsInput connect?: PriceItemWhereUniqueInput } export type EstimateUpdateOneRequiredWithoutItemsNestedInput = { create?: XOR connectOrCreate?: EstimateCreateOrConnectWithoutItemsInput upsert?: EstimateUpsertWithoutItemsInput connect?: EstimateWhereUniqueInput update?: XOR, EstimateUncheckedUpdateWithoutItemsInput> } export type PriceItemUpdateOneWithoutEstimateItemsNestedInput = { create?: XOR connectOrCreate?: PriceItemCreateOrConnectWithoutEstimateItemsInput upsert?: PriceItemUpsertWithoutEstimateItemsInput disconnect?: PriceItemWhereInput | boolean delete?: PriceItemWhereInput | boolean connect?: PriceItemWhereUniqueInput update?: XOR, PriceItemUncheckedUpdateWithoutEstimateItemsInput> } export type EstimateCreateNestedOneWithoutTotalsInput = { create?: XOR connectOrCreate?: EstimateCreateOrConnectWithoutTotalsInput connect?: EstimateWhereUniqueInput } export type EstimateUpdateOneRequiredWithoutTotalsNestedInput = { create?: XOR connectOrCreate?: EstimateCreateOrConnectWithoutTotalsInput upsert?: EstimateUpsertWithoutTotalsInput connect?: EstimateWhereUniqueInput update?: XOR, EstimateUncheckedUpdateWithoutTotalsInput> } export type UserCreateNestedOneWithoutChatSessionsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutChatSessionsInput connect?: UserWhereUniqueInput } export type ChatMessageCreateNestedManyWithoutSessionInput = { create?: XOR | ChatMessageCreateWithoutSessionInput[] | ChatMessageUncheckedCreateWithoutSessionInput[] connectOrCreate?: ChatMessageCreateOrConnectWithoutSessionInput | ChatMessageCreateOrConnectWithoutSessionInput[] createMany?: ChatMessageCreateManySessionInputEnvelope connect?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] } export type ChatMessageUncheckedCreateNestedManyWithoutSessionInput = { create?: XOR | ChatMessageCreateWithoutSessionInput[] | ChatMessageUncheckedCreateWithoutSessionInput[] connectOrCreate?: ChatMessageCreateOrConnectWithoutSessionInput | ChatMessageCreateOrConnectWithoutSessionInput[] createMany?: ChatMessageCreateManySessionInputEnvelope connect?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] } export type UserUpdateOneRequiredWithoutChatSessionsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutChatSessionsInput upsert?: UserUpsertWithoutChatSessionsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutChatSessionsInput> } export type ChatMessageUpdateManyWithoutSessionNestedInput = { create?: XOR | ChatMessageCreateWithoutSessionInput[] | ChatMessageUncheckedCreateWithoutSessionInput[] connectOrCreate?: ChatMessageCreateOrConnectWithoutSessionInput | ChatMessageCreateOrConnectWithoutSessionInput[] upsert?: ChatMessageUpsertWithWhereUniqueWithoutSessionInput | ChatMessageUpsertWithWhereUniqueWithoutSessionInput[] createMany?: ChatMessageCreateManySessionInputEnvelope set?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] disconnect?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] delete?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] connect?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] update?: ChatMessageUpdateWithWhereUniqueWithoutSessionInput | ChatMessageUpdateWithWhereUniqueWithoutSessionInput[] updateMany?: ChatMessageUpdateManyWithWhereWithoutSessionInput | ChatMessageUpdateManyWithWhereWithoutSessionInput[] deleteMany?: ChatMessageScalarWhereInput | ChatMessageScalarWhereInput[] } export type ChatMessageUncheckedUpdateManyWithoutSessionNestedInput = { create?: XOR | ChatMessageCreateWithoutSessionInput[] | ChatMessageUncheckedCreateWithoutSessionInput[] connectOrCreate?: ChatMessageCreateOrConnectWithoutSessionInput | ChatMessageCreateOrConnectWithoutSessionInput[] upsert?: ChatMessageUpsertWithWhereUniqueWithoutSessionInput | ChatMessageUpsertWithWhereUniqueWithoutSessionInput[] createMany?: ChatMessageCreateManySessionInputEnvelope set?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] disconnect?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] delete?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] connect?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[] update?: ChatMessageUpdateWithWhereUniqueWithoutSessionInput | ChatMessageUpdateWithWhereUniqueWithoutSessionInput[] updateMany?: ChatMessageUpdateManyWithWhereWithoutSessionInput | ChatMessageUpdateManyWithWhereWithoutSessionInput[] deleteMany?: ChatMessageScalarWhereInput | ChatMessageScalarWhereInput[] } export type ChatSessionCreateNestedOneWithoutMessagesInput = { create?: XOR connectOrCreate?: ChatSessionCreateOrConnectWithoutMessagesInput connect?: ChatSessionWhereUniqueInput } export type ChatSessionUpdateOneRequiredWithoutMessagesNestedInput = { create?: XOR connectOrCreate?: ChatSessionCreateOrConnectWithoutMessagesInput upsert?: ChatSessionUpsertWithoutMessagesInput connect?: ChatSessionWhereUniqueInput update?: XOR, ChatSessionUncheckedUpdateWithoutMessagesInput> } export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringFilter<$PrismaModel> | string } export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeFilter<$PrismaModel> | Date | string } export type NestedStringNullableFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableFilter<$PrismaModel> | string | null } export type NestedDateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | 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 NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type NestedIntFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntFilter<$PrismaModel> | number } export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedDateTimeFilter<$PrismaModel> _max?: NestedDateTimeFilter<$PrismaModel> } export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | 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 NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type NestedFloatFilter<$PrismaModel = never> = { equals?: number | FloatFieldRefInput<$PrismaModel> in?: number[] | ListFloatFieldRefInput<$PrismaModel> notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> lt?: number | FloatFieldRefInput<$PrismaModel> lte?: number | FloatFieldRefInput<$PrismaModel> gt?: number | FloatFieldRefInput<$PrismaModel> gte?: number | FloatFieldRefInput<$PrismaModel> not?: NestedFloatFilter<$PrismaModel> | number } export type NestedJsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedDecimalNullableFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null } export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> | null lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedDecimalNullableFilter<$PrismaModel> _sum?: NestedDecimalNullableFilter<$PrismaModel> _min?: NestedDecimalNullableFilter<$PrismaModel> _max?: NestedDecimalNullableFilter<$PrismaModel> } export type NestedDecimalFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string } export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = { equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> in?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | ListDecimalFieldRefInput<$PrismaModel> lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string _count?: NestedIntFilter<$PrismaModel> _avg?: NestedDecimalFilter<$PrismaModel> _sum?: NestedDecimalFilter<$PrismaModel> _min?: NestedDecimalFilter<$PrismaModel> _max?: NestedDecimalFilter<$PrismaModel> } export type NestedJsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type PriceTableCreateWithoutPriceBookInput = { id?: string tableNumber: number name: string unit: string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string items?: PriceItemCreateNestedManyWithoutPriceTableInput } export type PriceTableUncheckedCreateWithoutPriceBookInput = { id?: string tableNumber: number name: string unit: string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string items?: PriceItemUncheckedCreateNestedManyWithoutPriceTableInput } export type PriceTableCreateOrConnectWithoutPriceBookInput = { where: PriceTableWhereUniqueInput create: XOR } export type PriceTableCreateManyPriceBookInputEnvelope = { data: PriceTableCreateManyPriceBookInput | PriceTableCreateManyPriceBookInput[] skipDuplicates?: boolean } export type PriceItemCreateWithoutPriceBookInput = { id?: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string priceTable: PriceTableCreateNestedOneWithoutItemsInput estimateItems?: EstimateItemCreateNestedManyWithoutPriceItemInput } export type PriceItemUncheckedCreateWithoutPriceBookInput = { id?: string priceTableId: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string estimateItems?: EstimateItemUncheckedCreateNestedManyWithoutPriceItemInput } export type PriceItemCreateOrConnectWithoutPriceBookInput = { where: PriceItemWhereUniqueInput create: XOR } export type PriceItemCreateManyPriceBookInputEnvelope = { data: PriceItemCreateManyPriceBookInput | PriceItemCreateManyPriceBookInput[] skipDuplicates?: boolean } export type PriceTableUpsertWithWhereUniqueWithoutPriceBookInput = { where: PriceTableWhereUniqueInput update: XOR create: XOR } export type PriceTableUpdateWithWhereUniqueWithoutPriceBookInput = { where: PriceTableWhereUniqueInput data: XOR } export type PriceTableUpdateManyWithWhereWithoutPriceBookInput = { where: PriceTableScalarWhereInput data: XOR } export type PriceTableScalarWhereInput = { AND?: PriceTableScalarWhereInput | PriceTableScalarWhereInput[] OR?: PriceTableScalarWhereInput[] NOT?: PriceTableScalarWhereInput | PriceTableScalarWhereInput[] id?: StringFilter<"PriceTable"> | string priceBookId?: StringFilter<"PriceTable"> | string tableNumber?: IntFilter<"PriceTable"> | number name?: StringFilter<"PriceTable"> | string unit?: StringFilter<"PriceTable"> | string notes?: JsonNullableFilter<"PriceTable"> createdAt?: DateTimeFilter<"PriceTable"> | Date | string updatedAt?: DateTimeFilter<"PriceTable"> | Date | string } export type PriceItemUpsertWithWhereUniqueWithoutPriceBookInput = { where: PriceItemWhereUniqueInput update: XOR create: XOR } export type PriceItemUpdateWithWhereUniqueWithoutPriceBookInput = { where: PriceItemWhereUniqueInput data: XOR } export type PriceItemUpdateManyWithWhereWithoutPriceBookInput = { where: PriceItemScalarWhereInput data: XOR } export type PriceItemScalarWhereInput = { AND?: PriceItemScalarWhereInput | PriceItemScalarWhereInput[] OR?: PriceItemScalarWhereInput[] NOT?: PriceItemScalarWhereInput | PriceItemScalarWhereInput[] id?: StringFilter<"PriceItem"> | string priceBookId?: StringFilter<"PriceItem"> | string priceTableId?: StringFilter<"PriceItem"> | string paragraph?: StringFilter<"PriceItem"> | string workType?: StringFilter<"PriceItem"> | string description?: StringNullableFilter<"PriceItem"> | string | null priceField1?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice1?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceField2?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice2?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceField3?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceOffice3?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null priceSimple?: DecimalNullableFilter<"PriceItem"> | Decimal | DecimalJsLike | number | string | null attributes?: JsonNullableFilter<"PriceItem"> createdAt?: DateTimeFilter<"PriceItem"> | Date | string updatedAt?: DateTimeFilter<"PriceItem"> | Date | string } export type PriceBookCreateWithoutTablesInput = { id?: string code: string name: string baseDate: Date | string approvedBy?: string | null effectiveDate?: Date | string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string items?: PriceItemCreateNestedManyWithoutPriceBookInput } export type PriceBookUncheckedCreateWithoutTablesInput = { id?: string code: string name: string baseDate: Date | string approvedBy?: string | null effectiveDate?: Date | string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string items?: PriceItemUncheckedCreateNestedManyWithoutPriceBookInput } export type PriceBookCreateOrConnectWithoutTablesInput = { where: PriceBookWhereUniqueInput create: XOR } export type PriceItemCreateWithoutPriceTableInput = { id?: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string priceBook: PriceBookCreateNestedOneWithoutItemsInput estimateItems?: EstimateItemCreateNestedManyWithoutPriceItemInput } export type PriceItemUncheckedCreateWithoutPriceTableInput = { id?: string priceBookId: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string estimateItems?: EstimateItemUncheckedCreateNestedManyWithoutPriceItemInput } export type PriceItemCreateOrConnectWithoutPriceTableInput = { where: PriceItemWhereUniqueInput create: XOR } export type PriceItemCreateManyPriceTableInputEnvelope = { data: PriceItemCreateManyPriceTableInput | PriceItemCreateManyPriceTableInput[] skipDuplicates?: boolean } export type PriceBookUpsertWithoutTablesInput = { update: XOR create: XOR where?: PriceBookWhereInput } export type PriceBookUpdateToOneWithWhereWithoutTablesInput = { where?: PriceBookWhereInput data: XOR } export type PriceBookUpdateWithoutTablesInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string approvedBy?: NullableStringFieldUpdateOperationsInput | string | null effectiveDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: PriceItemUpdateManyWithoutPriceBookNestedInput } export type PriceBookUncheckedUpdateWithoutTablesInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string approvedBy?: NullableStringFieldUpdateOperationsInput | string | null effectiveDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: PriceItemUncheckedUpdateManyWithoutPriceBookNestedInput } export type PriceItemUpsertWithWhereUniqueWithoutPriceTableInput = { where: PriceItemWhereUniqueInput update: XOR create: XOR } export type PriceItemUpdateWithWhereUniqueWithoutPriceTableInput = { where: PriceItemWhereUniqueInput data: XOR } export type PriceItemUpdateManyWithWhereWithoutPriceTableInput = { where: PriceItemScalarWhereInput data: XOR } export type PriceBookCreateWithoutItemsInput = { id?: string code: string name: string baseDate: Date | string approvedBy?: string | null effectiveDate?: Date | string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string tables?: PriceTableCreateNestedManyWithoutPriceBookInput } export type PriceBookUncheckedCreateWithoutItemsInput = { id?: string code: string name: string baseDate: Date | string approvedBy?: string | null effectiveDate?: Date | string | null isActive?: boolean createdAt?: Date | string updatedAt?: Date | string tables?: PriceTableUncheckedCreateNestedManyWithoutPriceBookInput } export type PriceBookCreateOrConnectWithoutItemsInput = { where: PriceBookWhereUniqueInput create: XOR } export type PriceTableCreateWithoutItemsInput = { id?: string tableNumber: number name: string unit: string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string priceBook: PriceBookCreateNestedOneWithoutTablesInput } export type PriceTableUncheckedCreateWithoutItemsInput = { id?: string priceBookId: string tableNumber: number name: string unit: string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PriceTableCreateOrConnectWithoutItemsInput = { where: PriceTableWhereUniqueInput create: XOR } export type EstimateItemCreateWithoutPriceItemInput = { id?: string orderNumber: number sectionType: string workName: string justification?: string | null basePrice: Decimal | DecimalJsLike | number | string quantity: Decimal | DecimalJsLike | number | string unit?: string | null coef1?: Decimal | DecimalJsLike | number | string | null coef1Desc?: string | null coef2?: Decimal | DecimalJsLike | number | string | null coef2Desc?: string | null coef3?: Decimal | DecimalJsLike | number | string | null coef3Desc?: string | null totalPrice: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string estimate: EstimateCreateNestedOneWithoutItemsInput } export type EstimateItemUncheckedCreateWithoutPriceItemInput = { id?: string estimateId: string orderNumber: number sectionType: string workName: string justification?: string | null basePrice: Decimal | DecimalJsLike | number | string quantity: Decimal | DecimalJsLike | number | string unit?: string | null coef1?: Decimal | DecimalJsLike | number | string | null coef1Desc?: string | null coef2?: Decimal | DecimalJsLike | number | string | null coef2Desc?: string | null coef3?: Decimal | DecimalJsLike | number | string | null coef3Desc?: string | null totalPrice: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateItemCreateOrConnectWithoutPriceItemInput = { where: EstimateItemWhereUniqueInput create: XOR } export type EstimateItemCreateManyPriceItemInputEnvelope = { data: EstimateItemCreateManyPriceItemInput | EstimateItemCreateManyPriceItemInput[] skipDuplicates?: boolean } export type PriceBookUpsertWithoutItemsInput = { update: XOR create: XOR where?: PriceBookWhereInput } export type PriceBookUpdateToOneWithWhereWithoutItemsInput = { where?: PriceBookWhereInput data: XOR } export type PriceBookUpdateWithoutItemsInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string approvedBy?: NullableStringFieldUpdateOperationsInput | string | null effectiveDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string tables?: PriceTableUpdateManyWithoutPriceBookNestedInput } export type PriceBookUncheckedUpdateWithoutItemsInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string baseDate?: DateTimeFieldUpdateOperationsInput | Date | string approvedBy?: NullableStringFieldUpdateOperationsInput | string | null effectiveDate?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null isActive?: BoolFieldUpdateOperationsInput | boolean createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string tables?: PriceTableUncheckedUpdateManyWithoutPriceBookNestedInput } export type PriceTableUpsertWithoutItemsInput = { update: XOR create: XOR where?: PriceTableWhereInput } export type PriceTableUpdateToOneWithWhereWithoutItemsInput = { where?: PriceTableWhereInput data: XOR } export type PriceTableUpdateWithoutItemsInput = { id?: StringFieldUpdateOperationsInput | string tableNumber?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string priceBook?: PriceBookUpdateOneRequiredWithoutTablesNestedInput } export type PriceTableUncheckedUpdateWithoutItemsInput = { id?: StringFieldUpdateOperationsInput | string priceBookId?: StringFieldUpdateOperationsInput | string tableNumber?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateItemUpsertWithWhereUniqueWithoutPriceItemInput = { where: EstimateItemWhereUniqueInput update: XOR create: XOR } export type EstimateItemUpdateWithWhereUniqueWithoutPriceItemInput = { where: EstimateItemWhereUniqueInput data: XOR } export type EstimateItemUpdateManyWithWhereWithoutPriceItemInput = { where: EstimateItemScalarWhereInput data: XOR } export type EstimateItemScalarWhereInput = { AND?: EstimateItemScalarWhereInput | EstimateItemScalarWhereInput[] OR?: EstimateItemScalarWhereInput[] NOT?: EstimateItemScalarWhereInput | EstimateItemScalarWhereInput[] id?: StringFilter<"EstimateItem"> | string estimateId?: StringFilter<"EstimateItem"> | string orderNumber?: IntFilter<"EstimateItem"> | number sectionType?: StringFilter<"EstimateItem"> | string priceItemId?: StringNullableFilter<"EstimateItem"> | string | null workName?: StringFilter<"EstimateItem"> | string justification?: StringNullableFilter<"EstimateItem"> | string | null basePrice?: DecimalFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string quantity?: DecimalFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string unit?: StringNullableFilter<"EstimateItem"> | string | null coef1?: DecimalNullableFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef1Desc?: StringNullableFilter<"EstimateItem"> | string | null coef2?: DecimalNullableFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef2Desc?: StringNullableFilter<"EstimateItem"> | string | null coef3?: DecimalNullableFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string | null coef3Desc?: StringNullableFilter<"EstimateItem"> | string | null totalPrice?: DecimalFilter<"EstimateItem"> | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFilter<"EstimateItem"> | Date | string updatedAt?: DateTimeFilter<"EstimateItem"> | Date | string } export type EstimateCreateWithoutOwnerInput = { id?: string number: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string direction: SurveyDirectionCreateNestedOneWithoutEstimatesInput items?: EstimateItemCreateNestedManyWithoutEstimateInput totals?: EstimateTotalCreateNestedManyWithoutEstimateInput shares?: EstimateShareCreateNestedManyWithoutEstimateInput versions?: EstimateVersionCreateNestedManyWithoutEstimateInput } export type EstimateUncheckedCreateWithoutOwnerInput = { id?: string number: string directionId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string items?: EstimateItemUncheckedCreateNestedManyWithoutEstimateInput totals?: EstimateTotalUncheckedCreateNestedManyWithoutEstimateInput shares?: EstimateShareUncheckedCreateNestedManyWithoutEstimateInput versions?: EstimateVersionUncheckedCreateNestedManyWithoutEstimateInput } export type EstimateCreateOrConnectWithoutOwnerInput = { where: EstimateWhereUniqueInput create: XOR } export type EstimateCreateManyOwnerInputEnvelope = { data: EstimateCreateManyOwnerInput | EstimateCreateManyOwnerInput[] skipDuplicates?: boolean } export type ChatSessionCreateWithoutUserInput = { id?: string estimateId?: string | null status?: string createdAt?: Date | string updatedAt?: Date | string messages?: ChatMessageCreateNestedManyWithoutSessionInput } export type ChatSessionUncheckedCreateWithoutUserInput = { id?: string estimateId?: string | null status?: string createdAt?: Date | string updatedAt?: Date | string messages?: ChatMessageUncheckedCreateNestedManyWithoutSessionInput } export type ChatSessionCreateOrConnectWithoutUserInput = { where: ChatSessionWhereUniqueInput create: XOR } export type ChatSessionCreateManyUserInputEnvelope = { data: ChatSessionCreateManyUserInput | ChatSessionCreateManyUserInput[] skipDuplicates?: boolean } export type EstimateShareCreateWithoutOwnerInput = { id?: string createdAt?: Date | string estimate: EstimateCreateNestedOneWithoutSharesInput sharedWith: UserCreateNestedOneWithoutReceivedSharesInput notes?: EstimateShareNoteCreateNestedManyWithoutShareInput } export type EstimateShareUncheckedCreateWithoutOwnerInput = { id?: string estimateId: string sharedWithId: string createdAt?: Date | string notes?: EstimateShareNoteUncheckedCreateNestedManyWithoutShareInput } export type EstimateShareCreateOrConnectWithoutOwnerInput = { where: EstimateShareWhereUniqueInput create: XOR } export type EstimateShareCreateManyOwnerInputEnvelope = { data: EstimateShareCreateManyOwnerInput | EstimateShareCreateManyOwnerInput[] skipDuplicates?: boolean } export type EstimateShareCreateWithoutSharedWithInput = { id?: string createdAt?: Date | string estimate: EstimateCreateNestedOneWithoutSharesInput owner: UserCreateNestedOneWithoutOwnedSharesInput notes?: EstimateShareNoteCreateNestedManyWithoutShareInput } export type EstimateShareUncheckedCreateWithoutSharedWithInput = { id?: string estimateId: string ownerId: string createdAt?: Date | string notes?: EstimateShareNoteUncheckedCreateNestedManyWithoutShareInput } export type EstimateShareCreateOrConnectWithoutSharedWithInput = { where: EstimateShareWhereUniqueInput create: XOR } export type EstimateShareCreateManySharedWithInputEnvelope = { data: EstimateShareCreateManySharedWithInput | EstimateShareCreateManySharedWithInput[] skipDuplicates?: boolean } export type EstimateShareNoteCreateWithoutAuthorInput = { id?: string content: string createdAt?: Date | string share: EstimateShareCreateNestedOneWithoutNotesInput } export type EstimateShareNoteUncheckedCreateWithoutAuthorInput = { id?: string shareId: string content: string createdAt?: Date | string } export type EstimateShareNoteCreateOrConnectWithoutAuthorInput = { where: EstimateShareNoteWhereUniqueInput create: XOR } export type EstimateShareNoteCreateManyAuthorInputEnvelope = { data: EstimateShareNoteCreateManyAuthorInput | EstimateShareNoteCreateManyAuthorInput[] skipDuplicates?: boolean } export type EstimateUpsertWithWhereUniqueWithoutOwnerInput = { where: EstimateWhereUniqueInput update: XOR create: XOR } export type EstimateUpdateWithWhereUniqueWithoutOwnerInput = { where: EstimateWhereUniqueInput data: XOR } export type EstimateUpdateManyWithWhereWithoutOwnerInput = { where: EstimateScalarWhereInput data: XOR } export type EstimateScalarWhereInput = { AND?: EstimateScalarWhereInput | EstimateScalarWhereInput[] OR?: EstimateScalarWhereInput[] NOT?: EstimateScalarWhereInput | EstimateScalarWhereInput[] id?: StringFilter<"Estimate"> | string number?: StringFilter<"Estimate"> | string directionId?: StringFilter<"Estimate"> | string ownerId?: StringFilter<"Estimate"> | string objectName?: StringFilter<"Estimate"> | string customer?: StringFilter<"Estimate"> | string executor?: StringFilter<"Estimate"> | string totalFieldWorks?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalLaboratory?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null subtotal?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null regionalCoef?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: StringNullableFilter<"Estimate"> | string | null inflationIndex?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null inflationDocRef?: StringNullableFilter<"Estimate"> | string | null companyCoef?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: StringNullableFilter<"Estimate"> | string | null executorCoef?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: StringNullableFilter<"Estimate"> | string | null withVat?: BoolFilter<"Estimate"> | boolean totalWithoutVat?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null vatRate?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null vatAmount?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null totalWithVat?: DecimalNullableFilter<"Estimate"> | Decimal | DecimalJsLike | number | string | null status?: StringFilter<"Estimate"> | string createdAt?: DateTimeFilter<"Estimate"> | Date | string updatedAt?: DateTimeFilter<"Estimate"> | Date | string } export type ChatSessionUpsertWithWhereUniqueWithoutUserInput = { where: ChatSessionWhereUniqueInput update: XOR create: XOR } export type ChatSessionUpdateWithWhereUniqueWithoutUserInput = { where: ChatSessionWhereUniqueInput data: XOR } export type ChatSessionUpdateManyWithWhereWithoutUserInput = { where: ChatSessionScalarWhereInput data: XOR } export type ChatSessionScalarWhereInput = { AND?: ChatSessionScalarWhereInput | ChatSessionScalarWhereInput[] OR?: ChatSessionScalarWhereInput[] NOT?: ChatSessionScalarWhereInput | ChatSessionScalarWhereInput[] id?: StringFilter<"ChatSession"> | string userId?: StringFilter<"ChatSession"> | string estimateId?: StringNullableFilter<"ChatSession"> | string | null status?: StringFilter<"ChatSession"> | string createdAt?: DateTimeFilter<"ChatSession"> | Date | string updatedAt?: DateTimeFilter<"ChatSession"> | Date | string } export type EstimateShareUpsertWithWhereUniqueWithoutOwnerInput = { where: EstimateShareWhereUniqueInput update: XOR create: XOR } export type EstimateShareUpdateWithWhereUniqueWithoutOwnerInput = { where: EstimateShareWhereUniqueInput data: XOR } export type EstimateShareUpdateManyWithWhereWithoutOwnerInput = { where: EstimateShareScalarWhereInput data: XOR } export type EstimateShareScalarWhereInput = { AND?: EstimateShareScalarWhereInput | EstimateShareScalarWhereInput[] OR?: EstimateShareScalarWhereInput[] NOT?: EstimateShareScalarWhereInput | EstimateShareScalarWhereInput[] id?: StringFilter<"EstimateShare"> | string estimateId?: StringFilter<"EstimateShare"> | string ownerId?: StringFilter<"EstimateShare"> | string sharedWithId?: StringFilter<"EstimateShare"> | string createdAt?: DateTimeFilter<"EstimateShare"> | Date | string } export type EstimateShareUpsertWithWhereUniqueWithoutSharedWithInput = { where: EstimateShareWhereUniqueInput update: XOR create: XOR } export type EstimateShareUpdateWithWhereUniqueWithoutSharedWithInput = { where: EstimateShareWhereUniqueInput data: XOR } export type EstimateShareUpdateManyWithWhereWithoutSharedWithInput = { where: EstimateShareScalarWhereInput data: XOR } export type EstimateShareNoteUpsertWithWhereUniqueWithoutAuthorInput = { where: EstimateShareNoteWhereUniqueInput update: XOR create: XOR } export type EstimateShareNoteUpdateWithWhereUniqueWithoutAuthorInput = { where: EstimateShareNoteWhereUniqueInput data: XOR } export type EstimateShareNoteUpdateManyWithWhereWithoutAuthorInput = { where: EstimateShareNoteScalarWhereInput data: XOR } export type EstimateShareNoteScalarWhereInput = { AND?: EstimateShareNoteScalarWhereInput | EstimateShareNoteScalarWhereInput[] OR?: EstimateShareNoteScalarWhereInput[] NOT?: EstimateShareNoteScalarWhereInput | EstimateShareNoteScalarWhereInput[] id?: StringFilter<"EstimateShareNote"> | string shareId?: StringFilter<"EstimateShareNote"> | string authorId?: StringFilter<"EstimateShareNote"> | string content?: StringFilter<"EstimateShareNote"> | string createdAt?: DateTimeFilter<"EstimateShareNote"> | Date | string } export type EstimateCreateWithoutDirectionInput = { id?: string number: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string owner: UserCreateNestedOneWithoutEstimatesInput items?: EstimateItemCreateNestedManyWithoutEstimateInput totals?: EstimateTotalCreateNestedManyWithoutEstimateInput shares?: EstimateShareCreateNestedManyWithoutEstimateInput versions?: EstimateVersionCreateNestedManyWithoutEstimateInput } export type EstimateUncheckedCreateWithoutDirectionInput = { id?: string number: string ownerId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string items?: EstimateItemUncheckedCreateNestedManyWithoutEstimateInput totals?: EstimateTotalUncheckedCreateNestedManyWithoutEstimateInput shares?: EstimateShareUncheckedCreateNestedManyWithoutEstimateInput versions?: EstimateVersionUncheckedCreateNestedManyWithoutEstimateInput } export type EstimateCreateOrConnectWithoutDirectionInput = { where: EstimateWhereUniqueInput create: XOR } export type EstimateCreateManyDirectionInputEnvelope = { data: EstimateCreateManyDirectionInput | EstimateCreateManyDirectionInput[] skipDuplicates?: boolean } export type EstimateUpsertWithWhereUniqueWithoutDirectionInput = { where: EstimateWhereUniqueInput update: XOR create: XOR } export type EstimateUpdateWithWhereUniqueWithoutDirectionInput = { where: EstimateWhereUniqueInput data: XOR } export type EstimateUpdateManyWithWhereWithoutDirectionInput = { where: EstimateScalarWhereInput data: XOR } export type UserCreateWithoutEstimatesInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string chatSessions?: ChatSessionCreateNestedManyWithoutUserInput ownedShares?: EstimateShareCreateNestedManyWithoutOwnerInput receivedShares?: EstimateShareCreateNestedManyWithoutSharedWithInput shareNotes?: EstimateShareNoteCreateNestedManyWithoutAuthorInput } export type UserUncheckedCreateWithoutEstimatesInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string chatSessions?: ChatSessionUncheckedCreateNestedManyWithoutUserInput ownedShares?: EstimateShareUncheckedCreateNestedManyWithoutOwnerInput receivedShares?: EstimateShareUncheckedCreateNestedManyWithoutSharedWithInput shareNotes?: EstimateShareNoteUncheckedCreateNestedManyWithoutAuthorInput } export type UserCreateOrConnectWithoutEstimatesInput = { where: UserWhereUniqueInput create: XOR } export type SurveyDirectionCreateWithoutEstimatesInput = { id?: string code: string name: string shortName: string isActive?: boolean } export type SurveyDirectionUncheckedCreateWithoutEstimatesInput = { id?: string code: string name: string shortName: string isActive?: boolean } export type SurveyDirectionCreateOrConnectWithoutEstimatesInput = { where: SurveyDirectionWhereUniqueInput create: XOR } export type EstimateItemCreateWithoutEstimateInput = { id?: string orderNumber: number sectionType: string workName: string justification?: string | null basePrice: Decimal | DecimalJsLike | number | string quantity: Decimal | DecimalJsLike | number | string unit?: string | null coef1?: Decimal | DecimalJsLike | number | string | null coef1Desc?: string | null coef2?: Decimal | DecimalJsLike | number | string | null coef2Desc?: string | null coef3?: Decimal | DecimalJsLike | number | string | null coef3Desc?: string | null totalPrice: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string priceItem?: PriceItemCreateNestedOneWithoutEstimateItemsInput } export type EstimateItemUncheckedCreateWithoutEstimateInput = { id?: string orderNumber: number sectionType: string priceItemId?: string | null workName: string justification?: string | null basePrice: Decimal | DecimalJsLike | number | string quantity: Decimal | DecimalJsLike | number | string unit?: string | null coef1?: Decimal | DecimalJsLike | number | string | null coef1Desc?: string | null coef2?: Decimal | DecimalJsLike | number | string | null coef2Desc?: string | null coef3?: Decimal | DecimalJsLike | number | string | null coef3Desc?: string | null totalPrice: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateItemCreateOrConnectWithoutEstimateInput = { where: EstimateItemWhereUniqueInput create: XOR } export type EstimateItemCreateManyEstimateInputEnvelope = { data: EstimateItemCreateManyEstimateInput | EstimateItemCreateManyEstimateInput[] skipDuplicates?: boolean } export type EstimateTotalCreateWithoutEstimateInput = { id?: string orderNumber: number label: string description?: string | null baseValue?: Decimal | DecimalJsLike | number | string | null coefficient?: Decimal | DecimalJsLike | number | string | null resultValue: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateTotalUncheckedCreateWithoutEstimateInput = { id?: string orderNumber: number label: string description?: string | null baseValue?: Decimal | DecimalJsLike | number | string | null coefficient?: Decimal | DecimalJsLike | number | string | null resultValue: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateTotalCreateOrConnectWithoutEstimateInput = { where: EstimateTotalWhereUniqueInput create: XOR } export type EstimateTotalCreateManyEstimateInputEnvelope = { data: EstimateTotalCreateManyEstimateInput | EstimateTotalCreateManyEstimateInput[] skipDuplicates?: boolean } export type EstimateShareCreateWithoutEstimateInput = { id?: string createdAt?: Date | string sharedWith: UserCreateNestedOneWithoutReceivedSharesInput owner: UserCreateNestedOneWithoutOwnedSharesInput notes?: EstimateShareNoteCreateNestedManyWithoutShareInput } export type EstimateShareUncheckedCreateWithoutEstimateInput = { id?: string ownerId: string sharedWithId: string createdAt?: Date | string notes?: EstimateShareNoteUncheckedCreateNestedManyWithoutShareInput } export type EstimateShareCreateOrConnectWithoutEstimateInput = { where: EstimateShareWhereUniqueInput create: XOR } export type EstimateShareCreateManyEstimateInputEnvelope = { data: EstimateShareCreateManyEstimateInput | EstimateShareCreateManyEstimateInput[] skipDuplicates?: boolean } export type EstimateVersionCreateWithoutEstimateInput = { id?: string versionNumber: number snapshot: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type EstimateVersionUncheckedCreateWithoutEstimateInput = { id?: string versionNumber: number snapshot: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type EstimateVersionCreateOrConnectWithoutEstimateInput = { where: EstimateVersionWhereUniqueInput create: XOR } export type EstimateVersionCreateManyEstimateInputEnvelope = { data: EstimateVersionCreateManyEstimateInput | EstimateVersionCreateManyEstimateInput[] skipDuplicates?: boolean } export type UserUpsertWithoutEstimatesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutEstimatesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutEstimatesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string chatSessions?: ChatSessionUpdateManyWithoutUserNestedInput ownedShares?: EstimateShareUpdateManyWithoutOwnerNestedInput receivedShares?: EstimateShareUpdateManyWithoutSharedWithNestedInput shareNotes?: EstimateShareNoteUpdateManyWithoutAuthorNestedInput } export type UserUncheckedUpdateWithoutEstimatesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string chatSessions?: ChatSessionUncheckedUpdateManyWithoutUserNestedInput ownedShares?: EstimateShareUncheckedUpdateManyWithoutOwnerNestedInput receivedShares?: EstimateShareUncheckedUpdateManyWithoutSharedWithNestedInput shareNotes?: EstimateShareNoteUncheckedUpdateManyWithoutAuthorNestedInput } export type SurveyDirectionUpsertWithoutEstimatesInput = { update: XOR create: XOR where?: SurveyDirectionWhereInput } export type SurveyDirectionUpdateToOneWithWhereWithoutEstimatesInput = { where?: SurveyDirectionWhereInput data: XOR } export type SurveyDirectionUpdateWithoutEstimatesInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string shortName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean } export type SurveyDirectionUncheckedUpdateWithoutEstimatesInput = { id?: StringFieldUpdateOperationsInput | string code?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string shortName?: StringFieldUpdateOperationsInput | string isActive?: BoolFieldUpdateOperationsInput | boolean } export type EstimateItemUpsertWithWhereUniqueWithoutEstimateInput = { where: EstimateItemWhereUniqueInput update: XOR create: XOR } export type EstimateItemUpdateWithWhereUniqueWithoutEstimateInput = { where: EstimateItemWhereUniqueInput data: XOR } export type EstimateItemUpdateManyWithWhereWithoutEstimateInput = { where: EstimateItemScalarWhereInput data: XOR } export type EstimateTotalUpsertWithWhereUniqueWithoutEstimateInput = { where: EstimateTotalWhereUniqueInput update: XOR create: XOR } export type EstimateTotalUpdateWithWhereUniqueWithoutEstimateInput = { where: EstimateTotalWhereUniqueInput data: XOR } export type EstimateTotalUpdateManyWithWhereWithoutEstimateInput = { where: EstimateTotalScalarWhereInput data: XOR } export type EstimateTotalScalarWhereInput = { AND?: EstimateTotalScalarWhereInput | EstimateTotalScalarWhereInput[] OR?: EstimateTotalScalarWhereInput[] NOT?: EstimateTotalScalarWhereInput | EstimateTotalScalarWhereInput[] id?: StringFilter<"EstimateTotal"> | string estimateId?: StringFilter<"EstimateTotal"> | string orderNumber?: IntFilter<"EstimateTotal"> | number label?: StringFilter<"EstimateTotal"> | string description?: StringNullableFilter<"EstimateTotal"> | string | null baseValue?: DecimalNullableFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string | null coefficient?: DecimalNullableFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFilter<"EstimateTotal"> | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFilter<"EstimateTotal"> | Date | string updatedAt?: DateTimeFilter<"EstimateTotal"> | Date | string } export type EstimateShareUpsertWithWhereUniqueWithoutEstimateInput = { where: EstimateShareWhereUniqueInput update: XOR create: XOR } export type EstimateShareUpdateWithWhereUniqueWithoutEstimateInput = { where: EstimateShareWhereUniqueInput data: XOR } export type EstimateShareUpdateManyWithWhereWithoutEstimateInput = { where: EstimateShareScalarWhereInput data: XOR } export type EstimateVersionUpsertWithWhereUniqueWithoutEstimateInput = { where: EstimateVersionWhereUniqueInput update: XOR create: XOR } export type EstimateVersionUpdateWithWhereUniqueWithoutEstimateInput = { where: EstimateVersionWhereUniqueInput data: XOR } export type EstimateVersionUpdateManyWithWhereWithoutEstimateInput = { where: EstimateVersionScalarWhereInput data: XOR } export type EstimateVersionScalarWhereInput = { AND?: EstimateVersionScalarWhereInput | EstimateVersionScalarWhereInput[] OR?: EstimateVersionScalarWhereInput[] NOT?: EstimateVersionScalarWhereInput | EstimateVersionScalarWhereInput[] id?: StringFilter<"EstimateVersion"> | string estimateId?: StringFilter<"EstimateVersion"> | string versionNumber?: IntFilter<"EstimateVersion"> | number snapshot?: JsonFilter<"EstimateVersion"> createdAt?: DateTimeFilter<"EstimateVersion"> | Date | string } export type EstimateCreateWithoutVersionsInput = { id?: string number: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string owner: UserCreateNestedOneWithoutEstimatesInput direction: SurveyDirectionCreateNestedOneWithoutEstimatesInput items?: EstimateItemCreateNestedManyWithoutEstimateInput totals?: EstimateTotalCreateNestedManyWithoutEstimateInput shares?: EstimateShareCreateNestedManyWithoutEstimateInput } export type EstimateUncheckedCreateWithoutVersionsInput = { id?: string number: string directionId: string ownerId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string items?: EstimateItemUncheckedCreateNestedManyWithoutEstimateInput totals?: EstimateTotalUncheckedCreateNestedManyWithoutEstimateInput shares?: EstimateShareUncheckedCreateNestedManyWithoutEstimateInput } export type EstimateCreateOrConnectWithoutVersionsInput = { where: EstimateWhereUniqueInput create: XOR } export type EstimateUpsertWithoutVersionsInput = { update: XOR create: XOR where?: EstimateWhereInput } export type EstimateUpdateToOneWithWhereWithoutVersionsInput = { where?: EstimateWhereInput data: XOR } export type EstimateUpdateWithoutVersionsInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string owner?: UserUpdateOneRequiredWithoutEstimatesNestedInput direction?: SurveyDirectionUpdateOneRequiredWithoutEstimatesNestedInput items?: EstimateItemUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUpdateManyWithoutEstimateNestedInput } export type EstimateUncheckedUpdateWithoutVersionsInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string directionId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: EstimateItemUncheckedUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUncheckedUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUncheckedUpdateManyWithoutEstimateNestedInput } export type EstimateCreateWithoutSharesInput = { id?: string number: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string owner: UserCreateNestedOneWithoutEstimatesInput direction: SurveyDirectionCreateNestedOneWithoutEstimatesInput items?: EstimateItemCreateNestedManyWithoutEstimateInput totals?: EstimateTotalCreateNestedManyWithoutEstimateInput versions?: EstimateVersionCreateNestedManyWithoutEstimateInput } export type EstimateUncheckedCreateWithoutSharesInput = { id?: string number: string directionId: string ownerId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string items?: EstimateItemUncheckedCreateNestedManyWithoutEstimateInput totals?: EstimateTotalUncheckedCreateNestedManyWithoutEstimateInput versions?: EstimateVersionUncheckedCreateNestedManyWithoutEstimateInput } export type EstimateCreateOrConnectWithoutSharesInput = { where: EstimateWhereUniqueInput create: XOR } export type UserCreateWithoutReceivedSharesInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateCreateNestedManyWithoutOwnerInput chatSessions?: ChatSessionCreateNestedManyWithoutUserInput ownedShares?: EstimateShareCreateNestedManyWithoutOwnerInput shareNotes?: EstimateShareNoteCreateNestedManyWithoutAuthorInput } export type UserUncheckedCreateWithoutReceivedSharesInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateUncheckedCreateNestedManyWithoutOwnerInput chatSessions?: ChatSessionUncheckedCreateNestedManyWithoutUserInput ownedShares?: EstimateShareUncheckedCreateNestedManyWithoutOwnerInput shareNotes?: EstimateShareNoteUncheckedCreateNestedManyWithoutAuthorInput } export type UserCreateOrConnectWithoutReceivedSharesInput = { where: UserWhereUniqueInput create: XOR } export type UserCreateWithoutOwnedSharesInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateCreateNestedManyWithoutOwnerInput chatSessions?: ChatSessionCreateNestedManyWithoutUserInput receivedShares?: EstimateShareCreateNestedManyWithoutSharedWithInput shareNotes?: EstimateShareNoteCreateNestedManyWithoutAuthorInput } export type UserUncheckedCreateWithoutOwnedSharesInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateUncheckedCreateNestedManyWithoutOwnerInput chatSessions?: ChatSessionUncheckedCreateNestedManyWithoutUserInput receivedShares?: EstimateShareUncheckedCreateNestedManyWithoutSharedWithInput shareNotes?: EstimateShareNoteUncheckedCreateNestedManyWithoutAuthorInput } export type UserCreateOrConnectWithoutOwnedSharesInput = { where: UserWhereUniqueInput create: XOR } export type EstimateShareNoteCreateWithoutShareInput = { id?: string content: string createdAt?: Date | string author: UserCreateNestedOneWithoutShareNotesInput } export type EstimateShareNoteUncheckedCreateWithoutShareInput = { id?: string authorId: string content: string createdAt?: Date | string } export type EstimateShareNoteCreateOrConnectWithoutShareInput = { where: EstimateShareNoteWhereUniqueInput create: XOR } export type EstimateShareNoteCreateManyShareInputEnvelope = { data: EstimateShareNoteCreateManyShareInput | EstimateShareNoteCreateManyShareInput[] skipDuplicates?: boolean } export type EstimateUpsertWithoutSharesInput = { update: XOR create: XOR where?: EstimateWhereInput } export type EstimateUpdateToOneWithWhereWithoutSharesInput = { where?: EstimateWhereInput data: XOR } export type EstimateUpdateWithoutSharesInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string owner?: UserUpdateOneRequiredWithoutEstimatesNestedInput direction?: SurveyDirectionUpdateOneRequiredWithoutEstimatesNestedInput items?: EstimateItemUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUpdateManyWithoutEstimateNestedInput } export type EstimateUncheckedUpdateWithoutSharesInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string directionId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: EstimateItemUncheckedUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUncheckedUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUncheckedUpdateManyWithoutEstimateNestedInput } export type UserUpsertWithoutReceivedSharesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutReceivedSharesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutReceivedSharesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUpdateManyWithoutOwnerNestedInput chatSessions?: ChatSessionUpdateManyWithoutUserNestedInput ownedShares?: EstimateShareUpdateManyWithoutOwnerNestedInput shareNotes?: EstimateShareNoteUpdateManyWithoutAuthorNestedInput } export type UserUncheckedUpdateWithoutReceivedSharesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUncheckedUpdateManyWithoutOwnerNestedInput chatSessions?: ChatSessionUncheckedUpdateManyWithoutUserNestedInput ownedShares?: EstimateShareUncheckedUpdateManyWithoutOwnerNestedInput shareNotes?: EstimateShareNoteUncheckedUpdateManyWithoutAuthorNestedInput } export type UserUpsertWithoutOwnedSharesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutOwnedSharesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutOwnedSharesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUpdateManyWithoutOwnerNestedInput chatSessions?: ChatSessionUpdateManyWithoutUserNestedInput receivedShares?: EstimateShareUpdateManyWithoutSharedWithNestedInput shareNotes?: EstimateShareNoteUpdateManyWithoutAuthorNestedInput } export type UserUncheckedUpdateWithoutOwnedSharesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUncheckedUpdateManyWithoutOwnerNestedInput chatSessions?: ChatSessionUncheckedUpdateManyWithoutUserNestedInput receivedShares?: EstimateShareUncheckedUpdateManyWithoutSharedWithNestedInput shareNotes?: EstimateShareNoteUncheckedUpdateManyWithoutAuthorNestedInput } export type EstimateShareNoteUpsertWithWhereUniqueWithoutShareInput = { where: EstimateShareNoteWhereUniqueInput update: XOR create: XOR } export type EstimateShareNoteUpdateWithWhereUniqueWithoutShareInput = { where: EstimateShareNoteWhereUniqueInput data: XOR } export type EstimateShareNoteUpdateManyWithWhereWithoutShareInput = { where: EstimateShareNoteScalarWhereInput data: XOR } export type EstimateShareCreateWithoutNotesInput = { id?: string createdAt?: Date | string estimate: EstimateCreateNestedOneWithoutSharesInput sharedWith: UserCreateNestedOneWithoutReceivedSharesInput owner: UserCreateNestedOneWithoutOwnedSharesInput } export type EstimateShareUncheckedCreateWithoutNotesInput = { id?: string estimateId: string ownerId: string sharedWithId: string createdAt?: Date | string } export type EstimateShareCreateOrConnectWithoutNotesInput = { where: EstimateShareWhereUniqueInput create: XOR } export type UserCreateWithoutShareNotesInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateCreateNestedManyWithoutOwnerInput chatSessions?: ChatSessionCreateNestedManyWithoutUserInput ownedShares?: EstimateShareCreateNestedManyWithoutOwnerInput receivedShares?: EstimateShareCreateNestedManyWithoutSharedWithInput } export type UserUncheckedCreateWithoutShareNotesInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateUncheckedCreateNestedManyWithoutOwnerInput chatSessions?: ChatSessionUncheckedCreateNestedManyWithoutUserInput ownedShares?: EstimateShareUncheckedCreateNestedManyWithoutOwnerInput receivedShares?: EstimateShareUncheckedCreateNestedManyWithoutSharedWithInput } export type UserCreateOrConnectWithoutShareNotesInput = { where: UserWhereUniqueInput create: XOR } export type EstimateShareUpsertWithoutNotesInput = { update: XOR create: XOR where?: EstimateShareWhereInput } export type EstimateShareUpdateToOneWithWhereWithoutNotesInput = { where?: EstimateShareWhereInput data: XOR } export type EstimateShareUpdateWithoutNotesInput = { id?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string estimate?: EstimateUpdateOneRequiredWithoutSharesNestedInput sharedWith?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput owner?: UserUpdateOneRequiredWithoutOwnedSharesNestedInput } export type EstimateShareUncheckedUpdateWithoutNotesInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string sharedWithId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserUpsertWithoutShareNotesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutShareNotesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutShareNotesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUpdateManyWithoutOwnerNestedInput chatSessions?: ChatSessionUpdateManyWithoutUserNestedInput ownedShares?: EstimateShareUpdateManyWithoutOwnerNestedInput receivedShares?: EstimateShareUpdateManyWithoutSharedWithNestedInput } export type UserUncheckedUpdateWithoutShareNotesInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUncheckedUpdateManyWithoutOwnerNestedInput chatSessions?: ChatSessionUncheckedUpdateManyWithoutUserNestedInput ownedShares?: EstimateShareUncheckedUpdateManyWithoutOwnerNestedInput receivedShares?: EstimateShareUncheckedUpdateManyWithoutSharedWithNestedInput } export type EstimateCreateWithoutItemsInput = { id?: string number: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string owner: UserCreateNestedOneWithoutEstimatesInput direction: SurveyDirectionCreateNestedOneWithoutEstimatesInput totals?: EstimateTotalCreateNestedManyWithoutEstimateInput shares?: EstimateShareCreateNestedManyWithoutEstimateInput versions?: EstimateVersionCreateNestedManyWithoutEstimateInput } export type EstimateUncheckedCreateWithoutItemsInput = { id?: string number: string directionId: string ownerId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string totals?: EstimateTotalUncheckedCreateNestedManyWithoutEstimateInput shares?: EstimateShareUncheckedCreateNestedManyWithoutEstimateInput versions?: EstimateVersionUncheckedCreateNestedManyWithoutEstimateInput } export type EstimateCreateOrConnectWithoutItemsInput = { where: EstimateWhereUniqueInput create: XOR } export type PriceItemCreateWithoutEstimateItemsInput = { id?: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string priceBook: PriceBookCreateNestedOneWithoutItemsInput priceTable: PriceTableCreateNestedOneWithoutItemsInput } export type PriceItemUncheckedCreateWithoutEstimateItemsInput = { id?: string priceBookId: string priceTableId: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PriceItemCreateOrConnectWithoutEstimateItemsInput = { where: PriceItemWhereUniqueInput create: XOR } export type EstimateUpsertWithoutItemsInput = { update: XOR create: XOR where?: EstimateWhereInput } export type EstimateUpdateToOneWithWhereWithoutItemsInput = { where?: EstimateWhereInput data: XOR } export type EstimateUpdateWithoutItemsInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string owner?: UserUpdateOneRequiredWithoutEstimatesNestedInput direction?: SurveyDirectionUpdateOneRequiredWithoutEstimatesNestedInput totals?: EstimateTotalUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUpdateManyWithoutEstimateNestedInput } export type EstimateUncheckedUpdateWithoutItemsInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string directionId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string totals?: EstimateTotalUncheckedUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUncheckedUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUncheckedUpdateManyWithoutEstimateNestedInput } export type PriceItemUpsertWithoutEstimateItemsInput = { update: XOR create: XOR where?: PriceItemWhereInput } export type PriceItemUpdateToOneWithWhereWithoutEstimateItemsInput = { where?: PriceItemWhereInput data: XOR } export type PriceItemUpdateWithoutEstimateItemsInput = { id?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string priceBook?: PriceBookUpdateOneRequiredWithoutItemsNestedInput priceTable?: PriceTableUpdateOneRequiredWithoutItemsNestedInput } export type PriceItemUncheckedUpdateWithoutEstimateItemsInput = { id?: StringFieldUpdateOperationsInput | string priceBookId?: StringFieldUpdateOperationsInput | string priceTableId?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateCreateWithoutTotalsInput = { id?: string number: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string owner: UserCreateNestedOneWithoutEstimatesInput direction: SurveyDirectionCreateNestedOneWithoutEstimatesInput items?: EstimateItemCreateNestedManyWithoutEstimateInput shares?: EstimateShareCreateNestedManyWithoutEstimateInput versions?: EstimateVersionCreateNestedManyWithoutEstimateInput } export type EstimateUncheckedCreateWithoutTotalsInput = { id?: string number: string directionId: string ownerId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string items?: EstimateItemUncheckedCreateNestedManyWithoutEstimateInput shares?: EstimateShareUncheckedCreateNestedManyWithoutEstimateInput versions?: EstimateVersionUncheckedCreateNestedManyWithoutEstimateInput } export type EstimateCreateOrConnectWithoutTotalsInput = { where: EstimateWhereUniqueInput create: XOR } export type EstimateUpsertWithoutTotalsInput = { update: XOR create: XOR where?: EstimateWhereInput } export type EstimateUpdateToOneWithWhereWithoutTotalsInput = { where?: EstimateWhereInput data: XOR } export type EstimateUpdateWithoutTotalsInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string owner?: UserUpdateOneRequiredWithoutEstimatesNestedInput direction?: SurveyDirectionUpdateOneRequiredWithoutEstimatesNestedInput items?: EstimateItemUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUpdateManyWithoutEstimateNestedInput } export type EstimateUncheckedUpdateWithoutTotalsInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string directionId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: EstimateItemUncheckedUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUncheckedUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUncheckedUpdateManyWithoutEstimateNestedInput } export type UserCreateWithoutChatSessionsInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateCreateNestedManyWithoutOwnerInput ownedShares?: EstimateShareCreateNestedManyWithoutOwnerInput receivedShares?: EstimateShareCreateNestedManyWithoutSharedWithInput shareNotes?: EstimateShareNoteCreateNestedManyWithoutAuthorInput } export type UserUncheckedCreateWithoutChatSessionsInput = { id?: string email: string passwordHash: string name?: string | null createdAt?: Date | string updatedAt?: Date | string estimates?: EstimateUncheckedCreateNestedManyWithoutOwnerInput ownedShares?: EstimateShareUncheckedCreateNestedManyWithoutOwnerInput receivedShares?: EstimateShareUncheckedCreateNestedManyWithoutSharedWithInput shareNotes?: EstimateShareNoteUncheckedCreateNestedManyWithoutAuthorInput } export type UserCreateOrConnectWithoutChatSessionsInput = { where: UserWhereUniqueInput create: XOR } export type ChatMessageCreateWithoutSessionInput = { id?: string role: string content: string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string } export type ChatMessageUncheckedCreateWithoutSessionInput = { id?: string role: string content: string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string } export type ChatMessageCreateOrConnectWithoutSessionInput = { where: ChatMessageWhereUniqueInput create: XOR } export type ChatMessageCreateManySessionInputEnvelope = { data: ChatMessageCreateManySessionInput | ChatMessageCreateManySessionInput[] skipDuplicates?: boolean } export type UserUpsertWithoutChatSessionsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutChatSessionsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutChatSessionsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUpdateManyWithoutOwnerNestedInput ownedShares?: EstimateShareUpdateManyWithoutOwnerNestedInput receivedShares?: EstimateShareUpdateManyWithoutSharedWithNestedInput shareNotes?: EstimateShareNoteUpdateManyWithoutAuthorNestedInput } export type UserUncheckedUpdateWithoutChatSessionsInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string passwordHash?: StringFieldUpdateOperationsInput | string name?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimates?: EstimateUncheckedUpdateManyWithoutOwnerNestedInput ownedShares?: EstimateShareUncheckedUpdateManyWithoutOwnerNestedInput receivedShares?: EstimateShareUncheckedUpdateManyWithoutSharedWithNestedInput shareNotes?: EstimateShareNoteUncheckedUpdateManyWithoutAuthorNestedInput } export type ChatMessageUpsertWithWhereUniqueWithoutSessionInput = { where: ChatMessageWhereUniqueInput update: XOR create: XOR } export type ChatMessageUpdateWithWhereUniqueWithoutSessionInput = { where: ChatMessageWhereUniqueInput data: XOR } export type ChatMessageUpdateManyWithWhereWithoutSessionInput = { where: ChatMessageScalarWhereInput data: XOR } export type ChatMessageScalarWhereInput = { AND?: ChatMessageScalarWhereInput | ChatMessageScalarWhereInput[] OR?: ChatMessageScalarWhereInput[] NOT?: ChatMessageScalarWhereInput | ChatMessageScalarWhereInput[] id?: StringFilter<"ChatMessage"> | string sessionId?: StringFilter<"ChatMessage"> | string role?: StringFilter<"ChatMessage"> | string content?: StringFilter<"ChatMessage"> | string metadata?: JsonNullableFilter<"ChatMessage"> createdAt?: DateTimeFilter<"ChatMessage"> | Date | string } export type ChatSessionCreateWithoutMessagesInput = { id?: string estimateId?: string | null status?: string createdAt?: Date | string updatedAt?: Date | string user: UserCreateNestedOneWithoutChatSessionsInput } export type ChatSessionUncheckedCreateWithoutMessagesInput = { id?: string userId: string estimateId?: string | null status?: string createdAt?: Date | string updatedAt?: Date | string } export type ChatSessionCreateOrConnectWithoutMessagesInput = { where: ChatSessionWhereUniqueInput create: XOR } export type ChatSessionUpsertWithoutMessagesInput = { update: XOR create: XOR where?: ChatSessionWhereInput } export type ChatSessionUpdateToOneWithWhereWithoutMessagesInput = { where?: ChatSessionWhereInput data: XOR } export type ChatSessionUpdateWithoutMessagesInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutChatSessionsNestedInput } export type ChatSessionUncheckedUpdateWithoutMessagesInput = { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string estimateId?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PriceTableCreateManyPriceBookInput = { id?: string tableNumber: number name: string unit: string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PriceItemCreateManyPriceBookInput = { id?: string priceTableId: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PriceTableUpdateWithoutPriceBookInput = { id?: StringFieldUpdateOperationsInput | string tableNumber?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: PriceItemUpdateManyWithoutPriceTableNestedInput } export type PriceTableUncheckedUpdateWithoutPriceBookInput = { id?: StringFieldUpdateOperationsInput | string tableNumber?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: PriceItemUncheckedUpdateManyWithoutPriceTableNestedInput } export type PriceTableUncheckedUpdateManyWithoutPriceBookInput = { id?: StringFieldUpdateOperationsInput | string tableNumber?: IntFieldUpdateOperationsInput | number name?: StringFieldUpdateOperationsInput | string unit?: StringFieldUpdateOperationsInput | string notes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PriceItemUpdateWithoutPriceBookInput = { id?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string priceTable?: PriceTableUpdateOneRequiredWithoutItemsNestedInput estimateItems?: EstimateItemUpdateManyWithoutPriceItemNestedInput } export type PriceItemUncheckedUpdateWithoutPriceBookInput = { id?: StringFieldUpdateOperationsInput | string priceTableId?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimateItems?: EstimateItemUncheckedUpdateManyWithoutPriceItemNestedInput } export type PriceItemUncheckedUpdateManyWithoutPriceBookInput = { id?: StringFieldUpdateOperationsInput | string priceTableId?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type PriceItemCreateManyPriceTableInput = { id?: string priceBookId: string paragraph: string workType: string description?: string | null priceField1?: Decimal | DecimalJsLike | number | string | null priceOffice1?: Decimal | DecimalJsLike | number | string | null priceField2?: Decimal | DecimalJsLike | number | string | null priceOffice2?: Decimal | DecimalJsLike | number | string | null priceField3?: Decimal | DecimalJsLike | number | string | null priceOffice3?: Decimal | DecimalJsLike | number | string | null priceSimple?: Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string updatedAt?: Date | string } export type PriceItemUpdateWithoutPriceTableInput = { id?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string priceBook?: PriceBookUpdateOneRequiredWithoutItemsNestedInput estimateItems?: EstimateItemUpdateManyWithoutPriceItemNestedInput } export type PriceItemUncheckedUpdateWithoutPriceTableInput = { id?: StringFieldUpdateOperationsInput | string priceBookId?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimateItems?: EstimateItemUncheckedUpdateManyWithoutPriceItemNestedInput } export type PriceItemUncheckedUpdateManyWithoutPriceTableInput = { id?: StringFieldUpdateOperationsInput | string priceBookId?: StringFieldUpdateOperationsInput | string paragraph?: StringFieldUpdateOperationsInput | string workType?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null priceField1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceField3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceOffice3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null priceSimple?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null attributes?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateItemCreateManyPriceItemInput = { id?: string estimateId: string orderNumber: number sectionType: string workName: string justification?: string | null basePrice: Decimal | DecimalJsLike | number | string quantity: Decimal | DecimalJsLike | number | string unit?: string | null coef1?: Decimal | DecimalJsLike | number | string | null coef1Desc?: string | null coef2?: Decimal | DecimalJsLike | number | string | null coef2Desc?: string | null coef3?: Decimal | DecimalJsLike | number | string | null coef3Desc?: string | null totalPrice: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateItemUpdateWithoutPriceItemInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string estimate?: EstimateUpdateOneRequiredWithoutItemsNestedInput } export type EstimateItemUncheckedUpdateWithoutPriceItemInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateItemUncheckedUpdateManyWithoutPriceItemInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateCreateManyOwnerInput = { id?: string number: string directionId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string } export type ChatSessionCreateManyUserInput = { id?: string estimateId?: string | null status?: string createdAt?: Date | string updatedAt?: Date | string } export type EstimateShareCreateManyOwnerInput = { id?: string estimateId: string sharedWithId: string createdAt?: Date | string } export type EstimateShareCreateManySharedWithInput = { id?: string estimateId: string ownerId: string createdAt?: Date | string } export type EstimateShareNoteCreateManyAuthorInput = { id?: string shareId: string content: string createdAt?: Date | string } export type EstimateUpdateWithoutOwnerInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string direction?: SurveyDirectionUpdateOneRequiredWithoutEstimatesNestedInput items?: EstimateItemUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUpdateManyWithoutEstimateNestedInput } export type EstimateUncheckedUpdateWithoutOwnerInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string directionId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: EstimateItemUncheckedUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUncheckedUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUncheckedUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUncheckedUpdateManyWithoutEstimateNestedInput } export type EstimateUncheckedUpdateManyWithoutOwnerInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string directionId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ChatSessionUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string messages?: ChatMessageUpdateManyWithoutSessionNestedInput } export type ChatSessionUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string messages?: ChatMessageUncheckedUpdateManyWithoutSessionNestedInput } export type ChatSessionUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareUpdateWithoutOwnerInput = { id?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string estimate?: EstimateUpdateOneRequiredWithoutSharesNestedInput sharedWith?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput notes?: EstimateShareNoteUpdateManyWithoutShareNestedInput } export type EstimateShareUncheckedUpdateWithoutOwnerInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string sharedWithId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string notes?: EstimateShareNoteUncheckedUpdateManyWithoutShareNestedInput } export type EstimateShareUncheckedUpdateManyWithoutOwnerInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string sharedWithId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareUpdateWithoutSharedWithInput = { id?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string estimate?: EstimateUpdateOneRequiredWithoutSharesNestedInput owner?: UserUpdateOneRequiredWithoutOwnedSharesNestedInput notes?: EstimateShareNoteUpdateManyWithoutShareNestedInput } export type EstimateShareUncheckedUpdateWithoutSharedWithInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string notes?: EstimateShareNoteUncheckedUpdateManyWithoutShareNestedInput } export type EstimateShareUncheckedUpdateManyWithoutSharedWithInput = { id?: StringFieldUpdateOperationsInput | string estimateId?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareNoteUpdateWithoutAuthorInput = { id?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string share?: EstimateShareUpdateOneRequiredWithoutNotesNestedInput } export type EstimateShareNoteUncheckedUpdateWithoutAuthorInput = { id?: StringFieldUpdateOperationsInput | string shareId?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareNoteUncheckedUpdateManyWithoutAuthorInput = { id?: StringFieldUpdateOperationsInput | string shareId?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateCreateManyDirectionInput = { id?: string number: string ownerId: string objectName: string customer: string executor: string totalFieldWorks?: Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: Decimal | DecimalJsLike | number | string | null totalLaboratory?: Decimal | DecimalJsLike | number | string | null subtotal?: Decimal | DecimalJsLike | number | string | null regionalCoef?: Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: string | null inflationIndex?: Decimal | DecimalJsLike | number | string | null inflationDocRef?: string | null companyCoef?: Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: string | null executorCoef?: Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: string | null withVat?: boolean totalWithoutVat?: Decimal | DecimalJsLike | number | string | null vatRate?: Decimal | DecimalJsLike | number | string | null vatAmount?: Decimal | DecimalJsLike | number | string | null totalWithVat?: Decimal | DecimalJsLike | number | string | null status?: string createdAt?: Date | string updatedAt?: Date | string } export type EstimateUpdateWithoutDirectionInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string owner?: UserUpdateOneRequiredWithoutEstimatesNestedInput items?: EstimateItemUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUpdateManyWithoutEstimateNestedInput } export type EstimateUncheckedUpdateWithoutDirectionInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string items?: EstimateItemUncheckedUpdateManyWithoutEstimateNestedInput totals?: EstimateTotalUncheckedUpdateManyWithoutEstimateNestedInput shares?: EstimateShareUncheckedUpdateManyWithoutEstimateNestedInput versions?: EstimateVersionUncheckedUpdateManyWithoutEstimateNestedInput } export type EstimateUncheckedUpdateManyWithoutDirectionInput = { id?: StringFieldUpdateOperationsInput | string number?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string objectName?: StringFieldUpdateOperationsInput | string customer?: StringFieldUpdateOperationsInput | string executor?: StringFieldUpdateOperationsInput | string totalFieldWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalOfficeWorks?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalLaboratory?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null subtotal?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null regionalCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null inflationIndex?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null inflationDocRef?: NullableStringFieldUpdateOperationsInput | string | null companyCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null companyCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null executorCoef?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null executorCoefDocRef?: NullableStringFieldUpdateOperationsInput | string | null withVat?: BoolFieldUpdateOperationsInput | boolean totalWithoutVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatRate?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null vatAmount?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null totalWithVat?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null status?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateItemCreateManyEstimateInput = { id?: string orderNumber: number sectionType: string priceItemId?: string | null workName: string justification?: string | null basePrice: Decimal | DecimalJsLike | number | string quantity: Decimal | DecimalJsLike | number | string unit?: string | null coef1?: Decimal | DecimalJsLike | number | string | null coef1Desc?: string | null coef2?: Decimal | DecimalJsLike | number | string | null coef2Desc?: string | null coef3?: Decimal | DecimalJsLike | number | string | null coef3Desc?: string | null totalPrice: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateTotalCreateManyEstimateInput = { id?: string orderNumber: number label: string description?: string | null baseValue?: Decimal | DecimalJsLike | number | string | null coefficient?: Decimal | DecimalJsLike | number | string | null resultValue: Decimal | DecimalJsLike | number | string createdAt?: Date | string updatedAt?: Date | string } export type EstimateShareCreateManyEstimateInput = { id?: string ownerId: string sharedWithId: string createdAt?: Date | string } export type EstimateVersionCreateManyEstimateInput = { id?: string versionNumber: number snapshot: JsonNullValueInput | InputJsonValue createdAt?: Date | string } export type EstimateItemUpdateWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string priceItem?: PriceItemUpdateOneWithoutEstimateItemsNestedInput } export type EstimateItemUncheckedUpdateWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string priceItemId?: NullableStringFieldUpdateOperationsInput | string | null workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateItemUncheckedUpdateManyWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number sectionType?: StringFieldUpdateOperationsInput | string priceItemId?: NullableStringFieldUpdateOperationsInput | string | null workName?: StringFieldUpdateOperationsInput | string justification?: NullableStringFieldUpdateOperationsInput | string | null basePrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string quantity?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string unit?: NullableStringFieldUpdateOperationsInput | string | null coef1?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef1Desc?: NullableStringFieldUpdateOperationsInput | string | null coef2?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef2Desc?: NullableStringFieldUpdateOperationsInput | string | null coef3?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coef3Desc?: NullableStringFieldUpdateOperationsInput | string | null totalPrice?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateTotalUpdateWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null baseValue?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coefficient?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateTotalUncheckedUpdateWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null baseValue?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coefficient?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateTotalUncheckedUpdateManyWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string orderNumber?: IntFieldUpdateOperationsInput | number label?: StringFieldUpdateOperationsInput | string description?: NullableStringFieldUpdateOperationsInput | string | null baseValue?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null coefficient?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null resultValue?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareUpdateWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string sharedWith?: UserUpdateOneRequiredWithoutReceivedSharesNestedInput owner?: UserUpdateOneRequiredWithoutOwnedSharesNestedInput notes?: EstimateShareNoteUpdateManyWithoutShareNestedInput } export type EstimateShareUncheckedUpdateWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string sharedWithId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string notes?: EstimateShareNoteUncheckedUpdateManyWithoutShareNestedInput } export type EstimateShareUncheckedUpdateManyWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string ownerId?: StringFieldUpdateOperationsInput | string sharedWithId?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateVersionUpdateWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string versionNumber?: IntFieldUpdateOperationsInput | number snapshot?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateVersionUncheckedUpdateWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string versionNumber?: IntFieldUpdateOperationsInput | number snapshot?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateVersionUncheckedUpdateManyWithoutEstimateInput = { id?: StringFieldUpdateOperationsInput | string versionNumber?: IntFieldUpdateOperationsInput | number snapshot?: JsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareNoteCreateManyShareInput = { id?: string authorId: string content: string createdAt?: Date | string } export type EstimateShareNoteUpdateWithoutShareInput = { id?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string author?: UserUpdateOneRequiredWithoutShareNotesNestedInput } export type EstimateShareNoteUncheckedUpdateWithoutShareInput = { id?: StringFieldUpdateOperationsInput | string authorId?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EstimateShareNoteUncheckedUpdateManyWithoutShareInput = { id?: StringFieldUpdateOperationsInput | string authorId?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ChatMessageCreateManySessionInput = { id?: string role: string content: string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: Date | string } export type ChatMessageUpdateWithoutSessionInput = { id?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ChatMessageUncheckedUpdateWithoutSessionInput = { id?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ChatMessageUncheckedUpdateManyWithoutSessionInput = { id?: StringFieldUpdateOperationsInput | string role?: StringFieldUpdateOperationsInput | string content?: StringFieldUpdateOperationsInput | string metadata?: NullableJsonNullValueInput | InputJsonValue createdAt?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Aliases for legacy arg types */ /** * @deprecated Use PriceBookCountOutputTypeDefaultArgs instead */ export type PriceBookCountOutputTypeArgs = PriceBookCountOutputTypeDefaultArgs /** * @deprecated Use PriceTableCountOutputTypeDefaultArgs instead */ export type PriceTableCountOutputTypeArgs = PriceTableCountOutputTypeDefaultArgs /** * @deprecated Use PriceItemCountOutputTypeDefaultArgs instead */ export type PriceItemCountOutputTypeArgs = PriceItemCountOutputTypeDefaultArgs /** * @deprecated Use UserCountOutputTypeDefaultArgs instead */ export type UserCountOutputTypeArgs = UserCountOutputTypeDefaultArgs /** * @deprecated Use SurveyDirectionCountOutputTypeDefaultArgs instead */ export type SurveyDirectionCountOutputTypeArgs = SurveyDirectionCountOutputTypeDefaultArgs /** * @deprecated Use EstimateCountOutputTypeDefaultArgs instead */ export type EstimateCountOutputTypeArgs = EstimateCountOutputTypeDefaultArgs /** * @deprecated Use EstimateShareCountOutputTypeDefaultArgs instead */ export type EstimateShareCountOutputTypeArgs = EstimateShareCountOutputTypeDefaultArgs /** * @deprecated Use ChatSessionCountOutputTypeDefaultArgs instead */ export type ChatSessionCountOutputTypeArgs = ChatSessionCountOutputTypeDefaultArgs /** * @deprecated Use PriceBookDefaultArgs instead */ export type PriceBookArgs = PriceBookDefaultArgs /** * @deprecated Use PriceTableDefaultArgs instead */ export type PriceTableArgs = PriceTableDefaultArgs /** * @deprecated Use PriceItemDefaultArgs instead */ export type PriceItemArgs = PriceItemDefaultArgs /** * @deprecated Use CoefficientDefaultArgs instead */ export type CoefficientArgs = CoefficientDefaultArgs /** * @deprecated Use InflationIndexDefaultArgs instead */ export type InflationIndexArgs = InflationIndexDefaultArgs /** * @deprecated Use UserDefaultArgs instead */ export type UserArgs = UserDefaultArgs /** * @deprecated Use SurveyDirectionDefaultArgs instead */ export type SurveyDirectionArgs = SurveyDirectionDefaultArgs /** * @deprecated Use EstimateDefaultArgs instead */ export type EstimateArgs = EstimateDefaultArgs /** * @deprecated Use EstimateVersionDefaultArgs instead */ export type EstimateVersionArgs = EstimateVersionDefaultArgs /** * @deprecated Use EstimateShareDefaultArgs instead */ export type EstimateShareArgs = EstimateShareDefaultArgs /** * @deprecated Use EstimateShareNoteDefaultArgs instead */ export type EstimateShareNoteArgs = EstimateShareNoteDefaultArgs /** * @deprecated Use EstimateItemDefaultArgs instead */ export type EstimateItemArgs = EstimateItemDefaultArgs /** * @deprecated Use EstimateTotalDefaultArgs instead */ export type EstimateTotalArgs = EstimateTotalDefaultArgs /** * @deprecated Use SettingDefaultArgs instead */ export type SettingArgs = SettingDefaultArgs /** * @deprecated Use ChatSessionDefaultArgs instead */ export type ChatSessionArgs = ChatSessionDefaultArgs /** * @deprecated Use ChatMessageDefaultArgs instead */ export type ChatMessageArgs = ChatMessageDefaultArgs /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }