27874 lines
1.0 MiB
27874 lines
1.0 MiB
|
|
/**
|
|
* Client
|
|
**/
|
|
|
|
import * as runtime from '@prisma/client/runtime/library.js';
|
|
import $Types = runtime.Types // general types
|
|
import $Public = runtime.Types.Public
|
|
import $Utils = runtime.Types.Utils
|
|
import $Extensions = runtime.Types.Extensions
|
|
import $Result = runtime.Types.Result
|
|
|
|
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
|
|
|
|
/**
|
|
* Model PriceBook
|
|
*
|
|
*/
|
|
export type PriceBook = $Result.DefaultSelection<Prisma.$PriceBookPayload>
|
|
/**
|
|
* Model PriceTable
|
|
*
|
|
*/
|
|
export type PriceTable = $Result.DefaultSelection<Prisma.$PriceTablePayload>
|
|
/**
|
|
* Model PriceItem
|
|
*
|
|
*/
|
|
export type PriceItem = $Result.DefaultSelection<Prisma.$PriceItemPayload>
|
|
/**
|
|
* Model Coefficient
|
|
*
|
|
*/
|
|
export type Coefficient = $Result.DefaultSelection<Prisma.$CoefficientPayload>
|
|
/**
|
|
* Model InflationIndex
|
|
*
|
|
*/
|
|
export type InflationIndex = $Result.DefaultSelection<Prisma.$InflationIndexPayload>
|
|
/**
|
|
* Model User
|
|
*
|
|
*/
|
|
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
|
|
/**
|
|
* Model SurveyDirection
|
|
*
|
|
*/
|
|
export type SurveyDirection = $Result.DefaultSelection<Prisma.$SurveyDirectionPayload>
|
|
/**
|
|
* Model Estimate
|
|
*
|
|
*/
|
|
export type Estimate = $Result.DefaultSelection<Prisma.$EstimatePayload>
|
|
/**
|
|
* Model EstimateVersion
|
|
*
|
|
*/
|
|
export type EstimateVersion = $Result.DefaultSelection<Prisma.$EstimateVersionPayload>
|
|
/**
|
|
* Model EstimateShare
|
|
*
|
|
*/
|
|
export type EstimateShare = $Result.DefaultSelection<Prisma.$EstimateSharePayload>
|
|
/**
|
|
* Model EstimateShareNote
|
|
*
|
|
*/
|
|
export type EstimateShareNote = $Result.DefaultSelection<Prisma.$EstimateShareNotePayload>
|
|
/**
|
|
* Model EstimateItem
|
|
*
|
|
*/
|
|
export type EstimateItem = $Result.DefaultSelection<Prisma.$EstimateItemPayload>
|
|
/**
|
|
* Model EstimateTotal
|
|
*
|
|
*/
|
|
export type EstimateTotal = $Result.DefaultSelection<Prisma.$EstimateTotalPayload>
|
|
/**
|
|
* Model Setting
|
|
*
|
|
*/
|
|
export type Setting = $Result.DefaultSelection<Prisma.$SettingPayload>
|
|
/**
|
|
* Model ChatSession
|
|
*
|
|
*/
|
|
export type ChatSession = $Result.DefaultSelection<Prisma.$ChatSessionPayload>
|
|
/**
|
|
* Model ChatMessage
|
|
*
|
|
*/
|
|
export type ChatMessage = $Result.DefaultSelection<Prisma.$ChatMessagePayload>
|
|
|
|
/**
|
|
* ## 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.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
|
|
ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
|
|
> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
|
|
/**
|
|
* ## Prisma Client ʲˢ
|
|
*
|
|
* Type-safe database client for TypeScript & Node.js
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient()
|
|
* // Fetch zero or more 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<ClientOptions, Prisma.PrismaClientOptions>);
|
|
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void;
|
|
|
|
/**
|
|
* Connect with the database
|
|
*/
|
|
$connect(): $Utils.JsPromise<void>;
|
|
|
|
/**
|
|
* Disconnect from the database
|
|
*/
|
|
$disconnect(): $Utils.JsPromise<void>;
|
|
|
|
/**
|
|
* Add a middleware
|
|
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
|
|
* @see https://pris.ly/d/extensions
|
|
*/
|
|
$use(cb: Prisma.Middleware): void
|
|
|
|
/**
|
|
* Executes a prepared raw query and returns the number of affected rows.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
/**
|
|
* Executes a raw query and returns the number of affected rows.
|
|
* Susceptible to SQL injections, see documentation.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
|
|
/**
|
|
* Performs a prepared raw query and returns the `SELECT` data.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
/**
|
|
* Performs a raw query and returns the `SELECT` data.
|
|
* Susceptible to SQL injections, see documentation.
|
|
* @example
|
|
* ```
|
|
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
|
*/
|
|
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
|
|
|
|
/**
|
|
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
* @example
|
|
* ```
|
|
* const [george, bob, alice] = await prisma.$transaction([
|
|
* prisma.user.create({ data: { name: 'George' } }),
|
|
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
* ])
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
|
*/
|
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
|
|
|
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
|
|
|
|
|
|
$extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs>
|
|
|
|
/**
|
|
* `prisma.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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
* Example usage:
|
|
* ```ts
|
|
* // Fetch zero or more Users
|
|
* const users = await prisma.user.findMany()
|
|
* ```
|
|
*/
|
|
get user(): Prisma.UserDelegate<ExtArgs>;
|
|
|
|
/**
|
|
* `prisma.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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
|
|
/**
|
|
* `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<ExtArgs>;
|
|
}
|
|
|
|
export namespace Prisma {
|
|
export import DMMF = runtime.DMMF
|
|
|
|
export type PrismaPromise<T> = $Public.PrismaPromise<T>
|
|
|
|
/**
|
|
* Validator
|
|
*/
|
|
export import validator = runtime.Public.validator
|
|
|
|
/**
|
|
* Prisma Errors
|
|
*/
|
|
export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
|
|
export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
|
|
export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
|
|
export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
|
|
export import PrismaClientValidationError = runtime.PrismaClientValidationError
|
|
export import NotFoundError = runtime.NotFoundError
|
|
|
|
/**
|
|
* Re-export of sql-template-tag
|
|
*/
|
|
export import sql = runtime.sqltag
|
|
export import empty = runtime.empty
|
|
export import join = runtime.join
|
|
export import raw = runtime.raw
|
|
export import Sql = runtime.Sql
|
|
|
|
|
|
|
|
/**
|
|
* Decimal.js
|
|
*/
|
|
export import Decimal = runtime.Decimal
|
|
|
|
export type DecimalJsLike = runtime.DecimalJsLike
|
|
|
|
/**
|
|
* Metrics
|
|
*/
|
|
export type Metrics = runtime.Metrics
|
|
export type Metric<T> = runtime.Metric<T>
|
|
export type MetricHistogram = runtime.MetricHistogram
|
|
export type MetricHistogramBucket = runtime.MetricHistogramBucket
|
|
|
|
/**
|
|
* Extensions
|
|
*/
|
|
export import Extension = $Extensions.UserArgs
|
|
export import getExtensionContext = runtime.Extensions.getExtensionContext
|
|
export import Args = $Public.Args
|
|
export import Payload = $Public.Payload
|
|
export import Result = $Public.Result
|
|
export import Exact = $Public.Exact
|
|
|
|
/**
|
|
* Prisma Client JS version: 5.22.0
|
|
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
|
|
*/
|
|
export type PrismaVersion = {
|
|
client: string
|
|
}
|
|
|
|
export const prismaVersion: PrismaVersion
|
|
|
|
/**
|
|
* Utility Types
|
|
*/
|
|
|
|
|
|
export import JsonObject = runtime.JsonObject
|
|
export import JsonArray = runtime.JsonArray
|
|
export import JsonValue = runtime.JsonValue
|
|
export import InputJsonObject = runtime.InputJsonObject
|
|
export import InputJsonArray = runtime.InputJsonArray
|
|
export import InputJsonValue = runtime.InputJsonValue
|
|
|
|
/**
|
|
* Types of the values used to represent different kinds of `null` values when working with JSON fields.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
namespace NullTypes {
|
|
/**
|
|
* Type of `Prisma.DbNull`.
|
|
*
|
|
* You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
class DbNull {
|
|
private DbNull: never
|
|
private constructor()
|
|
}
|
|
|
|
/**
|
|
* Type of `Prisma.JsonNull`.
|
|
*
|
|
* You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
class JsonNull {
|
|
private JsonNull: never
|
|
private constructor()
|
|
}
|
|
|
|
/**
|
|
* Type of `Prisma.AnyNull`.
|
|
*
|
|
* You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
class AnyNull {
|
|
private AnyNull: never
|
|
private constructor()
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const DbNull: NullTypes.DbNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const JsonNull: NullTypes.JsonNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const AnyNull: NullTypes.AnyNull
|
|
|
|
type SelectAndInclude = {
|
|
select: any
|
|
include: any
|
|
}
|
|
|
|
type SelectAndOmit = {
|
|
select: any
|
|
omit: any
|
|
}
|
|
|
|
/**
|
|
* Get the type of the value, that the Promise holds.
|
|
*/
|
|
export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
|
|
|
|
/**
|
|
* Get the return type of a function which returns a Promise.
|
|
*/
|
|
export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
|
|
|
|
/**
|
|
* From T, pick a set of properties whose keys are in the union K
|
|
*/
|
|
type Prisma__Pick<T, K extends keyof T> = {
|
|
[P in K]: T[P];
|
|
};
|
|
|
|
|
|
export type Enumerable<T> = T | Array<T>;
|
|
|
|
export type RequiredKeys<T> = {
|
|
[K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
|
|
}[keyof T]
|
|
|
|
export type TruthyKeys<T> = keyof {
|
|
[K in keyof T as T[K] extends false | undefined | null ? never : K]: K
|
|
}
|
|
|
|
export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
|
|
|
|
/**
|
|
* Subset
|
|
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection
|
|
*/
|
|
export type Subset<T, U> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
};
|
|
|
|
/**
|
|
* SelectSubset
|
|
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
|
|
* Additionally, it validates, if both select and include are present. If the case, it errors.
|
|
*/
|
|
export type SelectSubset<T, U> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
} &
|
|
(T extends SelectAndInclude
|
|
? 'Please either choose `select` or `include`.'
|
|
: T extends SelectAndOmit
|
|
? 'Please either choose `select` or `omit`.'
|
|
: {})
|
|
|
|
/**
|
|
* Subset + Intersection
|
|
* @desc From `T` pick properties that exist in `U` and intersect `K`
|
|
*/
|
|
export type SubsetIntersection<T, U, K> = {
|
|
[key in keyof T]: key extends keyof U ? T[key] : never
|
|
} &
|
|
K
|
|
|
|
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
|
|
|
/**
|
|
* XOR is needed to have a real mutually exclusive union type
|
|
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
|
|
*/
|
|
type XOR<T, U> =
|
|
T extends object ?
|
|
U extends object ?
|
|
(Without<T, U> & U) | (Without<U, T> & T)
|
|
: U : T
|
|
|
|
|
|
/**
|
|
* Is T a Record?
|
|
*/
|
|
type IsObject<T extends any> = T extends Array<any>
|
|
? False
|
|
: T extends Date
|
|
? False
|
|
: T extends Uint8Array
|
|
? False
|
|
: T extends BigInt
|
|
? False
|
|
: T extends object
|
|
? True
|
|
: False
|
|
|
|
|
|
/**
|
|
* If it's T[], return T
|
|
*/
|
|
export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
|
|
|
|
/**
|
|
* From ts-toolbelt
|
|
*/
|
|
|
|
type __Either<O extends object, K extends Key> = Omit<O, K> &
|
|
{
|
|
// Merge all but K
|
|
[P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
|
|
}[K]
|
|
|
|
type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
|
|
|
|
type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
|
|
|
|
type _Either<
|
|
O extends object,
|
|
K extends Key,
|
|
strict extends Boolean
|
|
> = {
|
|
1: EitherStrict<O, K>
|
|
0: EitherLoose<O, K>
|
|
}[strict]
|
|
|
|
type Either<
|
|
O extends object,
|
|
K extends Key,
|
|
strict extends Boolean = 1
|
|
> = O extends unknown ? _Either<O, K, strict> : never
|
|
|
|
export type Union = any
|
|
|
|
type PatchUndefined<O extends object, O1 extends object> = {
|
|
[K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
|
|
} & {}
|
|
|
|
/** Helper Types for "Merge" **/
|
|
export type IntersectOf<U extends Union> = (
|
|
U extends unknown ? (k: U) => void : never
|
|
) extends (k: infer I) => void
|
|
? I
|
|
: never
|
|
|
|
export type Overwrite<O extends object, O1 extends object> = {
|
|
[K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
|
|
} & {};
|
|
|
|
type _Merge<U extends object> = IntersectOf<Overwrite<U, {
|
|
[K in keyof U]-?: At<U, K>;
|
|
}>>;
|
|
|
|
type Key = string | number | symbol;
|
|
type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
|
|
type AtStrict<O extends object, K extends Key> = O[K & keyof O];
|
|
type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
|
|
export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
|
|
1: AtStrict<O, K>;
|
|
0: AtLoose<O, K>;
|
|
}[strict];
|
|
|
|
export type ComputeRaw<A extends any> = A extends Function ? A : {
|
|
[K in keyof A]: A[K];
|
|
} & {};
|
|
|
|
export type OptionalFlat<O> = {
|
|
[K in keyof O]?: O[K];
|
|
} & {};
|
|
|
|
type _Record<K extends keyof any, T> = {
|
|
[P in K]: T;
|
|
};
|
|
|
|
// cause typescript not to expand types and preserve names
|
|
type NoExpand<T> = T extends unknown ? T : never;
|
|
|
|
// this type assumes the passed object is entirely optional
|
|
type AtLeast<O extends object, K extends string> = NoExpand<
|
|
O extends unknown
|
|
? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
|
|
| {[P in keyof O as P extends K ? K : never]-?: O[P]} & O
|
|
: never>;
|
|
|
|
type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
|
|
|
|
export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
|
|
/** End Helper Types for "Merge" **/
|
|
|
|
export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
|
|
|
|
/**
|
|
A [[Boolean]]
|
|
*/
|
|
export type Boolean = True | False
|
|
|
|
// /**
|
|
// 1
|
|
// */
|
|
export type True = 1
|
|
|
|
/**
|
|
0
|
|
*/
|
|
export type False = 0
|
|
|
|
export type Not<B extends Boolean> = {
|
|
0: 1
|
|
1: 0
|
|
}[B]
|
|
|
|
export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
|
|
? 0 // anything `never` is false
|
|
: A1 extends A2
|
|
? 1
|
|
: 0
|
|
|
|
export type Has<U extends Union, U1 extends Union> = Not<
|
|
Extends<Exclude<U1, U>, U1>
|
|
>
|
|
|
|
export type Or<B1 extends Boolean, B2 extends Boolean> = {
|
|
0: {
|
|
0: 0
|
|
1: 1
|
|
}
|
|
1: {
|
|
0: 1
|
|
1: 1
|
|
}
|
|
}[B1][B2]
|
|
|
|
export type Keys<U extends Union> = U extends unknown ? keyof U : never
|
|
|
|
type Cast<A, B> = A extends B ? A : B;
|
|
|
|
export const type: unique symbol;
|
|
|
|
|
|
|
|
/**
|
|
* Used by group by
|
|
*/
|
|
|
|
export type GetScalarType<T, O> = O extends object ? {
|
|
[P in keyof T]: P extends keyof O
|
|
? O[P]
|
|
: never
|
|
} : never
|
|
|
|
type FieldPaths<
|
|
T,
|
|
U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
|
|
> = IsObject<T> extends True ? U : T
|
|
|
|
type GetHavingFields<T> = {
|
|
[K in keyof T]: Or<
|
|
Or<Extends<'OR', K>, Extends<'AND', K>>,
|
|
Extends<'NOT', K>
|
|
> extends True
|
|
? // infer is only needed to not hit TS limit
|
|
// based on the brilliant idea of Pierre-Antoine Mills
|
|
// https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
|
|
T[K] extends infer TK
|
|
? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
|
|
: never
|
|
: {} extends FieldPaths<T[K]>
|
|
? never
|
|
: K
|
|
}[keyof T]
|
|
|
|
/**
|
|
* Convert tuple to union
|
|
*/
|
|
type _TupleToUnion<T> = T extends (infer E)[] ? E : never
|
|
type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
|
|
type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
|
|
|
|
/**
|
|
* Like `Pick`, but additionally can also accept an array of keys
|
|
*/
|
|
type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
|
|
|
|
/**
|
|
* Exclude all keys with underscores
|
|
*/
|
|
type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
|
|
|
|
|
|
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
|
|
|
|
type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
|
|
|
|
|
|
export const ModelName: {
|
|
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<string, any>> {
|
|
returns: Prisma.TypeMap<this['params']['extArgs'], this['params']['clientOptions']>
|
|
}
|
|
|
|
export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
|
|
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<ExtArgs>
|
|
fields: Prisma.PriceBookFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.PriceBookFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.PriceBookFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.PriceBookFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.PriceBookFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.PriceBookFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.PriceBookCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.PriceBookCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.PriceBookCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.PriceBookDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.PriceBookUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.PriceBookDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.PriceBookUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.PriceBookUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceBookPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.PriceBookAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregatePriceBook>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.PriceBookGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<PriceBookGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.PriceBookCountArgs<ExtArgs>
|
|
result: $Utils.Optional<PriceBookCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
PriceTable: {
|
|
payload: Prisma.$PriceTablePayload<ExtArgs>
|
|
fields: Prisma.PriceTableFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.PriceTableFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.PriceTableFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.PriceTableFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.PriceTableFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.PriceTableFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.PriceTableCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.PriceTableCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.PriceTableCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.PriceTableDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.PriceTableUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.PriceTableDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.PriceTableUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.PriceTableUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceTablePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.PriceTableAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregatePriceTable>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.PriceTableGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<PriceTableGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.PriceTableCountArgs<ExtArgs>
|
|
result: $Utils.Optional<PriceTableCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
PriceItem: {
|
|
payload: Prisma.$PriceItemPayload<ExtArgs>
|
|
fields: Prisma.PriceItemFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.PriceItemFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.PriceItemFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.PriceItemFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.PriceItemFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.PriceItemFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.PriceItemCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.PriceItemCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.PriceItemCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.PriceItemDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.PriceItemUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.PriceItemDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.PriceItemUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.PriceItemUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$PriceItemPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.PriceItemAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregatePriceItem>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.PriceItemGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<PriceItemGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.PriceItemCountArgs<ExtArgs>
|
|
result: $Utils.Optional<PriceItemCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Coefficient: {
|
|
payload: Prisma.$CoefficientPayload<ExtArgs>
|
|
fields: Prisma.CoefficientFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.CoefficientFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.CoefficientFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.CoefficientFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.CoefficientFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.CoefficientFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.CoefficientCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.CoefficientCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.CoefficientCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.CoefficientDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.CoefficientUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.CoefficientDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.CoefficientUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.CoefficientUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$CoefficientPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.CoefficientAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateCoefficient>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.CoefficientGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<CoefficientGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.CoefficientCountArgs<ExtArgs>
|
|
result: $Utils.Optional<CoefficientCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
InflationIndex: {
|
|
payload: Prisma.$InflationIndexPayload<ExtArgs>
|
|
fields: Prisma.InflationIndexFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.InflationIndexFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.InflationIndexFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.InflationIndexFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.InflationIndexFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.InflationIndexFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.InflationIndexCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.InflationIndexCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.InflationIndexCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.InflationIndexDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.InflationIndexUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.InflationIndexDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.InflationIndexUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.InflationIndexUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$InflationIndexPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.InflationIndexAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateInflationIndex>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.InflationIndexGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<InflationIndexGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.InflationIndexCountArgs<ExtArgs>
|
|
result: $Utils.Optional<InflationIndexCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
User: {
|
|
payload: Prisma.$UserPayload<ExtArgs>
|
|
fields: Prisma.UserFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.UserFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.UserFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.UserFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.UserCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.UserCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.UserDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.UserUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.UserDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.UserUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.UserUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$UserPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.UserAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateUser>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.UserGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<UserGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.UserCountArgs<ExtArgs>
|
|
result: $Utils.Optional<UserCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
SurveyDirection: {
|
|
payload: Prisma.$SurveyDirectionPayload<ExtArgs>
|
|
fields: Prisma.SurveyDirectionFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.SurveyDirectionFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.SurveyDirectionFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.SurveyDirectionFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.SurveyDirectionFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.SurveyDirectionFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.SurveyDirectionCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.SurveyDirectionCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.SurveyDirectionCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.SurveyDirectionDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.SurveyDirectionUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.SurveyDirectionDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.SurveyDirectionUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.SurveyDirectionUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SurveyDirectionPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SurveyDirectionAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSurveyDirection>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.SurveyDirectionGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SurveyDirectionGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.SurveyDirectionCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SurveyDirectionCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Estimate: {
|
|
payload: Prisma.$EstimatePayload<ExtArgs>
|
|
fields: Prisma.EstimateFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.EstimateFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.EstimateFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.EstimateFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.EstimateFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.EstimateFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.EstimateCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.EstimateCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.EstimateCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.EstimateDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.EstimateUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.EstimateDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.EstimateUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.EstimateUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimatePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.EstimateAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateEstimate>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.EstimateGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.EstimateCountArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
EstimateVersion: {
|
|
payload: Prisma.$EstimateVersionPayload<ExtArgs>
|
|
fields: Prisma.EstimateVersionFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.EstimateVersionFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.EstimateVersionFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.EstimateVersionFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.EstimateVersionFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.EstimateVersionFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.EstimateVersionCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.EstimateVersionCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.EstimateVersionCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.EstimateVersionDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.EstimateVersionUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.EstimateVersionDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.EstimateVersionUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.EstimateVersionUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateVersionPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.EstimateVersionAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateEstimateVersion>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.EstimateVersionGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateVersionGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.EstimateVersionCountArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateVersionCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
EstimateShare: {
|
|
payload: Prisma.$EstimateSharePayload<ExtArgs>
|
|
fields: Prisma.EstimateShareFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.EstimateShareFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.EstimateShareFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.EstimateShareFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.EstimateShareFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.EstimateShareFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.EstimateShareCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.EstimateShareCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.EstimateShareCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.EstimateShareDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.EstimateShareUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.EstimateShareDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.EstimateShareUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.EstimateShareUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateSharePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.EstimateShareAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateEstimateShare>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.EstimateShareGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateShareGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.EstimateShareCountArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateShareCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
EstimateShareNote: {
|
|
payload: Prisma.$EstimateShareNotePayload<ExtArgs>
|
|
fields: Prisma.EstimateShareNoteFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.EstimateShareNoteFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.EstimateShareNoteFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.EstimateShareNoteFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.EstimateShareNoteFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.EstimateShareNoteFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.EstimateShareNoteCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.EstimateShareNoteCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.EstimateShareNoteCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.EstimateShareNoteDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.EstimateShareNoteUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.EstimateShareNoteDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.EstimateShareNoteUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.EstimateShareNoteUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateShareNotePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.EstimateShareNoteAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateEstimateShareNote>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.EstimateShareNoteGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateShareNoteGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.EstimateShareNoteCountArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateShareNoteCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
EstimateItem: {
|
|
payload: Prisma.$EstimateItemPayload<ExtArgs>
|
|
fields: Prisma.EstimateItemFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.EstimateItemFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.EstimateItemFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.EstimateItemFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.EstimateItemFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.EstimateItemFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.EstimateItemCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.EstimateItemCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.EstimateItemCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.EstimateItemDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.EstimateItemUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.EstimateItemDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.EstimateItemUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.EstimateItemUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateItemPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.EstimateItemAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateEstimateItem>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.EstimateItemGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateItemGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.EstimateItemCountArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateItemCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
EstimateTotal: {
|
|
payload: Prisma.$EstimateTotalPayload<ExtArgs>
|
|
fields: Prisma.EstimateTotalFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.EstimateTotalFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.EstimateTotalFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.EstimateTotalFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.EstimateTotalFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.EstimateTotalFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.EstimateTotalCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.EstimateTotalCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.EstimateTotalCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.EstimateTotalDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.EstimateTotalUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.EstimateTotalDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.EstimateTotalUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.EstimateTotalUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$EstimateTotalPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.EstimateTotalAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateEstimateTotal>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.EstimateTotalGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateTotalGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.EstimateTotalCountArgs<ExtArgs>
|
|
result: $Utils.Optional<EstimateTotalCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
Setting: {
|
|
payload: Prisma.$SettingPayload<ExtArgs>
|
|
fields: Prisma.SettingFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.SettingFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.SettingFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.SettingFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.SettingFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.SettingFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.SettingCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.SettingCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.SettingCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.SettingDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.SettingUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.SettingDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.SettingUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.SettingUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$SettingPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.SettingAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateSetting>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.SettingGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<SettingGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.SettingCountArgs<ExtArgs>
|
|
result: $Utils.Optional<SettingCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
ChatSession: {
|
|
payload: Prisma.$ChatSessionPayload<ExtArgs>
|
|
fields: Prisma.ChatSessionFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ChatSessionFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ChatSessionFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ChatSessionFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ChatSessionFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ChatSessionFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ChatSessionCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ChatSessionCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.ChatSessionCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.ChatSessionDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ChatSessionUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ChatSessionDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ChatSessionUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ChatSessionUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatSessionPayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ChatSessionAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateChatSession>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ChatSessionGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ChatSessionGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ChatSessionCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ChatSessionCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
ChatMessage: {
|
|
payload: Prisma.$ChatMessagePayload<ExtArgs>
|
|
fields: Prisma.ChatMessageFieldRefs
|
|
operations: {
|
|
findUnique: {
|
|
args: Prisma.ChatMessageFindUniqueArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload> | null
|
|
}
|
|
findUniqueOrThrow: {
|
|
args: Prisma.ChatMessageFindUniqueOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload>
|
|
}
|
|
findFirst: {
|
|
args: Prisma.ChatMessageFindFirstArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload> | null
|
|
}
|
|
findFirstOrThrow: {
|
|
args: Prisma.ChatMessageFindFirstOrThrowArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload>
|
|
}
|
|
findMany: {
|
|
args: Prisma.ChatMessageFindManyArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload>[]
|
|
}
|
|
create: {
|
|
args: Prisma.ChatMessageCreateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload>
|
|
}
|
|
createMany: {
|
|
args: Prisma.ChatMessageCreateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
createManyAndReturn: {
|
|
args: Prisma.ChatMessageCreateManyAndReturnArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload>[]
|
|
}
|
|
delete: {
|
|
args: Prisma.ChatMessageDeleteArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload>
|
|
}
|
|
update: {
|
|
args: Prisma.ChatMessageUpdateArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload>
|
|
}
|
|
deleteMany: {
|
|
args: Prisma.ChatMessageDeleteManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
updateMany: {
|
|
args: Prisma.ChatMessageUpdateManyArgs<ExtArgs>
|
|
result: BatchPayload
|
|
}
|
|
upsert: {
|
|
args: Prisma.ChatMessageUpsertArgs<ExtArgs>
|
|
result: $Utils.PayloadToResult<Prisma.$ChatMessagePayload>
|
|
}
|
|
aggregate: {
|
|
args: Prisma.ChatMessageAggregateArgs<ExtArgs>
|
|
result: $Utils.Optional<AggregateChatMessage>
|
|
}
|
|
groupBy: {
|
|
args: Prisma.ChatMessageGroupByArgs<ExtArgs>
|
|
result: $Utils.Optional<ChatMessageGroupByOutputType>[]
|
|
}
|
|
count: {
|
|
args: Prisma.ChatMessageCountArgs<ExtArgs>
|
|
result: $Utils.Optional<ChatMessageCountAggregateOutputType> | number
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} & {
|
|
other: {
|
|
payload: any
|
|
operations: {
|
|
$executeRaw: {
|
|
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
|
|
result: any
|
|
}
|
|
$executeRawUnsafe: {
|
|
args: [query: string, ...values: any[]],
|
|
result: any
|
|
}
|
|
$queryRaw: {
|
|
args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
|
|
result: any
|
|
}
|
|
$queryRawUnsafe: {
|
|
args: [query: string, ...values: any[]],
|
|
result: any
|
|
}
|
|
}
|
|
}
|
|
}
|
|
export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
|
|
export type DefaultPrismaClient = PrismaClient
|
|
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
|
|
export interface PrismaClientOptions {
|
|
/**
|
|
* Overwrites the datasource url from your schema.prisma file
|
|
*/
|
|
datasources?: Datasources
|
|
/**
|
|
* Overwrites the datasource url from your schema.prisma file
|
|
*/
|
|
datasourceUrl?: string
|
|
/**
|
|
* @default "colorless"
|
|
*/
|
|
errorFormat?: ErrorFormat
|
|
/**
|
|
* @example
|
|
* ```
|
|
* // Defaults to stdout
|
|
* log: ['query', 'info', 'warn', 'error']
|
|
*
|
|
* // Emit as events
|
|
* log: [
|
|
* { emit: 'stdout', level: 'query' },
|
|
* { emit: 'stdout', level: 'info' },
|
|
* { emit: 'stdout', level: 'warn' }
|
|
* { emit: 'stdout', level: 'error' }
|
|
* ]
|
|
* ```
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
|
|
*/
|
|
log?: (LogLevel | LogDefinition)[]
|
|
/**
|
|
* The default values for transactionOptions
|
|
* maxWait ?= 2000
|
|
* timeout ?= 5000
|
|
*/
|
|
transactionOptions?: {
|
|
maxWait?: number
|
|
timeout?: number
|
|
isolationLevel?: Prisma.TransactionIsolationLevel
|
|
}
|
|
}
|
|
|
|
|
|
/* Types for Logging */
|
|
export type LogLevel = 'info' | 'query' | 'warn' | 'error'
|
|
export type LogDefinition = {
|
|
level: LogLevel
|
|
emit: 'stdout' | 'event'
|
|
}
|
|
|
|
export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
|
|
export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ?
|
|
GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]>
|
|
: never
|
|
|
|
export type QueryEvent = {
|
|
timestamp: Date
|
|
query: string
|
|
params: string
|
|
duration: number
|
|
target: string
|
|
}
|
|
|
|
export type LogEvent = {
|
|
timestamp: Date
|
|
message: string
|
|
target: string
|
|
}
|
|
/* End Types for Logging */
|
|
|
|
|
|
export type PrismaAction =
|
|
| 'findUnique'
|
|
| 'findUniqueOrThrow'
|
|
| 'findMany'
|
|
| 'findFirst'
|
|
| 'findFirstOrThrow'
|
|
| 'create'
|
|
| 'createMany'
|
|
| 'createManyAndReturn'
|
|
| 'update'
|
|
| 'updateMany'
|
|
| 'upsert'
|
|
| 'delete'
|
|
| 'deleteMany'
|
|
| 'executeRaw'
|
|
| 'queryRaw'
|
|
| 'aggregate'
|
|
| 'count'
|
|
| 'runCommandRaw'
|
|
| 'findRaw'
|
|
| 'groupBy'
|
|
|
|
/**
|
|
* These options are being passed into the middleware as "params"
|
|
*/
|
|
export type MiddlewareParams = {
|
|
model?: ModelName
|
|
action: PrismaAction
|
|
args: any
|
|
dataPath: string[]
|
|
runInTransaction: boolean
|
|
}
|
|
|
|
/**
|
|
* The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
|
|
*/
|
|
export type Middleware<T = any> = (
|
|
params: MiddlewareParams,
|
|
next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
|
|
) => $Utils.JsPromise<T>
|
|
|
|
// tested in getLogLevel.test.ts
|
|
export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
|
|
|
|
/**
|
|
* `PrismaClient` proxy available in interactive transactions.
|
|
*/
|
|
export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
|
|
|
|
export type Datasource = {
|
|
url?: string
|
|
}
|
|
|
|
/**
|
|
* Count Types
|
|
*/
|
|
|
|
|
|
/**
|
|
* Count Type PriceBookCountOutputType
|
|
*/
|
|
|
|
export type PriceBookCountOutputType = {
|
|
tables: number
|
|
items: number
|
|
}
|
|
|
|
export type PriceBookCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
tables?: boolean | PriceBookCountOutputTypeCountTablesArgs
|
|
items?: boolean | PriceBookCountOutputTypeCountItemsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PriceBookCountOutputType without action
|
|
*/
|
|
export type PriceBookCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBookCountOutputType
|
|
*/
|
|
select?: PriceBookCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PriceBookCountOutputType without action
|
|
*/
|
|
export type PriceBookCountOutputTypeCountTablesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: PriceTableWhereInput
|
|
}
|
|
|
|
/**
|
|
* PriceBookCountOutputType without action
|
|
*/
|
|
export type PriceBookCountOutputTypeCountItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: PriceItemWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type PriceTableCountOutputType
|
|
*/
|
|
|
|
export type PriceTableCountOutputType = {
|
|
items: number
|
|
}
|
|
|
|
export type PriceTableCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
items?: boolean | PriceTableCountOutputTypeCountItemsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PriceTableCountOutputType without action
|
|
*/
|
|
export type PriceTableCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTableCountOutputType
|
|
*/
|
|
select?: PriceTableCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PriceTableCountOutputType without action
|
|
*/
|
|
export type PriceTableCountOutputTypeCountItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: PriceItemWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type PriceItemCountOutputType
|
|
*/
|
|
|
|
export type PriceItemCountOutputType = {
|
|
estimateItems: number
|
|
}
|
|
|
|
export type PriceItemCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimateItems?: boolean | PriceItemCountOutputTypeCountEstimateItemsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PriceItemCountOutputType without action
|
|
*/
|
|
export type PriceItemCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItemCountOutputType
|
|
*/
|
|
select?: PriceItemCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PriceItemCountOutputType without action
|
|
*/
|
|
export type PriceItemCountOutputTypeCountEstimateItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateItemWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type UserCountOutputType
|
|
*/
|
|
|
|
export type UserCountOutputType = {
|
|
estimates: number
|
|
chatSessions: number
|
|
ownedShares: number
|
|
receivedShares: number
|
|
shareNotes: number
|
|
}
|
|
|
|
export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimates?: boolean | UserCountOutputTypeCountEstimatesArgs
|
|
chatSessions?: boolean | UserCountOutputTypeCountChatSessionsArgs
|
|
ownedShares?: boolean | UserCountOutputTypeCountOwnedSharesArgs
|
|
receivedShares?: boolean | UserCountOutputTypeCountReceivedSharesArgs
|
|
shareNotes?: boolean | UserCountOutputTypeCountShareNotesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserCountOutputType
|
|
*/
|
|
select?: UserCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountEstimatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountChatSessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: ChatSessionWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountOwnedSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountReceivedSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountShareNotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateShareNoteWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type SurveyDirectionCountOutputType
|
|
*/
|
|
|
|
export type SurveyDirectionCountOutputType = {
|
|
estimates: number
|
|
}
|
|
|
|
export type SurveyDirectionCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimates?: boolean | SurveyDirectionCountOutputTypeCountEstimatesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SurveyDirectionCountOutputType without action
|
|
*/
|
|
export type SurveyDirectionCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirectionCountOutputType
|
|
*/
|
|
select?: SurveyDirectionCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SurveyDirectionCountOutputType without action
|
|
*/
|
|
export type SurveyDirectionCountOutputTypeCountEstimatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type EstimateCountOutputType
|
|
*/
|
|
|
|
export type EstimateCountOutputType = {
|
|
items: number
|
|
totals: number
|
|
shares: number
|
|
versions: number
|
|
}
|
|
|
|
export type EstimateCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
items?: boolean | EstimateCountOutputTypeCountItemsArgs
|
|
totals?: boolean | EstimateCountOutputTypeCountTotalsArgs
|
|
shares?: boolean | EstimateCountOutputTypeCountSharesArgs
|
|
versions?: boolean | EstimateCountOutputTypeCountVersionsArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* EstimateCountOutputType without action
|
|
*/
|
|
export type EstimateCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateCountOutputType
|
|
*/
|
|
select?: EstimateCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* EstimateCountOutputType without action
|
|
*/
|
|
export type EstimateCountOutputTypeCountItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateItemWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateCountOutputType without action
|
|
*/
|
|
export type EstimateCountOutputTypeCountTotalsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateTotalWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateCountOutputType without action
|
|
*/
|
|
export type EstimateCountOutputTypeCountSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateCountOutputType without action
|
|
*/
|
|
export type EstimateCountOutputTypeCountVersionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateVersionWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type EstimateShareCountOutputType
|
|
*/
|
|
|
|
export type EstimateShareCountOutputType = {
|
|
notes: number
|
|
}
|
|
|
|
export type EstimateShareCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
notes?: boolean | EstimateShareCountOutputTypeCountNotesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* EstimateShareCountOutputType without action
|
|
*/
|
|
export type EstimateShareCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareCountOutputType
|
|
*/
|
|
select?: EstimateShareCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* EstimateShareCountOutputType without action
|
|
*/
|
|
export type EstimateShareCountOutputTypeCountNotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: EstimateShareNoteWhereInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type ChatSessionCountOutputType
|
|
*/
|
|
|
|
export type ChatSessionCountOutputType = {
|
|
messages: number
|
|
}
|
|
|
|
export type ChatSessionCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
messages?: boolean | ChatSessionCountOutputTypeCountMessagesArgs
|
|
}
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* ChatSessionCountOutputType without action
|
|
*/
|
|
export type ChatSessionCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSessionCountOutputType
|
|
*/
|
|
select?: ChatSessionCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ChatSessionCountOutputType without action
|
|
*/
|
|
export type ChatSessionCountOutputTypeCountMessagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends PriceBookAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePriceBook]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregatePriceBook[P]>
|
|
: GetScalarType<T[P], AggregatePriceBook[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PriceBookGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends PriceBookGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<PriceBookGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PriceBookGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], PriceBookGroupByOutputType[P]>
|
|
: GetScalarType<T[P], PriceBookGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type PriceBookSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
code?: boolean
|
|
name?: boolean
|
|
baseDate?: boolean
|
|
approvedBy?: boolean
|
|
effectiveDate?: boolean
|
|
isActive?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tables?: boolean | PriceBook$tablesArgs<ExtArgs>
|
|
items?: boolean | PriceBook$itemsArgs<ExtArgs>
|
|
_count?: boolean | PriceBookCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["priceBook"]>
|
|
|
|
export type PriceBookSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
tables?: boolean | PriceBook$tablesArgs<ExtArgs>
|
|
items?: boolean | PriceBook$itemsArgs<ExtArgs>
|
|
_count?: boolean | PriceBookCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type PriceBookIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
|
|
|
|
export type $PriceBookPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "PriceBook"
|
|
objects: {
|
|
tables: Prisma.$PriceTablePayload<ExtArgs>[]
|
|
items: Prisma.$PriceItemPayload<ExtArgs>[]
|
|
}
|
|
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<S extends boolean | null | undefined | PriceBookDefaultArgs> = $Result.GetResult<Prisma.$PriceBookPayload, S>
|
|
|
|
type PriceBookCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<PriceBookFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: PriceBookCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PriceBookDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends PriceBookFindUniqueArgs>(args: SelectSubset<T, PriceBookFindUniqueArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookFindUniqueOrThrowArgs>(args: SelectSubset<T, PriceBookFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookFindFirstArgs>(args?: SelectSubset<T, PriceBookFindFirstArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookFindFirstOrThrowArgs>(args?: SelectSubset<T, PriceBookFindFirstOrThrowArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookFindManyArgs>(args?: SelectSubset<T, PriceBookFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookCreateArgs>(args: SelectSubset<T, PriceBookCreateArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookCreateManyArgs>(args?: SelectSubset<T, PriceBookCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PriceBookCreateManyAndReturnArgs>(args?: SelectSubset<T, PriceBookCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookDeleteArgs>(args: SelectSubset<T, PriceBookDeleteArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookUpdateArgs>(args: SelectSubset<T, PriceBookUpdateArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookDeleteManyArgs>(args?: SelectSubset<T, PriceBookDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PriceBookUpdateManyArgs>(args: SelectSubset<T, PriceBookUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PriceBookUpsertArgs>(args: SelectSubset<T, PriceBookUpsertArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, 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<T extends PriceBookCountArgs>(
|
|
args?: Subset<T, PriceBookCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], PriceBookCountAggregateOutputType>
|
|
: 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<T extends PriceBookAggregateArgs>(args: Subset<T, PriceBookAggregateArgs>): Prisma.PrismaPromise<GetPriceBookAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: PriceBookGroupByArgs['orderBy'] }
|
|
: { orderBy?: PriceBookGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, PriceBookGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPriceBookGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
tables<T extends PriceBook$tablesArgs<ExtArgs> = {}>(args?: Subset<T, PriceBook$tablesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, T, "findMany"> | Null>
|
|
items<T extends PriceBook$itemsArgs<ExtArgs> = {}>(args?: Subset<T, PriceBook$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PriceBook to fetch.
|
|
*/
|
|
where: PriceBookWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceBook findUniqueOrThrow
|
|
*/
|
|
export type PriceBookFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PriceBook to fetch.
|
|
*/
|
|
where: PriceBookWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceBook findFirst
|
|
*/
|
|
export type PriceBookFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a PriceBook.
|
|
*/
|
|
data: XOR<PriceBookCreateInput, PriceBookUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* PriceBook createMany
|
|
*/
|
|
export type PriceBookCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many PriceBooks.
|
|
*/
|
|
data: PriceBookCreateManyInput | PriceBookCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PriceBook createManyAndReturn
|
|
*/
|
|
export type PriceBookCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many PriceBooks.
|
|
*/
|
|
data: PriceBookCreateManyInput | PriceBookCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PriceBook update
|
|
*/
|
|
export type PriceBookUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a PriceBook.
|
|
*/
|
|
data: XOR<PriceBookUpdateInput, PriceBookUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which PriceBook to update.
|
|
*/
|
|
where: PriceBookWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceBook updateMany
|
|
*/
|
|
export type PriceBookUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update PriceBooks.
|
|
*/
|
|
data: XOR<PriceBookUpdateManyMutationInput, PriceBookUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PriceBooks to update
|
|
*/
|
|
where?: PriceBookWhereInput
|
|
}
|
|
|
|
/**
|
|
* PriceBook upsert
|
|
*/
|
|
export type PriceBookUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | 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<PriceBookCreateInput, PriceBookUncheckedCreateInput>
|
|
/**
|
|
* In case the PriceBook was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<PriceBookUpdateInput, PriceBookUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* PriceBook delete
|
|
*/
|
|
export type PriceBookDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which PriceBook to delete.
|
|
*/
|
|
where: PriceBookWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceBook deleteMany
|
|
*/
|
|
export type PriceBookDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PriceBooks to delete
|
|
*/
|
|
where?: PriceBookWhereInput
|
|
}
|
|
|
|
/**
|
|
* PriceBook.tables
|
|
*/
|
|
export type PriceBook$tablesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | null
|
|
where?: PriceTableWhereInput
|
|
orderBy?: PriceTableOrderByWithRelationInput | PriceTableOrderByWithRelationInput[]
|
|
cursor?: PriceTableWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: PriceTableScalarFieldEnum | PriceTableScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PriceBook.items
|
|
*/
|
|
export type PriceBook$itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | null
|
|
where?: PriceItemWhereInput
|
|
orderBy?: PriceItemOrderByWithRelationInput | PriceItemOrderByWithRelationInput[]
|
|
cursor?: PriceItemWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: PriceItemScalarFieldEnum | PriceItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PriceBook without action
|
|
*/
|
|
export type PriceBookDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceBook
|
|
*/
|
|
select?: PriceBookSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceBookInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends PriceTableAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePriceTable]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregatePriceTable[P]>
|
|
: GetScalarType<T[P], AggregatePriceTable[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PriceTableGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends PriceTableGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<PriceTableGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PriceTableGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], PriceTableGroupByOutputType[P]>
|
|
: GetScalarType<T[P], PriceTableGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type PriceTableSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
priceBookId?: boolean
|
|
tableNumber?: boolean
|
|
name?: boolean
|
|
unit?: boolean
|
|
notes?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
priceBook?: boolean | PriceBookDefaultArgs<ExtArgs>
|
|
items?: boolean | PriceTable$itemsArgs<ExtArgs>
|
|
_count?: boolean | PriceTableCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["priceTable"]>
|
|
|
|
export type PriceTableSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
priceBookId?: boolean
|
|
tableNumber?: boolean
|
|
name?: boolean
|
|
unit?: boolean
|
|
notes?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
priceBook?: boolean | PriceBookDefaultArgs<ExtArgs>
|
|
}, 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
priceBook?: boolean | PriceBookDefaultArgs<ExtArgs>
|
|
items?: boolean | PriceTable$itemsArgs<ExtArgs>
|
|
_count?: boolean | PriceTableCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type PriceTableIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
priceBook?: boolean | PriceBookDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $PriceTablePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "PriceTable"
|
|
objects: {
|
|
priceBook: Prisma.$PriceBookPayload<ExtArgs>
|
|
items: Prisma.$PriceItemPayload<ExtArgs>[]
|
|
}
|
|
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<S extends boolean | null | undefined | PriceTableDefaultArgs> = $Result.GetResult<Prisma.$PriceTablePayload, S>
|
|
|
|
type PriceTableCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<PriceTableFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: PriceTableCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PriceTableDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends PriceTableFindUniqueArgs>(args: SelectSubset<T, PriceTableFindUniqueArgs<ExtArgs>>): Prisma__PriceTableClient<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableFindUniqueOrThrowArgs>(args: SelectSubset<T, PriceTableFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PriceTableClient<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableFindFirstArgs>(args?: SelectSubset<T, PriceTableFindFirstArgs<ExtArgs>>): Prisma__PriceTableClient<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableFindFirstOrThrowArgs>(args?: SelectSubset<T, PriceTableFindFirstOrThrowArgs<ExtArgs>>): Prisma__PriceTableClient<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableFindManyArgs>(args?: SelectSubset<T, PriceTableFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableCreateArgs>(args: SelectSubset<T, PriceTableCreateArgs<ExtArgs>>): Prisma__PriceTableClient<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableCreateManyArgs>(args?: SelectSubset<T, PriceTableCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PriceTableCreateManyAndReturnArgs>(args?: SelectSubset<T, PriceTableCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableDeleteArgs>(args: SelectSubset<T, PriceTableDeleteArgs<ExtArgs>>): Prisma__PriceTableClient<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableUpdateArgs>(args: SelectSubset<T, PriceTableUpdateArgs<ExtArgs>>): Prisma__PriceTableClient<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableDeleteManyArgs>(args?: SelectSubset<T, PriceTableDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PriceTableUpdateManyArgs>(args: SelectSubset<T, PriceTableUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PriceTableUpsertArgs>(args: SelectSubset<T, PriceTableUpsertArgs<ExtArgs>>): Prisma__PriceTableClient<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, 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<T extends PriceTableCountArgs>(
|
|
args?: Subset<T, PriceTableCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], PriceTableCountAggregateOutputType>
|
|
: 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<T extends PriceTableAggregateArgs>(args: Subset<T, PriceTableAggregateArgs>): Prisma.PrismaPromise<GetPriceTableAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: PriceTableGroupByArgs['orderBy'] }
|
|
: { orderBy?: PriceTableGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, PriceTableGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPriceTableGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
priceBook<T extends PriceBookDefaultArgs<ExtArgs> = {}>(args?: Subset<T, PriceBookDefaultArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
items<T extends PriceTable$itemsArgs<ExtArgs> = {}>(args?: Subset<T, PriceTable$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PriceTable to fetch.
|
|
*/
|
|
where: PriceTableWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceTable findUniqueOrThrow
|
|
*/
|
|
export type PriceTableFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PriceTable to fetch.
|
|
*/
|
|
where: PriceTableWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceTable findFirst
|
|
*/
|
|
export type PriceTableFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a PriceTable.
|
|
*/
|
|
data: XOR<PriceTableCreateInput, PriceTableUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* PriceTable createMany
|
|
*/
|
|
export type PriceTableCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many PriceTables.
|
|
*/
|
|
data: PriceTableCreateManyInput | PriceTableCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PriceTable createManyAndReturn
|
|
*/
|
|
export type PriceTableCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many PriceTables.
|
|
*/
|
|
data: PriceTableCreateManyInput | PriceTableCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PriceTable update
|
|
*/
|
|
export type PriceTableUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a PriceTable.
|
|
*/
|
|
data: XOR<PriceTableUpdateInput, PriceTableUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which PriceTable to update.
|
|
*/
|
|
where: PriceTableWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceTable updateMany
|
|
*/
|
|
export type PriceTableUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update PriceTables.
|
|
*/
|
|
data: XOR<PriceTableUpdateManyMutationInput, PriceTableUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PriceTables to update
|
|
*/
|
|
where?: PriceTableWhereInput
|
|
}
|
|
|
|
/**
|
|
* PriceTable upsert
|
|
*/
|
|
export type PriceTableUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | 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<PriceTableCreateInput, PriceTableUncheckedCreateInput>
|
|
/**
|
|
* In case the PriceTable was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<PriceTableUpdateInput, PriceTableUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* PriceTable delete
|
|
*/
|
|
export type PriceTableDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which PriceTable to delete.
|
|
*/
|
|
where: PriceTableWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceTable deleteMany
|
|
*/
|
|
export type PriceTableDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PriceTables to delete
|
|
*/
|
|
where?: PriceTableWhereInput
|
|
}
|
|
|
|
/**
|
|
* PriceTable.items
|
|
*/
|
|
export type PriceTable$itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | null
|
|
where?: PriceItemWhereInput
|
|
orderBy?: PriceItemOrderByWithRelationInput | PriceItemOrderByWithRelationInput[]
|
|
cursor?: PriceItemWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: PriceItemScalarFieldEnum | PriceItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PriceTable without action
|
|
*/
|
|
export type PriceTableDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceTable
|
|
*/
|
|
select?: PriceTableSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceTableInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends PriceItemAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePriceItem]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregatePriceItem[P]>
|
|
: GetScalarType<T[P], AggregatePriceItem[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PriceItemGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends PriceItemGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<PriceItemGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PriceItemGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], PriceItemGroupByOutputType[P]>
|
|
: GetScalarType<T[P], PriceItemGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type PriceItemSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs>
|
|
priceTable?: boolean | PriceTableDefaultArgs<ExtArgs>
|
|
estimateItems?: boolean | PriceItem$estimateItemsArgs<ExtArgs>
|
|
_count?: boolean | PriceItemCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["priceItem"]>
|
|
|
|
export type PriceItemSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs>
|
|
priceTable?: boolean | PriceTableDefaultArgs<ExtArgs>
|
|
}, 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
priceBook?: boolean | PriceBookDefaultArgs<ExtArgs>
|
|
priceTable?: boolean | PriceTableDefaultArgs<ExtArgs>
|
|
estimateItems?: boolean | PriceItem$estimateItemsArgs<ExtArgs>
|
|
_count?: boolean | PriceItemCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type PriceItemIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
priceBook?: boolean | PriceBookDefaultArgs<ExtArgs>
|
|
priceTable?: boolean | PriceTableDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $PriceItemPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "PriceItem"
|
|
objects: {
|
|
priceBook: Prisma.$PriceBookPayload<ExtArgs>
|
|
priceTable: Prisma.$PriceTablePayload<ExtArgs>
|
|
estimateItems: Prisma.$EstimateItemPayload<ExtArgs>[]
|
|
}
|
|
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<S extends boolean | null | undefined | PriceItemDefaultArgs> = $Result.GetResult<Prisma.$PriceItemPayload, S>
|
|
|
|
type PriceItemCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<PriceItemFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: PriceItemCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PriceItemDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends PriceItemFindUniqueArgs>(args: SelectSubset<T, PriceItemFindUniqueArgs<ExtArgs>>): Prisma__PriceItemClient<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemFindUniqueOrThrowArgs>(args: SelectSubset<T, PriceItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PriceItemClient<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemFindFirstArgs>(args?: SelectSubset<T, PriceItemFindFirstArgs<ExtArgs>>): Prisma__PriceItemClient<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemFindFirstOrThrowArgs>(args?: SelectSubset<T, PriceItemFindFirstOrThrowArgs<ExtArgs>>): Prisma__PriceItemClient<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemFindManyArgs>(args?: SelectSubset<T, PriceItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemCreateArgs>(args: SelectSubset<T, PriceItemCreateArgs<ExtArgs>>): Prisma__PriceItemClient<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemCreateManyArgs>(args?: SelectSubset<T, PriceItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PriceItemCreateManyAndReturnArgs>(args?: SelectSubset<T, PriceItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemDeleteArgs>(args: SelectSubset<T, PriceItemDeleteArgs<ExtArgs>>): Prisma__PriceItemClient<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemUpdateArgs>(args: SelectSubset<T, PriceItemUpdateArgs<ExtArgs>>): Prisma__PriceItemClient<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemDeleteManyArgs>(args?: SelectSubset<T, PriceItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PriceItemUpdateManyArgs>(args: SelectSubset<T, PriceItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PriceItemUpsertArgs>(args: SelectSubset<T, PriceItemUpsertArgs<ExtArgs>>): Prisma__PriceItemClient<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, 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<T extends PriceItemCountArgs>(
|
|
args?: Subset<T, PriceItemCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], PriceItemCountAggregateOutputType>
|
|
: 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<T extends PriceItemAggregateArgs>(args: Subset<T, PriceItemAggregateArgs>): Prisma.PrismaPromise<GetPriceItemAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: PriceItemGroupByArgs['orderBy'] }
|
|
: { orderBy?: PriceItemGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, PriceItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPriceItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
priceBook<T extends PriceBookDefaultArgs<ExtArgs> = {}>(args?: Subset<T, PriceBookDefaultArgs<ExtArgs>>): Prisma__PriceBookClient<$Result.GetResult<Prisma.$PriceBookPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
priceTable<T extends PriceTableDefaultArgs<ExtArgs> = {}>(args?: Subset<T, PriceTableDefaultArgs<ExtArgs>>): Prisma__PriceTableClient<$Result.GetResult<Prisma.$PriceTablePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
estimateItems<T extends PriceItem$estimateItemsArgs<ExtArgs> = {}>(args?: Subset<T, PriceItem$estimateItemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PriceItem to fetch.
|
|
*/
|
|
where: PriceItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceItem findUniqueOrThrow
|
|
*/
|
|
export type PriceItemFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PriceItem to fetch.
|
|
*/
|
|
where: PriceItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceItem findFirst
|
|
*/
|
|
export type PriceItemFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a PriceItem.
|
|
*/
|
|
data: XOR<PriceItemCreateInput, PriceItemUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* PriceItem createMany
|
|
*/
|
|
export type PriceItemCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many PriceItems.
|
|
*/
|
|
data: PriceItemCreateManyInput | PriceItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PriceItem createManyAndReturn
|
|
*/
|
|
export type PriceItemCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many PriceItems.
|
|
*/
|
|
data: PriceItemCreateManyInput | PriceItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PriceItem update
|
|
*/
|
|
export type PriceItemUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a PriceItem.
|
|
*/
|
|
data: XOR<PriceItemUpdateInput, PriceItemUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which PriceItem to update.
|
|
*/
|
|
where: PriceItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceItem updateMany
|
|
*/
|
|
export type PriceItemUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update PriceItems.
|
|
*/
|
|
data: XOR<PriceItemUpdateManyMutationInput, PriceItemUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PriceItems to update
|
|
*/
|
|
where?: PriceItemWhereInput
|
|
}
|
|
|
|
/**
|
|
* PriceItem upsert
|
|
*/
|
|
export type PriceItemUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | 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<PriceItemCreateInput, PriceItemUncheckedCreateInput>
|
|
/**
|
|
* In case the PriceItem was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<PriceItemUpdateInput, PriceItemUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* PriceItem delete
|
|
*/
|
|
export type PriceItemDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which PriceItem to delete.
|
|
*/
|
|
where: PriceItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PriceItem deleteMany
|
|
*/
|
|
export type PriceItemDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PriceItems to delete
|
|
*/
|
|
where?: PriceItemWhereInput
|
|
}
|
|
|
|
/**
|
|
* PriceItem.estimateItems
|
|
*/
|
|
export type PriceItem$estimateItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | null
|
|
where?: EstimateItemWhereInput
|
|
orderBy?: EstimateItemOrderByWithRelationInput | EstimateItemOrderByWithRelationInput[]
|
|
cursor?: EstimateItemWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateItemScalarFieldEnum | EstimateItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PriceItem without action
|
|
*/
|
|
export type PriceItemDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends CoefficientAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCoefficient]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateCoefficient[P]>
|
|
: GetScalarType<T[P], AggregateCoefficient[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CoefficientGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends CoefficientGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<CoefficientGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CoefficientGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], CoefficientGroupByOutputType[P]>
|
|
: GetScalarType<T[P], CoefficientGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type CoefficientSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<S extends boolean | null | undefined | CoefficientDefaultArgs> = $Result.GetResult<Prisma.$CoefficientPayload, S>
|
|
|
|
type CoefficientCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<CoefficientFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: CoefficientCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CoefficientDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends CoefficientFindUniqueArgs>(args: SelectSubset<T, CoefficientFindUniqueArgs<ExtArgs>>): Prisma__CoefficientClient<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientFindUniqueOrThrowArgs>(args: SelectSubset<T, CoefficientFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CoefficientClient<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientFindFirstArgs>(args?: SelectSubset<T, CoefficientFindFirstArgs<ExtArgs>>): Prisma__CoefficientClient<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientFindFirstOrThrowArgs>(args?: SelectSubset<T, CoefficientFindFirstOrThrowArgs<ExtArgs>>): Prisma__CoefficientClient<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientFindManyArgs>(args?: SelectSubset<T, CoefficientFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientCreateArgs>(args: SelectSubset<T, CoefficientCreateArgs<ExtArgs>>): Prisma__CoefficientClient<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientCreateManyArgs>(args?: SelectSubset<T, CoefficientCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CoefficientCreateManyAndReturnArgs>(args?: SelectSubset<T, CoefficientCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientDeleteArgs>(args: SelectSubset<T, CoefficientDeleteArgs<ExtArgs>>): Prisma__CoefficientClient<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientUpdateArgs>(args: SelectSubset<T, CoefficientUpdateArgs<ExtArgs>>): Prisma__CoefficientClient<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientDeleteManyArgs>(args?: SelectSubset<T, CoefficientDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CoefficientUpdateManyArgs>(args: SelectSubset<T, CoefficientUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends CoefficientUpsertArgs>(args: SelectSubset<T, CoefficientUpsertArgs<ExtArgs>>): Prisma__CoefficientClient<$Result.GetResult<Prisma.$CoefficientPayload<ExtArgs>, 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<T extends CoefficientCountArgs>(
|
|
args?: Subset<T, CoefficientCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], CoefficientCountAggregateOutputType>
|
|
: 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<T extends CoefficientAggregateArgs>(args: Subset<T, CoefficientAggregateArgs>): Prisma.PrismaPromise<GetCoefficientAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: CoefficientGroupByArgs['orderBy'] }
|
|
: { orderBy?: CoefficientGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, CoefficientGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCoefficientGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which Coefficient to fetch.
|
|
*/
|
|
where: CoefficientWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Coefficient findUniqueOrThrow
|
|
*/
|
|
export type CoefficientFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which Coefficient to fetch.
|
|
*/
|
|
where: CoefficientWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Coefficient findFirst
|
|
*/
|
|
export type CoefficientFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Coefficient.
|
|
*/
|
|
data: XOR<CoefficientCreateInput, CoefficientUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Coefficient createMany
|
|
*/
|
|
export type CoefficientCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Coefficients.
|
|
*/
|
|
data: CoefficientCreateManyInput | CoefficientCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Coefficient createManyAndReturn
|
|
*/
|
|
export type CoefficientCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Coefficients.
|
|
*/
|
|
data: CoefficientCreateManyInput | CoefficientCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Coefficient update
|
|
*/
|
|
export type CoefficientUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Coefficient.
|
|
*/
|
|
data: XOR<CoefficientUpdateInput, CoefficientUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Coefficient to update.
|
|
*/
|
|
where: CoefficientWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Coefficient updateMany
|
|
*/
|
|
export type CoefficientUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Coefficients.
|
|
*/
|
|
data: XOR<CoefficientUpdateManyMutationInput, CoefficientUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Coefficients to update
|
|
*/
|
|
where?: CoefficientWhereInput
|
|
}
|
|
|
|
/**
|
|
* Coefficient upsert
|
|
*/
|
|
export type CoefficientUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | 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<CoefficientCreateInput, CoefficientUncheckedCreateInput>
|
|
/**
|
|
* In case the Coefficient was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<CoefficientUpdateInput, CoefficientUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Coefficient delete
|
|
*/
|
|
export type CoefficientDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | null
|
|
/**
|
|
* Filter which Coefficient to delete.
|
|
*/
|
|
where: CoefficientWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Coefficient deleteMany
|
|
*/
|
|
export type CoefficientDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Coefficients to delete
|
|
*/
|
|
where?: CoefficientWhereInput
|
|
}
|
|
|
|
/**
|
|
* Coefficient without action
|
|
*/
|
|
export type CoefficientDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Coefficient
|
|
*/
|
|
select?: CoefficientSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends InflationIndexAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateInflationIndex]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateInflationIndex[P]>
|
|
: GetScalarType<T[P], AggregateInflationIndex[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type InflationIndexGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends InflationIndexGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<InflationIndexGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof InflationIndexGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], InflationIndexGroupByOutputType[P]>
|
|
: GetScalarType<T[P], InflationIndexGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type InflationIndexSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<S extends boolean | null | undefined | InflationIndexDefaultArgs> = $Result.GetResult<Prisma.$InflationIndexPayload, S>
|
|
|
|
type InflationIndexCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<InflationIndexFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: InflationIndexCountAggregateInputType | true
|
|
}
|
|
|
|
export interface InflationIndexDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends InflationIndexFindUniqueArgs>(args: SelectSubset<T, InflationIndexFindUniqueArgs<ExtArgs>>): Prisma__InflationIndexClient<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexFindUniqueOrThrowArgs>(args: SelectSubset<T, InflationIndexFindUniqueOrThrowArgs<ExtArgs>>): Prisma__InflationIndexClient<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexFindFirstArgs>(args?: SelectSubset<T, InflationIndexFindFirstArgs<ExtArgs>>): Prisma__InflationIndexClient<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexFindFirstOrThrowArgs>(args?: SelectSubset<T, InflationIndexFindFirstOrThrowArgs<ExtArgs>>): Prisma__InflationIndexClient<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexFindManyArgs>(args?: SelectSubset<T, InflationIndexFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexCreateArgs>(args: SelectSubset<T, InflationIndexCreateArgs<ExtArgs>>): Prisma__InflationIndexClient<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexCreateManyArgs>(args?: SelectSubset<T, InflationIndexCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends InflationIndexCreateManyAndReturnArgs>(args?: SelectSubset<T, InflationIndexCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexDeleteArgs>(args: SelectSubset<T, InflationIndexDeleteArgs<ExtArgs>>): Prisma__InflationIndexClient<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexUpdateArgs>(args: SelectSubset<T, InflationIndexUpdateArgs<ExtArgs>>): Prisma__InflationIndexClient<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexDeleteManyArgs>(args?: SelectSubset<T, InflationIndexDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends InflationIndexUpdateManyArgs>(args: SelectSubset<T, InflationIndexUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends InflationIndexUpsertArgs>(args: SelectSubset<T, InflationIndexUpsertArgs<ExtArgs>>): Prisma__InflationIndexClient<$Result.GetResult<Prisma.$InflationIndexPayload<ExtArgs>, 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<T extends InflationIndexCountArgs>(
|
|
args?: Subset<T, InflationIndexCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], InflationIndexCountAggregateOutputType>
|
|
: 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<T extends InflationIndexAggregateArgs>(args: Subset<T, InflationIndexAggregateArgs>): Prisma.PrismaPromise<GetInflationIndexAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: InflationIndexGroupByArgs['orderBy'] }
|
|
: { orderBy?: InflationIndexGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, InflationIndexGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInflationIndexGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which InflationIndex to fetch.
|
|
*/
|
|
where: InflationIndexWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* InflationIndex findUniqueOrThrow
|
|
*/
|
|
export type InflationIndexFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which InflationIndex to fetch.
|
|
*/
|
|
where: InflationIndexWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* InflationIndex findFirst
|
|
*/
|
|
export type InflationIndexFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a InflationIndex.
|
|
*/
|
|
data: XOR<InflationIndexCreateInput, InflationIndexUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* InflationIndex createMany
|
|
*/
|
|
export type InflationIndexCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many InflationIndices.
|
|
*/
|
|
data: InflationIndexCreateManyInput | InflationIndexCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* InflationIndex createManyAndReturn
|
|
*/
|
|
export type InflationIndexCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many InflationIndices.
|
|
*/
|
|
data: InflationIndexCreateManyInput | InflationIndexCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* InflationIndex update
|
|
*/
|
|
export type InflationIndexUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a InflationIndex.
|
|
*/
|
|
data: XOR<InflationIndexUpdateInput, InflationIndexUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which InflationIndex to update.
|
|
*/
|
|
where: InflationIndexWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* InflationIndex updateMany
|
|
*/
|
|
export type InflationIndexUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update InflationIndices.
|
|
*/
|
|
data: XOR<InflationIndexUpdateManyMutationInput, InflationIndexUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which InflationIndices to update
|
|
*/
|
|
where?: InflationIndexWhereInput
|
|
}
|
|
|
|
/**
|
|
* InflationIndex upsert
|
|
*/
|
|
export type InflationIndexUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | 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<InflationIndexCreateInput, InflationIndexUncheckedCreateInput>
|
|
/**
|
|
* In case the InflationIndex was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<InflationIndexUpdateInput, InflationIndexUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* InflationIndex delete
|
|
*/
|
|
export type InflationIndexDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | null
|
|
/**
|
|
* Filter which InflationIndex to delete.
|
|
*/
|
|
where: InflationIndexWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* InflationIndex deleteMany
|
|
*/
|
|
export type InflationIndexDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which InflationIndices to delete
|
|
*/
|
|
where?: InflationIndexWhereInput
|
|
}
|
|
|
|
/**
|
|
* InflationIndex without action
|
|
*/
|
|
export type InflationIndexDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the InflationIndex
|
|
*/
|
|
select?: InflationIndexSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which User to aggregate.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Users
|
|
**/
|
|
_count?: true | UserCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: UserMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type GetUserAggregateType<T extends UserAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateUser[P]>
|
|
: GetScalarType<T[P], AggregateUser[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
where?: UserWhereInput
|
|
orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
|
|
by: UserScalarFieldEnum[] | UserScalarFieldEnum
|
|
having?: UserScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UserCountAggregateInputType | true
|
|
_min?: UserMinAggregateInputType
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type UserGroupByOutputType = {
|
|
id: string
|
|
email: string
|
|
passwordHash: string
|
|
name: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: UserCountAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<UserGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
: GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
email?: boolean
|
|
passwordHash?: boolean
|
|
name?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
estimates?: boolean | User$estimatesArgs<ExtArgs>
|
|
chatSessions?: boolean | User$chatSessionsArgs<ExtArgs>
|
|
ownedShares?: boolean | User$ownedSharesArgs<ExtArgs>
|
|
receivedShares?: boolean | User$receivedSharesArgs<ExtArgs>
|
|
shareNotes?: boolean | User$shareNotesArgs<ExtArgs>
|
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimates?: boolean | User$estimatesArgs<ExtArgs>
|
|
chatSessions?: boolean | User$chatSessionsArgs<ExtArgs>
|
|
ownedShares?: boolean | User$ownedSharesArgs<ExtArgs>
|
|
receivedShares?: boolean | User$receivedSharesArgs<ExtArgs>
|
|
shareNotes?: boolean | User$shareNotesArgs<ExtArgs>
|
|
_count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
|
|
|
|
export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "User"
|
|
objects: {
|
|
estimates: Prisma.$EstimatePayload<ExtArgs>[]
|
|
chatSessions: Prisma.$ChatSessionPayload<ExtArgs>[]
|
|
ownedShares: Prisma.$EstimateSharePayload<ExtArgs>[]
|
|
receivedShares: Prisma.$EstimateSharePayload<ExtArgs>[]
|
|
shareNotes: Prisma.$EstimateShareNotePayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
email: string
|
|
passwordHash: string
|
|
name: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["user"]>
|
|
composites: {}
|
|
}
|
|
|
|
type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
|
|
|
|
type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<UserFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: UserCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
|
|
/**
|
|
* Find zero or one User that matches the filter.
|
|
* @param {UserFindUniqueArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find one User that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find the first User that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
|
|
|
|
/**
|
|
* Find the first User that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
|
|
|
|
/**
|
|
* Find zero or more Users that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Users
|
|
* const users = await prisma.user.findMany()
|
|
*
|
|
* // Get first 10 Users
|
|
* const users = await prisma.user.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany">>
|
|
|
|
/**
|
|
* Create a User.
|
|
* @param {UserCreateArgs} args - Arguments to create a User.
|
|
* @example
|
|
* // Create one User
|
|
* const User = await prisma.user.create({
|
|
* data: {
|
|
* // ... data to create a User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create">, never, ExtArgs>
|
|
|
|
/**
|
|
* Create many Users.
|
|
* @param {UserCreateManyArgs} args - Arguments to create many Users.
|
|
* @example
|
|
* // Create many Users
|
|
* const user = await prisma.user.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create many Users and returns the data saved in the database.
|
|
* @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
|
|
* @example
|
|
* // Create many Users
|
|
* const user = await prisma.user.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Users and only return the `id`
|
|
* const userWithIdOnly = await prisma.user.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn">>
|
|
|
|
/**
|
|
* Delete a User.
|
|
* @param {UserDeleteArgs} args - Arguments to delete one User.
|
|
* @example
|
|
* // Delete one User
|
|
* const User = await prisma.user.delete({
|
|
* where: {
|
|
* // ... filter to delete one User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete">, never, ExtArgs>
|
|
|
|
/**
|
|
* Update one User.
|
|
* @param {UserUpdateArgs} args - Arguments to update one User.
|
|
* @example
|
|
* // Update one User
|
|
* const user = await prisma.user.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update">, never, ExtArgs>
|
|
|
|
/**
|
|
* Delete zero or more Users.
|
|
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
|
|
* @example
|
|
* // Delete a few Users
|
|
* const { count } = await prisma.user.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Users
|
|
* const user = await prisma.user.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* Create or update one User.
|
|
* @param {UserUpsertArgs} args - Arguments to update or create a User.
|
|
* @example
|
|
* // Update or create a User
|
|
* const user = await prisma.user.upsert({
|
|
* create: {
|
|
* // ... data to create a User
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the User we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
|
|
|
|
|
|
/**
|
|
* Count the number of Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserCountArgs} args - Arguments to filter Users to count.
|
|
* @example
|
|
* // Count the number of Users
|
|
* const count = await prisma.user.count({
|
|
* where: {
|
|
* // ... the filter for the Users we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UserCountArgs>(
|
|
args?: Subset<T, UserCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], UserCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
|
|
|
|
/**
|
|
* Group by User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends UserGroupByArgs,
|
|
HasSelectOrTake extends Or<
|
|
Extends<'skip', Keys<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: UserGroupByArgs['orderBy'] }
|
|
: { orderBy?: UserGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
readonly fields: UserFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for User.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
estimates<T extends User$estimatesArgs<ExtArgs> = {}>(args?: Subset<T, User$estimatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, T, "findMany"> | Null>
|
|
chatSessions<T extends User$chatSessionsArgs<ExtArgs> = {}>(args?: Subset<T, User$chatSessionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, T, "findMany"> | Null>
|
|
ownedShares<T extends User$ownedSharesArgs<ExtArgs> = {}>(args?: Subset<T, User$ownedSharesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, T, "findMany"> | Null>
|
|
receivedShares<T extends User$receivedSharesArgs<ExtArgs> = {}>(args?: Subset<T, User$receivedSharesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, T, "findMany"> | Null>
|
|
shareNotes<T extends User$shareNotesArgs<ExtArgs> = {}>(args?: Subset<T, User$shareNotesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
interface UserFieldRefs {
|
|
readonly id: FieldRef<"User", 'String'>
|
|
readonly 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findUniqueOrThrow
|
|
*/
|
|
export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findFirst
|
|
*/
|
|
export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findFirstOrThrow
|
|
*/
|
|
export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findMany
|
|
*/
|
|
export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Users to fetch.
|
|
*/
|
|
where?: UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Users.
|
|
*/
|
|
cursor?: UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Users.
|
|
*/
|
|
skip?: number
|
|
distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User create
|
|
*/
|
|
export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a User.
|
|
*/
|
|
data: XOR<UserCreateInput, UserUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* User createMany
|
|
*/
|
|
export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Users.
|
|
*/
|
|
data: UserCreateManyInput | UserCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* User createManyAndReturn
|
|
*/
|
|
export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Users.
|
|
*/
|
|
data: UserCreateManyInput | UserCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* User update
|
|
*/
|
|
export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a User.
|
|
*/
|
|
data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which User to update.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User updateMany
|
|
*/
|
|
export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Users.
|
|
*/
|
|
data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Users to update
|
|
*/
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* User upsert
|
|
*/
|
|
export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the User to update in case it exists.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
/**
|
|
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
|
|
*/
|
|
create: XOR<UserCreateInput, UserUncheckedCreateInput>
|
|
/**
|
|
* In case the User was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* User delete
|
|
*/
|
|
export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which User to delete.
|
|
*/
|
|
where: UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User deleteMany
|
|
*/
|
|
export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Users to delete
|
|
*/
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
/**
|
|
* User.estimates
|
|
*/
|
|
export type User$estimatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | null
|
|
where?: EstimateWhereInput
|
|
orderBy?: EstimateOrderByWithRelationInput | EstimateOrderByWithRelationInput[]
|
|
cursor?: EstimateWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateScalarFieldEnum | EstimateScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.chatSessions
|
|
*/
|
|
export type User$chatSessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | null
|
|
where?: ChatSessionWhereInput
|
|
orderBy?: ChatSessionOrderByWithRelationInput | ChatSessionOrderByWithRelationInput[]
|
|
cursor?: ChatSessionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ChatSessionScalarFieldEnum | ChatSessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.ownedShares
|
|
*/
|
|
export type User$ownedSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | null
|
|
where?: EstimateShareWhereInput
|
|
orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[]
|
|
cursor?: EstimateShareWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateShareScalarFieldEnum | EstimateShareScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.receivedShares
|
|
*/
|
|
export type User$receivedSharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | null
|
|
where?: EstimateShareWhereInput
|
|
orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[]
|
|
cursor?: EstimateShareWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateShareScalarFieldEnum | EstimateShareScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.shareNotes
|
|
*/
|
|
export type User$shareNotesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | null
|
|
where?: EstimateShareNoteWhereInput
|
|
orderBy?: EstimateShareNoteOrderByWithRelationInput | EstimateShareNoteOrderByWithRelationInput[]
|
|
cursor?: EstimateShareNoteWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateShareNoteScalarFieldEnum | EstimateShareNoteScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User without action
|
|
*/
|
|
export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: UserSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: UserInclude<ExtArgs> | null
|
|
}
|
|
|
|
|
|
/**
|
|
* Model 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends SurveyDirectionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSurveyDirection]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSurveyDirection[P]>
|
|
: GetScalarType<T[P], AggregateSurveyDirection[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SurveyDirectionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends SurveyDirectionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SurveyDirectionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SurveyDirectionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SurveyDirectionGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SurveyDirectionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type SurveyDirectionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
code?: boolean
|
|
name?: boolean
|
|
shortName?: boolean
|
|
isActive?: boolean
|
|
estimates?: boolean | SurveyDirection$estimatesArgs<ExtArgs>
|
|
_count?: boolean | SurveyDirectionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["surveyDirection"]>
|
|
|
|
export type SurveyDirectionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimates?: boolean | SurveyDirection$estimatesArgs<ExtArgs>
|
|
_count?: boolean | SurveyDirectionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type SurveyDirectionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
|
|
|
|
export type $SurveyDirectionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "SurveyDirection"
|
|
objects: {
|
|
estimates: Prisma.$EstimatePayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
code: string
|
|
name: string
|
|
shortName: string
|
|
isActive: boolean
|
|
}, ExtArgs["result"]["surveyDirection"]>
|
|
composites: {}
|
|
}
|
|
|
|
type SurveyDirectionGetPayload<S extends boolean | null | undefined | SurveyDirectionDefaultArgs> = $Result.GetResult<Prisma.$SurveyDirectionPayload, S>
|
|
|
|
type SurveyDirectionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<SurveyDirectionFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: SurveyDirectionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SurveyDirectionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends SurveyDirectionFindUniqueArgs>(args: SelectSubset<T, SurveyDirectionFindUniqueArgs<ExtArgs>>): Prisma__SurveyDirectionClient<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionFindUniqueOrThrowArgs>(args: SelectSubset<T, SurveyDirectionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SurveyDirectionClient<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionFindFirstArgs>(args?: SelectSubset<T, SurveyDirectionFindFirstArgs<ExtArgs>>): Prisma__SurveyDirectionClient<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionFindFirstOrThrowArgs>(args?: SelectSubset<T, SurveyDirectionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SurveyDirectionClient<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionFindManyArgs>(args?: SelectSubset<T, SurveyDirectionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionCreateArgs>(args: SelectSubset<T, SurveyDirectionCreateArgs<ExtArgs>>): Prisma__SurveyDirectionClient<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionCreateManyArgs>(args?: SelectSubset<T, SurveyDirectionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends SurveyDirectionCreateManyAndReturnArgs>(args?: SelectSubset<T, SurveyDirectionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionDeleteArgs>(args: SelectSubset<T, SurveyDirectionDeleteArgs<ExtArgs>>): Prisma__SurveyDirectionClient<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionUpdateArgs>(args: SelectSubset<T, SurveyDirectionUpdateArgs<ExtArgs>>): Prisma__SurveyDirectionClient<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionDeleteManyArgs>(args?: SelectSubset<T, SurveyDirectionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends SurveyDirectionUpdateManyArgs>(args: SelectSubset<T, SurveyDirectionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends SurveyDirectionUpsertArgs>(args: SelectSubset<T, SurveyDirectionUpsertArgs<ExtArgs>>): Prisma__SurveyDirectionClient<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, 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<T extends SurveyDirectionCountArgs>(
|
|
args?: Subset<T, SurveyDirectionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SurveyDirectionCountAggregateOutputType>
|
|
: 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<T extends SurveyDirectionAggregateArgs>(args: Subset<T, SurveyDirectionAggregateArgs>): Prisma.PrismaPromise<GetSurveyDirectionAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: SurveyDirectionGroupByArgs['orderBy'] }
|
|
: { orderBy?: SurveyDirectionGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, SurveyDirectionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSurveyDirectionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
estimates<T extends SurveyDirection$estimatesArgs<ExtArgs> = {}>(args?: Subset<T, SurveyDirection$estimatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SurveyDirection to fetch.
|
|
*/
|
|
where: SurveyDirectionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection findUniqueOrThrow
|
|
*/
|
|
export type SurveyDirectionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SurveyDirection to fetch.
|
|
*/
|
|
where: SurveyDirectionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection findFirst
|
|
*/
|
|
export type SurveyDirectionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SurveyDirection.
|
|
*/
|
|
data: XOR<SurveyDirectionCreateInput, SurveyDirectionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection createMany
|
|
*/
|
|
export type SurveyDirectionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SurveyDirections.
|
|
*/
|
|
data: SurveyDirectionCreateManyInput | SurveyDirectionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection createManyAndReturn
|
|
*/
|
|
export type SurveyDirectionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many SurveyDirections.
|
|
*/
|
|
data: SurveyDirectionCreateManyInput | SurveyDirectionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection update
|
|
*/
|
|
export type SurveyDirectionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SurveyDirection.
|
|
*/
|
|
data: XOR<SurveyDirectionUpdateInput, SurveyDirectionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SurveyDirection to update.
|
|
*/
|
|
where: SurveyDirectionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection updateMany
|
|
*/
|
|
export type SurveyDirectionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SurveyDirections.
|
|
*/
|
|
data: XOR<SurveyDirectionUpdateManyMutationInput, SurveyDirectionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SurveyDirections to update
|
|
*/
|
|
where?: SurveyDirectionWhereInput
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection upsert
|
|
*/
|
|
export type SurveyDirectionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | 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<SurveyDirectionCreateInput, SurveyDirectionUncheckedCreateInput>
|
|
/**
|
|
* In case the SurveyDirection was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<SurveyDirectionUpdateInput, SurveyDirectionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection delete
|
|
*/
|
|
export type SurveyDirectionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which SurveyDirection to delete.
|
|
*/
|
|
where: SurveyDirectionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection deleteMany
|
|
*/
|
|
export type SurveyDirectionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SurveyDirections to delete
|
|
*/
|
|
where?: SurveyDirectionWhereInput
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection.estimates
|
|
*/
|
|
export type SurveyDirection$estimatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | null
|
|
where?: EstimateWhereInput
|
|
orderBy?: EstimateOrderByWithRelationInput | EstimateOrderByWithRelationInput[]
|
|
cursor?: EstimateWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateScalarFieldEnum | EstimateScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SurveyDirection without action
|
|
*/
|
|
export type SurveyDirectionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SurveyDirection
|
|
*/
|
|
select?: SurveyDirectionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: SurveyDirectionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends EstimateAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateEstimate]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateEstimate[P]>
|
|
: GetScalarType<T[P], AggregateEstimate[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EstimateGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends EstimateGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<EstimateGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof EstimateGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], EstimateGroupByOutputType[P]>
|
|
: GetScalarType<T[P], EstimateGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type EstimateSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs>
|
|
direction?: boolean | SurveyDirectionDefaultArgs<ExtArgs>
|
|
items?: boolean | Estimate$itemsArgs<ExtArgs>
|
|
totals?: boolean | Estimate$totalsArgs<ExtArgs>
|
|
shares?: boolean | Estimate$sharesArgs<ExtArgs>
|
|
versions?: boolean | Estimate$versionsArgs<ExtArgs>
|
|
_count?: boolean | EstimateCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["estimate"]>
|
|
|
|
export type EstimateSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs>
|
|
direction?: boolean | SurveyDirectionDefaultArgs<ExtArgs>
|
|
}, 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
owner?: boolean | UserDefaultArgs<ExtArgs>
|
|
direction?: boolean | SurveyDirectionDefaultArgs<ExtArgs>
|
|
items?: boolean | Estimate$itemsArgs<ExtArgs>
|
|
totals?: boolean | Estimate$totalsArgs<ExtArgs>
|
|
shares?: boolean | Estimate$sharesArgs<ExtArgs>
|
|
versions?: boolean | Estimate$versionsArgs<ExtArgs>
|
|
_count?: boolean | EstimateCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type EstimateIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
owner?: boolean | UserDefaultArgs<ExtArgs>
|
|
direction?: boolean | SurveyDirectionDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $EstimatePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "Estimate"
|
|
objects: {
|
|
owner: Prisma.$UserPayload<ExtArgs>
|
|
direction: Prisma.$SurveyDirectionPayload<ExtArgs>
|
|
items: Prisma.$EstimateItemPayload<ExtArgs>[]
|
|
totals: Prisma.$EstimateTotalPayload<ExtArgs>[]
|
|
shares: Prisma.$EstimateSharePayload<ExtArgs>[]
|
|
versions: Prisma.$EstimateVersionPayload<ExtArgs>[]
|
|
}
|
|
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<S extends boolean | null | undefined | EstimateDefaultArgs> = $Result.GetResult<Prisma.$EstimatePayload, S>
|
|
|
|
type EstimateCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<EstimateFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: EstimateCountAggregateInputType | true
|
|
}
|
|
|
|
export interface EstimateDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends EstimateFindUniqueArgs>(args: SelectSubset<T, EstimateFindUniqueArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateFindUniqueOrThrowArgs>(args: SelectSubset<T, EstimateFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateFindFirstArgs>(args?: SelectSubset<T, EstimateFindFirstArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateFindFirstOrThrowArgs>(args?: SelectSubset<T, EstimateFindFirstOrThrowArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateFindManyArgs>(args?: SelectSubset<T, EstimateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateCreateArgs>(args: SelectSubset<T, EstimateCreateArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateCreateManyArgs>(args?: SelectSubset<T, EstimateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateCreateManyAndReturnArgs>(args?: SelectSubset<T, EstimateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateDeleteArgs>(args: SelectSubset<T, EstimateDeleteArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateUpdateArgs>(args: SelectSubset<T, EstimateUpdateArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateDeleteManyArgs>(args?: SelectSubset<T, EstimateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateUpdateManyArgs>(args: SelectSubset<T, EstimateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateUpsertArgs>(args: SelectSubset<T, EstimateUpsertArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, 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<T extends EstimateCountArgs>(
|
|
args?: Subset<T, EstimateCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], EstimateCountAggregateOutputType>
|
|
: 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<T extends EstimateAggregateArgs>(args: Subset<T, EstimateAggregateArgs>): Prisma.PrismaPromise<GetEstimateAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: EstimateGroupByArgs['orderBy'] }
|
|
: { orderBy?: EstimateGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, EstimateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEstimateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
owner<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
direction<T extends SurveyDirectionDefaultArgs<ExtArgs> = {}>(args?: Subset<T, SurveyDirectionDefaultArgs<ExtArgs>>): Prisma__SurveyDirectionClient<$Result.GetResult<Prisma.$SurveyDirectionPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
items<T extends Estimate$itemsArgs<ExtArgs> = {}>(args?: Subset<T, Estimate$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, T, "findMany"> | Null>
|
|
totals<T extends Estimate$totalsArgs<ExtArgs> = {}>(args?: Subset<T, Estimate$totalsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, T, "findMany"> | Null>
|
|
shares<T extends Estimate$sharesArgs<ExtArgs> = {}>(args?: Subset<T, Estimate$sharesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, T, "findMany"> | Null>
|
|
versions<T extends Estimate$versionsArgs<ExtArgs> = {}>(args?: Subset<T, Estimate$versionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Estimate to fetch.
|
|
*/
|
|
where: EstimateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Estimate findUniqueOrThrow
|
|
*/
|
|
export type EstimateFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Estimate to fetch.
|
|
*/
|
|
where: EstimateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Estimate findFirst
|
|
*/
|
|
export type EstimateFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Estimate.
|
|
*/
|
|
data: XOR<EstimateCreateInput, EstimateUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Estimate createMany
|
|
*/
|
|
export type EstimateCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Estimates.
|
|
*/
|
|
data: EstimateCreateManyInput | EstimateCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Estimate createManyAndReturn
|
|
*/
|
|
export type EstimateCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Estimates.
|
|
*/
|
|
data: EstimateCreateManyInput | EstimateCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Estimate update
|
|
*/
|
|
export type EstimateUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Estimate.
|
|
*/
|
|
data: XOR<EstimateUpdateInput, EstimateUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Estimate to update.
|
|
*/
|
|
where: EstimateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Estimate updateMany
|
|
*/
|
|
export type EstimateUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Estimates.
|
|
*/
|
|
data: XOR<EstimateUpdateManyMutationInput, EstimateUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Estimates to update
|
|
*/
|
|
where?: EstimateWhereInput
|
|
}
|
|
|
|
/**
|
|
* Estimate upsert
|
|
*/
|
|
export type EstimateUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | 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<EstimateCreateInput, EstimateUncheckedCreateInput>
|
|
/**
|
|
* In case the Estimate was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<EstimateUpdateInput, EstimateUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Estimate delete
|
|
*/
|
|
export type EstimateDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Estimate to delete.
|
|
*/
|
|
where: EstimateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Estimate deleteMany
|
|
*/
|
|
export type EstimateDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Estimates to delete
|
|
*/
|
|
where?: EstimateWhereInput
|
|
}
|
|
|
|
/**
|
|
* Estimate.items
|
|
*/
|
|
export type Estimate$itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | null
|
|
where?: EstimateItemWhereInput
|
|
orderBy?: EstimateItemOrderByWithRelationInput | EstimateItemOrderByWithRelationInput[]
|
|
cursor?: EstimateItemWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateItemScalarFieldEnum | EstimateItemScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Estimate.totals
|
|
*/
|
|
export type Estimate$totalsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | null
|
|
where?: EstimateTotalWhereInput
|
|
orderBy?: EstimateTotalOrderByWithRelationInput | EstimateTotalOrderByWithRelationInput[]
|
|
cursor?: EstimateTotalWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateTotalScalarFieldEnum | EstimateTotalScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Estimate.shares
|
|
*/
|
|
export type Estimate$sharesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | null
|
|
where?: EstimateShareWhereInput
|
|
orderBy?: EstimateShareOrderByWithRelationInput | EstimateShareOrderByWithRelationInput[]
|
|
cursor?: EstimateShareWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateShareScalarFieldEnum | EstimateShareScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Estimate.versions
|
|
*/
|
|
export type Estimate$versionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | null
|
|
where?: EstimateVersionWhereInput
|
|
orderBy?: EstimateVersionOrderByWithRelationInput | EstimateVersionOrderByWithRelationInput[]
|
|
cursor?: EstimateVersionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateVersionScalarFieldEnum | EstimateVersionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Estimate without action
|
|
*/
|
|
export type EstimateDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Estimate
|
|
*/
|
|
select?: EstimateSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends EstimateVersionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateEstimateVersion]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateEstimateVersion[P]>
|
|
: GetScalarType<T[P], AggregateEstimateVersion[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EstimateVersionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends EstimateVersionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<EstimateVersionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof EstimateVersionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], EstimateVersionGroupByOutputType[P]>
|
|
: GetScalarType<T[P], EstimateVersionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type EstimateVersionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
estimateId?: boolean
|
|
versionNumber?: boolean
|
|
snapshot?: boolean
|
|
createdAt?: boolean
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["estimateVersion"]>
|
|
|
|
export type EstimateVersionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
estimateId?: boolean
|
|
versionNumber?: boolean
|
|
snapshot?: boolean
|
|
createdAt?: boolean
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["estimateVersion"]>
|
|
|
|
export type EstimateVersionSelectScalar = {
|
|
id?: boolean
|
|
estimateId?: boolean
|
|
versionNumber?: boolean
|
|
snapshot?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type EstimateVersionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
}
|
|
export type EstimateVersionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $EstimateVersionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "EstimateVersion"
|
|
objects: {
|
|
estimate: Prisma.$EstimatePayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
estimateId: string
|
|
versionNumber: number
|
|
snapshot: Prisma.JsonValue
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["estimateVersion"]>
|
|
composites: {}
|
|
}
|
|
|
|
type EstimateVersionGetPayload<S extends boolean | null | undefined | EstimateVersionDefaultArgs> = $Result.GetResult<Prisma.$EstimateVersionPayload, S>
|
|
|
|
type EstimateVersionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<EstimateVersionFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: EstimateVersionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface EstimateVersionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends EstimateVersionFindUniqueArgs>(args: SelectSubset<T, EstimateVersionFindUniqueArgs<ExtArgs>>): Prisma__EstimateVersionClient<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionFindUniqueOrThrowArgs>(args: SelectSubset<T, EstimateVersionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EstimateVersionClient<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionFindFirstArgs>(args?: SelectSubset<T, EstimateVersionFindFirstArgs<ExtArgs>>): Prisma__EstimateVersionClient<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionFindFirstOrThrowArgs>(args?: SelectSubset<T, EstimateVersionFindFirstOrThrowArgs<ExtArgs>>): Prisma__EstimateVersionClient<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionFindManyArgs>(args?: SelectSubset<T, EstimateVersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionCreateArgs>(args: SelectSubset<T, EstimateVersionCreateArgs<ExtArgs>>): Prisma__EstimateVersionClient<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionCreateManyArgs>(args?: SelectSubset<T, EstimateVersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateVersionCreateManyAndReturnArgs>(args?: SelectSubset<T, EstimateVersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionDeleteArgs>(args: SelectSubset<T, EstimateVersionDeleteArgs<ExtArgs>>): Prisma__EstimateVersionClient<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionUpdateArgs>(args: SelectSubset<T, EstimateVersionUpdateArgs<ExtArgs>>): Prisma__EstimateVersionClient<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionDeleteManyArgs>(args?: SelectSubset<T, EstimateVersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateVersionUpdateManyArgs>(args: SelectSubset<T, EstimateVersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateVersionUpsertArgs>(args: SelectSubset<T, EstimateVersionUpsertArgs<ExtArgs>>): Prisma__EstimateVersionClient<$Result.GetResult<Prisma.$EstimateVersionPayload<ExtArgs>, 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<T extends EstimateVersionCountArgs>(
|
|
args?: Subset<T, EstimateVersionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], EstimateVersionCountAggregateOutputType>
|
|
: 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<T extends EstimateVersionAggregateArgs>(args: Subset<T, EstimateVersionAggregateArgs>): Prisma.PrismaPromise<GetEstimateVersionAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: EstimateVersionGroupByArgs['orderBy'] }
|
|
: { orderBy?: EstimateVersionGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, EstimateVersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEstimateVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
estimate<T extends EstimateDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EstimateDefaultArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateVersion to fetch.
|
|
*/
|
|
where: EstimateVersionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion findUniqueOrThrow
|
|
*/
|
|
export type EstimateVersionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateVersion to fetch.
|
|
*/
|
|
where: EstimateVersionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion findFirst
|
|
*/
|
|
export type EstimateVersionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a EstimateVersion.
|
|
*/
|
|
data: XOR<EstimateVersionCreateInput, EstimateVersionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion createMany
|
|
*/
|
|
export type EstimateVersionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many EstimateVersions.
|
|
*/
|
|
data: EstimateVersionCreateManyInput | EstimateVersionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion createManyAndReturn
|
|
*/
|
|
export type EstimateVersionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many EstimateVersions.
|
|
*/
|
|
data: EstimateVersionCreateManyInput | EstimateVersionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion update
|
|
*/
|
|
export type EstimateVersionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a EstimateVersion.
|
|
*/
|
|
data: XOR<EstimateVersionUpdateInput, EstimateVersionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which EstimateVersion to update.
|
|
*/
|
|
where: EstimateVersionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion updateMany
|
|
*/
|
|
export type EstimateVersionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update EstimateVersions.
|
|
*/
|
|
data: XOR<EstimateVersionUpdateManyMutationInput, EstimateVersionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which EstimateVersions to update
|
|
*/
|
|
where?: EstimateVersionWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion upsert
|
|
*/
|
|
export type EstimateVersionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | 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<EstimateVersionCreateInput, EstimateVersionUncheckedCreateInput>
|
|
/**
|
|
* In case the EstimateVersion was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<EstimateVersionUpdateInput, EstimateVersionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion delete
|
|
*/
|
|
export type EstimateVersionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which EstimateVersion to delete.
|
|
*/
|
|
where: EstimateVersionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion deleteMany
|
|
*/
|
|
export type EstimateVersionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EstimateVersions to delete
|
|
*/
|
|
where?: EstimateVersionWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateVersion without action
|
|
*/
|
|
export type EstimateVersionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateVersion
|
|
*/
|
|
select?: EstimateVersionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateVersionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends EstimateShareAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateEstimateShare]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateEstimateShare[P]>
|
|
: GetScalarType<T[P], AggregateEstimateShare[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EstimateShareGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends EstimateShareGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<EstimateShareGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof EstimateShareGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], EstimateShareGroupByOutputType[P]>
|
|
: GetScalarType<T[P], EstimateShareGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type EstimateShareSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
estimateId?: boolean
|
|
ownerId?: boolean
|
|
sharedWithId?: boolean
|
|
createdAt?: boolean
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
sharedWith?: boolean | UserDefaultArgs<ExtArgs>
|
|
owner?: boolean | UserDefaultArgs<ExtArgs>
|
|
notes?: boolean | EstimateShare$notesArgs<ExtArgs>
|
|
_count?: boolean | EstimateShareCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["estimateShare"]>
|
|
|
|
export type EstimateShareSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
estimateId?: boolean
|
|
ownerId?: boolean
|
|
sharedWithId?: boolean
|
|
createdAt?: boolean
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
sharedWith?: boolean | UserDefaultArgs<ExtArgs>
|
|
owner?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["estimateShare"]>
|
|
|
|
export type EstimateShareSelectScalar = {
|
|
id?: boolean
|
|
estimateId?: boolean
|
|
ownerId?: boolean
|
|
sharedWithId?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type EstimateShareInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
sharedWith?: boolean | UserDefaultArgs<ExtArgs>
|
|
owner?: boolean | UserDefaultArgs<ExtArgs>
|
|
notes?: boolean | EstimateShare$notesArgs<ExtArgs>
|
|
_count?: boolean | EstimateShareCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type EstimateShareIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
sharedWith?: boolean | UserDefaultArgs<ExtArgs>
|
|
owner?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $EstimateSharePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "EstimateShare"
|
|
objects: {
|
|
estimate: Prisma.$EstimatePayload<ExtArgs>
|
|
sharedWith: Prisma.$UserPayload<ExtArgs>
|
|
owner: Prisma.$UserPayload<ExtArgs>
|
|
notes: Prisma.$EstimateShareNotePayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
estimateId: string
|
|
ownerId: string
|
|
sharedWithId: string
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["estimateShare"]>
|
|
composites: {}
|
|
}
|
|
|
|
type EstimateShareGetPayload<S extends boolean | null | undefined | EstimateShareDefaultArgs> = $Result.GetResult<Prisma.$EstimateSharePayload, S>
|
|
|
|
type EstimateShareCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<EstimateShareFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: EstimateShareCountAggregateInputType | true
|
|
}
|
|
|
|
export interface EstimateShareDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends EstimateShareFindUniqueArgs>(args: SelectSubset<T, EstimateShareFindUniqueArgs<ExtArgs>>): Prisma__EstimateShareClient<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareFindUniqueOrThrowArgs>(args: SelectSubset<T, EstimateShareFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EstimateShareClient<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareFindFirstArgs>(args?: SelectSubset<T, EstimateShareFindFirstArgs<ExtArgs>>): Prisma__EstimateShareClient<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareFindFirstOrThrowArgs>(args?: SelectSubset<T, EstimateShareFindFirstOrThrowArgs<ExtArgs>>): Prisma__EstimateShareClient<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareFindManyArgs>(args?: SelectSubset<T, EstimateShareFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareCreateArgs>(args: SelectSubset<T, EstimateShareCreateArgs<ExtArgs>>): Prisma__EstimateShareClient<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareCreateManyArgs>(args?: SelectSubset<T, EstimateShareCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateShareCreateManyAndReturnArgs>(args?: SelectSubset<T, EstimateShareCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareDeleteArgs>(args: SelectSubset<T, EstimateShareDeleteArgs<ExtArgs>>): Prisma__EstimateShareClient<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareUpdateArgs>(args: SelectSubset<T, EstimateShareUpdateArgs<ExtArgs>>): Prisma__EstimateShareClient<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareDeleteManyArgs>(args?: SelectSubset<T, EstimateShareDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateShareUpdateManyArgs>(args: SelectSubset<T, EstimateShareUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateShareUpsertArgs>(args: SelectSubset<T, EstimateShareUpsertArgs<ExtArgs>>): Prisma__EstimateShareClient<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, 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<T extends EstimateShareCountArgs>(
|
|
args?: Subset<T, EstimateShareCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], EstimateShareCountAggregateOutputType>
|
|
: 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<T extends EstimateShareAggregateArgs>(args: Subset<T, EstimateShareAggregateArgs>): Prisma.PrismaPromise<GetEstimateShareAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: EstimateShareGroupByArgs['orderBy'] }
|
|
: { orderBy?: EstimateShareGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, EstimateShareGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEstimateShareGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
estimate<T extends EstimateDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EstimateDefaultArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
sharedWith<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
owner<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
notes<T extends EstimateShare$notesArgs<ExtArgs> = {}>(args?: Subset<T, EstimateShare$notesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateShare to fetch.
|
|
*/
|
|
where: EstimateShareWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShare findUniqueOrThrow
|
|
*/
|
|
export type EstimateShareFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateShare to fetch.
|
|
*/
|
|
where: EstimateShareWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShare findFirst
|
|
*/
|
|
export type EstimateShareFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a EstimateShare.
|
|
*/
|
|
data: XOR<EstimateShareCreateInput, EstimateShareUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateShare createMany
|
|
*/
|
|
export type EstimateShareCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many EstimateShares.
|
|
*/
|
|
data: EstimateShareCreateManyInput | EstimateShareCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* EstimateShare createManyAndReturn
|
|
*/
|
|
export type EstimateShareCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many EstimateShares.
|
|
*/
|
|
data: EstimateShareCreateManyInput | EstimateShareCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* EstimateShare update
|
|
*/
|
|
export type EstimateShareUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a EstimateShare.
|
|
*/
|
|
data: XOR<EstimateShareUpdateInput, EstimateShareUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which EstimateShare to update.
|
|
*/
|
|
where: EstimateShareWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShare updateMany
|
|
*/
|
|
export type EstimateShareUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update EstimateShares.
|
|
*/
|
|
data: XOR<EstimateShareUpdateManyMutationInput, EstimateShareUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which EstimateShares to update
|
|
*/
|
|
where?: EstimateShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShare upsert
|
|
*/
|
|
export type EstimateShareUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | 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<EstimateShareCreateInput, EstimateShareUncheckedCreateInput>
|
|
/**
|
|
* In case the EstimateShare was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<EstimateShareUpdateInput, EstimateShareUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateShare delete
|
|
*/
|
|
export type EstimateShareDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which EstimateShare to delete.
|
|
*/
|
|
where: EstimateShareWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShare deleteMany
|
|
*/
|
|
export type EstimateShareDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EstimateShares to delete
|
|
*/
|
|
where?: EstimateShareWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShare.notes
|
|
*/
|
|
export type EstimateShare$notesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | null
|
|
where?: EstimateShareNoteWhereInput
|
|
orderBy?: EstimateShareNoteOrderByWithRelationInput | EstimateShareNoteOrderByWithRelationInput[]
|
|
cursor?: EstimateShareNoteWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: EstimateShareNoteScalarFieldEnum | EstimateShareNoteScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EstimateShare without action
|
|
*/
|
|
export type EstimateShareDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShare
|
|
*/
|
|
select?: EstimateShareSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends EstimateShareNoteAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateEstimateShareNote]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateEstimateShareNote[P]>
|
|
: GetScalarType<T[P], AggregateEstimateShareNote[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EstimateShareNoteGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends EstimateShareNoteGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<EstimateShareNoteGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof EstimateShareNoteGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], EstimateShareNoteGroupByOutputType[P]>
|
|
: GetScalarType<T[P], EstimateShareNoteGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type EstimateShareNoteSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
shareId?: boolean
|
|
authorId?: boolean
|
|
content?: boolean
|
|
createdAt?: boolean
|
|
share?: boolean | EstimateShareDefaultArgs<ExtArgs>
|
|
author?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["estimateShareNote"]>
|
|
|
|
export type EstimateShareNoteSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
shareId?: boolean
|
|
authorId?: boolean
|
|
content?: boolean
|
|
createdAt?: boolean
|
|
share?: boolean | EstimateShareDefaultArgs<ExtArgs>
|
|
author?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["estimateShareNote"]>
|
|
|
|
export type EstimateShareNoteSelectScalar = {
|
|
id?: boolean
|
|
shareId?: boolean
|
|
authorId?: boolean
|
|
content?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type EstimateShareNoteInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
share?: boolean | EstimateShareDefaultArgs<ExtArgs>
|
|
author?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type EstimateShareNoteIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
share?: boolean | EstimateShareDefaultArgs<ExtArgs>
|
|
author?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $EstimateShareNotePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "EstimateShareNote"
|
|
objects: {
|
|
share: Prisma.$EstimateSharePayload<ExtArgs>
|
|
author: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
shareId: string
|
|
authorId: string
|
|
content: string
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["estimateShareNote"]>
|
|
composites: {}
|
|
}
|
|
|
|
type EstimateShareNoteGetPayload<S extends boolean | null | undefined | EstimateShareNoteDefaultArgs> = $Result.GetResult<Prisma.$EstimateShareNotePayload, S>
|
|
|
|
type EstimateShareNoteCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<EstimateShareNoteFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: EstimateShareNoteCountAggregateInputType | true
|
|
}
|
|
|
|
export interface EstimateShareNoteDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends EstimateShareNoteFindUniqueArgs>(args: SelectSubset<T, EstimateShareNoteFindUniqueArgs<ExtArgs>>): Prisma__EstimateShareNoteClient<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteFindUniqueOrThrowArgs>(args: SelectSubset<T, EstimateShareNoteFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EstimateShareNoteClient<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteFindFirstArgs>(args?: SelectSubset<T, EstimateShareNoteFindFirstArgs<ExtArgs>>): Prisma__EstimateShareNoteClient<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteFindFirstOrThrowArgs>(args?: SelectSubset<T, EstimateShareNoteFindFirstOrThrowArgs<ExtArgs>>): Prisma__EstimateShareNoteClient<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteFindManyArgs>(args?: SelectSubset<T, EstimateShareNoteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteCreateArgs>(args: SelectSubset<T, EstimateShareNoteCreateArgs<ExtArgs>>): Prisma__EstimateShareNoteClient<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteCreateManyArgs>(args?: SelectSubset<T, EstimateShareNoteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateShareNoteCreateManyAndReturnArgs>(args?: SelectSubset<T, EstimateShareNoteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteDeleteArgs>(args: SelectSubset<T, EstimateShareNoteDeleteArgs<ExtArgs>>): Prisma__EstimateShareNoteClient<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteUpdateArgs>(args: SelectSubset<T, EstimateShareNoteUpdateArgs<ExtArgs>>): Prisma__EstimateShareNoteClient<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteDeleteManyArgs>(args?: SelectSubset<T, EstimateShareNoteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateShareNoteUpdateManyArgs>(args: SelectSubset<T, EstimateShareNoteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateShareNoteUpsertArgs>(args: SelectSubset<T, EstimateShareNoteUpsertArgs<ExtArgs>>): Prisma__EstimateShareNoteClient<$Result.GetResult<Prisma.$EstimateShareNotePayload<ExtArgs>, 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<T extends EstimateShareNoteCountArgs>(
|
|
args?: Subset<T, EstimateShareNoteCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], EstimateShareNoteCountAggregateOutputType>
|
|
: 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<T extends EstimateShareNoteAggregateArgs>(args: Subset<T, EstimateShareNoteAggregateArgs>): Prisma.PrismaPromise<GetEstimateShareNoteAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: EstimateShareNoteGroupByArgs['orderBy'] }
|
|
: { orderBy?: EstimateShareNoteGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, EstimateShareNoteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEstimateShareNoteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
share<T extends EstimateShareDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EstimateShareDefaultArgs<ExtArgs>>): Prisma__EstimateShareClient<$Result.GetResult<Prisma.$EstimateSharePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
author<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateShareNote to fetch.
|
|
*/
|
|
where: EstimateShareNoteWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote findUniqueOrThrow
|
|
*/
|
|
export type EstimateShareNoteFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateShareNote to fetch.
|
|
*/
|
|
where: EstimateShareNoteWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote findFirst
|
|
*/
|
|
export type EstimateShareNoteFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a EstimateShareNote.
|
|
*/
|
|
data: XOR<EstimateShareNoteCreateInput, EstimateShareNoteUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote createMany
|
|
*/
|
|
export type EstimateShareNoteCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many EstimateShareNotes.
|
|
*/
|
|
data: EstimateShareNoteCreateManyInput | EstimateShareNoteCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote createManyAndReturn
|
|
*/
|
|
export type EstimateShareNoteCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many EstimateShareNotes.
|
|
*/
|
|
data: EstimateShareNoteCreateManyInput | EstimateShareNoteCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote update
|
|
*/
|
|
export type EstimateShareNoteUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a EstimateShareNote.
|
|
*/
|
|
data: XOR<EstimateShareNoteUpdateInput, EstimateShareNoteUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which EstimateShareNote to update.
|
|
*/
|
|
where: EstimateShareNoteWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote updateMany
|
|
*/
|
|
export type EstimateShareNoteUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update EstimateShareNotes.
|
|
*/
|
|
data: XOR<EstimateShareNoteUpdateManyMutationInput, EstimateShareNoteUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which EstimateShareNotes to update
|
|
*/
|
|
where?: EstimateShareNoteWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote upsert
|
|
*/
|
|
export type EstimateShareNoteUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | 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<EstimateShareNoteCreateInput, EstimateShareNoteUncheckedCreateInput>
|
|
/**
|
|
* In case the EstimateShareNote was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<EstimateShareNoteUpdateInput, EstimateShareNoteUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote delete
|
|
*/
|
|
export type EstimateShareNoteDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which EstimateShareNote to delete.
|
|
*/
|
|
where: EstimateShareNoteWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote deleteMany
|
|
*/
|
|
export type EstimateShareNoteDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EstimateShareNotes to delete
|
|
*/
|
|
where?: EstimateShareNoteWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateShareNote without action
|
|
*/
|
|
export type EstimateShareNoteDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateShareNote
|
|
*/
|
|
select?: EstimateShareNoteSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateShareNoteInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends EstimateItemAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateEstimateItem]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateEstimateItem[P]>
|
|
: GetScalarType<T[P], AggregateEstimateItem[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EstimateItemGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends EstimateItemGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<EstimateItemGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof EstimateItemGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], EstimateItemGroupByOutputType[P]>
|
|
: GetScalarType<T[P], EstimateItemGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type EstimateItemSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs>
|
|
priceItem?: boolean | EstimateItem$priceItemArgs<ExtArgs>
|
|
}, ExtArgs["result"]["estimateItem"]>
|
|
|
|
export type EstimateItemSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs>
|
|
priceItem?: boolean | EstimateItem$priceItemArgs<ExtArgs>
|
|
}, 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
priceItem?: boolean | EstimateItem$priceItemArgs<ExtArgs>
|
|
}
|
|
export type EstimateItemIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
priceItem?: boolean | EstimateItem$priceItemArgs<ExtArgs>
|
|
}
|
|
|
|
export type $EstimateItemPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "EstimateItem"
|
|
objects: {
|
|
estimate: Prisma.$EstimatePayload<ExtArgs>
|
|
priceItem: Prisma.$PriceItemPayload<ExtArgs> | 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<S extends boolean | null | undefined | EstimateItemDefaultArgs> = $Result.GetResult<Prisma.$EstimateItemPayload, S>
|
|
|
|
type EstimateItemCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<EstimateItemFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: EstimateItemCountAggregateInputType | true
|
|
}
|
|
|
|
export interface EstimateItemDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends EstimateItemFindUniqueArgs>(args: SelectSubset<T, EstimateItemFindUniqueArgs<ExtArgs>>): Prisma__EstimateItemClient<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemFindUniqueOrThrowArgs>(args: SelectSubset<T, EstimateItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EstimateItemClient<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemFindFirstArgs>(args?: SelectSubset<T, EstimateItemFindFirstArgs<ExtArgs>>): Prisma__EstimateItemClient<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemFindFirstOrThrowArgs>(args?: SelectSubset<T, EstimateItemFindFirstOrThrowArgs<ExtArgs>>): Prisma__EstimateItemClient<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemFindManyArgs>(args?: SelectSubset<T, EstimateItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemCreateArgs>(args: SelectSubset<T, EstimateItemCreateArgs<ExtArgs>>): Prisma__EstimateItemClient<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemCreateManyArgs>(args?: SelectSubset<T, EstimateItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateItemCreateManyAndReturnArgs>(args?: SelectSubset<T, EstimateItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemDeleteArgs>(args: SelectSubset<T, EstimateItemDeleteArgs<ExtArgs>>): Prisma__EstimateItemClient<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemUpdateArgs>(args: SelectSubset<T, EstimateItemUpdateArgs<ExtArgs>>): Prisma__EstimateItemClient<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemDeleteManyArgs>(args?: SelectSubset<T, EstimateItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateItemUpdateManyArgs>(args: SelectSubset<T, EstimateItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateItemUpsertArgs>(args: SelectSubset<T, EstimateItemUpsertArgs<ExtArgs>>): Prisma__EstimateItemClient<$Result.GetResult<Prisma.$EstimateItemPayload<ExtArgs>, 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<T extends EstimateItemCountArgs>(
|
|
args?: Subset<T, EstimateItemCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], EstimateItemCountAggregateOutputType>
|
|
: 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<T extends EstimateItemAggregateArgs>(args: Subset<T, EstimateItemAggregateArgs>): Prisma.PrismaPromise<GetEstimateItemAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: EstimateItemGroupByArgs['orderBy'] }
|
|
: { orderBy?: EstimateItemGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, EstimateItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEstimateItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
estimate<T extends EstimateDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EstimateDefaultArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
priceItem<T extends EstimateItem$priceItemArgs<ExtArgs> = {}>(args?: Subset<T, EstimateItem$priceItemArgs<ExtArgs>>): Prisma__PriceItemClient<$Result.GetResult<Prisma.$PriceItemPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateItem to fetch.
|
|
*/
|
|
where: EstimateItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateItem findUniqueOrThrow
|
|
*/
|
|
export type EstimateItemFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateItem to fetch.
|
|
*/
|
|
where: EstimateItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateItem findFirst
|
|
*/
|
|
export type EstimateItemFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a EstimateItem.
|
|
*/
|
|
data: XOR<EstimateItemCreateInput, EstimateItemUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateItem createMany
|
|
*/
|
|
export type EstimateItemCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many EstimateItems.
|
|
*/
|
|
data: EstimateItemCreateManyInput | EstimateItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* EstimateItem createManyAndReturn
|
|
*/
|
|
export type EstimateItemCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many EstimateItems.
|
|
*/
|
|
data: EstimateItemCreateManyInput | EstimateItemCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* EstimateItem update
|
|
*/
|
|
export type EstimateItemUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a EstimateItem.
|
|
*/
|
|
data: XOR<EstimateItemUpdateInput, EstimateItemUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which EstimateItem to update.
|
|
*/
|
|
where: EstimateItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateItem updateMany
|
|
*/
|
|
export type EstimateItemUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update EstimateItems.
|
|
*/
|
|
data: XOR<EstimateItemUpdateManyMutationInput, EstimateItemUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which EstimateItems to update
|
|
*/
|
|
where?: EstimateItemWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateItem upsert
|
|
*/
|
|
export type EstimateItemUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | 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<EstimateItemCreateInput, EstimateItemUncheckedCreateInput>
|
|
/**
|
|
* In case the EstimateItem was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<EstimateItemUpdateInput, EstimateItemUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateItem delete
|
|
*/
|
|
export type EstimateItemDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which EstimateItem to delete.
|
|
*/
|
|
where: EstimateItemWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateItem deleteMany
|
|
*/
|
|
export type EstimateItemDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EstimateItems to delete
|
|
*/
|
|
where?: EstimateItemWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateItem.priceItem
|
|
*/
|
|
export type EstimateItem$priceItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PriceItem
|
|
*/
|
|
select?: PriceItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: PriceItemInclude<ExtArgs> | null
|
|
where?: PriceItemWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateItem without action
|
|
*/
|
|
export type EstimateItemDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateItem
|
|
*/
|
|
select?: EstimateItemSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateItemInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends EstimateTotalAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateEstimateTotal]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateEstimateTotal[P]>
|
|
: GetScalarType<T[P], AggregateEstimateTotal[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EstimateTotalGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends EstimateTotalGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<EstimateTotalGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof EstimateTotalGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], EstimateTotalGroupByOutputType[P]>
|
|
: GetScalarType<T[P], EstimateTotalGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type EstimateTotalSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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>
|
|
}, ExtArgs["result"]["estimateTotal"]>
|
|
|
|
export type EstimateTotalSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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>
|
|
}, 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
}
|
|
export type EstimateTotalIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
estimate?: boolean | EstimateDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $EstimateTotalPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "EstimateTotal"
|
|
objects: {
|
|
estimate: Prisma.$EstimatePayload<ExtArgs>
|
|
}
|
|
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<S extends boolean | null | undefined | EstimateTotalDefaultArgs> = $Result.GetResult<Prisma.$EstimateTotalPayload, S>
|
|
|
|
type EstimateTotalCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<EstimateTotalFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: EstimateTotalCountAggregateInputType | true
|
|
}
|
|
|
|
export interface EstimateTotalDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends EstimateTotalFindUniqueArgs>(args: SelectSubset<T, EstimateTotalFindUniqueArgs<ExtArgs>>): Prisma__EstimateTotalClient<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalFindUniqueOrThrowArgs>(args: SelectSubset<T, EstimateTotalFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EstimateTotalClient<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalFindFirstArgs>(args?: SelectSubset<T, EstimateTotalFindFirstArgs<ExtArgs>>): Prisma__EstimateTotalClient<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalFindFirstOrThrowArgs>(args?: SelectSubset<T, EstimateTotalFindFirstOrThrowArgs<ExtArgs>>): Prisma__EstimateTotalClient<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalFindManyArgs>(args?: SelectSubset<T, EstimateTotalFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalCreateArgs>(args: SelectSubset<T, EstimateTotalCreateArgs<ExtArgs>>): Prisma__EstimateTotalClient<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalCreateManyArgs>(args?: SelectSubset<T, EstimateTotalCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateTotalCreateManyAndReturnArgs>(args?: SelectSubset<T, EstimateTotalCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalDeleteArgs>(args: SelectSubset<T, EstimateTotalDeleteArgs<ExtArgs>>): Prisma__EstimateTotalClient<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalUpdateArgs>(args: SelectSubset<T, EstimateTotalUpdateArgs<ExtArgs>>): Prisma__EstimateTotalClient<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalDeleteManyArgs>(args?: SelectSubset<T, EstimateTotalDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateTotalUpdateManyArgs>(args: SelectSubset<T, EstimateTotalUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends EstimateTotalUpsertArgs>(args: SelectSubset<T, EstimateTotalUpsertArgs<ExtArgs>>): Prisma__EstimateTotalClient<$Result.GetResult<Prisma.$EstimateTotalPayload<ExtArgs>, 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<T extends EstimateTotalCountArgs>(
|
|
args?: Subset<T, EstimateTotalCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], EstimateTotalCountAggregateOutputType>
|
|
: 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<T extends EstimateTotalAggregateArgs>(args: Subset<T, EstimateTotalAggregateArgs>): Prisma.PrismaPromise<GetEstimateTotalAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: EstimateTotalGroupByArgs['orderBy'] }
|
|
: { orderBy?: EstimateTotalGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, EstimateTotalGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEstimateTotalGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
estimate<T extends EstimateDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EstimateDefaultArgs<ExtArgs>>): Prisma__EstimateClient<$Result.GetResult<Prisma.$EstimatePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateTotal to fetch.
|
|
*/
|
|
where: EstimateTotalWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal findUniqueOrThrow
|
|
*/
|
|
export type EstimateTotalFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EstimateTotal to fetch.
|
|
*/
|
|
where: EstimateTotalWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal findFirst
|
|
*/
|
|
export type EstimateTotalFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a EstimateTotal.
|
|
*/
|
|
data: XOR<EstimateTotalCreateInput, EstimateTotalUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal createMany
|
|
*/
|
|
export type EstimateTotalCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many EstimateTotals.
|
|
*/
|
|
data: EstimateTotalCreateManyInput | EstimateTotalCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal createManyAndReturn
|
|
*/
|
|
export type EstimateTotalCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many EstimateTotals.
|
|
*/
|
|
data: EstimateTotalCreateManyInput | EstimateTotalCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal update
|
|
*/
|
|
export type EstimateTotalUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a EstimateTotal.
|
|
*/
|
|
data: XOR<EstimateTotalUpdateInput, EstimateTotalUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which EstimateTotal to update.
|
|
*/
|
|
where: EstimateTotalWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal updateMany
|
|
*/
|
|
export type EstimateTotalUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update EstimateTotals.
|
|
*/
|
|
data: XOR<EstimateTotalUpdateManyMutationInput, EstimateTotalUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which EstimateTotals to update
|
|
*/
|
|
where?: EstimateTotalWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal upsert
|
|
*/
|
|
export type EstimateTotalUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | 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<EstimateTotalCreateInput, EstimateTotalUncheckedCreateInput>
|
|
/**
|
|
* In case the EstimateTotal was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<EstimateTotalUpdateInput, EstimateTotalUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal delete
|
|
*/
|
|
export type EstimateTotalDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which EstimateTotal to delete.
|
|
*/
|
|
where: EstimateTotalWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal deleteMany
|
|
*/
|
|
export type EstimateTotalDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EstimateTotals to delete
|
|
*/
|
|
where?: EstimateTotalWhereInput
|
|
}
|
|
|
|
/**
|
|
* EstimateTotal without action
|
|
*/
|
|
export type EstimateTotalDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EstimateTotal
|
|
*/
|
|
select?: EstimateTotalSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: EstimateTotalInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends SettingAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSetting]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateSetting[P]>
|
|
: GetScalarType<T[P], AggregateSetting[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SettingGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends SettingGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<SettingGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SettingGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], SettingGroupByOutputType[P]>
|
|
: GetScalarType<T[P], SettingGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type SettingSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
key?: boolean
|
|
value?: boolean
|
|
type?: boolean
|
|
category?: boolean
|
|
label?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["setting"]>
|
|
|
|
export type SettingSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<S extends boolean | null | undefined | SettingDefaultArgs> = $Result.GetResult<Prisma.$SettingPayload, S>
|
|
|
|
type SettingCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<SettingFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: SettingCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SettingDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends SettingFindUniqueArgs>(args: SelectSubset<T, SettingFindUniqueArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingFindUniqueOrThrowArgs>(args: SelectSubset<T, SettingFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingFindFirstArgs>(args?: SelectSubset<T, SettingFindFirstArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingFindFirstOrThrowArgs>(args?: SelectSubset<T, SettingFindFirstOrThrowArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingFindManyArgs>(args?: SelectSubset<T, SettingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingCreateArgs>(args: SelectSubset<T, SettingCreateArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingCreateManyArgs>(args?: SelectSubset<T, SettingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends SettingCreateManyAndReturnArgs>(args?: SelectSubset<T, SettingCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingDeleteArgs>(args: SelectSubset<T, SettingDeleteArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingUpdateArgs>(args: SelectSubset<T, SettingUpdateArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingDeleteManyArgs>(args?: SelectSubset<T, SettingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends SettingUpdateManyArgs>(args: SelectSubset<T, SettingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends SettingUpsertArgs>(args: SelectSubset<T, SettingUpsertArgs<ExtArgs>>): Prisma__SettingClient<$Result.GetResult<Prisma.$SettingPayload<ExtArgs>, 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<T extends SettingCountArgs>(
|
|
args?: Subset<T, SettingCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], SettingCountAggregateOutputType>
|
|
: 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<T extends SettingAggregateArgs>(args: Subset<T, SettingAggregateArgs>): Prisma.PrismaPromise<GetSettingAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: SettingGroupByArgs['orderBy'] }
|
|
: { orderBy?: SettingGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, SettingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSettingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which Setting to fetch.
|
|
*/
|
|
where: SettingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Setting findUniqueOrThrow
|
|
*/
|
|
export type SettingFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | null
|
|
/**
|
|
* Filter, which Setting to fetch.
|
|
*/
|
|
where: SettingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Setting findFirst
|
|
*/
|
|
export type SettingFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Setting.
|
|
*/
|
|
data: XOR<SettingCreateInput, SettingUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Setting createMany
|
|
*/
|
|
export type SettingCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Settings.
|
|
*/
|
|
data: SettingCreateManyInput | SettingCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Setting createManyAndReturn
|
|
*/
|
|
export type SettingCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Settings.
|
|
*/
|
|
data: SettingCreateManyInput | SettingCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Setting update
|
|
*/
|
|
export type SettingUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Setting.
|
|
*/
|
|
data: XOR<SettingUpdateInput, SettingUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Setting to update.
|
|
*/
|
|
where: SettingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Setting updateMany
|
|
*/
|
|
export type SettingUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Settings.
|
|
*/
|
|
data: XOR<SettingUpdateManyMutationInput, SettingUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Settings to update
|
|
*/
|
|
where?: SettingWhereInput
|
|
}
|
|
|
|
/**
|
|
* Setting upsert
|
|
*/
|
|
export type SettingUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | 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<SettingCreateInput, SettingUncheckedCreateInput>
|
|
/**
|
|
* In case the Setting was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<SettingUpdateInput, SettingUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Setting delete
|
|
*/
|
|
export type SettingDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | null
|
|
/**
|
|
* Filter which Setting to delete.
|
|
*/
|
|
where: SettingWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Setting deleteMany
|
|
*/
|
|
export type SettingDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Settings to delete
|
|
*/
|
|
where?: SettingWhereInput
|
|
}
|
|
|
|
/**
|
|
* Setting without action
|
|
*/
|
|
export type SettingDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Setting
|
|
*/
|
|
select?: SettingSelect<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends ChatSessionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateChatSession]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateChatSession[P]>
|
|
: GetScalarType<T[P], AggregateChatSession[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ChatSessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends ChatSessionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ChatSessionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ChatSessionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ChatSessionGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ChatSessionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ChatSessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
estimateId?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
messages?: boolean | ChatSession$messagesArgs<ExtArgs>
|
|
_count?: boolean | ChatSessionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["chatSession"]>
|
|
|
|
export type ChatSessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
userId?: boolean
|
|
estimateId?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["chatSession"]>
|
|
|
|
export type ChatSessionSelectScalar = {
|
|
id?: boolean
|
|
userId?: boolean
|
|
estimateId?: boolean
|
|
status?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type ChatSessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
messages?: boolean | ChatSession$messagesArgs<ExtArgs>
|
|
_count?: boolean | ChatSessionCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type ChatSessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
user?: boolean | UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ChatSessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "ChatSession"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
messages: Prisma.$ChatMessagePayload<ExtArgs>[]
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
userId: string
|
|
estimateId: string | null
|
|
status: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["chatSession"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ChatSessionGetPayload<S extends boolean | null | undefined | ChatSessionDefaultArgs> = $Result.GetResult<Prisma.$ChatSessionPayload, S>
|
|
|
|
type ChatSessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ChatSessionFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: ChatSessionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ChatSessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends ChatSessionFindUniqueArgs>(args: SelectSubset<T, ChatSessionFindUniqueArgs<ExtArgs>>): Prisma__ChatSessionClient<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionFindUniqueOrThrowArgs>(args: SelectSubset<T, ChatSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ChatSessionClient<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionFindFirstArgs>(args?: SelectSubset<T, ChatSessionFindFirstArgs<ExtArgs>>): Prisma__ChatSessionClient<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionFindFirstOrThrowArgs>(args?: SelectSubset<T, ChatSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__ChatSessionClient<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionFindManyArgs>(args?: SelectSubset<T, ChatSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionCreateArgs>(args: SelectSubset<T, ChatSessionCreateArgs<ExtArgs>>): Prisma__ChatSessionClient<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionCreateManyArgs>(args?: SelectSubset<T, ChatSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ChatSessionCreateManyAndReturnArgs>(args?: SelectSubset<T, ChatSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionDeleteArgs>(args: SelectSubset<T, ChatSessionDeleteArgs<ExtArgs>>): Prisma__ChatSessionClient<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionUpdateArgs>(args: SelectSubset<T, ChatSessionUpdateArgs<ExtArgs>>): Prisma__ChatSessionClient<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionDeleteManyArgs>(args?: SelectSubset<T, ChatSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ChatSessionUpdateManyArgs>(args: SelectSubset<T, ChatSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ChatSessionUpsertArgs>(args: SelectSubset<T, ChatSessionUpsertArgs<ExtArgs>>): Prisma__ChatSessionClient<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, 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<T extends ChatSessionCountArgs>(
|
|
args?: Subset<T, ChatSessionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ChatSessionCountAggregateOutputType>
|
|
: 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<T extends ChatSessionAggregateArgs>(args: Subset<T, ChatSessionAggregateArgs>): Prisma.PrismaPromise<GetChatSessionAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ChatSessionGroupByArgs['orderBy'] }
|
|
: { orderBy?: ChatSessionGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ChatSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChatSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
messages<T extends ChatSession$messagesArgs<ExtArgs> = {}>(args?: Subset<T, ChatSession$messagesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, T, "findMany"> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ChatSession to fetch.
|
|
*/
|
|
where: ChatSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ChatSession findUniqueOrThrow
|
|
*/
|
|
export type ChatSessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ChatSession to fetch.
|
|
*/
|
|
where: ChatSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ChatSession findFirst
|
|
*/
|
|
export type ChatSessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ChatSession.
|
|
*/
|
|
data: XOR<ChatSessionCreateInput, ChatSessionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ChatSession createMany
|
|
*/
|
|
export type ChatSessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ChatSessions.
|
|
*/
|
|
data: ChatSessionCreateManyInput | ChatSessionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ChatSession createManyAndReturn
|
|
*/
|
|
export type ChatSessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many ChatSessions.
|
|
*/
|
|
data: ChatSessionCreateManyInput | ChatSessionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ChatSession update
|
|
*/
|
|
export type ChatSessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ChatSession.
|
|
*/
|
|
data: XOR<ChatSessionUpdateInput, ChatSessionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ChatSession to update.
|
|
*/
|
|
where: ChatSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ChatSession updateMany
|
|
*/
|
|
export type ChatSessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ChatSessions.
|
|
*/
|
|
data: XOR<ChatSessionUpdateManyMutationInput, ChatSessionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ChatSessions to update
|
|
*/
|
|
where?: ChatSessionWhereInput
|
|
}
|
|
|
|
/**
|
|
* ChatSession upsert
|
|
*/
|
|
export type ChatSessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | 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<ChatSessionCreateInput, ChatSessionUncheckedCreateInput>
|
|
/**
|
|
* In case the ChatSession was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ChatSessionUpdateInput, ChatSessionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ChatSession delete
|
|
*/
|
|
export type ChatSessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ChatSession to delete.
|
|
*/
|
|
where: ChatSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ChatSession deleteMany
|
|
*/
|
|
export type ChatSessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ChatSessions to delete
|
|
*/
|
|
where?: ChatSessionWhereInput
|
|
}
|
|
|
|
/**
|
|
* ChatSession.messages
|
|
*/
|
|
export type ChatSession$messagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | null
|
|
where?: ChatMessageWhereInput
|
|
orderBy?: ChatMessageOrderByWithRelationInput | ChatMessageOrderByWithRelationInput[]
|
|
cursor?: ChatMessageWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: ChatMessageScalarFieldEnum | ChatMessageScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* ChatSession without action
|
|
*/
|
|
export type ChatSessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatSession
|
|
*/
|
|
select?: ChatSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatSessionInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends ChatMessageAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateChatMessage]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: GetScalarType<T[P], AggregateChatMessage[P]>
|
|
: GetScalarType<T[P], AggregateChatMessage[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ChatMessageGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
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<T extends ChatMessageGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
PickEnumerable<ChatMessageGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ChatMessageGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: GetScalarType<T[P], ChatMessageGroupByOutputType[P]>
|
|
: GetScalarType<T[P], ChatMessageGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
export type ChatMessageSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
sessionId?: boolean
|
|
role?: boolean
|
|
content?: boolean
|
|
metadata?: boolean
|
|
createdAt?: boolean
|
|
session?: boolean | ChatSessionDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["chatMessage"]>
|
|
|
|
export type ChatMessageSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
id?: boolean
|
|
sessionId?: boolean
|
|
role?: boolean
|
|
content?: boolean
|
|
metadata?: boolean
|
|
createdAt?: boolean
|
|
session?: boolean | ChatSessionDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["chatMessage"]>
|
|
|
|
export type ChatMessageSelectScalar = {
|
|
id?: boolean
|
|
sessionId?: boolean
|
|
role?: boolean
|
|
content?: boolean
|
|
metadata?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type ChatMessageInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
session?: boolean | ChatSessionDefaultArgs<ExtArgs>
|
|
}
|
|
export type ChatMessageIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
session?: boolean | ChatSessionDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $ChatMessagePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
name: "ChatMessage"
|
|
objects: {
|
|
session: Prisma.$ChatSessionPayload<ExtArgs>
|
|
}
|
|
scalars: $Extensions.GetPayloadResult<{
|
|
id: string
|
|
sessionId: string
|
|
role: string
|
|
content: string
|
|
metadata: Prisma.JsonValue | null
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["chatMessage"]>
|
|
composites: {}
|
|
}
|
|
|
|
type ChatMessageGetPayload<S extends boolean | null | undefined | ChatMessageDefaultArgs> = $Result.GetResult<Prisma.$ChatMessagePayload, S>
|
|
|
|
type ChatMessageCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
Omit<ChatMessageFindManyArgs, 'select' | 'include' | 'distinct'> & {
|
|
select?: ChatMessageCountAggregateInputType | true
|
|
}
|
|
|
|
export interface ChatMessageDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends ChatMessageFindUniqueArgs>(args: SelectSubset<T, ChatMessageFindUniqueArgs<ExtArgs>>): Prisma__ChatMessageClient<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageFindUniqueOrThrowArgs>(args: SelectSubset<T, ChatMessageFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ChatMessageClient<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageFindFirstArgs>(args?: SelectSubset<T, ChatMessageFindFirstArgs<ExtArgs>>): Prisma__ChatMessageClient<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageFindFirstOrThrowArgs>(args?: SelectSubset<T, ChatMessageFindFirstOrThrowArgs<ExtArgs>>): Prisma__ChatMessageClient<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageFindManyArgs>(args?: SelectSubset<T, ChatMessageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageCreateArgs>(args: SelectSubset<T, ChatMessageCreateArgs<ExtArgs>>): Prisma__ChatMessageClient<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageCreateManyArgs>(args?: SelectSubset<T, ChatMessageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ChatMessageCreateManyAndReturnArgs>(args?: SelectSubset<T, ChatMessageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageDeleteArgs>(args: SelectSubset<T, ChatMessageDeleteArgs<ExtArgs>>): Prisma__ChatMessageClient<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageUpdateArgs>(args: SelectSubset<T, ChatMessageUpdateArgs<ExtArgs>>): Prisma__ChatMessageClient<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageDeleteManyArgs>(args?: SelectSubset<T, ChatMessageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ChatMessageUpdateManyArgs>(args: SelectSubset<T, ChatMessageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends ChatMessageUpsertArgs>(args: SelectSubset<T, ChatMessageUpsertArgs<ExtArgs>>): Prisma__ChatMessageClient<$Result.GetResult<Prisma.$ChatMessagePayload<ExtArgs>, 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<T extends ChatMessageCountArgs>(
|
|
args?: Subset<T, ChatMessageCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends $Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: GetScalarType<T['select'], ChatMessageCountAggregateOutputType>
|
|
: 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<T extends ChatMessageAggregateArgs>(args: Subset<T, ChatMessageAggregateArgs>): Prisma.PrismaPromise<GetChatMessageAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Extends<'take', Keys<T>>
|
|
>,
|
|
OrderByArg extends True extends HasSelectOrTake
|
|
? { orderBy: ChatMessageGroupByArgs['orderBy'] }
|
|
: { orderBy?: ChatMessageGroupByArgs['orderBy'] },
|
|
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Has<ByFields, OrderFields>,
|
|
HavingFields extends GetHavingFields<T['having']>,
|
|
HavingValid extends Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
InputErrors extends ByEmpty extends True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Keys<T>
|
|
? 'orderBy' extends Keys<T>
|
|
? ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: SubsetIntersection<T, ChatMessageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChatMessageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
session<T extends ChatSessionDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ChatSessionDefaultArgs<ExtArgs>>): Prisma__ChatSessionClient<$Result.GetResult<Prisma.$ChatSessionPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ChatMessage to fetch.
|
|
*/
|
|
where: ChatMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ChatMessage findUniqueOrThrow
|
|
*/
|
|
export type ChatMessageFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which ChatMessage to fetch.
|
|
*/
|
|
where: ChatMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ChatMessage findFirst
|
|
*/
|
|
export type ChatMessageFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a ChatMessage.
|
|
*/
|
|
data: XOR<ChatMessageCreateInput, ChatMessageUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* ChatMessage createMany
|
|
*/
|
|
export type ChatMessageCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many ChatMessages.
|
|
*/
|
|
data: ChatMessageCreateManyInput | ChatMessageCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* ChatMessage createManyAndReturn
|
|
*/
|
|
export type ChatMessageCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* The data used to create many ChatMessages.
|
|
*/
|
|
data: ChatMessageCreateManyInput | ChatMessageCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* ChatMessage update
|
|
*/
|
|
export type ChatMessageUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a ChatMessage.
|
|
*/
|
|
data: XOR<ChatMessageUpdateInput, ChatMessageUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which ChatMessage to update.
|
|
*/
|
|
where: ChatMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ChatMessage updateMany
|
|
*/
|
|
export type ChatMessageUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update ChatMessages.
|
|
*/
|
|
data: XOR<ChatMessageUpdateManyMutationInput, ChatMessageUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which ChatMessages to update
|
|
*/
|
|
where?: ChatMessageWhereInput
|
|
}
|
|
|
|
/**
|
|
* ChatMessage upsert
|
|
*/
|
|
export type ChatMessageUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | 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<ChatMessageCreateInput, ChatMessageUncheckedCreateInput>
|
|
/**
|
|
* In case the ChatMessage was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: XOR<ChatMessageUpdateInput, ChatMessageUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* ChatMessage delete
|
|
*/
|
|
export type ChatMessageDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which ChatMessage to delete.
|
|
*/
|
|
where: ChatMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* ChatMessage deleteMany
|
|
*/
|
|
export type ChatMessageDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which ChatMessages to delete
|
|
*/
|
|
where?: ChatMessageWhereInput
|
|
}
|
|
|
|
/**
|
|
* ChatMessage without action
|
|
*/
|
|
export type ChatMessageDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ChatMessage
|
|
*/
|
|
select?: ChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: ChatMessageInclude<ExtArgs> | 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<PriceBookRelationFilter, PriceBookWhereInput>
|
|
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<PriceBookRelationFilter, PriceBookWhereInput>
|
|
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<PriceBookRelationFilter, PriceBookWhereInput>
|
|
priceTable?: XOR<PriceTableRelationFilter, PriceTableWhereInput>
|
|
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<PriceBookRelationFilter, PriceBookWhereInput>
|
|
priceTable?: XOR<PriceTableRelationFilter, PriceTableWhereInput>
|
|
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<UserRelationFilter, UserWhereInput>
|
|
direction?: XOR<SurveyDirectionRelationFilter, SurveyDirectionWhereInput>
|
|
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<UserRelationFilter, UserWhereInput>
|
|
direction?: XOR<SurveyDirectionRelationFilter, SurveyDirectionWhereInput>
|
|
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<EstimateRelationFilter, EstimateWhereInput>
|
|
}
|
|
|
|
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<EstimateRelationFilter, EstimateWhereInput>
|
|
}, "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<EstimateRelationFilter, EstimateWhereInput>
|
|
sharedWith?: XOR<UserRelationFilter, UserWhereInput>
|
|
owner?: XOR<UserRelationFilter, UserWhereInput>
|
|
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<EstimateRelationFilter, EstimateWhereInput>
|
|
sharedWith?: XOR<UserRelationFilter, UserWhereInput>
|
|
owner?: XOR<UserRelationFilter, UserWhereInput>
|
|
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<EstimateShareRelationFilter, EstimateShareWhereInput>
|
|
author?: XOR<UserRelationFilter, UserWhereInput>
|
|
}
|
|
|
|
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<EstimateShareRelationFilter, EstimateShareWhereInput>
|
|
author?: XOR<UserRelationFilter, UserWhereInput>
|
|
}, "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<EstimateRelationFilter, EstimateWhereInput>
|
|
priceItem?: XOR<PriceItemNullableRelationFilter, PriceItemWhereInput> | 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<EstimateRelationFilter, EstimateWhereInput>
|
|
priceItem?: XOR<PriceItemNullableRelationFilter, PriceItemWhereInput> | 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<EstimateRelationFilter, EstimateWhereInput>
|
|
}
|
|
|
|
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<EstimateRelationFilter, EstimateWhereInput>
|
|
}, "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<UserRelationFilter, UserWhereInput>
|
|
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<UserRelationFilter, UserWhereInput>
|
|
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<ChatSessionRelationFilter, ChatSessionWhereInput>
|
|
}
|
|
|
|
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<ChatSessionRelationFilter, ChatSessionWhereInput>
|
|
}, "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<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonNullableFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, '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<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, '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<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, '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<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<JsonWithAggregatesFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, '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> | PriceTableCreateWithoutPriceBookInput[] | PriceTableUncheckedCreateWithoutPriceBookInput[]
|
|
connectOrCreate?: PriceTableCreateOrConnectWithoutPriceBookInput | PriceTableCreateOrConnectWithoutPriceBookInput[]
|
|
createMany?: PriceTableCreateManyPriceBookInputEnvelope
|
|
connect?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[]
|
|
}
|
|
|
|
export type PriceItemCreateNestedManyWithoutPriceBookInput = {
|
|
create?: XOR<PriceItemCreateWithoutPriceBookInput, PriceItemUncheckedCreateWithoutPriceBookInput> | PriceItemCreateWithoutPriceBookInput[] | PriceItemUncheckedCreateWithoutPriceBookInput[]
|
|
connectOrCreate?: PriceItemCreateOrConnectWithoutPriceBookInput | PriceItemCreateOrConnectWithoutPriceBookInput[]
|
|
createMany?: PriceItemCreateManyPriceBookInputEnvelope
|
|
connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type PriceTableUncheckedCreateNestedManyWithoutPriceBookInput = {
|
|
create?: XOR<PriceTableCreateWithoutPriceBookInput, PriceTableUncheckedCreateWithoutPriceBookInput> | PriceTableCreateWithoutPriceBookInput[] | PriceTableUncheckedCreateWithoutPriceBookInput[]
|
|
connectOrCreate?: PriceTableCreateOrConnectWithoutPriceBookInput | PriceTableCreateOrConnectWithoutPriceBookInput[]
|
|
createMany?: PriceTableCreateManyPriceBookInputEnvelope
|
|
connect?: PriceTableWhereUniqueInput | PriceTableWhereUniqueInput[]
|
|
}
|
|
|
|
export type PriceItemUncheckedCreateNestedManyWithoutPriceBookInput = {
|
|
create?: XOR<PriceItemCreateWithoutPriceBookInput, PriceItemUncheckedCreateWithoutPriceBookInput> | 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> | 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> | 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> | 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> | 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<PriceBookCreateWithoutTablesInput, PriceBookUncheckedCreateWithoutTablesInput>
|
|
connectOrCreate?: PriceBookCreateOrConnectWithoutTablesInput
|
|
connect?: PriceBookWhereUniqueInput
|
|
}
|
|
|
|
export type PriceItemCreateNestedManyWithoutPriceTableInput = {
|
|
create?: XOR<PriceItemCreateWithoutPriceTableInput, PriceItemUncheckedCreateWithoutPriceTableInput> | PriceItemCreateWithoutPriceTableInput[] | PriceItemUncheckedCreateWithoutPriceTableInput[]
|
|
connectOrCreate?: PriceItemCreateOrConnectWithoutPriceTableInput | PriceItemCreateOrConnectWithoutPriceTableInput[]
|
|
createMany?: PriceItemCreateManyPriceTableInputEnvelope
|
|
connect?: PriceItemWhereUniqueInput | PriceItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type PriceItemUncheckedCreateNestedManyWithoutPriceTableInput = {
|
|
create?: XOR<PriceItemCreateWithoutPriceTableInput, PriceItemUncheckedCreateWithoutPriceTableInput> | 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<PriceBookCreateWithoutTablesInput, PriceBookUncheckedCreateWithoutTablesInput>
|
|
connectOrCreate?: PriceBookCreateOrConnectWithoutTablesInput
|
|
upsert?: PriceBookUpsertWithoutTablesInput
|
|
connect?: PriceBookWhereUniqueInput
|
|
update?: XOR<XOR<PriceBookUpdateToOneWithWhereWithoutTablesInput, PriceBookUpdateWithoutTablesInput>, PriceBookUncheckedUpdateWithoutTablesInput>
|
|
}
|
|
|
|
export type PriceItemUpdateManyWithoutPriceTableNestedInput = {
|
|
create?: XOR<PriceItemCreateWithoutPriceTableInput, PriceItemUncheckedCreateWithoutPriceTableInput> | 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> | 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<PriceBookCreateWithoutItemsInput, PriceBookUncheckedCreateWithoutItemsInput>
|
|
connectOrCreate?: PriceBookCreateOrConnectWithoutItemsInput
|
|
connect?: PriceBookWhereUniqueInput
|
|
}
|
|
|
|
export type PriceTableCreateNestedOneWithoutItemsInput = {
|
|
create?: XOR<PriceTableCreateWithoutItemsInput, PriceTableUncheckedCreateWithoutItemsInput>
|
|
connectOrCreate?: PriceTableCreateOrConnectWithoutItemsInput
|
|
connect?: PriceTableWhereUniqueInput
|
|
}
|
|
|
|
export type EstimateItemCreateNestedManyWithoutPriceItemInput = {
|
|
create?: XOR<EstimateItemCreateWithoutPriceItemInput, EstimateItemUncheckedCreateWithoutPriceItemInput> | EstimateItemCreateWithoutPriceItemInput[] | EstimateItemUncheckedCreateWithoutPriceItemInput[]
|
|
connectOrCreate?: EstimateItemCreateOrConnectWithoutPriceItemInput | EstimateItemCreateOrConnectWithoutPriceItemInput[]
|
|
createMany?: EstimateItemCreateManyPriceItemInputEnvelope
|
|
connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateItemUncheckedCreateNestedManyWithoutPriceItemInput = {
|
|
create?: XOR<EstimateItemCreateWithoutPriceItemInput, EstimateItemUncheckedCreateWithoutPriceItemInput> | 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<PriceBookCreateWithoutItemsInput, PriceBookUncheckedCreateWithoutItemsInput>
|
|
connectOrCreate?: PriceBookCreateOrConnectWithoutItemsInput
|
|
upsert?: PriceBookUpsertWithoutItemsInput
|
|
connect?: PriceBookWhereUniqueInput
|
|
update?: XOR<XOR<PriceBookUpdateToOneWithWhereWithoutItemsInput, PriceBookUpdateWithoutItemsInput>, PriceBookUncheckedUpdateWithoutItemsInput>
|
|
}
|
|
|
|
export type PriceTableUpdateOneRequiredWithoutItemsNestedInput = {
|
|
create?: XOR<PriceTableCreateWithoutItemsInput, PriceTableUncheckedCreateWithoutItemsInput>
|
|
connectOrCreate?: PriceTableCreateOrConnectWithoutItemsInput
|
|
upsert?: PriceTableUpsertWithoutItemsInput
|
|
connect?: PriceTableWhereUniqueInput
|
|
update?: XOR<XOR<PriceTableUpdateToOneWithWhereWithoutItemsInput, PriceTableUpdateWithoutItemsInput>, PriceTableUncheckedUpdateWithoutItemsInput>
|
|
}
|
|
|
|
export type EstimateItemUpdateManyWithoutPriceItemNestedInput = {
|
|
create?: XOR<EstimateItemCreateWithoutPriceItemInput, EstimateItemUncheckedCreateWithoutPriceItemInput> | 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> | 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> | EstimateCreateWithoutOwnerInput[] | EstimateUncheckedCreateWithoutOwnerInput[]
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutOwnerInput | EstimateCreateOrConnectWithoutOwnerInput[]
|
|
createMany?: EstimateCreateManyOwnerInputEnvelope
|
|
connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[]
|
|
}
|
|
|
|
export type ChatSessionCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<ChatSessionCreateWithoutUserInput, ChatSessionUncheckedCreateWithoutUserInput> | ChatSessionCreateWithoutUserInput[] | ChatSessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: ChatSessionCreateOrConnectWithoutUserInput | ChatSessionCreateOrConnectWithoutUserInput[]
|
|
createMany?: ChatSessionCreateManyUserInputEnvelope
|
|
connect?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateShareCreateNestedManyWithoutOwnerInput = {
|
|
create?: XOR<EstimateShareCreateWithoutOwnerInput, EstimateShareUncheckedCreateWithoutOwnerInput> | EstimateShareCreateWithoutOwnerInput[] | EstimateShareUncheckedCreateWithoutOwnerInput[]
|
|
connectOrCreate?: EstimateShareCreateOrConnectWithoutOwnerInput | EstimateShareCreateOrConnectWithoutOwnerInput[]
|
|
createMany?: EstimateShareCreateManyOwnerInputEnvelope
|
|
connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateShareCreateNestedManyWithoutSharedWithInput = {
|
|
create?: XOR<EstimateShareCreateWithoutSharedWithInput, EstimateShareUncheckedCreateWithoutSharedWithInput> | EstimateShareCreateWithoutSharedWithInput[] | EstimateShareUncheckedCreateWithoutSharedWithInput[]
|
|
connectOrCreate?: EstimateShareCreateOrConnectWithoutSharedWithInput | EstimateShareCreateOrConnectWithoutSharedWithInput[]
|
|
createMany?: EstimateShareCreateManySharedWithInputEnvelope
|
|
connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateShareNoteCreateNestedManyWithoutAuthorInput = {
|
|
create?: XOR<EstimateShareNoteCreateWithoutAuthorInput, EstimateShareNoteUncheckedCreateWithoutAuthorInput> | EstimateShareNoteCreateWithoutAuthorInput[] | EstimateShareNoteUncheckedCreateWithoutAuthorInput[]
|
|
connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutAuthorInput | EstimateShareNoteCreateOrConnectWithoutAuthorInput[]
|
|
createMany?: EstimateShareNoteCreateManyAuthorInputEnvelope
|
|
connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateUncheckedCreateNestedManyWithoutOwnerInput = {
|
|
create?: XOR<EstimateCreateWithoutOwnerInput, EstimateUncheckedCreateWithoutOwnerInput> | EstimateCreateWithoutOwnerInput[] | EstimateUncheckedCreateWithoutOwnerInput[]
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutOwnerInput | EstimateCreateOrConnectWithoutOwnerInput[]
|
|
createMany?: EstimateCreateManyOwnerInputEnvelope
|
|
connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[]
|
|
}
|
|
|
|
export type ChatSessionUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: XOR<ChatSessionCreateWithoutUserInput, ChatSessionUncheckedCreateWithoutUserInput> | ChatSessionCreateWithoutUserInput[] | ChatSessionUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: ChatSessionCreateOrConnectWithoutUserInput | ChatSessionCreateOrConnectWithoutUserInput[]
|
|
createMany?: ChatSessionCreateManyUserInputEnvelope
|
|
connect?: ChatSessionWhereUniqueInput | ChatSessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateShareUncheckedCreateNestedManyWithoutOwnerInput = {
|
|
create?: XOR<EstimateShareCreateWithoutOwnerInput, EstimateShareUncheckedCreateWithoutOwnerInput> | EstimateShareCreateWithoutOwnerInput[] | EstimateShareUncheckedCreateWithoutOwnerInput[]
|
|
connectOrCreate?: EstimateShareCreateOrConnectWithoutOwnerInput | EstimateShareCreateOrConnectWithoutOwnerInput[]
|
|
createMany?: EstimateShareCreateManyOwnerInputEnvelope
|
|
connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateShareUncheckedCreateNestedManyWithoutSharedWithInput = {
|
|
create?: XOR<EstimateShareCreateWithoutSharedWithInput, EstimateShareUncheckedCreateWithoutSharedWithInput> | EstimateShareCreateWithoutSharedWithInput[] | EstimateShareUncheckedCreateWithoutSharedWithInput[]
|
|
connectOrCreate?: EstimateShareCreateOrConnectWithoutSharedWithInput | EstimateShareCreateOrConnectWithoutSharedWithInput[]
|
|
createMany?: EstimateShareCreateManySharedWithInputEnvelope
|
|
connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateShareNoteUncheckedCreateNestedManyWithoutAuthorInput = {
|
|
create?: XOR<EstimateShareNoteCreateWithoutAuthorInput, EstimateShareNoteUncheckedCreateWithoutAuthorInput> | EstimateShareNoteCreateWithoutAuthorInput[] | EstimateShareNoteUncheckedCreateWithoutAuthorInput[]
|
|
connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutAuthorInput | EstimateShareNoteCreateOrConnectWithoutAuthorInput[]
|
|
createMany?: EstimateShareNoteCreateManyAuthorInputEnvelope
|
|
connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateUpdateManyWithoutOwnerNestedInput = {
|
|
create?: XOR<EstimateCreateWithoutOwnerInput, EstimateUncheckedCreateWithoutOwnerInput> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | EstimateCreateWithoutDirectionInput[] | EstimateUncheckedCreateWithoutDirectionInput[]
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutDirectionInput | EstimateCreateOrConnectWithoutDirectionInput[]
|
|
createMany?: EstimateCreateManyDirectionInputEnvelope
|
|
connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateUncheckedCreateNestedManyWithoutDirectionInput = {
|
|
create?: XOR<EstimateCreateWithoutDirectionInput, EstimateUncheckedCreateWithoutDirectionInput> | EstimateCreateWithoutDirectionInput[] | EstimateUncheckedCreateWithoutDirectionInput[]
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutDirectionInput | EstimateCreateOrConnectWithoutDirectionInput[]
|
|
createMany?: EstimateCreateManyDirectionInputEnvelope
|
|
connect?: EstimateWhereUniqueInput | EstimateWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateUpdateManyWithoutDirectionNestedInput = {
|
|
create?: XOR<EstimateCreateWithoutDirectionInput, EstimateUncheckedCreateWithoutDirectionInput> | 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> | 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<UserCreateWithoutEstimatesInput, UserUncheckedCreateWithoutEstimatesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutEstimatesInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type SurveyDirectionCreateNestedOneWithoutEstimatesInput = {
|
|
create?: XOR<SurveyDirectionCreateWithoutEstimatesInput, SurveyDirectionUncheckedCreateWithoutEstimatesInput>
|
|
connectOrCreate?: SurveyDirectionCreateOrConnectWithoutEstimatesInput
|
|
connect?: SurveyDirectionWhereUniqueInput
|
|
}
|
|
|
|
export type EstimateItemCreateNestedManyWithoutEstimateInput = {
|
|
create?: XOR<EstimateItemCreateWithoutEstimateInput, EstimateItemUncheckedCreateWithoutEstimateInput> | EstimateItemCreateWithoutEstimateInput[] | EstimateItemUncheckedCreateWithoutEstimateInput[]
|
|
connectOrCreate?: EstimateItemCreateOrConnectWithoutEstimateInput | EstimateItemCreateOrConnectWithoutEstimateInput[]
|
|
createMany?: EstimateItemCreateManyEstimateInputEnvelope
|
|
connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateTotalCreateNestedManyWithoutEstimateInput = {
|
|
create?: XOR<EstimateTotalCreateWithoutEstimateInput, EstimateTotalUncheckedCreateWithoutEstimateInput> | EstimateTotalCreateWithoutEstimateInput[] | EstimateTotalUncheckedCreateWithoutEstimateInput[]
|
|
connectOrCreate?: EstimateTotalCreateOrConnectWithoutEstimateInput | EstimateTotalCreateOrConnectWithoutEstimateInput[]
|
|
createMany?: EstimateTotalCreateManyEstimateInputEnvelope
|
|
connect?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateShareCreateNestedManyWithoutEstimateInput = {
|
|
create?: XOR<EstimateShareCreateWithoutEstimateInput, EstimateShareUncheckedCreateWithoutEstimateInput> | EstimateShareCreateWithoutEstimateInput[] | EstimateShareUncheckedCreateWithoutEstimateInput[]
|
|
connectOrCreate?: EstimateShareCreateOrConnectWithoutEstimateInput | EstimateShareCreateOrConnectWithoutEstimateInput[]
|
|
createMany?: EstimateShareCreateManyEstimateInputEnvelope
|
|
connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateVersionCreateNestedManyWithoutEstimateInput = {
|
|
create?: XOR<EstimateVersionCreateWithoutEstimateInput, EstimateVersionUncheckedCreateWithoutEstimateInput> | EstimateVersionCreateWithoutEstimateInput[] | EstimateVersionUncheckedCreateWithoutEstimateInput[]
|
|
connectOrCreate?: EstimateVersionCreateOrConnectWithoutEstimateInput | EstimateVersionCreateOrConnectWithoutEstimateInput[]
|
|
createMany?: EstimateVersionCreateManyEstimateInputEnvelope
|
|
connect?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateItemUncheckedCreateNestedManyWithoutEstimateInput = {
|
|
create?: XOR<EstimateItemCreateWithoutEstimateInput, EstimateItemUncheckedCreateWithoutEstimateInput> | EstimateItemCreateWithoutEstimateInput[] | EstimateItemUncheckedCreateWithoutEstimateInput[]
|
|
connectOrCreate?: EstimateItemCreateOrConnectWithoutEstimateInput | EstimateItemCreateOrConnectWithoutEstimateInput[]
|
|
createMany?: EstimateItemCreateManyEstimateInputEnvelope
|
|
connect?: EstimateItemWhereUniqueInput | EstimateItemWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateTotalUncheckedCreateNestedManyWithoutEstimateInput = {
|
|
create?: XOR<EstimateTotalCreateWithoutEstimateInput, EstimateTotalUncheckedCreateWithoutEstimateInput> | EstimateTotalCreateWithoutEstimateInput[] | EstimateTotalUncheckedCreateWithoutEstimateInput[]
|
|
connectOrCreate?: EstimateTotalCreateOrConnectWithoutEstimateInput | EstimateTotalCreateOrConnectWithoutEstimateInput[]
|
|
createMany?: EstimateTotalCreateManyEstimateInputEnvelope
|
|
connect?: EstimateTotalWhereUniqueInput | EstimateTotalWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateShareUncheckedCreateNestedManyWithoutEstimateInput = {
|
|
create?: XOR<EstimateShareCreateWithoutEstimateInput, EstimateShareUncheckedCreateWithoutEstimateInput> | EstimateShareCreateWithoutEstimateInput[] | EstimateShareUncheckedCreateWithoutEstimateInput[]
|
|
connectOrCreate?: EstimateShareCreateOrConnectWithoutEstimateInput | EstimateShareCreateOrConnectWithoutEstimateInput[]
|
|
createMany?: EstimateShareCreateManyEstimateInputEnvelope
|
|
connect?: EstimateShareWhereUniqueInput | EstimateShareWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateVersionUncheckedCreateNestedManyWithoutEstimateInput = {
|
|
create?: XOR<EstimateVersionCreateWithoutEstimateInput, EstimateVersionUncheckedCreateWithoutEstimateInput> | EstimateVersionCreateWithoutEstimateInput[] | EstimateVersionUncheckedCreateWithoutEstimateInput[]
|
|
connectOrCreate?: EstimateVersionCreateOrConnectWithoutEstimateInput | EstimateVersionCreateOrConnectWithoutEstimateInput[]
|
|
createMany?: EstimateVersionCreateManyEstimateInputEnvelope
|
|
connect?: EstimateVersionWhereUniqueInput | EstimateVersionWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutEstimatesNestedInput = {
|
|
create?: XOR<UserCreateWithoutEstimatesInput, UserUncheckedCreateWithoutEstimatesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutEstimatesInput
|
|
upsert?: UserUpsertWithoutEstimatesInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutEstimatesInput, UserUpdateWithoutEstimatesInput>, UserUncheckedUpdateWithoutEstimatesInput>
|
|
}
|
|
|
|
export type SurveyDirectionUpdateOneRequiredWithoutEstimatesNestedInput = {
|
|
create?: XOR<SurveyDirectionCreateWithoutEstimatesInput, SurveyDirectionUncheckedCreateWithoutEstimatesInput>
|
|
connectOrCreate?: SurveyDirectionCreateOrConnectWithoutEstimatesInput
|
|
upsert?: SurveyDirectionUpsertWithoutEstimatesInput
|
|
connect?: SurveyDirectionWhereUniqueInput
|
|
update?: XOR<XOR<SurveyDirectionUpdateToOneWithWhereWithoutEstimatesInput, SurveyDirectionUpdateWithoutEstimatesInput>, SurveyDirectionUncheckedUpdateWithoutEstimatesInput>
|
|
}
|
|
|
|
export type EstimateItemUpdateManyWithoutEstimateNestedInput = {
|
|
create?: XOR<EstimateItemCreateWithoutEstimateInput, EstimateItemUncheckedCreateWithoutEstimateInput> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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<EstimateCreateWithoutVersionsInput, EstimateUncheckedCreateWithoutVersionsInput>
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutVersionsInput
|
|
connect?: EstimateWhereUniqueInput
|
|
}
|
|
|
|
export type EstimateUpdateOneRequiredWithoutVersionsNestedInput = {
|
|
create?: XOR<EstimateCreateWithoutVersionsInput, EstimateUncheckedCreateWithoutVersionsInput>
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutVersionsInput
|
|
upsert?: EstimateUpsertWithoutVersionsInput
|
|
connect?: EstimateWhereUniqueInput
|
|
update?: XOR<XOR<EstimateUpdateToOneWithWhereWithoutVersionsInput, EstimateUpdateWithoutVersionsInput>, EstimateUncheckedUpdateWithoutVersionsInput>
|
|
}
|
|
|
|
export type EstimateCreateNestedOneWithoutSharesInput = {
|
|
create?: XOR<EstimateCreateWithoutSharesInput, EstimateUncheckedCreateWithoutSharesInput>
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutSharesInput
|
|
connect?: EstimateWhereUniqueInput
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutReceivedSharesInput = {
|
|
create?: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutOwnedSharesInput = {
|
|
create?: XOR<UserCreateWithoutOwnedSharesInput, UserUncheckedCreateWithoutOwnedSharesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutOwnedSharesInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type EstimateShareNoteCreateNestedManyWithoutShareInput = {
|
|
create?: XOR<EstimateShareNoteCreateWithoutShareInput, EstimateShareNoteUncheckedCreateWithoutShareInput> | EstimateShareNoteCreateWithoutShareInput[] | EstimateShareNoteUncheckedCreateWithoutShareInput[]
|
|
connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutShareInput | EstimateShareNoteCreateOrConnectWithoutShareInput[]
|
|
createMany?: EstimateShareNoteCreateManyShareInputEnvelope
|
|
connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateShareNoteUncheckedCreateNestedManyWithoutShareInput = {
|
|
create?: XOR<EstimateShareNoteCreateWithoutShareInput, EstimateShareNoteUncheckedCreateWithoutShareInput> | EstimateShareNoteCreateWithoutShareInput[] | EstimateShareNoteUncheckedCreateWithoutShareInput[]
|
|
connectOrCreate?: EstimateShareNoteCreateOrConnectWithoutShareInput | EstimateShareNoteCreateOrConnectWithoutShareInput[]
|
|
createMany?: EstimateShareNoteCreateManyShareInputEnvelope
|
|
connect?: EstimateShareNoteWhereUniqueInput | EstimateShareNoteWhereUniqueInput[]
|
|
}
|
|
|
|
export type EstimateUpdateOneRequiredWithoutSharesNestedInput = {
|
|
create?: XOR<EstimateCreateWithoutSharesInput, EstimateUncheckedCreateWithoutSharesInput>
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutSharesInput
|
|
upsert?: EstimateUpsertWithoutSharesInput
|
|
connect?: EstimateWhereUniqueInput
|
|
update?: XOR<XOR<EstimateUpdateToOneWithWhereWithoutSharesInput, EstimateUpdateWithoutSharesInput>, EstimateUncheckedUpdateWithoutSharesInput>
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutReceivedSharesNestedInput = {
|
|
create?: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutReceivedSharesInput
|
|
upsert?: UserUpsertWithoutReceivedSharesInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutReceivedSharesInput, UserUpdateWithoutReceivedSharesInput>, UserUncheckedUpdateWithoutReceivedSharesInput>
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutOwnedSharesNestedInput = {
|
|
create?: XOR<UserCreateWithoutOwnedSharesInput, UserUncheckedCreateWithoutOwnedSharesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutOwnedSharesInput
|
|
upsert?: UserUpsertWithoutOwnedSharesInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutOwnedSharesInput, UserUpdateWithoutOwnedSharesInput>, UserUncheckedUpdateWithoutOwnedSharesInput>
|
|
}
|
|
|
|
export type EstimateShareNoteUpdateManyWithoutShareNestedInput = {
|
|
create?: XOR<EstimateShareNoteCreateWithoutShareInput, EstimateShareNoteUncheckedCreateWithoutShareInput> | 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> | 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<EstimateShareCreateWithoutNotesInput, EstimateShareUncheckedCreateWithoutNotesInput>
|
|
connectOrCreate?: EstimateShareCreateOrConnectWithoutNotesInput
|
|
connect?: EstimateShareWhereUniqueInput
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutShareNotesInput = {
|
|
create?: XOR<UserCreateWithoutShareNotesInput, UserUncheckedCreateWithoutShareNotesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutShareNotesInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type EstimateShareUpdateOneRequiredWithoutNotesNestedInput = {
|
|
create?: XOR<EstimateShareCreateWithoutNotesInput, EstimateShareUncheckedCreateWithoutNotesInput>
|
|
connectOrCreate?: EstimateShareCreateOrConnectWithoutNotesInput
|
|
upsert?: EstimateShareUpsertWithoutNotesInput
|
|
connect?: EstimateShareWhereUniqueInput
|
|
update?: XOR<XOR<EstimateShareUpdateToOneWithWhereWithoutNotesInput, EstimateShareUpdateWithoutNotesInput>, EstimateShareUncheckedUpdateWithoutNotesInput>
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutShareNotesNestedInput = {
|
|
create?: XOR<UserCreateWithoutShareNotesInput, UserUncheckedCreateWithoutShareNotesInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutShareNotesInput
|
|
upsert?: UserUpsertWithoutShareNotesInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutShareNotesInput, UserUpdateWithoutShareNotesInput>, UserUncheckedUpdateWithoutShareNotesInput>
|
|
}
|
|
|
|
export type EstimateCreateNestedOneWithoutItemsInput = {
|
|
create?: XOR<EstimateCreateWithoutItemsInput, EstimateUncheckedCreateWithoutItemsInput>
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutItemsInput
|
|
connect?: EstimateWhereUniqueInput
|
|
}
|
|
|
|
export type PriceItemCreateNestedOneWithoutEstimateItemsInput = {
|
|
create?: XOR<PriceItemCreateWithoutEstimateItemsInput, PriceItemUncheckedCreateWithoutEstimateItemsInput>
|
|
connectOrCreate?: PriceItemCreateOrConnectWithoutEstimateItemsInput
|
|
connect?: PriceItemWhereUniqueInput
|
|
}
|
|
|
|
export type EstimateUpdateOneRequiredWithoutItemsNestedInput = {
|
|
create?: XOR<EstimateCreateWithoutItemsInput, EstimateUncheckedCreateWithoutItemsInput>
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutItemsInput
|
|
upsert?: EstimateUpsertWithoutItemsInput
|
|
connect?: EstimateWhereUniqueInput
|
|
update?: XOR<XOR<EstimateUpdateToOneWithWhereWithoutItemsInput, EstimateUpdateWithoutItemsInput>, EstimateUncheckedUpdateWithoutItemsInput>
|
|
}
|
|
|
|
export type PriceItemUpdateOneWithoutEstimateItemsNestedInput = {
|
|
create?: XOR<PriceItemCreateWithoutEstimateItemsInput, PriceItemUncheckedCreateWithoutEstimateItemsInput>
|
|
connectOrCreate?: PriceItemCreateOrConnectWithoutEstimateItemsInput
|
|
upsert?: PriceItemUpsertWithoutEstimateItemsInput
|
|
disconnect?: PriceItemWhereInput | boolean
|
|
delete?: PriceItemWhereInput | boolean
|
|
connect?: PriceItemWhereUniqueInput
|
|
update?: XOR<XOR<PriceItemUpdateToOneWithWhereWithoutEstimateItemsInput, PriceItemUpdateWithoutEstimateItemsInput>, PriceItemUncheckedUpdateWithoutEstimateItemsInput>
|
|
}
|
|
|
|
export type EstimateCreateNestedOneWithoutTotalsInput = {
|
|
create?: XOR<EstimateCreateWithoutTotalsInput, EstimateUncheckedCreateWithoutTotalsInput>
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutTotalsInput
|
|
connect?: EstimateWhereUniqueInput
|
|
}
|
|
|
|
export type EstimateUpdateOneRequiredWithoutTotalsNestedInput = {
|
|
create?: XOR<EstimateCreateWithoutTotalsInput, EstimateUncheckedCreateWithoutTotalsInput>
|
|
connectOrCreate?: EstimateCreateOrConnectWithoutTotalsInput
|
|
upsert?: EstimateUpsertWithoutTotalsInput
|
|
connect?: EstimateWhereUniqueInput
|
|
update?: XOR<XOR<EstimateUpdateToOneWithWhereWithoutTotalsInput, EstimateUpdateWithoutTotalsInput>, EstimateUncheckedUpdateWithoutTotalsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutChatSessionsInput = {
|
|
create?: XOR<UserCreateWithoutChatSessionsInput, UserUncheckedCreateWithoutChatSessionsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutChatSessionsInput
|
|
connect?: UserWhereUniqueInput
|
|
}
|
|
|
|
export type ChatMessageCreateNestedManyWithoutSessionInput = {
|
|
create?: XOR<ChatMessageCreateWithoutSessionInput, ChatMessageUncheckedCreateWithoutSessionInput> | ChatMessageCreateWithoutSessionInput[] | ChatMessageUncheckedCreateWithoutSessionInput[]
|
|
connectOrCreate?: ChatMessageCreateOrConnectWithoutSessionInput | ChatMessageCreateOrConnectWithoutSessionInput[]
|
|
createMany?: ChatMessageCreateManySessionInputEnvelope
|
|
connect?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[]
|
|
}
|
|
|
|
export type ChatMessageUncheckedCreateNestedManyWithoutSessionInput = {
|
|
create?: XOR<ChatMessageCreateWithoutSessionInput, ChatMessageUncheckedCreateWithoutSessionInput> | ChatMessageCreateWithoutSessionInput[] | ChatMessageUncheckedCreateWithoutSessionInput[]
|
|
connectOrCreate?: ChatMessageCreateOrConnectWithoutSessionInput | ChatMessageCreateOrConnectWithoutSessionInput[]
|
|
createMany?: ChatMessageCreateManySessionInputEnvelope
|
|
connect?: ChatMessageWhereUniqueInput | ChatMessageWhereUniqueInput[]
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutChatSessionsNestedInput = {
|
|
create?: XOR<UserCreateWithoutChatSessionsInput, UserUncheckedCreateWithoutChatSessionsInput>
|
|
connectOrCreate?: UserCreateOrConnectWithoutChatSessionsInput
|
|
upsert?: UserUpsertWithoutChatSessionsInput
|
|
connect?: UserWhereUniqueInput
|
|
update?: XOR<XOR<UserUpdateToOneWithWhereWithoutChatSessionsInput, UserUpdateWithoutChatSessionsInput>, UserUncheckedUpdateWithoutChatSessionsInput>
|
|
}
|
|
|
|
export type ChatMessageUpdateManyWithoutSessionNestedInput = {
|
|
create?: XOR<ChatMessageCreateWithoutSessionInput, ChatMessageUncheckedCreateWithoutSessionInput> | 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> | 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<ChatSessionCreateWithoutMessagesInput, ChatSessionUncheckedCreateWithoutMessagesInput>
|
|
connectOrCreate?: ChatSessionCreateOrConnectWithoutMessagesInput
|
|
connect?: ChatSessionWhereUniqueInput
|
|
}
|
|
|
|
export type ChatSessionUpdateOneRequiredWithoutMessagesNestedInput = {
|
|
create?: XOR<ChatSessionCreateWithoutMessagesInput, ChatSessionUncheckedCreateWithoutMessagesInput>
|
|
connectOrCreate?: ChatSessionCreateOrConnectWithoutMessagesInput
|
|
upsert?: ChatSessionUpsertWithoutMessagesInput
|
|
connect?: ChatSessionWhereUniqueInput
|
|
update?: XOR<XOR<ChatSessionUpdateToOneWithWhereWithoutMessagesInput, ChatSessionUpdateWithoutMessagesInput>, 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<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<NestedJsonNullableFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, '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<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
|
|
Required<NestedJsonFilterBase<$PrismaModel>>
|
|
>
|
|
| OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, '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<PriceTableCreateWithoutPriceBookInput, PriceTableUncheckedCreateWithoutPriceBookInput>
|
|
}
|
|
|
|
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<PriceItemCreateWithoutPriceBookInput, PriceItemUncheckedCreateWithoutPriceBookInput>
|
|
}
|
|
|
|
export type PriceItemCreateManyPriceBookInputEnvelope = {
|
|
data: PriceItemCreateManyPriceBookInput | PriceItemCreateManyPriceBookInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type PriceTableUpsertWithWhereUniqueWithoutPriceBookInput = {
|
|
where: PriceTableWhereUniqueInput
|
|
update: XOR<PriceTableUpdateWithoutPriceBookInput, PriceTableUncheckedUpdateWithoutPriceBookInput>
|
|
create: XOR<PriceTableCreateWithoutPriceBookInput, PriceTableUncheckedCreateWithoutPriceBookInput>
|
|
}
|
|
|
|
export type PriceTableUpdateWithWhereUniqueWithoutPriceBookInput = {
|
|
where: PriceTableWhereUniqueInput
|
|
data: XOR<PriceTableUpdateWithoutPriceBookInput, PriceTableUncheckedUpdateWithoutPriceBookInput>
|
|
}
|
|
|
|
export type PriceTableUpdateManyWithWhereWithoutPriceBookInput = {
|
|
where: PriceTableScalarWhereInput
|
|
data: XOR<PriceTableUpdateManyMutationInput, PriceTableUncheckedUpdateManyWithoutPriceBookInput>
|
|
}
|
|
|
|
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<PriceItemUpdateWithoutPriceBookInput, PriceItemUncheckedUpdateWithoutPriceBookInput>
|
|
create: XOR<PriceItemCreateWithoutPriceBookInput, PriceItemUncheckedCreateWithoutPriceBookInput>
|
|
}
|
|
|
|
export type PriceItemUpdateWithWhereUniqueWithoutPriceBookInput = {
|
|
where: PriceItemWhereUniqueInput
|
|
data: XOR<PriceItemUpdateWithoutPriceBookInput, PriceItemUncheckedUpdateWithoutPriceBookInput>
|
|
}
|
|
|
|
export type PriceItemUpdateManyWithWhereWithoutPriceBookInput = {
|
|
where: PriceItemScalarWhereInput
|
|
data: XOR<PriceItemUpdateManyMutationInput, PriceItemUncheckedUpdateManyWithoutPriceBookInput>
|
|
}
|
|
|
|
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<PriceBookCreateWithoutTablesInput, PriceBookUncheckedCreateWithoutTablesInput>
|
|
}
|
|
|
|
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<PriceItemCreateWithoutPriceTableInput, PriceItemUncheckedCreateWithoutPriceTableInput>
|
|
}
|
|
|
|
export type PriceItemCreateManyPriceTableInputEnvelope = {
|
|
data: PriceItemCreateManyPriceTableInput | PriceItemCreateManyPriceTableInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type PriceBookUpsertWithoutTablesInput = {
|
|
update: XOR<PriceBookUpdateWithoutTablesInput, PriceBookUncheckedUpdateWithoutTablesInput>
|
|
create: XOR<PriceBookCreateWithoutTablesInput, PriceBookUncheckedCreateWithoutTablesInput>
|
|
where?: PriceBookWhereInput
|
|
}
|
|
|
|
export type PriceBookUpdateToOneWithWhereWithoutTablesInput = {
|
|
where?: PriceBookWhereInput
|
|
data: XOR<PriceBookUpdateWithoutTablesInput, PriceBookUncheckedUpdateWithoutTablesInput>
|
|
}
|
|
|
|
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<PriceItemUpdateWithoutPriceTableInput, PriceItemUncheckedUpdateWithoutPriceTableInput>
|
|
create: XOR<PriceItemCreateWithoutPriceTableInput, PriceItemUncheckedCreateWithoutPriceTableInput>
|
|
}
|
|
|
|
export type PriceItemUpdateWithWhereUniqueWithoutPriceTableInput = {
|
|
where: PriceItemWhereUniqueInput
|
|
data: XOR<PriceItemUpdateWithoutPriceTableInput, PriceItemUncheckedUpdateWithoutPriceTableInput>
|
|
}
|
|
|
|
export type PriceItemUpdateManyWithWhereWithoutPriceTableInput = {
|
|
where: PriceItemScalarWhereInput
|
|
data: XOR<PriceItemUpdateManyMutationInput, PriceItemUncheckedUpdateManyWithoutPriceTableInput>
|
|
}
|
|
|
|
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<PriceBookCreateWithoutItemsInput, PriceBookUncheckedCreateWithoutItemsInput>
|
|
}
|
|
|
|
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<PriceTableCreateWithoutItemsInput, PriceTableUncheckedCreateWithoutItemsInput>
|
|
}
|
|
|
|
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<EstimateItemCreateWithoutPriceItemInput, EstimateItemUncheckedCreateWithoutPriceItemInput>
|
|
}
|
|
|
|
export type EstimateItemCreateManyPriceItemInputEnvelope = {
|
|
data: EstimateItemCreateManyPriceItemInput | EstimateItemCreateManyPriceItemInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type PriceBookUpsertWithoutItemsInput = {
|
|
update: XOR<PriceBookUpdateWithoutItemsInput, PriceBookUncheckedUpdateWithoutItemsInput>
|
|
create: XOR<PriceBookCreateWithoutItemsInput, PriceBookUncheckedCreateWithoutItemsInput>
|
|
where?: PriceBookWhereInput
|
|
}
|
|
|
|
export type PriceBookUpdateToOneWithWhereWithoutItemsInput = {
|
|
where?: PriceBookWhereInput
|
|
data: XOR<PriceBookUpdateWithoutItemsInput, PriceBookUncheckedUpdateWithoutItemsInput>
|
|
}
|
|
|
|
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<PriceTableUpdateWithoutItemsInput, PriceTableUncheckedUpdateWithoutItemsInput>
|
|
create: XOR<PriceTableCreateWithoutItemsInput, PriceTableUncheckedCreateWithoutItemsInput>
|
|
where?: PriceTableWhereInput
|
|
}
|
|
|
|
export type PriceTableUpdateToOneWithWhereWithoutItemsInput = {
|
|
where?: PriceTableWhereInput
|
|
data: XOR<PriceTableUpdateWithoutItemsInput, PriceTableUncheckedUpdateWithoutItemsInput>
|
|
}
|
|
|
|
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<EstimateItemUpdateWithoutPriceItemInput, EstimateItemUncheckedUpdateWithoutPriceItemInput>
|
|
create: XOR<EstimateItemCreateWithoutPriceItemInput, EstimateItemUncheckedCreateWithoutPriceItemInput>
|
|
}
|
|
|
|
export type EstimateItemUpdateWithWhereUniqueWithoutPriceItemInput = {
|
|
where: EstimateItemWhereUniqueInput
|
|
data: XOR<EstimateItemUpdateWithoutPriceItemInput, EstimateItemUncheckedUpdateWithoutPriceItemInput>
|
|
}
|
|
|
|
export type EstimateItemUpdateManyWithWhereWithoutPriceItemInput = {
|
|
where: EstimateItemScalarWhereInput
|
|
data: XOR<EstimateItemUpdateManyMutationInput, EstimateItemUncheckedUpdateManyWithoutPriceItemInput>
|
|
}
|
|
|
|
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<EstimateCreateWithoutOwnerInput, EstimateUncheckedCreateWithoutOwnerInput>
|
|
}
|
|
|
|
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<ChatSessionCreateWithoutUserInput, ChatSessionUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
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<EstimateShareCreateWithoutOwnerInput, EstimateShareUncheckedCreateWithoutOwnerInput>
|
|
}
|
|
|
|
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<EstimateShareCreateWithoutSharedWithInput, EstimateShareUncheckedCreateWithoutSharedWithInput>
|
|
}
|
|
|
|
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<EstimateShareNoteCreateWithoutAuthorInput, EstimateShareNoteUncheckedCreateWithoutAuthorInput>
|
|
}
|
|
|
|
export type EstimateShareNoteCreateManyAuthorInputEnvelope = {
|
|
data: EstimateShareNoteCreateManyAuthorInput | EstimateShareNoteCreateManyAuthorInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type EstimateUpsertWithWhereUniqueWithoutOwnerInput = {
|
|
where: EstimateWhereUniqueInput
|
|
update: XOR<EstimateUpdateWithoutOwnerInput, EstimateUncheckedUpdateWithoutOwnerInput>
|
|
create: XOR<EstimateCreateWithoutOwnerInput, EstimateUncheckedCreateWithoutOwnerInput>
|
|
}
|
|
|
|
export type EstimateUpdateWithWhereUniqueWithoutOwnerInput = {
|
|
where: EstimateWhereUniqueInput
|
|
data: XOR<EstimateUpdateWithoutOwnerInput, EstimateUncheckedUpdateWithoutOwnerInput>
|
|
}
|
|
|
|
export type EstimateUpdateManyWithWhereWithoutOwnerInput = {
|
|
where: EstimateScalarWhereInput
|
|
data: XOR<EstimateUpdateManyMutationInput, EstimateUncheckedUpdateManyWithoutOwnerInput>
|
|
}
|
|
|
|
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<ChatSessionUpdateWithoutUserInput, ChatSessionUncheckedUpdateWithoutUserInput>
|
|
create: XOR<ChatSessionCreateWithoutUserInput, ChatSessionUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type ChatSessionUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: ChatSessionWhereUniqueInput
|
|
data: XOR<ChatSessionUpdateWithoutUserInput, ChatSessionUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type ChatSessionUpdateManyWithWhereWithoutUserInput = {
|
|
where: ChatSessionScalarWhereInput
|
|
data: XOR<ChatSessionUpdateManyMutationInput, ChatSessionUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
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<EstimateShareUpdateWithoutOwnerInput, EstimateShareUncheckedUpdateWithoutOwnerInput>
|
|
create: XOR<EstimateShareCreateWithoutOwnerInput, EstimateShareUncheckedCreateWithoutOwnerInput>
|
|
}
|
|
|
|
export type EstimateShareUpdateWithWhereUniqueWithoutOwnerInput = {
|
|
where: EstimateShareWhereUniqueInput
|
|
data: XOR<EstimateShareUpdateWithoutOwnerInput, EstimateShareUncheckedUpdateWithoutOwnerInput>
|
|
}
|
|
|
|
export type EstimateShareUpdateManyWithWhereWithoutOwnerInput = {
|
|
where: EstimateShareScalarWhereInput
|
|
data: XOR<EstimateShareUpdateManyMutationInput, EstimateShareUncheckedUpdateManyWithoutOwnerInput>
|
|
}
|
|
|
|
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<EstimateShareUpdateWithoutSharedWithInput, EstimateShareUncheckedUpdateWithoutSharedWithInput>
|
|
create: XOR<EstimateShareCreateWithoutSharedWithInput, EstimateShareUncheckedCreateWithoutSharedWithInput>
|
|
}
|
|
|
|
export type EstimateShareUpdateWithWhereUniqueWithoutSharedWithInput = {
|
|
where: EstimateShareWhereUniqueInput
|
|
data: XOR<EstimateShareUpdateWithoutSharedWithInput, EstimateShareUncheckedUpdateWithoutSharedWithInput>
|
|
}
|
|
|
|
export type EstimateShareUpdateManyWithWhereWithoutSharedWithInput = {
|
|
where: EstimateShareScalarWhereInput
|
|
data: XOR<EstimateShareUpdateManyMutationInput, EstimateShareUncheckedUpdateManyWithoutSharedWithInput>
|
|
}
|
|
|
|
export type EstimateShareNoteUpsertWithWhereUniqueWithoutAuthorInput = {
|
|
where: EstimateShareNoteWhereUniqueInput
|
|
update: XOR<EstimateShareNoteUpdateWithoutAuthorInput, EstimateShareNoteUncheckedUpdateWithoutAuthorInput>
|
|
create: XOR<EstimateShareNoteCreateWithoutAuthorInput, EstimateShareNoteUncheckedCreateWithoutAuthorInput>
|
|
}
|
|
|
|
export type EstimateShareNoteUpdateWithWhereUniqueWithoutAuthorInput = {
|
|
where: EstimateShareNoteWhereUniqueInput
|
|
data: XOR<EstimateShareNoteUpdateWithoutAuthorInput, EstimateShareNoteUncheckedUpdateWithoutAuthorInput>
|
|
}
|
|
|
|
export type EstimateShareNoteUpdateManyWithWhereWithoutAuthorInput = {
|
|
where: EstimateShareNoteScalarWhereInput
|
|
data: XOR<EstimateShareNoteUpdateManyMutationInput, EstimateShareNoteUncheckedUpdateManyWithoutAuthorInput>
|
|
}
|
|
|
|
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<EstimateCreateWithoutDirectionInput, EstimateUncheckedCreateWithoutDirectionInput>
|
|
}
|
|
|
|
export type EstimateCreateManyDirectionInputEnvelope = {
|
|
data: EstimateCreateManyDirectionInput | EstimateCreateManyDirectionInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type EstimateUpsertWithWhereUniqueWithoutDirectionInput = {
|
|
where: EstimateWhereUniqueInput
|
|
update: XOR<EstimateUpdateWithoutDirectionInput, EstimateUncheckedUpdateWithoutDirectionInput>
|
|
create: XOR<EstimateCreateWithoutDirectionInput, EstimateUncheckedCreateWithoutDirectionInput>
|
|
}
|
|
|
|
export type EstimateUpdateWithWhereUniqueWithoutDirectionInput = {
|
|
where: EstimateWhereUniqueInput
|
|
data: XOR<EstimateUpdateWithoutDirectionInput, EstimateUncheckedUpdateWithoutDirectionInput>
|
|
}
|
|
|
|
export type EstimateUpdateManyWithWhereWithoutDirectionInput = {
|
|
where: EstimateScalarWhereInput
|
|
data: XOR<EstimateUpdateManyMutationInput, EstimateUncheckedUpdateManyWithoutDirectionInput>
|
|
}
|
|
|
|
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<UserCreateWithoutEstimatesInput, UserUncheckedCreateWithoutEstimatesInput>
|
|
}
|
|
|
|
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<SurveyDirectionCreateWithoutEstimatesInput, SurveyDirectionUncheckedCreateWithoutEstimatesInput>
|
|
}
|
|
|
|
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<EstimateItemCreateWithoutEstimateInput, EstimateItemUncheckedCreateWithoutEstimateInput>
|
|
}
|
|
|
|
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<EstimateTotalCreateWithoutEstimateInput, EstimateTotalUncheckedCreateWithoutEstimateInput>
|
|
}
|
|
|
|
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<EstimateShareCreateWithoutEstimateInput, EstimateShareUncheckedCreateWithoutEstimateInput>
|
|
}
|
|
|
|
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<EstimateVersionCreateWithoutEstimateInput, EstimateVersionUncheckedCreateWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateVersionCreateManyEstimateInputEnvelope = {
|
|
data: EstimateVersionCreateManyEstimateInput | EstimateVersionCreateManyEstimateInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type UserUpsertWithoutEstimatesInput = {
|
|
update: XOR<UserUpdateWithoutEstimatesInput, UserUncheckedUpdateWithoutEstimatesInput>
|
|
create: XOR<UserCreateWithoutEstimatesInput, UserUncheckedCreateWithoutEstimatesInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutEstimatesInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutEstimatesInput, UserUncheckedUpdateWithoutEstimatesInput>
|
|
}
|
|
|
|
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<SurveyDirectionUpdateWithoutEstimatesInput, SurveyDirectionUncheckedUpdateWithoutEstimatesInput>
|
|
create: XOR<SurveyDirectionCreateWithoutEstimatesInput, SurveyDirectionUncheckedCreateWithoutEstimatesInput>
|
|
where?: SurveyDirectionWhereInput
|
|
}
|
|
|
|
export type SurveyDirectionUpdateToOneWithWhereWithoutEstimatesInput = {
|
|
where?: SurveyDirectionWhereInput
|
|
data: XOR<SurveyDirectionUpdateWithoutEstimatesInput, SurveyDirectionUncheckedUpdateWithoutEstimatesInput>
|
|
}
|
|
|
|
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<EstimateItemUpdateWithoutEstimateInput, EstimateItemUncheckedUpdateWithoutEstimateInput>
|
|
create: XOR<EstimateItemCreateWithoutEstimateInput, EstimateItemUncheckedCreateWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateItemUpdateWithWhereUniqueWithoutEstimateInput = {
|
|
where: EstimateItemWhereUniqueInput
|
|
data: XOR<EstimateItemUpdateWithoutEstimateInput, EstimateItemUncheckedUpdateWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateItemUpdateManyWithWhereWithoutEstimateInput = {
|
|
where: EstimateItemScalarWhereInput
|
|
data: XOR<EstimateItemUpdateManyMutationInput, EstimateItemUncheckedUpdateManyWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateTotalUpsertWithWhereUniqueWithoutEstimateInput = {
|
|
where: EstimateTotalWhereUniqueInput
|
|
update: XOR<EstimateTotalUpdateWithoutEstimateInput, EstimateTotalUncheckedUpdateWithoutEstimateInput>
|
|
create: XOR<EstimateTotalCreateWithoutEstimateInput, EstimateTotalUncheckedCreateWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateTotalUpdateWithWhereUniqueWithoutEstimateInput = {
|
|
where: EstimateTotalWhereUniqueInput
|
|
data: XOR<EstimateTotalUpdateWithoutEstimateInput, EstimateTotalUncheckedUpdateWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateTotalUpdateManyWithWhereWithoutEstimateInput = {
|
|
where: EstimateTotalScalarWhereInput
|
|
data: XOR<EstimateTotalUpdateManyMutationInput, EstimateTotalUncheckedUpdateManyWithoutEstimateInput>
|
|
}
|
|
|
|
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<EstimateShareUpdateWithoutEstimateInput, EstimateShareUncheckedUpdateWithoutEstimateInput>
|
|
create: XOR<EstimateShareCreateWithoutEstimateInput, EstimateShareUncheckedCreateWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateShareUpdateWithWhereUniqueWithoutEstimateInput = {
|
|
where: EstimateShareWhereUniqueInput
|
|
data: XOR<EstimateShareUpdateWithoutEstimateInput, EstimateShareUncheckedUpdateWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateShareUpdateManyWithWhereWithoutEstimateInput = {
|
|
where: EstimateShareScalarWhereInput
|
|
data: XOR<EstimateShareUpdateManyMutationInput, EstimateShareUncheckedUpdateManyWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateVersionUpsertWithWhereUniqueWithoutEstimateInput = {
|
|
where: EstimateVersionWhereUniqueInput
|
|
update: XOR<EstimateVersionUpdateWithoutEstimateInput, EstimateVersionUncheckedUpdateWithoutEstimateInput>
|
|
create: XOR<EstimateVersionCreateWithoutEstimateInput, EstimateVersionUncheckedCreateWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateVersionUpdateWithWhereUniqueWithoutEstimateInput = {
|
|
where: EstimateVersionWhereUniqueInput
|
|
data: XOR<EstimateVersionUpdateWithoutEstimateInput, EstimateVersionUncheckedUpdateWithoutEstimateInput>
|
|
}
|
|
|
|
export type EstimateVersionUpdateManyWithWhereWithoutEstimateInput = {
|
|
where: EstimateVersionScalarWhereInput
|
|
data: XOR<EstimateVersionUpdateManyMutationInput, EstimateVersionUncheckedUpdateManyWithoutEstimateInput>
|
|
}
|
|
|
|
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<EstimateCreateWithoutVersionsInput, EstimateUncheckedCreateWithoutVersionsInput>
|
|
}
|
|
|
|
export type EstimateUpsertWithoutVersionsInput = {
|
|
update: XOR<EstimateUpdateWithoutVersionsInput, EstimateUncheckedUpdateWithoutVersionsInput>
|
|
create: XOR<EstimateCreateWithoutVersionsInput, EstimateUncheckedCreateWithoutVersionsInput>
|
|
where?: EstimateWhereInput
|
|
}
|
|
|
|
export type EstimateUpdateToOneWithWhereWithoutVersionsInput = {
|
|
where?: EstimateWhereInput
|
|
data: XOR<EstimateUpdateWithoutVersionsInput, EstimateUncheckedUpdateWithoutVersionsInput>
|
|
}
|
|
|
|
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<EstimateCreateWithoutSharesInput, EstimateUncheckedCreateWithoutSharesInput>
|
|
}
|
|
|
|
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<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
|
|
}
|
|
|
|
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<UserCreateWithoutOwnedSharesInput, UserUncheckedCreateWithoutOwnedSharesInput>
|
|
}
|
|
|
|
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<EstimateShareNoteCreateWithoutShareInput, EstimateShareNoteUncheckedCreateWithoutShareInput>
|
|
}
|
|
|
|
export type EstimateShareNoteCreateManyShareInputEnvelope = {
|
|
data: EstimateShareNoteCreateManyShareInput | EstimateShareNoteCreateManyShareInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type EstimateUpsertWithoutSharesInput = {
|
|
update: XOR<EstimateUpdateWithoutSharesInput, EstimateUncheckedUpdateWithoutSharesInput>
|
|
create: XOR<EstimateCreateWithoutSharesInput, EstimateUncheckedCreateWithoutSharesInput>
|
|
where?: EstimateWhereInput
|
|
}
|
|
|
|
export type EstimateUpdateToOneWithWhereWithoutSharesInput = {
|
|
where?: EstimateWhereInput
|
|
data: XOR<EstimateUpdateWithoutSharesInput, EstimateUncheckedUpdateWithoutSharesInput>
|
|
}
|
|
|
|
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<UserUpdateWithoutReceivedSharesInput, UserUncheckedUpdateWithoutReceivedSharesInput>
|
|
create: XOR<UserCreateWithoutReceivedSharesInput, UserUncheckedCreateWithoutReceivedSharesInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutReceivedSharesInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutReceivedSharesInput, UserUncheckedUpdateWithoutReceivedSharesInput>
|
|
}
|
|
|
|
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<UserUpdateWithoutOwnedSharesInput, UserUncheckedUpdateWithoutOwnedSharesInput>
|
|
create: XOR<UserCreateWithoutOwnedSharesInput, UserUncheckedCreateWithoutOwnedSharesInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutOwnedSharesInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutOwnedSharesInput, UserUncheckedUpdateWithoutOwnedSharesInput>
|
|
}
|
|
|
|
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<EstimateShareNoteUpdateWithoutShareInput, EstimateShareNoteUncheckedUpdateWithoutShareInput>
|
|
create: XOR<EstimateShareNoteCreateWithoutShareInput, EstimateShareNoteUncheckedCreateWithoutShareInput>
|
|
}
|
|
|
|
export type EstimateShareNoteUpdateWithWhereUniqueWithoutShareInput = {
|
|
where: EstimateShareNoteWhereUniqueInput
|
|
data: XOR<EstimateShareNoteUpdateWithoutShareInput, EstimateShareNoteUncheckedUpdateWithoutShareInput>
|
|
}
|
|
|
|
export type EstimateShareNoteUpdateManyWithWhereWithoutShareInput = {
|
|
where: EstimateShareNoteScalarWhereInput
|
|
data: XOR<EstimateShareNoteUpdateManyMutationInput, EstimateShareNoteUncheckedUpdateManyWithoutShareInput>
|
|
}
|
|
|
|
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<EstimateShareCreateWithoutNotesInput, EstimateShareUncheckedCreateWithoutNotesInput>
|
|
}
|
|
|
|
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<UserCreateWithoutShareNotesInput, UserUncheckedCreateWithoutShareNotesInput>
|
|
}
|
|
|
|
export type EstimateShareUpsertWithoutNotesInput = {
|
|
update: XOR<EstimateShareUpdateWithoutNotesInput, EstimateShareUncheckedUpdateWithoutNotesInput>
|
|
create: XOR<EstimateShareCreateWithoutNotesInput, EstimateShareUncheckedCreateWithoutNotesInput>
|
|
where?: EstimateShareWhereInput
|
|
}
|
|
|
|
export type EstimateShareUpdateToOneWithWhereWithoutNotesInput = {
|
|
where?: EstimateShareWhereInput
|
|
data: XOR<EstimateShareUpdateWithoutNotesInput, EstimateShareUncheckedUpdateWithoutNotesInput>
|
|
}
|
|
|
|
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<UserUpdateWithoutShareNotesInput, UserUncheckedUpdateWithoutShareNotesInput>
|
|
create: XOR<UserCreateWithoutShareNotesInput, UserUncheckedCreateWithoutShareNotesInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutShareNotesInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutShareNotesInput, UserUncheckedUpdateWithoutShareNotesInput>
|
|
}
|
|
|
|
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<EstimateCreateWithoutItemsInput, EstimateUncheckedCreateWithoutItemsInput>
|
|
}
|
|
|
|
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<PriceItemCreateWithoutEstimateItemsInput, PriceItemUncheckedCreateWithoutEstimateItemsInput>
|
|
}
|
|
|
|
export type EstimateUpsertWithoutItemsInput = {
|
|
update: XOR<EstimateUpdateWithoutItemsInput, EstimateUncheckedUpdateWithoutItemsInput>
|
|
create: XOR<EstimateCreateWithoutItemsInput, EstimateUncheckedCreateWithoutItemsInput>
|
|
where?: EstimateWhereInput
|
|
}
|
|
|
|
export type EstimateUpdateToOneWithWhereWithoutItemsInput = {
|
|
where?: EstimateWhereInput
|
|
data: XOR<EstimateUpdateWithoutItemsInput, EstimateUncheckedUpdateWithoutItemsInput>
|
|
}
|
|
|
|
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<PriceItemUpdateWithoutEstimateItemsInput, PriceItemUncheckedUpdateWithoutEstimateItemsInput>
|
|
create: XOR<PriceItemCreateWithoutEstimateItemsInput, PriceItemUncheckedCreateWithoutEstimateItemsInput>
|
|
where?: PriceItemWhereInput
|
|
}
|
|
|
|
export type PriceItemUpdateToOneWithWhereWithoutEstimateItemsInput = {
|
|
where?: PriceItemWhereInput
|
|
data: XOR<PriceItemUpdateWithoutEstimateItemsInput, PriceItemUncheckedUpdateWithoutEstimateItemsInput>
|
|
}
|
|
|
|
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<EstimateCreateWithoutTotalsInput, EstimateUncheckedCreateWithoutTotalsInput>
|
|
}
|
|
|
|
export type EstimateUpsertWithoutTotalsInput = {
|
|
update: XOR<EstimateUpdateWithoutTotalsInput, EstimateUncheckedUpdateWithoutTotalsInput>
|
|
create: XOR<EstimateCreateWithoutTotalsInput, EstimateUncheckedCreateWithoutTotalsInput>
|
|
where?: EstimateWhereInput
|
|
}
|
|
|
|
export type EstimateUpdateToOneWithWhereWithoutTotalsInput = {
|
|
where?: EstimateWhereInput
|
|
data: XOR<EstimateUpdateWithoutTotalsInput, EstimateUncheckedUpdateWithoutTotalsInput>
|
|
}
|
|
|
|
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<UserCreateWithoutChatSessionsInput, UserUncheckedCreateWithoutChatSessionsInput>
|
|
}
|
|
|
|
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<ChatMessageCreateWithoutSessionInput, ChatMessageUncheckedCreateWithoutSessionInput>
|
|
}
|
|
|
|
export type ChatMessageCreateManySessionInputEnvelope = {
|
|
data: ChatMessageCreateManySessionInput | ChatMessageCreateManySessionInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type UserUpsertWithoutChatSessionsInput = {
|
|
update: XOR<UserUpdateWithoutChatSessionsInput, UserUncheckedUpdateWithoutChatSessionsInput>
|
|
create: XOR<UserCreateWithoutChatSessionsInput, UserUncheckedCreateWithoutChatSessionsInput>
|
|
where?: UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutChatSessionsInput = {
|
|
where?: UserWhereInput
|
|
data: XOR<UserUpdateWithoutChatSessionsInput, UserUncheckedUpdateWithoutChatSessionsInput>
|
|
}
|
|
|
|
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<ChatMessageUpdateWithoutSessionInput, ChatMessageUncheckedUpdateWithoutSessionInput>
|
|
create: XOR<ChatMessageCreateWithoutSessionInput, ChatMessageUncheckedCreateWithoutSessionInput>
|
|
}
|
|
|
|
export type ChatMessageUpdateWithWhereUniqueWithoutSessionInput = {
|
|
where: ChatMessageWhereUniqueInput
|
|
data: XOR<ChatMessageUpdateWithoutSessionInput, ChatMessageUncheckedUpdateWithoutSessionInput>
|
|
}
|
|
|
|
export type ChatMessageUpdateManyWithWhereWithoutSessionInput = {
|
|
where: ChatMessageScalarWhereInput
|
|
data: XOR<ChatMessageUpdateManyMutationInput, ChatMessageUncheckedUpdateManyWithoutSessionInput>
|
|
}
|
|
|
|
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<ChatSessionCreateWithoutMessagesInput, ChatSessionUncheckedCreateWithoutMessagesInput>
|
|
}
|
|
|
|
export type ChatSessionUpsertWithoutMessagesInput = {
|
|
update: XOR<ChatSessionUpdateWithoutMessagesInput, ChatSessionUncheckedUpdateWithoutMessagesInput>
|
|
create: XOR<ChatSessionCreateWithoutMessagesInput, ChatSessionUncheckedCreateWithoutMessagesInput>
|
|
where?: ChatSessionWhereInput
|
|
}
|
|
|
|
export type ChatSessionUpdateToOneWithWhereWithoutMessagesInput = {
|
|
where?: ChatSessionWhereInput
|
|
data: XOR<ChatSessionUpdateWithoutMessagesInput, ChatSessionUncheckedUpdateWithoutMessagesInput>
|
|
}
|
|
|
|
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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PriceBookCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use PriceTableCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type PriceTableCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PriceTableCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use PriceItemCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type PriceItemCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PriceItemCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use UserCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type UserCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use SurveyDirectionCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type SurveyDirectionCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SurveyDirectionCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EstimateCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type EstimateCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EstimateCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EstimateShareCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type EstimateShareCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EstimateShareCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ChatSessionCountOutputTypeDefaultArgs instead
|
|
*/
|
|
export type ChatSessionCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ChatSessionCountOutputTypeDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use PriceBookDefaultArgs instead
|
|
*/
|
|
export type PriceBookArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PriceBookDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use PriceTableDefaultArgs instead
|
|
*/
|
|
export type PriceTableArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PriceTableDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use PriceItemDefaultArgs instead
|
|
*/
|
|
export type PriceItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PriceItemDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use CoefficientDefaultArgs instead
|
|
*/
|
|
export type CoefficientArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CoefficientDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use InflationIndexDefaultArgs instead
|
|
*/
|
|
export type InflationIndexArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = InflationIndexDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use UserDefaultArgs instead
|
|
*/
|
|
export type UserArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use SurveyDirectionDefaultArgs instead
|
|
*/
|
|
export type SurveyDirectionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SurveyDirectionDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EstimateDefaultArgs instead
|
|
*/
|
|
export type EstimateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EstimateDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EstimateVersionDefaultArgs instead
|
|
*/
|
|
export type EstimateVersionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EstimateVersionDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EstimateShareDefaultArgs instead
|
|
*/
|
|
export type EstimateShareArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EstimateShareDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EstimateShareNoteDefaultArgs instead
|
|
*/
|
|
export type EstimateShareNoteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EstimateShareNoteDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EstimateItemDefaultArgs instead
|
|
*/
|
|
export type EstimateItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EstimateItemDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use EstimateTotalDefaultArgs instead
|
|
*/
|
|
export type EstimateTotalArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EstimateTotalDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use SettingDefaultArgs instead
|
|
*/
|
|
export type SettingArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SettingDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ChatSessionDefaultArgs instead
|
|
*/
|
|
export type ChatSessionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ChatSessionDefaultArgs<ExtArgs>
|
|
/**
|
|
* @deprecated Use ChatMessageDefaultArgs instead
|
|
*/
|
|
export type ChatMessageArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ChatMessageDefaultArgs<ExtArgs>
|
|
|
|
/**
|
|
* Batch Payload for updateMany & deleteMany & createMany
|
|
*/
|
|
|
|
export type BatchPayload = {
|
|
count: number
|
|
}
|
|
|
|
/**
|
|
* DMMF
|
|
*/
|
|
export const dmmf: runtime.BaseDMMF
|
|
} |